This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <windows.h> | |
| #include "nt_crap.h" | |
| #define ArrayCount(arr) (sizeof(arr)/sizeof(arr[0])) | |
| #define assert(expr) if(!(expr)) { *(char*)0 = 0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Atomic Red Team - DLL Side-Loading HTA</title> | |
| <HTA:APPLICATION ID="AtomicSideLoad" APPLICATIONNAME="AtomicSideLoad" BORDER="thin" BORDERSTYLE="normal" ICON="shell32.dll,4" > | |
| <script language="VBScript"> | |
| Dim shell | |
| Set shell = CreateObject("Wscript.Shell") | |
| ' Base64 encoded content of invite.zip - which is https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/T1574.002.md#atomic-test-1---dll-side-loading-using-the-notepad-gupexe-binary">https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/T1574.002.md#atomic-test-1---dll-side-loading-using-the-notepad-gupexe-binary | |
| Dim base64EncodedContent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <windows.h> | |
| #include <stdio.h> | |
| #define RTL_MAX_DRIVE_LETTERS 32 | |
| #define RTL_USER_PROC_PARAMS_NORMALIZED 0x00000001 | |
| #define STATUS_SUCCESS 0 | |
| #define NT_SUCCESS(Status) ((NTSTATUS)(Status) == STATUS_SUCCESS) | |
| // https://github.com/RedTeamOperations/Advanced-Process-Injection-Workshop/blob/66a2d3ffe6540c981182a2fb38cc92b0909c4b7f/CWLProcessDoppelganging/CWLProcessDoppelganging/CWLImplant.cpp | |
| // https://github.com/huntandhackett/concealed_code_execution/blob/e688551bac50d8525b4ca7490da3981999cbff52/Injection/SampleDlls/3.NoDependencies/dllmain.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| IDA plugin to display the calls and strings referenced by a function as hints. | |
| Installation: put this file in your %IDADIR%/plugins/ directory. | |
| Author: Willi Ballenthin <william.ballenthin@fireeye.com> | |
| Licence: Apache 2.0 | |
| ''' | |
| import idc | |
| import idaapi | |
| import idautils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| IDA plugin to display the calls and strings referenced by a function as hints. | |
| Installation: put this file in your %IDADIR%/plugins/ directory. | |
| Author: Willi Ballenthin <william.ballenthin@fireeye.com> | |
| Licence: Apache 2.0 | |
| ''' | |
| import idc | |
| import idaapi | |
| import idautils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // White Knight Labs - Offensive Development | |
| // Inline Assembly - Get Function Address | |
| #include <iostream> | |
| #include <windows.h> | |
| // Function definition | |
| void* GetFunctionAddress(const char* functionName) { | |
| void* getFunctionAddr = nullptr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define SECURITY_WIN32 //Define First Before Imports. | |
| #include <windows.h> | |
| #include <stdio.h> | |
| #include <Sspi.h> //Be sure to reference secur32.lib in Linker | Input | Additional Dependencies | |
| FARPROC fpEncryptMessage; //Pointer To The Original Location | |
| BYTE bSavedByte; //Saved Byte Overwritten by 0xCC - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define SECURITY_WIN32 //Define First Before Imports. | |
| #include <windows.h> | |
| #include <stdio.h> | |
| #include <Sspi.h> //Be sure to reference secur32.lib in Linker | Input | Additional Dependencies | |
| FARPROC fpEncryptMessage; //Pointer To The Original Location | |
| BYTE bSavedByte; //Saved Byte Overwritten by 0xCC - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Invoke-GhostTask { | |
| param ( | |
| [string]$TaskName, | |
| [switch]$ShowTasks, | |
| [string]$Id, | |
| [string]$TargetTask, | |
| [string]$TargetBinary, | |
| [string]$Date, | |
| [string]$Help | |
| ) |