repl.it
@426729/

CORS Spammer

Nodejs

No description

fork
loading
Files
  • index.js
  • index.html
  • Packager files
  • package-lock.json
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
const express=require("express");
const app=express();
let i=0;
const URL="http://CORS-Spammer--426729.repl.co";
app.get("/",async (req,res)=>{
  if(i===100) console.log(i++);
  res.redirect("http://corsanywhere.herokuapp.com/"+URL);
});
app.get()
app.get("/num",(req,res)=>{res.sendFile(__dirname+"/index.html");});
app.listen(3000,()=>console.log("Server started."));
?