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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run] | |
| @="Rundll32.exe SHELL32.DLL,ShellExec_RunDLL \"C:\\ProgramData\\test.exe\"" |
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
| // Enumerates all the modules in the process with a given PID | |
| // saves the list in the log with the given format: | |
| // <module_start>,<module_end>,<module_name> | |
| // CC-BY: hasherezade | |
| #include <stdio.h> | |
| #include <Windows.h> | |
| #include <TlHelp32.h> |
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> | |
| bool isVBox() | |
| { | |
| HKEY hKey = NULL; | |
| RegOpenKeyA(HKEY_LOCAL_MACHINE, "HARDWARE\\ACPI\\DSDT\\VBOX__", &hKey); | |
| if (hKey != NULL) { | |
| RegCloseKey(hKey); | |
| return true; |
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
| Public Sub decrypt(str1_arg, str2_arg) '406ABC | |
| 'Data Table: 401634 | |
| Dim str2_len As Long | |
| Dim var_B6 As Integer | |
| Dim index As Long | |
| Dim var_B4 As Long | |
| On Error Resume Next | |
| str1 = StrConv(str1_arg, &H80, 0) | |
| str2 = StrConv(str2_arg, &H80, 0) | |
| str2_len = UBound(str2, 1) |
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
| /* | |
| * ApiTracer, CC by: hasherezade@gmail.com | |
| * Runs with: Intel PIN (https://software.intel.com/en-us/articles/pin-a-dynamic-binary-instrumentation-tool) | |
| * | |
| * Prints to <output_file> addresses of transitions from one sections to another | |
| * (helpful in finding OEP of packed file) | |
| * args: | |
| * -m <module_name> ; Analysed module name (by default same as app name) | |
| * -o <output_path> Output file | |
| * |
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 <stdio.h> | |
| #include <Windows.h> | |
| #include <psapi.h> | |
| #include <TlHelp32.h> | |
| #include <set> | |
| FILE *logFile = NULL; |
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
| #!/usr/bin/python2.7 | |
| import sys | |
| import urllib2 | |
| method = 'POST' | |
| content_type = 'text/html' | |
| agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20130921 Firefox/24.0' | |
| host = 'pastebin.com' |
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
| /* | |
| ntdll!RtlDecompressBuffer() vtable exploit + heap spray | |
| by @sha0coder | |
| original version: http://jolmos.blogspot.com/2016/11/rtldecompresbuffer-vulnerability.html | |
| */ | |
| #include <iostream> | |
| #include <Windows.h> | |
| #include <fstream> | |
| #include <stdio.h> | |
| #include <stdlib.h> |
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 <wincrypt.h> | |
| #include <stdio.h> | |
| #pragma comment(lib, "advapi32.lib") | |
| #define AES_KEY_SIZE 16 | |
| #define IN_CHUNK_SIZE (AES_KEY_SIZE * 10) // a buffer must be a multiple of the key size | |
| #define OUT_CHUNK_SIZE (IN_CHUNK_SIZE * 2) // an output buffer (for encryption) must be twice as big | |
| //params: <input file> <output file> <is decrypt mode> <key> |
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 <stdio.h> | |
| #include <Windows.h> | |
| // based on: https://www.evilsocket.net/2014/02/11/on-windows-syscall-mechanism-and-syscall-numbers-extraction-methods/ | |
| // author: @evilsocket | |
| // modified by: @hasherezade | |
| #define IS_ADDRESS_BETWEEN( left, right, address ) ( (address) >= (left) && (address) < (right) ) | |
| PIMAGE_SECTION_HEADER SectionByRVA( PIMAGE_SECTION_HEADER pSections, DWORD dwSections, DWORD rva ) | |
| { |