Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Simple command to help download and upload big files to Google Drive (using their official Drive APIs)
simple-gdrive: A simple command to help download and upload big files to Google Drive (using their official APIs)
Before using the command, you must open Google Cloud Platform and create credentials for oauth: cloud.google.com > APIs & Services > Credentials. Note that if your project hasn't enabled Drive APIs, go to APIs & Services > Enabled APIs & Services and add Drive APIs.
Then, download the JSON file and put it in the AuthDir (default at ~/.simple_gdrive
) with the name credentials.json
. When you run the script for the first time, it will redirect to your browser so you can authenicate and give permission to YOUR application (created in the previous step) to access to your drive. Then, you will obtain an access token saving to the same drive with name tokens.json
. Keeping the two files safe (or delete tokens.json
after usage) and nobody else will have access to your data.
pip install simple-gdrive
Invoke the command by running gdrive
or python -m simple_gdrive
.
Download a file:
gdrive download -s <path in disk> -d <path in drive>
Upload a file
gdrive upload -s <file path in disk> -d <path in drive>
For example:
gdrive download -s //KGData/Wikipedia/20220420/enwiki-NS0-20220420-ENTERPRISE-HTML.json.tar.gz -d enwiki.json.tar.gz
gdrive upload -s ./enwiki-NS0-20220420-ENTERPRISE-HTML.json.tar.gz -d //KGData/Wikipedia/20220420/enwiki-NS0-20220420-ENTERPRISE-HTML.json.tar.gz
If the path in Google drive startswith /
, the top folder/file will be in your drive (e.g., /abc
points to the folder abc
in your drive). If it starts with //
, the first level will be the name of the shared drive and the second level will be the folder/file in the shared drive (e.g., //KGData/abc
points to the folder abc
in KGData shared drive).
FAQs
Simple command to help download and upload big files to Google Drive (using their official Drive APIs)
We found that simple-gdrive 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 researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.