Port Knocking
@eZine
Published in
the bug magazine
· 1 year ago
... rio) daddr => $server #IP de destino (server) }, udp => { source => $tmpport[$x], #Vetor para cada uma das 5 portas de origem dest => 80, #Porta 80 de destino, geralmente aceita (web) len => 5, data => $send_data #data (string) } }); $packet->send(0,1); #envia o datagrama -------------- code ---------------- 6.2. The Client Socket Simple, isn't it? The datagram is generated and sent to the destination address. Let's go to the second part of the client: -------------- code ---------------- . . . $local = IO::Socket::INET->new(Listen=>1, Proto=>'tcp', #Protocolo LocalAddr=>'127.0.0.1', #Ip loca ...