Coder Social home page Coder Social logo

fordboy22 / hatvenom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from entysec/hatvenom

0.0 0.0 0.0 412 KB

HatVenom is a powerful payload generation tool that provides support for all common platforms and architectures.

Home Page: https://entysec.com

License: MIT License

Python 100.00%

hatvenom's Introduction

HatVenom

Developer Language Forks Stars CodeFactor

HatVenom is a powerful payload generation tool that provides support for all common platforms and architectures.

Features

  • Support for most common executable formats like elf, macho, pe, dll.
  • Support for most common architectures like x64, x86, aarch64, armle, mipsle, mipsbe.
  • Ability to modify shellcode and inject assembly (coming soon).

Installation

pip3 install git+https://github.com/EntySec/HatVenom

Supported targets

Format x86 x64 armle armbe aarch64 mipsle mipsbe mips64le mips64be
elf yes yes yes no yes yes yes no no
macho no yes no no no no no no no
dylib no yes no no no no no no no
pe yes yes no no no no no no no
dll yes yes no no no no no no no
  • elf - Unix Executable & Linkable Format.
  • macho - macOS / Apple iOS Mach-O executable format.
  • dylib - macOS / Apple iOS dynamic library format.
  • pe - Windows Portable Executable format.
  • dll - Windows Dynamic Link Library format.

Basic functions

There are all HatVenom basic functions that can be used to generate payload, covert data, assemble code or inject shellcode.

  • generate(file_format, arch, shellcode) - Generates payload for specified target and with specified shellcode.
  • generate_to(file_format, arch, shellcode, filename='a.out') - Generates payload for specified target and with specified shellcode and saves it to the specified file.

Generating payload

It's very easy to generate payload for various targets in HatVenom. Let's generate a simple payload that kills all processes for Linux and save it to a.out.

Examples

from hatvenom import HatVenom

shellcode = (
    "\x6a\x3e\x58\x6a\xff\x5f\x6a\x09\x5e\x0f\x05"
)

hatvenom = HatVenom()
hatvenom.generate_to('elf', 'x64', shellcode)

HatVenom CLI

HatVenom also has its own command line interface that can be invoked by executing hatvenom command:

usage: hatvenom [-h] [-f FORMAT] [-a ARCH] [-s SHELLCODE] [-o OUTPUT]

HatVenom is a powerful payload generation and shellcode
injection tool that provides support for common platforms and architectures.

optional arguments:
  -h, --help            show this help message and exit
  -f FORMAT, --format FORMAT
                        Platform to generate for.
  -a ARCH, --arch ARCH  Architecture to generate for.
  -s SHELLCODE, --shellcode SHELLCODE
                        Shellcode to inject.
  -o OUTPUT, --output OUTPUT
                        File to output generated payload.

Examples

Let's generate a simple payload that kills all processes for Linux and save it to a.out.

hatvenom --format elf --arch x64 --shellcode "\x6a\x3e\x58\x6a\xff\x5f\x6a\x09\x5e\x0f\x05"

hatvenom's People

Contributors

enty8080 avatar

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.