
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.
happner-elastic-proxy
Advanced tools
node v7+
npm
run the 3 services
docker-compose up
#install deps
npm install happner-elastic-proxy
#test run
npm test
run the service locally:
git clone https://github.com/happner/happner-elastic-proxy.git && cd happner-elastic-proxy && npm install && node service/start proxy
elasticsearch.url: "http://localhost:55555"
elasticsearch.customHeaders: { "kibana_server_secret" : "username=_ADMIN&password=happn" }
elasticsearch.requestHeadersWhitelist: [ authorization, cookie ]
> git clone https://github.com/happner/happner-elastic-proxy.git && cd happner-elastic-proxy && npm install
> node service/start proxy
# to start the proxy with non-default settings:
> node service/start proxy=proxy.port=55555,proxy.target=http://localhost:9200,proxy.log_output=true,proxy.log_output_errors_only=true
# if log_output=true - requests are logged to the console
# the elasticURL is adjusted to point to the elastic service, elastic requests are proxied to
npm i happner-elastic-proxy --save
//starts the proxy service, we test pushing requests through it to elasticsearch, default listen port 55555 and target http://localhost:9200
var Service = require('happner-elastic-feed');
var proxyConfig = {};
var proxyService = new Service();
var http = require('http');
proxyService
.proxy(proxyConfig)
.then(function () {
http.get({
host: 'localhost',
port: 55555,
path: '/_cat/indices?v'
}, function(res) {
var body = '';
res.on('data', function(chunk) {
body += chunk;
});
res.on('end', function() {
console.log('successfully queried :::', body);
proxyService.stop()
.then(function(){
done();
})
.catch(done)
});
}).on('error', function(e) {
done(e);
});
})
.catch(function(e){
done(e);
})
for detailed proxy usage have a look at the tests.
Happner setup instructions in more detail here.
npm i happner-elastic-proxy --save
var Service = require('happner-elastic-proxy');
var service = new Service();
var proxyConfig = {
};
service
.proxy(proxyConfig)
.then(function () {
//do something else
})
FAQs
happner elastic proxy ----------------------------
We found that happner-elastic-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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
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.