
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
If you found a bug contact me on Discord.
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
// Sets a data in the database
db.set("nonametxt.test", "all.db");
Output:
{
"nonametxt":{
"test":"all.db"
}
}
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//Fetches you the data
db.get("nonametxt");
db.fetch("nonametxt");
Output:
"all.db"
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//Deletes data
db.delete("nonametxt.test");
db.remove("nonametxt.test");
Output:
{}
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//If the data is a number, it adds a certain amount to data
db.add("nonametxt.number", 1);
Output:
data + 1
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//If the data is a number, it subtracts a certain amount from it
db.subtract("nonametxt.number", 1);
Output:
data - 1
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
db.push("nonametxt.array", { name: "NoNametxt" });
//Pushes an element to an array
db.push("nonametxt.array", { name: "NoNametxt" }, true); //If data is not an array It will convert the data to an array
Output:
{
"nonametxt":{
"array":[
{
"name":"NoNametxt"
}
]
}
}
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//Specify the object you want to delete.
db.pull("nonametxt.array", (value) => {
try{
return value[1].name == "NoNametxt";
}catch(error){
}
});
Output:
{
"nonametxt":{
"array":[]
}
}
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//Checks the data is available
db.exists("nonametxt.test");
db.has("nonametxt.test");
Output:
true or false
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//Shows the type of data
db.typeof("nonametxt.typeof"); // true or false (checks the string)
//Compares the type of data with the type you typed
db.typeof("nonametxt.typeof", "number");
Output:
true or false
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//If the data is a number, applies math operations to data.
db.math("nonametxt", "*", 10);
Output:
data * 10
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//If you have entered data, it will find and show you.
db.find("Database", true); //Searches without checking case
Database:
{
"string": "DATABASE",
"otherString": "NoNametxt",
"object": {
"db": "database"
},
"array": ["database"]
}
Output:
[
[ "string", "DATABASE" ],
[ "object.db", "database" ],
[ "array.0", "database" ]
]
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
//If you have entered data, it will filter and show you.
db.filter(([key, value]) => {
try {
return value.includes("DataBase");
} catch (error){
};
});
Database:
{
"string": "DataBase",
"otherString": "NoNametxt",
"object": {
"db": "DataBase"
},
"array": [ "DataBase" ]
}
Output:
{
"string": "DataBase",
"array": [ "DataBase" ]
}
import { Database } from "all.db";
const db = new Database({ dataPath: "./data.json" });
db.getAll(); //Returns JSON Data
db.getAll().save(path); //Saves the data to the specified path
Output:
{ All Data }
Version 0.3.2 *
+ Fix push
Thx for use all.db.
FAQs
JSON Database
The npm package all.db receives a total of 6 weekly downloads. As such, all.db popularity was classified as not popular.
We found that all.db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.