Guest User

Untitled

a guest
Jul 18th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use IO::Socket;
  3. $host=shift @ARGV;
  4. $port=shift @ARGV;
  5. $socket=IO::Socket::INET->new(PeerAddr=> $host, PeerPort=> $port, Proto=> 'tcp',
  6. Type=> SOCK_STREAM) or die "Can't talk to $host at $port";
  7.  
  8. while (<>) {
  9. print $socket $_;
  10. }
  11. close $socket;
Add Comment
Please, Sign In to add comment