Thread Script nicht ohne Admin-Rechte starten
(5 answers)
Opened by Gast at 2007-07-09 19:10 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!/usr/bin/perl use strict; use warnings; my $id = '^uid=0'; my $testid = qx{/usr/bin/id}; if ( $testid !~ /$id/ ) { print "[-] access denied!"; exit; } else { print "[+] startin\' script"; #&foo(); } quick && dirty |