Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fetch = require("node-fetch");
- let b = 0;
- async function aktivirajInternet() {
- let a = await fetch("http://10.5.50.1/login", {
- credentials: "omit",
- headers: {
- accept:
- "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-language": "en-US,en;q=0.9",
- "cache-control": "max-age=0",
- "content-type": "application/x-www-form-urlencoded",
- "upgrade-insecure-requests": "1"
- },
- referrerPolicy: "no-referrer-when-downgrade",
- body: "username=username&password=password&dst=www.id-s.ba",
- method: "POST",
- mode: "cors"
- });
- console.log(a.status, b++);
- }
- setInterval(() => {
- aktivirajInternet();
- }, 10000);
- aktivirajInternet();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement