Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias ipt.open {
- sockclose ipt
- if ($1) && ($2) {
- sockopen -e ipt www.iptorrents.com 443
- %ipt.name = $1
- %ipt.pass = $2
- echo lit
- }
- }
- on *:SOCKOPEN:ipt: {
- sockwrite -nt $sockname GET /take_login.php?username=%ipt.name $+ $chr(38) $+ %ipt.pass HTTP /1.1
- ;sockwrite -nt $sockname GET /login.php HTTP/1.1
- sockwrite -nt $sockname Host: www.iptorrents.com
- sockwrite -nt $sockname $crlf
- }
- on *:sockread:ipt: {
- if ($sockerr) {
- echo Socket Error: $sockname $+ . Error code: $sockerr.
- halt
- }
- sockread %sockread
- if (Set-Cookie* iswm %sockread) {
- set %ipt.cookie $gettok(%sockread,1,59)
- echo -sg %ipt.cookie
- }
- echo -sg %sockread
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement