mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
It´s possible save a page to a certain directory with that dll ??
If sow how... becouse i ca´nt find the parameter to do that.
Or if can´t do that with that dll, how can i do that using the cookies off the explored like the nHTMLn.dll uses??

Joined: Jun 2003
Posts: 67
D
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
yuo can save sites with sockets.


while (demi == nub) {
inc %skill
}
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
the dll offers no such funtion.

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Quote:
while (demi == nub) {
inc %skill
}

did you mean that?,thats his signature smile


new username: tidy_trax
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
And with sokect i can save the page using the cookies off the explorer ???

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Yes, since cookies are kept in files and so can be easily accesed from mIRC.

Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Can someone give a example how to do that them please ?

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Code:
alias google {
  var %search $replace($1-,$chr(32),+)
  sockopen google google.com 80
  sockmark google %search
}
on *:sockopen:google:{
  sockwrite -n $sockname GET $sock($sockname).mark HTTP/1.1
  sockwrite -n $sockname Accept: */*
  sockwrite -n $sockname $crlf
}
on *:sockread:google:{
  if ($sockerr) { return }
  sockread %s
  tokenize 32 %s
  echo -s $1-
}

/google <your search>


new username: tidy_trax
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
But this is with acessing the cookies, the example i was referal is with the explorer cookies.

Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
var %search ... not needed.
and you're assuming that google.com is always up. no checking for $sockerr on sockopen.

on *:sockopen:google:{
if (!$sockerr) {
var %s = sockwrite -n $sockname
%s GET $sock($sockname).mark HTTP/1.1
%s Accept: */*
%s $crlf
}
}
on *:sockread:google:{
var %s
sockread %s
if (!$sockerr) && ($sockbr) {
tokenize 32 %s
echo -s $1-
}
}

plus he might have another google search script already which uses google as sockname so make that variable too.


Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
but this don´t work with the explorer cookies, for example i want to acess to a site that needs pass and user but if i not log out when i go wih the explore to that site he don´t ask for any pass or user becouse the last time i have not logeed out.
And them in the echo in some lines gives a error
* /echo: insufficient parameters (line 14, script3.mrc).

The file off the cookie whery is the pass and user off that site is here :
D:\Documents and Settings\Miguel_A\Cookies\Miguel@HostIn[2].txt

Last edited by Miguel_A; 04/09/03 08:40 AM.
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Or a way to set the user and the password in the remotes section too

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i was giving a quick example of sockets, so maybe he can figure out how to get the cookies himself, no need to correct it, if he'd asked for a better example i would of given it.


new username: tidy_trax
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
The HTML code off the site is like this :

<p>
<form action="/html/overview" method=POST>
<input type="hidden" name="secureid" value="42186787">
<input type="hidden" name="securecode" value="WZUE">
<table cellpadding=2 cellspacing=1 class=border>
<tr>
<td class=row3>&nbsp;&nbsp;
773
Username&nbsp;&nbsp;</td>
<td class=row align=right colspan=2>&nbsp;<input name="username" type="text" class="text" size=20 tabindex=1 value="">&nbsp;</td>
</tr>
<tr>
<td class=row3>&nbsp;&nbsp;Password&nbsp;&nbsp;</td>
<td class=row align=right colspan=2>&nbsp;<input name="password" type="password" class="text" size=20 tabindex=2>&nbsp;</td>
</tr>
<!--tr>
<td class=row3>&nbsp;&nbsp;Security&nbsp;&nbsp;</td>
<td class=row><img src="/image/security?secureid="></td>
<td class=row align=right>&nbsp;<input name="securecode" type="text" class="text" size=12 tabindex=2 value="">&nbsp;</td>
</tr-->

How can i set the username and passowrd to singin with the mirc ??

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
colour or bold the bits im supposed to be looking at please.


new username: tidy_trax
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
pheonix sorry don´t understud the meaning off the last sentence.
I have put the html code becouse i have find this :

https://forums.mirc.com/showflat.php?Cat=...=true#Post10766

Them i´am suposing that is possibel login with that parameters but when i try it gives me an error.
And i am not undertanding the 2 Methods that Hammer have put ther the Method="GET" and the Method="POST".
Can someone explain to me please ?


Link Copied to Clipboard