Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/potato-industries/tunnelling-experiments

an experimental packet tunnelling bind shell
https://github.com/potato-industries/tunnelling-experiments

bind-shell experimentation ipsec netflow packet-crafting scapy sctp siem tunneling

Last synced: 16 days ago
JSON representation

an experimental packet tunnelling bind shell

Awesome Lists containing this project

README

        

# potatun

An experimental packet tunnelling bind shell using obscure techniques to evade IDS/IPS.

- TCP/UDP (source port encoding)
- ICMP (payload)
- SCTP (chunkdata)
- IPSEC (esp)
- Netflow (V5, netflow record source port encoding)
- Netbios (NBNSQueryRequest, question_name)

NOTE:
- Data encryption is used where applicable.
- Invalid use of protocols should be detected by a properly configured SIEM. (Which is very much the case for the options above!)

**Requirements**

- python3
- scapy

**Usage**

```
root@kali:/opt/potatun# python3 potatun.py -h
usage: potatun.py [-h] [-i I] [-t T] [-m M]

potatun - an experimental packet tunnelling bind shell.

optional arguments:
-h, --help show this help message and exit
-i I send interface (eth0)
-t T send ip:port (10.10.10.1:443)
-m M tunnel mode (udp-c/udp-s, tcp-c/tcp-s, icmp-c/icmp-s,
sctp-c/sctp-s, ipsec-c/ipsec-s, netflow-c/netflow-s, netbios-c/netbios-s)
```
**Netflow (v5 record source port encoding)**

Screenshot 2019-12-15 at 07 02 33

**UDP (source port encoding)**

Screenshot 2019-12-13 at 06 14 07

**TCP (source port encoding)**

Screenshot 2019-12-13 at 06 30 28

**SCTP (chunkdata)**

Screenshot 2019-12-15 at 02 18 17

**ICMP (payload)**

Screenshot 2019-12-13 at 06 36 18

**IPSEC (esp)**

Screenshot 2019-12-15 at 03 46 41

**NetBIOS (NBNSQueryRequest)**

Screenshot 2019-12-16 at 11 34 42

**Disclaimer**

Don't use this script in real-life, bind shells are sketchy, it's purely for research/experimentation, there are a ton of other safe/stable open source options.

Enjoy~