
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
github.com/ntsiris/sitemap-builder
A command-line tool for generating XML sitemaps for websites. The sitemap builder crawls the specified URL up to a given depth and produces an XML sitemap that can be used by search engines for indexing.
.
βββ bin
β
βββ sitemap
βββ cmd
β βββ builder.go # Contains the GenerateSitemap function to generate the XML sitemap
β βββ main.go
βββ Dockerfile
βββ go.mod
βββ go.sum
βββ Makefile
βββ pkg
β βββ collections
β β βββ stack.go
β β βββ thread-safe
β β βββ stack.go
β βββ crawler
β β βββ crawler.go # Crawler logic for traversing links on a website
β β βββ crawler_test.go
β βββ link
β βββ parser.go # Parser for extracting links from HTML
β βββ parser_test.go
βββ README.md
git clone https://github.com/yourusername/sitemap-builder.git
cd sitemap-builder
Makefile
:
make build
This will create a sitemap
executable in the bin/
directory.
Run the application with the -url
flag to specify the URL and the -depth
flag to set the crawling depth:
./bin/sitemap -url=https://example.com -depth=3
-url
: URL to crawl (required)-depth
: Maximum depth to crawl (default: 3)-out
: Output file for the sitemap XML (default: ./map.xml
)You can also run the sitemap builder in a Docker container.
make docker-build
To run the container and save the output file to a specified directory on your host system, use a bind mount:
mkdir -p output
docker run --rm -v $(pwd)/output:/app/output sitemap-builder -url=https://example.com -depth=3 -out=/app/output/map.xml
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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezerβs API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.