blob: 6d2859337db22f4bacc366f74226cbd7361df4c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# -*- perl -*-
# $Id$
use IO::Socket;
$sock = new IO::Socket::INET (
PeerAddr => 'localhost',
PeerPort => 15000, # your server port here
Proto => 'tcp',
);
die "Socket could not be created. Reason: $!\n" unless $sock;
# Send incomplete request
print $sock pack("H*", "47494f50010100000000006a00000001");
# Block forever...
while (1)
{
sleep(1000);
}
|