How to use VBScript to turn on the God Mode?
怎么用VB开启仙人模式。。。
What is the God Mode?
什么是神模式?
This concept is came from yuange, it means if we turn on this God Mode, we can do anything we what.
这个概念源于yuange,神模式的意思就是如果我们能开启神模式,我们可以做我们想做的任何事,譬如隐身进女澡堂。
And What the God Mode really is?
那么到底什么是神模式?
We know if we want to execute the script code in the browser to create a object like Shell.Application, the script
engine will check the SafeMode. if this is set, it will block the code. That is the God Mode. Yuange also call this is
DVE(Data Virtual Execution), This is just execute the script, not the binary code. So the ASLR,DEP,EMET,CFI all of
the defense technology will be fail.
我们的目的是在浏览器里通过执行脚本创建一个shell之类的东西。脚本引擎就会对SafeMode(安全模式)进行检查。如果浏览器设置
了安全模式,我们的脚本就不会被执行。这就是神模式的本质。袁哥(一个很厉害的黑客)也把这个叫做DVE(数据虚拟执行),这仅仅只是执行脚本而不是
二进制代码,所以什么ASLR(Address Space Layout Randomization,地址空间随机化),DEP(Data Execution Prevention,数据执行保护),EMET(Enhanced Mitigation Experience Toolkit,增强的缓解体验工具包),CFI(Control-Flow Integrity),所有的这些保护都不是事儿。
What we are going to do is to clear the SafeMode flag.
(Notice: All the following code is vbscript code.)
I will show a demo code first.
我们接下来要做的工作就是去掉SafeMode(下面的代码都是VB脚本,我先做个演示)
"
<script type="text/javascript" language="VBScript">
set sh=createobject("Shell.Application")
sh.ShellExecute "calc.exe"
</script>
"
完整的 ..
We know there is only one VAR type, so it’s easy for us to do the type confusion.
Then I will show a demo poc code from promised_lu.
<script type="text/javascript" language="VBScript">
Class Exploit
Private m_Address
Private m_Array()
Private m_Index
Private Sub Class_Initialize
m_Address = &H08000020
ReDim m_Array((&H08000000 - 32) / 16 - 1)
' first dim a big array.
Fake = Unescape("%u0001ࢀ翿")
............