|
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 | : | 27.13 GB of 70.42 GB (38.53%) |
|
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/
freeradius/
examples/
- drwxr-xr-x
|
Viewing file: clients.pl (1.57 KB) -rwxr-xr-xSelect action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#!/usr/bin/env perl # # Convert old-style "clients" file to new "clients.conf" format. # # Usage: clients.pl clients [naslist] new-clients.conf # The "new-clients.conf" will be created if it does not exist. # If it does exist, it will be over-written. # # # $Id$ # if (($#ARGV < 1) || ($#ARGV > 2)) { print "Usage: clients.pl clients [naslist] new-clients.conf\n"; print " The \"new-clients.conf\" will be created if it does not exist.\n"; print " If it does exist, it will be over-written.\n"; exit(1); }
$old = shift; $new = shift;
if ($new =~ /naslist/) { $naslist = $new; $new = shift; }
open OLD, "< $old" or die "Failed to open $old: $!\n";
while (<OLD>) { next if (/^\s*\#/); next if (/^\s*$/);
split;
$clients{$_[0]}{"secret"} = $_[1]; } close OLD;
if (defined $naslist) { open OLD, "< $naslist" or die "Failed to open $naslist: $!\n";
while (<OLD>) { next if (/^\s*\#/); next if (/^\s*$/);
split;
if (!defined $clients{$_[0]}) { print "WARNING! client $_[0] is defined in naslist, but not in clients!"; next; }
$clients{$_[0]}{"shortname"} = $_[1]; $clients{$_[0]}{"nastype"} = $_[2]; } }
open NEW, "> $new" or die "Failed to open $new: $!\n"; foreach $client (keys %clients) { print NEW "client $client {\n"; print NEW "\tsecret = ", $clients{$client}{"secret"}, "\n"; if (defined $clients{$client}{"shortname"}) { print NEW "\tshortname = ", $clients{$client}{"shortname"}, "\n"; print NEW "\tnastype = ", $clients{$client}{"nastype"}, "\n"; } print NEW "}\n"; print NEW "\n"; }
|