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.
gcalendar-cli
Advanced tools
Google Calendar cli tool for Node.js
Install it as a global module
npm install -g gcalendar-cli
Authorization and authentication is done with OAuth 2.0.
You will need a file with your credentials: client ID
, client secret
and redirect URI
. This can be obtained in the Developer Console:
Credentials
Create credentials
→ OAuth client ID
( Application type
must be Other
)client_secret.json
in C:\Users\<YOUR_USER_NAME>
directorygcal setup
Login with your Google account and approve the permissions.
Copy the token back to the terminal.
You should see ✔️ You are ready to go!
Example:
Authorize this app by visiting this url:
https://accounts.google.com/o/oauth2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly&response_type=code&client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
? Enter the code from that page here: x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
✔️ You are ready to go!
gcal list
List google calendar events
Options:
--version Show version number [boolean]
--help Show help [boolean]
--table, -t Display events in table [boolean]
--days, -d Number of days for events [number]
--range, -r Date range of events in natural language [string]
gcal ls -r "tomorrow"
gcal ls -r "from 25 Dec to 27 Dec"
gcal ls -d 3
gcal ls -d 0
gcal insert <info>
Insert event into google calendar
Options:
--version Show version number [boolean]
--help Show help [boolean]
--duration, -d Duration of the event [number]
--calendar, -c Calendar for event to insert [string]
All day event:
gcal insert "Party tomorrow"
gcal insert "Vacation from 23 Dec to 25 Dec"
Timed event:
gcal insert "Party tomorrow from 2pm to 7pm"
Party tomrrow from 2pm to 7pm (5 Hours):
gcal insert "Party tomorrow from 2pm" -d 5
Movie from 3pm to 4:30pm (1.5 Hours):
gcal insert "Movie from 3pm" -d 1.5
MIT © Horace Lee
FAQs
Google Calendar cli tool for Node.js
We found that gcalendar-cli 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.
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.