⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icmp-information.pl

📁 SinFP是一种新的识别对方计算机操作系统类型的工具
💻 PL
字号:
#!/usr/bin/perl## $Id: icmp-information.pl,v 1.3.2.1 2006/06/04 13:23:13 gomor Exp $#use strict;use warnings;use Getopt::Std;my %opts;getopts('i:I:d:v', \%opts);die "Usage: $0 -i dstIp [-I srcIp] [-d device] [-v]\n"   unless $opts{i};use Net::Packet;$Env->dev($opts{d}) if $opts{d};$Env->ip ($opts{I}) if $opts{I};$Env->debug(3)      if $opts{v};my $ip = Net::Packet::IPv4->new(   protocol => NP_IPv4_PROTOCOL_ICMPv4,   dst      => $opts{i},);my $information = Net::Packet::ICMPv4->new(   type => NP_ICMPv4_TYPE_INFORMATION_REQUEST,   data => "test",);my $frame = Net::Packet::Frame->new(l3 => $ip, l4 => $information);$frame->send;until ($Env->dump->timeout) {   if ($frame->recv) {      print "Reply:\n";      print $frame->reply->l3->print, "\n";      print $frame->reply->l4->print, "\n";      last;   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -