Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thiiagoms/payload-example

A little (simple) tool to execute commands on remote machine :bow_and_arrow:
https://github.com/thiiagoms/payload-example

hack-the-world network pentest python shell shell-server

Last synced: 27 days ago
JSON representation

A little (simple) tool to execute commands on remote machine :bow_and_arrow:

Awesome Lists containing this project

README

        



Logo

Simple payload with Python! :rocket:

Execute commands, get info about system with this little pythonic example. You **MUST** use this example **ONLY** for educational purposes.

- [Dependencies](#dependencies)
- [Use:](#use)

### Dependencies
* Python 3.5+

### Use:

1 - Clone the repository:
```bash
$ git clone https://github.com/thiiagoms/shell-server,
```

2 - Change host and port on `payload.py` and then execute on target machine:
```python
$ sudo python payload.py
```

3 - You can use netcat for example, to connect on host and port:
```bash
$ netcat

[*] Username: root
[*] Password: 123456

$
```

4 - You have two commands on payload: `shell, server-info and exit`

* First: `shell` to execute commands on target machine
```bash
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
```bash
$ 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:
```bash
$ exit
```