mIRC Home    About    Download    Register    News    Help

Print Thread
#26665 28/05/03 04:28 PM
Joined: Mar 2003
Posts: 36
B
bugx Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 36
I don't know if my cuestion is for this section or for
Suggestions but... I want to connect a sock with
a user:pass integrated. I try but not works, can't connect
to the web (eg. Porn page to check if pass works)

- I call
/checaweb user:pass@www.something.com/members
/checaweb ww.something.com
/checaweb user:pass@www.something.com

- My alias is :
checaweb { sockopen ChecaWeb $1- 80 }

- The Remote is :
on 1:sockopen:ChecaWeb: {
if ( $sockerr > 1 ) {
var %mensaje = $input(Error en la Web,260)
}
else {
sockwrite -n ChecaWeb GET /members HTTP/1.0
sockwrite -n ChecaWeb
}
}

on 1:sockread:ChecaWeb: {
sockread %recibido
echo -s %recibido
}

I use like 4 diferents GET and none works

Can anybody help me... ?

confused

#26666 28/05/03 05:01 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Send this line amongst the GET request:
Code:
sockwrite -n ChecaWeb Authorization: Basic $encode([color:red]user[/color]:[color:red]pass[/color], m)

#26667 28/05/03 05:19 PM
Joined: Mar 2003
Posts: 36
B
bugx Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 36
(sorry but my english isn't good...)

I think your answer is good but not specify what exactly
must i write

On SockConnect

sockwrite -n ChecaWeb GET /members HTTP/1.0
sockwrite -n ChecaWeb Authorization: Basic $encode(ashoka:dharma, m)
sockwrite -n ChecaWeb

(3 lines ?)

The problems is than i have to enter firts to the /member
directory

The true web is :

http://ashoka:dharma@www.indiasex.com/members

http://www.indiasex.com/members

(User and pass are bad)

#26668 29/05/03 05:18 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yes, but not only 3 lines... a GET request needs to include some other information, like "Connection" and "Host" to avoid problems (read here to know why).

For example,
Code:
alias ChecaWeb sockopen ChecaWeb www.indiasex.com 80
 
On *:sockopen:ChecaWeb:{
  sockwrite -n ChecaWeb GET /members HTTP/1.0
  sockwrite -n ChecaWeb Host: www.indiasex.com
  sockwrite -n ChecaWeb Connection: close
  sockwrite -n ChecaWeb Authorization: Basic $encode(user:pass, m)
  sockwrite -n ChecaWeb
}
 
On *:sockread:ChecaWeb:{
  var %s
  sockread %s
  echo -s -> %s
}

Paste it into the remote and type /checaweb to begin. Remember to change the user/pass to the real ones.

#26669 29/05/03 11:49 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
You can also use cookies if you've logged in before. Just locate the exact cookie file in your cookie directory, copy it to mirc direct, then read that file into a bin variable. Ex:

/bread cookie.txt 0 999 &cookie

Then add another sockwrite like

/sockwrite -n Cookie: $bvar(&cookie, 1, $bvar(&cookie, 0))

>:D


-KingTomato

Link Copied to Clipboard