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.
@ossiana/node-libcurl
Advanced tools
* JA3 FingerPrint is the same as chrome 108,it modified the BoringSSL extension, set the custom cipher suite with Libcurl * Now only support on Windows, linux and MacOS will be supported in the future
npm i @ossiana/node-libcurl -g
You should install Python 2.7 and the Visual Studio compiler;
npm i -g --production windows-build-tools
import { LibCurl, fetch } from '@ossiana/node-libcurl'
fetch("https://xxx.io/api/graphql/", {
proxy: "127.0.0.1:8888",
method: "POST",
headers: {
"Host": "xxx.io",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
"Content-Type": "application/json",
"Referer": "https://xxx.io/",
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-CN,zh;q=0.9",
},
cookies: 'a=b&c=d',//{ a : 'b' ,c : 'd'},
redirect: true,//if like http status code 302 redirect to 200, then content with status code 200 is returned
body: { type : "GetStyle" },
httpVersion: 0,//0 is http1.1, 1 is http2
openInnerLog: false,//open curl logger
//instance:curl, //curl connect persistent
}).then(e => e.json()).then(e => {
console.log('style is %s', e.style);
}).catch((err) => {
console.error('fetch error : %s', err.message);
});
const curl = new Libcurl();
curl.open('POST', 'https://xxx.io/api/graphql/', true);
curl.setRequestHeaders(`Host: xxx.io
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Content-Type: application/octet-stream
Referer: https://opensea.io/
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
`);
curl.send(new Uint8Array([1, 255, 188]))
.then(e => {
console.log(curl.getResponseString());
});
FAQs
## Different with Nodejs fetch api * The fingerprint can be customized to look like chrome or firefox ,it modified the BoringSSL extension, set the custom cipher suite with Libcurl ------------
The npm package @ossiana/node-libcurl receives a total of 36 weekly downloads. As such, @ossiana/node-libcurl popularity was classified as not popular.
We found that @ossiana/node-libcurl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.