开发者

pass ip scan through subroutine as an argument

开发者 https://www.devze.com 2023-03-14 22:05 出处:网络
Is it possible to pass an nmap scan of any IP address through as a subroutine? I am currently executing the scans like so:

Is it possible to pass an nmap scan of any IP address through as a subroutine?

I am currently executing the scans like so:

('Nmap -v -r xx.xx.xxx.xxx p 1-10); Which works but I want to pass it through a subroutine. Can th开发者_开发知识库is be done?


You may want to try the Nmap::Parser module from CPAN.

The syntax seems pretty straightforward:

use Nmap::Parser;
my $np = new Nmap::Parser;
$np->parsescan($nmap_path, $nmap_args, @ips);
0

精彩评论

暂无评论...
验证码 换一张
取 消