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.
@crawly/browser
Advanced tools
npm i @crawly/browser
import { Browser } from '@crawly/browser';
let browser = new Browser();
let header = browser.getHeaders();
Exemplo de retorno da função getHeaders
:
{
Pragma: 'no-cache',
Connection: 'keep-alive',
'Accept-Encoding': 'gzip, deflate, br',
'Content-Type': 'application/json; charset=UTF-8',
'Cache-Control': 'no-cache',
'Upgrade-Insecure-Requests': 1,
'X-Requested-With': 'XMLHttpRequest',
Accept:'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7',
Referer: 'https://www.google.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0'
}
Para gerar novos headers utilize a função setHeaders
:
import { Browser } from '@crawly/browser';
let browser = new Browser();
browser.setHeaders();
setHeaders(): void;
getHeaders(): IHeader;
mergeHeaders(headers: IHeader, value: IHeader): IHeader;
getRandomAccept(): string;
getRandomAcceptLanguage(): string;
getRandomReferer(): string;
getRandomUserAgent(): string;
npm run build
npm run tslint
npm test
Coverage
npm run coverage
FAQs
lib to encapsulate browser data
The npm package @crawly/browser receives a total of 0 weekly downloads. As such, @crawly/browser popularity was classified as not popular.
We found that @crawly/browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
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.