From dc380d02c0560bc35c81dc18fc7b0026e8ba49b1 Mon Sep 17 00:00:00 2001 From: askme765cs Date: Mon, 10 Aug 2020 14:05:19 +0800 Subject: [PATCH 1/2] correct offset of padding that should be removed --- ShellcodeCompiler/DeclaredFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellcodeCompiler/DeclaredFunctions.cpp b/ShellcodeCompiler/DeclaredFunctions.cpp index c15e80e..a075c86 100644 --- a/ShellcodeCompiler/DeclaredFunctions.cpp +++ b/ShellcodeCompiler/DeclaredFunctions.cpp @@ -157,7 +157,7 @@ string DeclaredFunctions::GenerateLoadLibraryCall_x64(string p_sDLLName) sContent += Utils::CharToHexString(p_sDLLName[Len - 3]); sContent += "\r\n"; sContent += "push rax\r\n"; - sContent += "sub dword [rsp + 7], 0x23\r\n"; + sContent += "sub dword [rsp + 3], 0x23\r\n"; } else if (Len % 8 == 4) { From 28f769c8ae209ad1d66c5c85c1fbbf04a3c6bc62 Mon Sep 17 00:00:00 2001 From: askme765cs Date: Mon, 10 Aug 2020 14:40:00 +0800 Subject: [PATCH 2/2] ignore release dir --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0baa0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Release/* \ No newline at end of file