
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/nerophon/crawler
An engineering exercise implemented in Go.
A simple web crawler that visits all pages within a given domain, but does not follow external links. It outputs a simple structured site map, showing for each page:
This entire project can be cloned directly from github via: https://github.com/nerophon/crawler
cd
to the project directorygo install
The software will be installed to the $GOPATH/bin
directory by default.
This software includes unit tests. They can be run as per standard for Go tests:
cd
to the source folder with test files you wish to rungo test
Benchmarks exist for key steps in the process. These can be run from the root project directory, via the crawler_test.go
file. I suggest running each benchmark separately, using the following commands:
go test -bench=BenchmarkFetch -benchtime=7s
go test -bench=BenchmarkCrawl -benchtime=15s
Please be aware that this kind of benchmark could, if run without care, be interpreted as a DOS attack. The benchtime
flag may need to be adjusted depending upon which website is being used in the test. I strongly advise NOT using commonly DOS'd websites such as those belonging to major corporations.
cd
to the install directory, usually $GOPATH/bin
./crawler
At the application command prompt, the following commands are available:
crawl [URL] begin crawling the specified domain
help show available commands
quit exit the application
Press ctrl-c
during a crawl to halt and force quit back to the OS command line.
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.