mIRC Home    About    Download    Register    News    Help

Print Thread
#172373 09/03/07 03:43 AM
Joined: Feb 2007
Posts: 33
H
harl91 Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Feb 2007
Posts: 33
hello, im getting really confused from all this socket stuff and all that, i tried to search, and figure it out, but it didn't seem to work. All i want is a script that will take all of the contents of tracker.winbolo.us:50000 and put it into identify.txt. Thanks for the help

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
alias getinfo {
  write -c identify.txt
  sockopen winbolo tracker.winbolo.us 50000
}

on *:sockopen:winbolo:{
  if ($sockerr) return
  sockwrite -n $sockname GET / HTTP/1.1
  sockwrite -n $sockname Host: tracker.winbolo.us:50000
  sockwrite -n $sockname Accept: */*
  sockwrite -n $sockname Connection: Close
  sockwrite -n $sockname
}
on *:sockread:winbolo:{
  var %a
  sockread %a
  write identify.txt %a
}


/getinfo


Link Copied to Clipboard