
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
httpx-proxy-agent-config
Advanced tools
A Node proxy definition for http/https with proxy and blacklist/whitelist configuration.
A Node proxy definition for http/https with proxy and blacklist/whitelist configuration
$ npm install bloublou2014/httpx-proxy-agent-config
var proxy = require('httpx-proxy-agent-config');
proxy.install({
http_proxy: 'http://yourProxy:3128',
https_proxy: 'http://yourHttpsProxy:3218',
// example for passportjs Google OAuth2 + Google+
whitelist: ['www.google.com','accounts.google.com', '173.194.66.95', '74.125.192.95', '209.85.201.95', 'www.googleapis.com']
});
// try to access a page via http request :
var http = require('http');
http.get("http://www.google.com", function (response) {
var body = '';
response.on('data', function (d) {
body += d;
});
response.on('end', function () {
console.log("Body=", body);
});
});
// try to access a page via https request
var https = require('https');
https.get("https://www.google.com", function (response) {
var body = '';
response.on('data', function (d) {
body += d;
});
response.on('end', function () {
console.log("Body=", body);
});
});
.install(Object configuration)
Install proxy on http and https if configuration available.
Configuration options :
Note : whitelist and blacklist can't be used at the same time. Only set one list.
Currently white/blacklist only support string (no regex).
.uninstall()
Restore previous agent and http(s).request functions
.config()
Returns current configuration
FAQs
A Node proxy definition for http/https with proxy and blacklist/whitelist configuration.
The npm package httpx-proxy-agent-config receives a total of 10 weekly downloads. As such, httpx-proxy-agent-config popularity was classified as not popular.
We found that httpx-proxy-agent-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.