Hi, I'm trying to make a ip locator using socks.
The script needs to go to
http://www.ip-adress.com/ipaddresstolocation/ (maybe change if you have a better side) and enter Ip in the box, and then "hit" the button.
Then return information like: My IP address country, ect.
I'm new to socks. Can someone please help me, just with the basic setup? I would really appreciate that! Thanks.
I found this while searching the forums, and edited it:
alias locate {
if ($1 == $null) echo.grey Please enter IP-address | return
sockmark locate $1
sockopen locate http://www.ip-adress.com/ipaddresstolocation/ 80
}
on *:SOCKOPEN:locate:{
sockwrite -n locate GET http://www.ip-adress.com/ipaddresstolocation/ $sock(IP address city).mark http/1.0
sockwrite -n locate host: http://www.ip-adress.com/ipaddresstolocation/
sockwrite -n locate $crlf
}
on *:SOCKREAD:locate:{
var %s
sockread %s
echo -s > %s
}