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.
github.com/lockwarr/gositemapgenerator
Go 1.17+
number of parallel workers to navigate through site
, default is 10output file path
, default is ../sitemap.xmlmax depth of url navigation recursion
, default is 10https://google.com
Navigate inside sitemap-generator-cli and run:
go run main.go https://google.com
go run main.go -parallel=5 -max-depth=10 -output-file="../sitemap.xml" https://google.com
Run all tests:
make test
The code has been tested only on Ubuntu 18.04
I used one external dependency for testing only.
Of course the program can be expanded in many ways as required, some examples:
We can add log levels (debug, info, error etc...)
We could set up Dockerfile
I don't think this cli tool requires component tests but they could be implemented.
FAQs
Unknown package
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.