Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gellin/bantam
A PHP backdoor management and generation tool/C2 featuring end to end encrypted payload streaming designed to bypass WAF, IDS, SIEM systems.
https://github.com/gellin/bantam
Last synced: 3 months ago
JSON representation
A PHP backdoor management and generation tool/C2 featuring end to end encrypted payload streaming designed to bypass WAF, IDS, SIEM systems.
- Host: GitHub
- URL: https://github.com/gellin/bantam
- Owner: gellin
- License: mit
- Created: 2017-11-04T21:24:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-14T18:41:39.000Z (about 2 years ago)
- Last Synced: 2024-05-07T00:35:50.629Z (6 months ago)
- Language: C#
- Homepage:
- Size: 2.14 MB
- Stars: 264
- Watchers: 11
- Forks: 49
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - gellin/bantam - A PHP backdoor management and generation tool/C2 featuring end to end encrypted payload streaming designed to bypass WAF, IDS, SIEM systems. (C# #)
README
[![License](http://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cc36189ec3a047a1b8b1ccbff7438726)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=gellin/bantam&utm_campaign=Badge_Grade)# Bantam
An advanced PHP backdoor management tool, with a lightweight server footprint, multi-threaded communication, and an advanced payload generation and obfuscation tool. Features end to end encryption with request unique encryption keys, and payload streaming designed to bypass WAF, IDS, SIEM systems. It incorporates several
payload randomization and obfuscation techniques to help prevent detection when encryption is not possible. Bantam is an ideal tool for linux PHP post exploitation privesc making it a breeze to upload enumeration scripts. Bantam also has a plugin system making it easy to add scripts and features to the ui.
It is programmed in C# and runs on windows, and Linux using wine.![](documentation/forms/main.png)
## Features
#### End to end request & response encryption - [encryption flow](documentation/encryption.png)
- AES-256 bit encryption on request & response data using openssl or mcrypt
- Response encryption keys are newly generated and embedded into the request payload for every request making every response unique, preventing detection from WAF and IDS systems
- Request encryption keys can be embedded using a pre-shared key/iv, or use a pre-shared key with a randomly generated IV that is passed through a known request variable making every request signature unique
#### Main form - [[img]](documentation/forms/main.png)- Get Shell Information - [[img]](documentation/forms/main.png)
- Add Shell - [[img]](documentation/forms/add_shell.png)
- Eval tool - Opens a text editor that will eval the input text as a php payload
- Remote port scanner - Uses the bantam server to scan remote ports
- PHPInfo viewer - Opens the phpinfo page in an html window
- Self Editor - Edit the Bantam code stored on the server
- Linux - Helpful cmds and files. Dynamically included from [settings.xml](bantam/settings/settings.xml) (passwd, ps aux, ifconfig, ..etc)
- Wndows - Helpful cmds and files. Dynamically included from [settings.xml](bantam/settings/settings.xml) (net user, hosts, ipconfig, ..etc)
- Windows Screenshot Grabber - Grabs a screenshot of the current screen
- Plugins - Dynamically include a php payload into the ui to be executed by setting up a plugin into the [settings.xml](bantam/settings/settings.xml)
- Reset connection - Removes the current shell and session info from ui, re-adds the shell and tests the connection
- Update ping - Updates the ping to the selected shell
- Edit settings - Opens the current shell settings into the ui to modify
- Copy url - Copyies the shell url to the clipboard
- Remove - Removes the shell from the ui
- Save Shells to xml
- Open Saved Shells from XML
#### Reverse Shell - [[img]](documentation/forms/reverse_shell.png)
- Spawns a reverse shell to the indicated IP/Port
- Methods supported - perl, netcat, netcat with pipe, telnet with pipe, php, bash, python, barrage(all)
- Bypass disabled_functions & open_basedir with [chankro](https://github.com/TarlogicSecurity/Chankro/)
#### Backdoor generator - [[img]](documentation/forms/backdoor_gen.png)
- Generates a php backdoor payload tailored for your settings
#### User Agent Switcher
- Randomize or customize the useragent used in requests
#### Proxy Settings
- Supports Socks and HTTP proxies
#### Mass Execute
- Executes php payloads on all servers
- Port Scanner - Distributed port scan that splits the work between selected servers and port scans a remote host - [[img]](documentation/forms/port_scanner.png)
- Plugins - Dynamically include a custom payload from the [settings.xml](bantam/settings/settings.xml) into the gui to be mass executed
#### File Browser - [[img]](documentation/forms/filebrowser.png)
- Transverses file directories, and saves directory tree during current session
- Copy File
- Read File Content
- Delete file
- Rename File
- Upload File
- Vectors - [LinEnum.sh](https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh) / [LinuxPrivChecker.sh](https://github.com/sleventyeleven/linuxprivchecker/blob/master/linuxprivchecker.py)
#### Console - [[img]](documentation/forms/console.png)
- Send shell commands to the server using the vector selected in options form, saves history during current session
#### Logs
- Shows various logs and errors that could be generated by the application or server, adjustable verbosity in options form.
#### Options - [[img]](documentation/forms/options.png)
- Logging
- Log level - Determines which logs will be shown, higher level will show more logs
- Enable Global logs
- Request settings
- Max execution time - allows requests to run for max php execution time
- Disable error logs - disables error logging for requests
- Shell code vector - Shell code execution method (system/exec/shell_exec/passthru/popen/backticks)
- Timeout (milliseconds) - Default request timeout
- Max Post size (KiB) - Default max post size
- Max Cookie size (B) - Locked to 4096 bytes
- Request Obfuscation
- Inject Random Comments
- Injects comments with random text into the php payloads
- Comment frequency - Determines how many locations to inject comments into
- Max Length - Determines the max length of the comments
- Randomize PHP Var Names
- Randomizes variable names in php payloads, Always on
- Max length - Determines the max length of the random php varnames## Credits
- [Socks Sharp](https://github.com/extremecodetv/SocksSharp) - Socks proxy handler for HttpClient
- [Chankro](https://github.com/TarlogicSecurity/Chankro/) - Disabled functions / Open Base Dir bypass