Skip to content

Instantly share code, notes, and snippets.

@gitjdm
gitjdm / BeaconPrintError.c
Created December 28, 2020 23:59
Simple function for more descriptive BOF error messages
// Function: BeaconPrintError
// Description: Print system error message
// Arguments: System error code (GetLastError() result)
// Returns: Nothing
void BeaconPrintError(DWORD error)
{
// Buffer for system error message
LPVOID errorMsg = NULL;
// Get system error message
@gitjdm
gitjdm / GenPayload.cna
Created October 4, 2020 18:04
Cobalt Strike raw payload generation dialog that allows the exit function to be specified
popup attacks_other {
item("Payload (Choose Exit Function)", { GenPayloadDialog(); });
}
sub GenPayloadDialog {
$dialog = dialog("Payload", %(listener => "", arch => "", exitfunc => ""), &GenPayload);
drow_listener_stage($dialog, "listener", "Listener: ");
drow_combobox($dialog, "exitfunc", "Exit Function: ", @("thread", "process"));
drow_combobox($dialog, "arch", "Arch: ", @("x64", "x86"));
dbutton_action($dialog, "Generate");
@gitjdm
gitjdm / keybase.md
Last active September 22, 2020 04:28
keybase

Keybase proof

I hereby claim:

  • I am gitjdm on github.
  • I am jdm_ (https://keybase.io/jdm_) on keybase.
  • I have a public key ASB_XwodSwmcYhUttV3CoPd-BfVA5bghtLJ5lx6rb0O8Rgo

To claim this, I am signing this object: