Git Product home page Git Product logo

shellcode-factory's Introduction

Shellcode Factory tool

A tool to print and test shellcodes from assembly code.

It supports both Gas and Intel syntax (.s and .asm extensions respectively), as well as x86 and x64 architectures.

Usage:

make targets [parameters]

targets:

  • assembly - will compile the assembly code from shellcode.s

  • debug - debugs the assembly binary

  • print / xxd / p - will print the shellcode in hex

  • set - will call nano shellcode.s, to set the source assembly code

  • put - will call nano tester.c, to put in it hex-encoded shellcode

  • test - will compile tester.c and run it, thus testing the shellcode

  • auto / a - will do all of the above in one single step:

    compiling shellcode.s into hex bytes,
    loading those hex bytes into an auto-generated tester program (auto.c)
    compiling and running that very program

  • debug_sc - debugs auto i.e. the shellcode when called from a smashed stack

parameters:

  • ARCH=XX (default=32) XX-bit binaries (32 / 64)

  • S=filename (default=shellcode.s) Source assembly filename.

Examples:

  • make print S=foo.s will print the shellcode from foo.s

  • make ARCH=64 auto will test x64 shellcode

Requires:

  1. gcc (as frontend) and nasm for GAS and INTEL syntax respectively (extensions .s and .asm)

  2. gdb (I even recommend using it with the peda enhancement: https://github.com/longld/peda)

  3. python

  4. cut

  5. objdump (optional: you can comment out the objdump lines in the Makefile)

  6. nano (optional: set and put targets only, and you can replace the EDITOR=... line in the Makefile by your own editor)

shellcode-factory's People

Contributors

danielhenrymantilla avatar

Watchers

 avatar  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.