Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //By AscendingBridges
- //Dependencies
- const Open = require("open");
- const Express = require("express")
- const Hostile = require("hostile")
- const bodyParser = require("body-parser")
- const Application = Express();
- var WebsiteData = {
- Sitekey: '6LeWwRkUAAAAAOBsau7KpuC9AV-6J8mhw4AjC3Xz', //Sitekey for reCaptcha it's different on all sites.
- Url: 'supremenewyork.com',
- }
- Application.use(bodyParser.urlencoded({
- extended: true
- }))
- //Listens at default port, 80
- Application.listen(80, () => {
- console.log("Listening at port 80.");
- });
- Application.get('/', async function (Request, Result) {
- Result.send(`<html>
- <!-- Written by AscendingBridges -->
- <head>
- <title>Captcha Harvester</title>
- <meta charset="utf-8">
- <style type="text/css">
- body {
- max-width: 500px;
- margin: auto;
- }
- </style>
- </head>
- <body style="background-color:grey;"> <!-- Set the background color to grey. -->
- <center>
- <b><p style="font-size:20px">
- reCaptcha Harvester by AscendingBridges</span></p></b>
- <div class="g-recaptcha" data-callback="sendResponse" data-sitekey="${WebsiteData.Sitekey}" style="position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"></div>
- <script>
- function sendResponse() {
- postData('/', {'Recaptcha Response': grecaptcha.getResponse()}); <!-- Post the data -->
- grecaptcha.reset(); <!-- Reset the captcha -->
- }
- function postData(Path, Params, Method) {
- Method = Method || "post";
- var Form = document.createElement("form");
- Form.setAttribute("Method", Method);
- Form.setAttribute("action", Path);
- for(var Key in Params) {
- if(Params.hasOwnProperty(Key)) {
- var hiddenField = document.createElement("input");
- hiddenField.setAttribute("type", "hidden");
- hiddenField.setAttribute("name", Key);
- hiddenField.setAttribute("value", Params[Key]);
- Form.appendChild(hiddenField);
- }
- }
- document.body.appendChild(Form);
- Form.submit(); <!-- Submit the form -->
- }
- </script>
- <form action="/submit" Method="post" style="margin-top: 250px;">
- <div id="captchaFrame">
- <script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>
- </div>
- </form>
- </center>
- </html>`)
- });
- Application.post('/', async function (Request, Response) { //Post and output the body and headers.
- console.log(Request.headers);
- console.log(Request.body);
- });
- Hostile.set("::1", "captcha." + WebsiteData.Url, () => {
- Open('http://captcha.' + WebsiteData.Url); //Open a new browser
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement