![]() |
|
Tutorial on how to make a posting bot - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Tutorial on how to make a posting bot (/Thread-Tutorial-on-how-to-make-a-posting-bot) |
Tutorial on how to make a posting bot - hacxx - 03-27-2019 This is a tutorial on how to make a automatic posting bot. All happens in the browser and first the user must run login.html to make the browser login and get the cookies. Then index.html to post the the text. The index.html contains two variables called "title" and "message" and after the user hit the button "Submit" it will forward them to the JavaScript environment. In the JS environment it will run "document.write" that re-writes the page with the html code those making an action. To executed multiple tasks at once just replicate the form in the document.write. For this to work you will need to create - 2 Folders - Multiple html files Create a folder called bot Create a file called login.html inside bot Create a file called index.html inside bot Create a folder named data inside bot Create a file inside the folder data called 1.html Code: bot
bot > login.html
bot > index.html
bot > data
bot > data > 1.htmllogin.html (Replicate iframes as many as you need) Code: <title>Login</title>
Executing logins...
<iframe src="data\1.html" width="0" height="0" frameborder="0"><iframe>data\1.html (Create as many copies as you need) Code: <script>
document.write('<form action="http://website.com/login.php" method="post">');
document.write('<input type="hidden" name="username" value="username">');
document.write('<input type="hidden" name="password" value="password">');
document.write('<input type="submit" name="login" value="Login">');
document.write('</form>');
document.forms[0]["login"].click();
</script>index.html Code: <html>
<title>Poster</title>
<center>
<h1>Poster</h1>
...
<br>
<table>
<tr><td>Title: </td><td><input type="text" id="title"></td></tr>
<tr><td>Message: </td><td><input type="text" id="message"></td><td><input type="button" value="Submit" onclick="poster();" style="width: 100%"></td></tr>
</table>
</center>
</html>
<script>
poster = function() {
var title = document.getElementById('title').value;
var message = document.getElementById('message').value;
if (title == "") {alert('Write a post title!'); return false;}
if (message == "") {alert('Write a message title!'); return false;}
document.write('<html><title>Poster</title><center><h1>Poster</h1>Posting...<br></center>');
// Repeat this entry as many times as you want
document.write('<form method="post" action="http://website.com/poster.php" target="frame0">');
document.write('<input type="hidden" name="title" value="'+title+'">');
document.write('<input type="hidden" name="message" value="'+message+'">');
document.write('<input type="submit" name="subscribe" value="subscribe" style="height:0px; width:0px; background-color:#f0f0f2; border:0px">');
document.write('</form>');
document.write('<iframe name="zero" sandbox="allow-forms" height="0" width="0" frameborder="0"></iframe>');
document.forms[0]["subscribe"].click();
}
</script>Notes: - target="frame0" must not repeat and iframe tag must also be renamed. - document.forms[0] must follow target. - Remember 0 is also a number This is a awesome method and i have made around $400 with it... (I dont remember if i already post a similar tutorial, if not here ya go) Privateloader |