ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 157.90.209.209 / Your IP : 216.73.216.185 [ Web Server : Apache System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64 User : evidenciarevista ( 1049) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Domains : 216 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/2666547/root/proc/2717258/root/usr/share/doc/perl-IO-Socket-IP/examples/ |
Upload File : |
#!/usr/bin/perl use strict; use warnings; use IO::Poll; use IO::Socket::IP; use Socket qw( SOCK_STREAM ); use Getopt::Long; GetOptions( 'timeout=f' => \my $TIMEOUT, ) or exit 1; my $host = shift @ARGV or die "Need HOST\n"; my $service = shift @ARGV or die "Need SERVICE\n"; my $socket = IO::Socket::IP->new( PeerHost => $host, PeerService => $service, Type => SOCK_STREAM, Timeout => $TIMEOUT, ) or die "Cannot connect to $host:$service - $@"; printf STDERR "Connected to %s:%s\n", $socket->peerhost_service; my $poll = IO::Poll->new; $poll->mask( \*STDIN => POLLIN ); $poll->mask( $socket => POLLIN ); while(1) { $poll->poll( undef ); if( $poll->events( \*STDIN ) ) { my $ret = STDIN->sysread( my $buffer, 8192 ); defined $ret or die "Cannot read STDIN - $!\n"; $ret or last; $socket->syswrite( $buffer ); } if( $poll->events( $socket ) ) { my $ret = $socket->sysread( my $buffer, 8192 ); defined $ret or die "Cannot read socket - $!\n"; $ret or last; STDOUT->syswrite( $buffer ); } }