|
NAMERex::Commands::Network - Network ModuleDESCRIPTIONWith this module you can get information of the routing table, current network connections, open ports, ...SYNOPSISuse Rex::Commands::Network; my @routes = route; print Dumper(\@routes); my $default_gw = default_gateway; default_gateway "192.168.2.1"; my @netstat = netstat; my @tcp_connections = grep { $_->{"proto"} eq "tcp" } netstat; EXPORTED FUNCTIONSrouteGet routing informationdefault_gateway([$default_gw])Get or set the default gateway.netstatGet network connection information
Visit the GSP FreeBSD Man Page Interface. |