Advertisement
Guest User

spambot

a guest
Feb 6th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.53 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>SpamTeszt</title>
  4.         <script src="js/jquery.min.js"></script>
  5.         <script type="text/Javascript">
  6.             function randomString(len, charSet) {
  7.                 charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  8.                 var randomString = '';
  9.                 for (var i = 0; i < len; i++) {
  10.                     var randomPoz = Math.floor(Math.random() * charSet.length);
  11.                     randomString += charSet.substring(randomPoz,randomPoz+1);
  12.                 }
  13.                 return randomString;
  14.             }
  15.            
  16.             function submitForm(){
  17.                 var randomUsername = randomString(6);
  18.                 var randomPassword = randomString(6);
  19.                 document.getElementById('name').value=randomUsername;
  20.                 document.getElementById('username').value=randomUsername;
  21.                 document.getElementById('email').value=randomUsername+'@spambot.hu';
  22.                 document.getElementById('password').value=randomPassword;
  23.                 document.getElementById('password_again').value=randomPassword;
  24.             }
  25.         </script>
  26.     </head>
  27.     <body onload="submitForm()">
  28.         <form onsubmit="submitForm();" method="POST" action="http://podcraft.hu/web/belepes" target="spam_frame">
  29.             <input id="name" type="text" name="name">
  30.             <input id="username" type="text" name="username">
  31.             <input id="password" type="password" name="password">
  32.             <input id="password_again" type="password" name="password_again">
  33.             <input id="email" type="email" name="email">
  34.             <button type="submit" name="register">START</button>
  35.         </form>
  36.        
  37.         <iframe name="spam_frame" width="100%" height="100%" src="http://podcraft.hu"></iframe>
  38.     </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement