Skip to content

Instantly share code, notes, and snippets.

@cons0ul
Created April 11, 2012 08:05
Show Gist options
  • Save cons0ul/2357771 to your computer and use it in GitHub Desktop.
Save cons0ul/2357771 to your computer and use it in GitHub Desktop.
media fuzzer
<!--
media_fuzz.htnl
Author : cons0ul aka Sachin Shinde (@cons0ul)
THE BEER-WARE LICENSE (Revision 42):
sachinshinde11-at-gmail.com wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return
----------------------------------------------------------------------------
-->
<html>
<head>
</head>
<body>
<h1 id="log"></h1>
<script>
var igi=0
FORMAT="jpg"
type="object"
MIME_TYPE="image/jpeg"
if(location.hash){igi=parseInt(location.hash.substr(1));}
var v = new Object();
function start(i){
try{
//delete v;
v=document.getElementById('test');
document.body.removeChild(v);
delete v;
}catch(e){}
var v = document.createElement(type);
v.id="test";
log=document.getElementById('log');
s=i.toFixed();
url = "./JPG/fuzzed-"+s+"."+FORMAT
i+=1;
//log.innerHTML=url;
v.data=url;
v.type=MIME_TYPE;
document.body.appendChild(v);
log.innerHTML=url;
setTimeout(start,100,i);
}
start(igi);
<script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment