Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@cheapsteak/hoxy
Advanced tools
An HTTP hacking tool for JavaScript programmers.
var hoxy = require('hoxy');
var proxy = hoxy.createServer().listen(8080);
proxy.intercept({
// intercept during the response phase
phase: 'response',
// only intercept html pages
mimeType: 'text/html',
// expose the response body as a cheerio object
// (cheerio is a jQuery clone)
as: '$'
}, function(req, resp) {
resp.$('title').text('Unicorns!');
// all page titles will now say "Unicorns!"
});
Hoxy has released version 3.0. This release simplifies the API and better supports ES6. Notable changes:
done
callback is no longer passed as the third arg to interceptors. Interceptor arity is, accordingly, no longer a switch for async behavior. Rather, it solely depends on the return type of the interceptor (i.e. promises or iterators over promises).cycle
object, === to this
. This was based on a suggestion from @nerdbeere, with a view toward supporting arrow functions, in which this
is lexical.hoxy.forever()
function goes away.content-length
and transfer-encoding
headers.query
getter/setter to request.Proxy#log()
chainable.EADDRNOTAVAIL
on Windows when using certAuthority
.Cycle#serve()
breakage on Windows.as
intercepts weren't catching async errors properly.as
intercept fix..buffer
was always undefined. Thanks @Timwi.npm test
instead of mocha
. Proxy close()
method now passes args through to server close. Thanks Seth Holladay.listen()
accept same args as native server.listen()
instead of just port. Thanks Seth Holladay.tee()
method to requests and responses, and accompanying tests.FAQs
Web-hacking proxy API for node
The npm package @cheapsteak/hoxy receives a total of 2 weekly downloads. As such, @cheapsteak/hoxy popularity was classified as not popular.
We found that @cheapsteak/hoxy 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.