mirror of
https://github.com/bee-san/RustScan.git
synced 2026-11-07 09:46:04 -10:00
* Add tests for rustscan scripting engine (#286) * Increase test coverage * Add more scripting tests Co-authored-by: Bee <[email protected]>
23 lines
710 B
Perl
23 lines
710 B
Perl
#!/usr/bin/perl
|
|
#tags = ["core_approved", "example",]
|
|
#developer = [ "example", "https://example.org" ]
|
|
#ports_separator = ","
|
|
#call_format = "perl {{script}} {{ip}} {{port}}"
|
|
|
|
# Sriptfile parser stops at the first blank line with parsing.
|
|
# This script will run itself as an argument with the system installed perl interpreter, ports will be concatenated with "," .
|
|
# Unused field: trigger_port = "80"
|
|
# get total arg passed to this script
|
|
my $total = $#ARGV + 1;
|
|
my $counter = 1;
|
|
|
|
# get script name
|
|
my $scriptname = $0;
|
|
|
|
print "Total args passed to $scriptname : $total\n";
|
|
|
|
# Use loop to print all args stored in an array called @ARGV
|
|
foreach my $a(@ARGV) {
|
|
print "Arg # $counter : $a\n";
|
|
$counter++;
|
|
} |