Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>SpamTeszt</title>
- <script src="js/jquery.min.js"></script>
- <script type="text/Javascript">
- function randomString(len, charSet) {
- charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
- var randomString = '';
- for (var i = 0; i < len; i++) {
- var randomPoz = Math.floor(Math.random() * charSet.length);
- randomString += charSet.substring(randomPoz,randomPoz+1);
- }
- return randomString;
- }
- function submitForm(){
- var randomUsername = randomString(6);
- var randomPassword = randomString(6);
- document.getElementById('name').value=randomUsername;
- document.getElementById('username').value=randomUsername;
- document.getElementById('email').value=randomUsername+'@spambot.hu';
- document.getElementById('password').value=randomPassword;
- document.getElementById('password_again').value=randomPassword;
- }
- </script>
- </head>
- <body onload="submitForm()">
- <form onsubmit="submitForm();" method="POST" action="http://podcraft.hu/web/belepes" target="spam_frame">
- <input id="name" type="text" name="name">
- <input id="username" type="text" name="username">
- <input id="password" type="password" name="password">
- <input id="password_again" type="password" name="password_again">
- <input id="email" type="email" name="email">
- <button type="submit" name="register">START</button>
- </form>
- <iframe name="spam_frame" width="100%" height="100%" src="http://podcraft.hu"></iframe>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement