Skip to content

Haunted-Banshee/beacondbg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beacondbg

This is a simple debugger to test/debug a Cobalt Strike beacon without using Cobalt Strike. Some APIs accessed directly from the beacon are monitored (to track the beacon memory allocation, thread creation etc.).

THe beaocn is injected directly into the memory of the beacondbg (in the current version) so, before running any unknown code on your system be aware of risks (you'll do under your responsability!).

How to use

~ ./beacondbg
beacondbg> load yourbeacon.obj
beacondbg> run entrypoint

TO BE IMPLEMENTED

Cobalt Strike Beacons are encoded in a binary sequence extracted through BeaconDataParseand underlying APIs.

Supported Data:

  • strings: "This is a simple string"
  • unicode strings: L"This is a simple unicode string"
  • integers: 1111 or 0x11111
  • shorts: 1111s or 0x11111s
  • buffer: b"sequence of bytes"

From command line:

  • --integer value

  • --short value

  • --ascii "string"

  • --unicode "unicode string"

  • --hex hexdump as argument

  • --in input file as argument

  • --output save arguments in an output file

  • --input use file as input for arguments

  • --beacon beacon to debug/emulate

Debugger command

  • .load: Load a beacon (OBJ file) in memory
  • args: Set arguments for the beacon "strings", L"unicode" h"hexdump" b"file as input" sNUMBER iNUMBER
  • bp: Normal breakpoint (actually, set a break only on Windows API)
  • bl: List of breakpoints
  • bc: Clear a breakpoint
  • g: continue (or run)
  • k: stack trace
  • r: registers
  • d: Data dump

Components

Output

The beacon output is directly printed on your prompt. If you need to test a beacon which requires admin privileges, you need to run beacondbg with admin privileges, or to run a beacon to gain more privileges before running the final beacon.

Notes

COFFLoader (coff directory) for speeding up the process are Copyright of trustedsec. The original source code is available on GitHub.\

The source code is distributed to create a MOCK of this project.

About

Beacon Debugger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 70.4%
  • C 22.5%
  • Makefile 6.7%
  • CMake 0.4%