Giter Club home page Giter Club logo

azamuku's Introduction

azamuku - mutli-client, HTTP based reverse shell

azamuku (aza·muku) - to deceive, to delude, to trick, to fool


image


azamuku is a reverse shell inspired by t3l3machus' hoaxshell that bypasses windows defender, AMSI, and even malwarebytes (as of 11/11/23).

it's not tested as of yet, but its also expected to bypass firewalls that are meant to block hoaxshell's beaconing and post requests, even if that same firewall manually inspected each HTTP(S) packet - due to the command being hidden in html, and the response being encoded

its also meant to trick (hence the name) sysadmins that are inspecting LAN/WAN traffic, since it just looks normal, due to the alternating endpoints and html wrapped commands

DISCLAIMERS

  • please don't use this in real world attacks. this was made for educational purposes and i'd like to keep it that way. i'm also not responsible of what you do with this tool - you are responsible of your own actions
  • this isn't meant to be "best reverse shell ever!!!" this was just a little project to teach me more about AMSI, powershell, and windows defender, that turned out to be an actual pretty cool tool
  • this isn't foolproof
  • https doesn't really work, but its not expected of you to use it anyways
  • i created everything, there was just inspo from hoaxshell

setup

git clone https://github.com/whatotter/azamuku && cd azamuku
pip install -r requirements.txt
chmod +x azamuku
./azamuku

how does it work?

here's a really cool flowchart on how it works (somewhat):

image

the html response when it checks the command pool is an html file from ./core/masks/html, with a replaced tag - these are called masks.
if you want to learn more about these masks, view MASKS.md

once it recieves and parses the command from the mask, it'll run the command, and POST it to a random endpoint from ./core/masks/endpoints.txt, which the server will automatically receive and save

it still uses http GET requests to beacon (which sucks, but it works), and uses http POST requests to send data

usage

using https (NOT RECCOMENDED)

if these pem files don't exist, azamuku asks you if you'd like to make them using openssl
./azamuku --certfile cert.pem --keyfile key.pem

stager/autorun commands

it's not really a ps1 script, but more of a list of commands
./azamuku --stager script.ps1

with domain name

you don't need to do anything special here, just when you generate the payload, set it as your domain instead of your ip
./azamuku -s 0.0.0.0 --http-port 80
[azamuku]> payload example.com 80

basically self explanatory

limits

same as hoaxshell's limits - no interactive commands/shells

contributing

i'm pretty sure nobody is gonna contribute, but if you do, just don't mess up working features and make the code readable - other than that, go ham :)

update logs

11/15/23: fixed some issues with below, added multirun and select
11/14/23: added a hotplug payload generator server and custom curl+iex payload for duckyscript attacks

azamuku's People

Contributors

whatotter avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

a1swartz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.