Thursday, August 23, 2012

Scripts (URL rotator include)

Url Rotator Script

<head>
<script type="text/javascript">
window.onload = function() {
  setTimeout(banow, 2000);
};
</script>
<script type="text/javascript">
function ip(ban, win) {

    var width = 15;
    var height = 10;
    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    var params = 'width=' + width + ', height=' + height;
    var newwin = win;
    params += ', top=' + top + ', left=' + left;
    params += ', directories=no';
    params += ', location=no';
    params += ', menubar=no';
    params += ', resizable=no';
    params += ', scrollbars=no';
    params += ', status=no';
    params += ', toolbar=no';
    if (newwin) {
      newwin.location = ban;
    } else {
        newwin = window.open(ban, 'ip', 'params');
    }
    if (window.focus) {
      newwin.focus()
    }

    return newwin;

  }

  function banow() {
    var win = ip('http://google.com/');

    setTimeout(function () {
        ip('http://goog.com', win);
    }, 10000);

    setTimeout(function () {
        ip('http://youtube.com', win);
    }, 20000);


}

</script>
</head>
<b><input type="button" value="Check" onclick="banow();"/></center></b>

</body>
Details:
Change "google.com, goog.com, youtube.com" to the urls of your choice.
Save as .html file
Open it, click "Check"


Open multiple tabs script

 <script type="text/javascript">
function open_win() {
window.open("http://ad.us/")
window.open("http://google.com")

}
</script>

Details:
Change "ad.us", "google.com" to the urls of your choice.



Welcome back script

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
  {
  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  x=x.replace(/^\s+|\s+$/g,"");
  if (x==c_name)
    {
    return unescape(y);
    }
  }
}

function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}

function checkCookie()
{
var username=getCookie("username");
if (username!=null && username!="")
  {
  alert("Good to see you again " + username);
  }
else
  {
  username=prompt("Pick your desired username:","");
  if (username!=null && username!="")
    {
    setCookie("username",username,365);
    }
  }
}
</script>
</head>
<body onload="checkCookie()">
</body>
</html>
 


Details:
When a user goes to your site it asks for a name.
When they return it replies Good to see you again + name


Frame rotator script + Timer

<html>

<body background="k.png">
<head>
<title>Tr</title>
<center>Organic Exploit:
<center><b><span id="timer"></b></span>

<center><iframe id="rotator" src="started.png"></iframe>

<script>
// start when the page is loaded
window.onload = function() {

  var urls = [
    "http://www.del.com",
    "http://www.rel.com",
    "http://www.re.com",

  ];

  var index = 1;
  var el = document.getElementById("rotator");

  setTimeout(function rotate() {

    if ( index === urls.length ) {
      index = 0;
    }

    el.src = urls[index];
    index  = index + 1;
    setTimeout(rotate, 10000);
  }, 5000); // 5000ms = 5s
};
</script>

</head>

<body>

<SCRIPT type="text/javascript">
var count=0;
var counter=setInterval("timer()",8650);
function timer()
{
  count=count+1;
  if (count <= 0)
  {
     clearInterval(counter);
     return;
  }

 document.getElementById("timer").innerHTML=count + " / 1000 exploits";
}
</script>
</body>
</html>
 


Details:setTimeout(rotate, 10000);  = interval til next url
  " / 1000 exploits";  = id after timer
   var urls = [
    "http://www.del.com",
    "http://www.rel.com",
    "http://www.re.com",

  ];   = Urls to rotate



Refresh to url script

<meta http-equiv="refresh" content="0;url=http://www.google.com/"/>  

Details:
Change "google.com" to the url of your choice.


Msg then refresh to url script
 
<?php
$url = htmlspecialchars($_GET['url']);
header( 'Refresh: 6; url=http://.$url );
?>
<!-- Fallback using meta refresh. -->
<html>
 <head>
  <title>Redirecting...</title>
  <meta http-equiv="refresh" content="6;url=http://yahoo.com?php echo $url; ?>">
 </head>
 <body>
 Attempting to redirect to <a href="http://www.yahoo.com<?php echo $url; ?>">text<?php echo $url; ?></a>.
 </body>
</html>
 


Details:
Change "yahoo.com" to url of your choice, change the other yahoo to the text of your choice. 
 

Editable Text

<table>
    <tr>
      <td><div contenteditable="true">This text can be edited<div></td>
      <td><div contenteditable="true">This text can be edited<div></td>
    </tr>
</table>

 Change "This text can be edited" to the text of your choice. 


Download File button 
<form method="get" action="myfile.pdf" target="_blank">
    <input type="submit" value="Download file">
</form>
Details change "myfile.pdf" to the file of your choice.

Change "download file" to the text of your choice.  



No comments:

Post a Comment