Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
n3rthusdb
npm install --save n3rthusdb
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
}
const db = new Database(dbOptions)
Hatalar Düzeltildi!
//Dil = Türkçe
db.yaz("veri","belirti") /* database veri yazar */
db.kont('veri') /* Belirtilen Veriyi Kontrol Eder */
db.bul("veri") /* Belirtilen veriyi Bulur */
db.sil("veri") /* database'den sil */
db.yaz("puan",10) /* database veri yazar */
db.topla("puan",1) /* Belirtilen verinin numarasını Belirtilen Sayı İle Toplar */
db.çıkar("puan",1) /* Belirtilen verinin numarasını Belirtilen Sayı İle Çıkartır */
db.hepsi() /* Database Dosyasındaki Verileri Gösterir */
db.sıfırla() /* Databasei Sıfırlar */
//language = English
db.has('n3rthus') /* Checks Specified Data */
db.get("data") /* Finds the specified data */
db.push("1",2) /* */
db.unpush("1",2) /* */
db.set("data","symptom") /* database writes data */
db.delete("data") /* delete from database */
db.backup("data") /* backs up the file with the specified name */
db.add("xp",1) /* Adds the number of the specified data with the specified number */
db.remove("xp",1) /* Subtracts the number of the specified data with the specified number */
db.all() /* Shows Data in Database File */
db.deleteall() /* Database Reset */
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
db.set("Data",`Sample`) /* find from database */
console.log(db.get("Data"))
// CONSLOE => Sample
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
db.delete("data") /* delete from database */
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
if(db.has('n3rthus')){ /* check database */
var n3rthus = db.get('n3rthus') /* If there is data, send the specified data to the console */
} else {
var n3rthus = "!" /* If no data, set the data to "!" set to */
}
console.log(n3rthus) /*Sends Prefix*/
//veri yok ise KONSOL => !
//veri var ise KONSOL => <veri>
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
/*{"veri":"TEST"}*/
console.log(db.get("veri"))
//CONSOLE => TEST
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
db.backup("veri") /* backs up the file with the specified name */
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
let all = db.all() /* Show Data in Database File */
console.log(all)
//KONSOL => { "stated": "veri", "stated2": "veri2", "stated3": "veri3", "stated4": "veri4", "stated5": "veri5"}
db.push("1",2)
//Database =>
{
"1": [
2
]
}
db.unpush("1",2)
//Old_Database =>
{
"1": [
2
]
}
//Old_Database =>
{
"1": []
}
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
db.deleteall() /* Database ALL DELETE */
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
// DATABASE => {"veri":9}
db.add("puan",1) /* Belirtilen verinin numarasını Belirtilen Sayı İle Toplar */
// OLD DATABASE => {"veri":9}
// NEW DATABASE => {"veri":10}
const { Database } = require("n3rthusdb")
const dbOptions = {
"file":"database",
"autoFile": true,
"jsonspaces": 5
}
const db = new Database(dbOptions)
// DATABASE => {"veri":10}
db.remove("puan",5) /* Belirtilen verinin numarasını Belirtilen Sayı İle Çıkartır */
// OLD DATABASE => {"veri":10}
// NEW DATABASE => {"veri":5}
FAQs
database modülü
The npm package n3rthusdb receives a total of 0 weekly downloads. As such, n3rthusdb popularity was classified as not popular.
We found that n3rthusdb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.