Giter Club home page Giter Club logo

shellcoder's Introduction

ShellCoder

Build

Clone the code and run gcc shellCoder.c -o shellCoder -masm=intel.

Usage

./shellCoder filename baseAddress entryPointOffset [trap]

filename: path to the shellcode file. (e.g /payloads/shellcode.bin)

baseAddress: address to load the shellcode to in hex (e.g. 0x1337133700)

entryPointOffset: code offset in the shellcode (probably 0x0 if you're working with raw shellcode).

trap: boolean [1|0] to specify whether you want a breakpoint placed right before execution is being transfered to the shellcode. NOTE: you need to be in a debugger to catch the SIGTRAP if this option is set to 1

The binsh.bin file contains sample shellcode that spawns a shell :D

Examples

~$ ./shellCoder shellcode.bin 0x123400000000 0 0x0                                  
Loading shellcode.bin to memory...
Shellcode loaded at 0x123400000000
Jumping into shellcode at 0x123400000000...
# id
root
~$ gdb shellCoder     
pwndbg> r shellcode.bin 0x123400000000 0x0 1
Starting program: /shellCoder shellcode.bin 0x123400000000 0x0 1
Loading shellcode.bin to memory...
Shellcode loaded at 0x123400000000
Jumping into shellcode at 0x123400000000...

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000000004009f3 in main ()
pwndbg> x/i $rip
=> 0x4009f3 <main+279>:	call   rax
pwndbg> # You can debug you shellcode safely now 

shellcoder's People

Contributors

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