|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 24.7 GB of 70.42 GB (35.07%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
share/
doc/
libsnmp-session-perl/
examples/
- drwxr-xr-x
|
Viewing file: if-to-routes.pl (1.21 KB) -rwxr-xr-xSelect action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#!/usr/bin/perl -w ###################################################################### ### Name: if-to-routes.pl ### Date Created: Wed May 6 22:21:55 1998 ### Author: Simon Leinen <simon@switch.ch> ### RCS $Id: if-to-routes.pl,v 1.1 1998-05-06 20:31:01 simon Exp $ ###################################################################### ### Given an SNMP interface index, list the destination networks and ### netmasks for all routes which point to that interface. ######################################################################
use strict; use BER; use SNMP_Session "0.57";
sub usage();
my $if_index = shift @ARGV || usage (); my $target = shift @ARGV || usage (); my $community = shift @ARGV || 'public';
my $ipRouteIfIndex = [1,3,6,1,2,1,4,21,1,2]; my $ipRouteMask = [1,3,6,1,2,1,4,21,1,11];
my $session = SNMP_Session->open ($target, $community, 161) || die "Opening SNMP_Session"; $session->map_table ([$ipRouteIfIndex,$ipRouteMask], sub { my ($dest, $index, $mask) = @_; grep (defined $_ && ($_=pretty_print $_), ($index, $mask)); if ($index == $if_index) { print "$dest $mask\n"; } }); 1;
sub usage () { die "usage: $0 if_index target [community]"; }
|