Giter Site home page Giter Site logo

daraahh / shellforge4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from whatsbcn/shellforge4

0.0 0.0 0.0 2.13 MB

Enhanced version of secdev's shellforge G3. More platforms and architectures supported.

License: GNU General Public License v2.0

C 84.24% Python 11.52% Shell 0.02% Objective-C 0.06% C++ 3.63% Assembly 0.53%

shellforge4's Introduction

shellforge4

Shellforge4 is an enhanced version of secdev's shellforge G3. More platforms, architectures and syscalls supported.

The original sources were from http://trac.secdev.org

Shellforge is a python program that uses the SFlib and gcc (cross-)compilers to generate shellcodes from C files.

Example Given the hello.c program :

 int main(void) 
 {
         char buf[] = "Hello world!\n";
        write(1, buf, sizeof(buf));
        exit(5);
 }

We can make a shellcode :

 $ python sf.py examples/hello.c
 \x55\x89\xe5\x56\x83\xec\x14\x83\xe4\xf0\xbe\x01\x00\x00
 \x00\x83\xec\x10\x8d\x4d\xee\xb8\x04\x00\x00\x00\xba\x0e
 \x00\x00\x00\x53\xbb\x01\x00\x00\x00\xcd\x80\x5b\x89\xf0
 \x53\xbb\x05\x00\x00\x00\xcd\x80\x5b\x8b\x75\xfc\xc9\xc3

How to install it

Shellforge needs sflib in order to work. You can install it by executing the installation script in sflib directory.

$ cd sflib
$ sudo sh ./install.sh

How to use it

Help $ cd shellforge $ ./sf.py -h

Generate the shellcode $ cd shellforge $ ./sf.py examples/hello.c

Generate the shellcode and test it $ cd shellforge $ ./sf.py -t examples/hello.c

shellforge4's People

Contributors

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