GithubHelp home page GithubHelp logo

5l1v3r1 / pe2shc-to-cdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrd0x/pe2shc-to-cdb

0.0 1.0 0.0 2.48 MB

Convert shellcode generated using pe_2_shellcode to cdb format.

Python 100.00%

pe2shc-to-cdb's Introduction

pe2shc-to-cdb

This tool will convert shellcode generated using pe_to_shellcode to cdb format. Cdb.exe is a LOLBIN which can help evade detection & application whitelisting. More information can be found about it in my blog post.

Requirements

  • pe_to_shellcode
  • xxd

Usage

Step 1

# Generates executable.shc.exe
pe2shc.exe <executable>

Step 2

xxd -i executable.shc.exe > temp.out

Step 3

# Generates out.wds
python cdb.py -f temp.out

Step 4

cdb.exe -pd -cf out.wds -o notepad.exe

Example

The test.exe binary launches calc.exe.

Example

Limitations

  • I had some issues making it work on some executables. Be aware of this in case you face problems.
  • Each executable will have a different number of breakpoints. Append 'g' to out.wds as many times as necessary to automatically continue when a breakpoint is hit.

pe2shc-to-cdb's People

Contributors

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