
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
github.com/akashgupta1909/web-crawler
A high-performance internal web crawler written in Go, built to recursively crawl links on a website with customizable concurrency and page limits.
.
├── main.go # CLI entry point
├── configure.go # Configuration and setup
├── crawlPage.go # Crawling logic
├── internal
│ ├── customHTML # HTML parsing and link extraction
│ │ ├── getHTML.go
│ │ ├── getURLsFromHTML.go
│ │ └── getURLsFromHTML_test.go
│ ├── customPrint # Report formatting
│ │ ├── printReport.go
│ │ └── printReport_test.go
│ └── customURL # URL normalization
│ ├── normalize_url.go
│ └── normalize_url_test.go
├── go.mod
└── go.sum
git clone git@github.com:akashgupta1909/web-crawler.git
cd web-crawler
go mod tidy
Run the tests using the following command:
go test ./...
To build the project, use the following command:
go build
go run main.go <base-url> [maxConcurrency] [maxPages]
go run main.go https://example.com 10 100
This command will crawl the website https://example.com
with a maximum of 10 concurrent requests and a limit of 100 unique urls.
starting crawl of: https://example.blog.dev
concurrency 10
max pages 20
base url https://example.blog.dev
starting crawaling on: blog.boot.dev/path
...
==========================
Report for: https://example.blog.dev
==========================
Found 5 internal links to example.blog.dev
Found 3 internal links to example.blog.dev/about
Found 2 internal links to example.blog.dev/path
...
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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.