Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@guidb/firestore
Advanced tools
constructor
new firestore(data, encrypt)
example
type data = json / string type encrpy = boolean
if encrypt fill data base 64 not "./firebase.json"
if no encrypt fill data "./firebase.json" get base 64 data here https://jpillora.com/base64-encoder/
example
//--! no encrpyt !--\\
var firestore = require("@guidb/firestore")
var db = new firestore.firestore("./firebase.json")
//--! data encrpyt !--\\
var firestore = require("@guidb/firestore")
var db = new firestore.firestore("data:application/json;base64,ewogICJ0eXBl.*", true)
getAll(name)
examplevar firestore = require("@guidb/firestore")
var db = new firestore.firestore("./firebase.json")
async function test() {
var getall = await db.getAll("users")
console.log(getall)
}
test()
//--! Result log here !--\\
/*
[
{
id: '0bQBHNASCO2UDbiQvvx2',
data: { born: 1815, first: 'Ada', last: 'Lovelace' },
time: { update_seconds: 1626377997, update_nanoseconds: 305257000 }
},
{
id: '3JijGaZpac8ONq3pKBy3',
data: { last: 'Lovelace', born: 1815, first: 'Ada' },
time: { update_seconds: 1626377449, update_nanoseconds: 553502000 }
},
{
id: 'AhDWWUrGSpKeLgLHzSLV',
data: { first: 'Ada', born: 1815, last: 'Lovelace' },
time: { update_seconds: 1626378647, update_nanoseconds: 848145000 }
},
{
id: 'RncOIs28UpkGytJ4VPGO',
data: { born: 1815, last: 'Lovelace', first: 'Ada' },
time: { update_seconds: 1626378648, update_nanoseconds: 570016000 }
},
{
id: 'Y7aFXiYZwdj07m0da3RP',
data: { last: 'Lovelace', born: 1815, first: 'Ada' },
time: { update_seconds: 1626377444, update_nanoseconds: 724274000 }
},
{
id: 'data',
data: { data: 'oke' },
time: { update_seconds: 1626382819, update_nanoseconds: 730519000 }
},
{
id: 'data1',
data: { version: '2', title: 'new title' },
time: { update_seconds: 1626384801, update_nanoseconds: 749878000 }
},
{
id: 's00VrxQ4gqxcC4d4QSUd',
data: { first: 'Ada', born: 1815, last: 'Lovelace' },
time: { update_seconds: 1626378000, update_nanoseconds: 269695000 }
},
{
id: 'uhnILsXYzDagVwTn59Bs',
data: { last: 'Lovelace', first: 'Ada', born: 1815 },
time: { update_seconds: 1626377530, update_nanoseconds: 248835000 }
},
{
id: 'user',
data: { km: [Array] },
time: { update_seconds: 1626382982, update_nanoseconds: 392675000 }
}
]
*/
db.get(name, id)
examplevar firestore = require("@guidb/firestore")
var db = new firestore.firestore("./firebase.json")
async function test() {
var get = await db.get("users", "data1")
console.log(get)
}
test()
//--! Result log here !--\\
/*
{
id: 'data1',
data: { version: '1', title: 'hay' },
time: { update_seconds: 1626384800, update_nanoseconds: 691138000 }
}
*/
add(name, id, data)
examplevar firestore = require("@guidb/firestore")
var db = new firestore.firestore("./firebase.json")
async function test() {
var dataa = {
"title": "hay",
"version": "1"
}
var add = await db.add("users", "data1", dataa)
console.log(add)
}
test()
//--! Result log here !--\\
/*
{ writeTime: { seconds: 1626384800, nanoseconds: 691138000 } }
*/
update(name, id, data_update)
examplevar firestore = require("@guidb/firestore")
var db = new firestore.firestore("./firebase.json")
async function test() {
var data_update = {
"title": "new title",
"version": "2"
}
var update = await db.update("users", "data1", data_update)
console.log(update)
}
test()
//--! Result log here !--\\
/*
{ writeTime: { seconds: 1626384801, nanoseconds: 749878000 } }
*/
delete(option)
examplevar firestore = require("@guidb/firestore")
var db = new firestore.firestore("./firebase.json")
async function test() {
var Option = {
"type": "doc",
"name": "users",
"doc" : "datatemp"
}
var delet = await db.delete(Option)
console.log(delet)
}
test()
//--! Result log here !--\\
/*
WriteResult {
_writeTime: Timestamp { _seconds: 1626384802, _nanoseconds: 380867000 }
}
*/
A list that i should do more for this project...
FAQs
firebase store library :V no ads no track bro
We found that @guidb/firestore demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.