
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
pip install PySimpleDB
from PySimpleDB import DataBase
mydb = DataBase("simple.bd")
mydb_unique = DataBase("unique.bd", unique="user")
You can use a database in which the unique key will be a number, or specify your own name for the unique key, which will need to be transmitted
This command automatically saves the state of the database.
mydb.add(name="Hello", last_name="world", gender="male") # any values
mydb_unique.add(user="User1", name="Hello world", gender="male") # any values
# ^ unique key
Make sure you are passing in a unique key for the appropriate database.
As in this example, the unique key is the "user" argument specified during initialization.
Returns the id of the first matched element, or an array of ids.
id_first = mydb.find(name="Hello") # 0
id_array = mydb.find_all(gender="male") # [0...]
id_first_unique = mydb_unique.find(gender="male") # "User1"
id_array_unique = mydb_unique.find_all(gender="male") # ["User1"...]
Returns value by id.
mydb.get(id_first) # {"name": "Hello", "last_name": "world", "gender": "male"}
mydb_unique.get(id_first_unique) # {"name": "Hello world", "gender": "male"}
This command automatically saves the state of the database.
mydb.delete(id_first)
mydb_unique.delete(id_first_unique)
mydb.save()
Allows you to get the whole database.
mydb.get_all()
or
mydb.data
FAQs
Simple json database
We found that PySimpleDB 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.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).