[mohaa] wallhack/landsharking...?

Ryan C. Gordon icculus at clutteredmind.org
Wed Sep 25 01:33:26 EDT 2002


> too much attention. I did tryed do make a Perl script do rcon to the server
> and act like a guard but, I have little knowledge on using Sockets and I
> still didn't manage do conenct and receive messages at the same time. If
> anyone knows how to do this please say something, maybe we can work togheter
> on this...

Not that I have time to work on it with you, but here's some quick and
dirty perl for socket i/o:

 use IO::Socket;
 my $sock = IO::Socket::INET->new(PeerAddr => "hostname.dom",
				  PeerPort => $portnumber,
                                  Type => SOCK_STREAM,
                                  Proto => 'tcp');
 die("Couldn't create socket: $!\n") if not $sock;

 local *FH = $sock;
 open(STDIN, "<&FH") or die("no STDIN reassign: $!");
 open(STDERR, ">&FH") or die("no STDERR reassign: $!");
 open(STDOUT, ">&FH") or die("no STDOUT reassign: $!");

 print "Send this string through socket";
 my $x = <STDIN>;   # read a from socket until newline.

This leaves you with no way to read/write to stdio, but if all you want
to do is talk to a socket, that'll do it.

--ryan.





More information about the Mohaa mailing list