Giter Club home page Giter Club logo

shellcoder's Introduction

Shellcoder.py ๐ŸšโŒจ๏ธ

Write your shellcode in Assembly (NASM) and compile it on Windows x64 with one command!

This script helps automate the shellcode development and testing process. It takes your Assembly file with the payload (shellcode.asm) and generates a bunch of useful executable files (read below).

You don't have to repeat all these tedious activities anymore to make your shellcode executable! Keep your focus on shellcoding ๐Ÿ”ฅ๐Ÿš๐Ÿ”ฅ

Installation

The following software must be installed on your system:

No Python dependencies are necessary! You are ready to go.

Usage

  1. Write your shellcode in shellcode.asm
  2. Run python shellcoder.py
  3. Execute out/malware.exe file!

shellcoder.py command line output

Output files

The output files of this script are stored in out/ directory:

  • malware.c - loader code with the injected payload as C string.
  • malware.exe - compiled loader with the injected payload.
  • shellcode.exe - executable file with the payload only. Great for debugging!
  • shellcode.bin - raw machine code of the assembly payload.

shellcoder.py output files

Caveats

  • Indicate that you are using 64-bit mode at the beginning of the assembly file. Add [bits 64] to the shellcode.asm.
  • Define entry point in assembly file (required for debugging):
[bits 64]

section .text:
    global _start

_start:
[...YOUR CODE HERE...]

How to debug the payload?

The best way to debug your assembly code is to take out/shellcode.exe file and load it into your favorite debugger.

Finally you should run out/malware.exe to be sure that your payload works as intended after memory injection.

shellcoder's People

Contributors

print3m avatar

Stargazers

twoants avatar Amarjit Labhuram avatar  avatar  avatar

Watchers

 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.