1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
alias readit {
//sockclose ms
sockopen ms pwnt.dk 80
}
on *:sockopen:ms: {
sockwrite -n $sockname GET /sam_plusfm/test HTTP/1.1
sockwrite -n $sockname Host: pwnt.dk
sockwrite -n $sockname $crlf
sockwrite -n $sockname Connection: Keep-Alive
}
on *:sockread:ms: {
/sockread %asd
if (*Next:* iswm %asd) { /echo -a 4**** $nohtml(%asd) **** }
/unset %asd
}
alias nohtml {
var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, )
return %x
}
|