Coder Social home page Coder Social logo

ykankaya / inlinewhispers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from outflanknl/inlinewhispers

0.0 2.0 0.0 113 KB

Tool for working with Direct System Calls in Cobalt Strike's Beacon Object Files (BOF)

Python 0.14% C++ 7.33% Assembly 92.53%

inlinewhispers's Introduction

InlineWhispers

A Proof of Concept for weaponizing SysWhispers for making direct system calls in Cobalt Strike Beacon Object File.

The initial output (functions.txt and syscalls-asm.h) are created as an example for WdToggle.

Additional guidance can be found in this blog post: https://outflank.nl/blog/?p=1592

Raphael Mudge (the creator of Cobalt Strike) created a tutorial video on how to use this tool: https://www.youtube.com/watch?v=mZyMs2PP38w

What is this repository for?

Demonstrate the ability to easily use syscalls using inline assembly in BOFs.

How do I set this up?

  • (Optionally) Install SysWhispers
    • git clone https://github.com/jthuraisamy/SysWhispers.git
    • cd SysWhispers
    • pip3 install -r .\requirements.txt
    • py .\syswhispers.py --versions 7,8,10 -o syscalls was used to generate the included syscalls.asm and syscalls.h.
  • Clone this repository.
  • Update which functions are required in functions.txt to include only necessary functions from syscalls.asm.
  • Run the python InlineWhispers.py command to generate the inline assembly (syscalls-asm.h) header file.
  • Remove function definitions in Syscalls.h that are not included.
  • Include Syscalls.h in your project.

InlineWhipers

Limitations

  • The Syscalls.h header file provided includes many extern function definitions by default. This can lead to compilation without actually having the function included in your object (if not removed).
  • Inline assembly is only supported by Mingw-w64. Visual Studio does not support inline assembly.

Credits

inlinewhispers's People

Contributors

dawouw avatar stanhegt avatar

Watchers

 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.