Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/migliori/sitemap-crawler
Sitemap crawler/generator. For given URL it will return sitemap XML file with URLs and images.
Can be used as Standalone or with Ajax (build sitemap, submit to Search Engines & show results on a button click)
Original project: https://github.com/ivebe/sitemap-crawler
composer require migliori/sitemap-crawler
<?php
require_once __DIR__ . '/vendor/autoload.php';
use SitemapCrawler\Crawler;
use SitemapCrawler\SitemapService;
use SitemapCrawler\LinkCollection;
$config = require "src/config.php";
$url = "http://www.google.com";
/**
* $dest:
* false if you want to download the generated sitemap
* 'filename.xml' to save file on server
*/
$dest = __DIR__ . '/sitemap.xml';
/**
* sitemap url for search engines submission
*/
$sitemap_url = 'http://www.google.com/sitemap.xml';
$crawler = new Crawler($config['crawler']);
$collection = new LinkCollection();
$provider = new SitemapService($crawler, $collection, $url, $config['sitemap_service']);
$links = $provider->crawl($url);
$provider->export('daily', $dest);
if ($config['submit_to_search_engines'] === true) {
$provider->SubmitSiteMap($sitemap_url);
}
Refer to ajax-demo.php
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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.