
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@cogitojs/faucet
Advanced tools
This is a very simple faucet Express app. It supports the following REST call:
POST /donate/<ethereum address>
Cogito Faucet is a NodeJS program. It can be installed by running
npm install -g @cogitojs/faucet
or alternatively
yarn global install @cogitojs/faucet
The cogito-faucet
command takes the following arguments:
<account>
, this first argument is the account number from which Ether
will be donated. Needs to include the 0x
prefix.-d
or --donation
followed by an amount of Ether. This is the amount of
Ether that is donated per request. Defaults to 0.1
.-p
or --provider
followed by the provider URL. This specifies the full
URL of the node in your blockchain network (including http
or https
and
port number if needed). Defaults to http://localhost:8545
.--port
followed by a port number. The port that the faucet listens on.
Defaults to 3001
The private key that corresponds with the account is specified as an environment variable:
COGITO_FAUCET_PRIVATE_KEY=C87509A1C067BBDE78BEB793E6FA76530B6382A4C0241E5E4A9EC0A0F44DC0D3
This runs a faucet that hands out Ether in amount of 0.01 from the account
0x627306090abab3a6e1400e9345bc60c78a8bef57, using its corresponding private key.
It uses the Ethereum node at ip address 192.168.1.112
:
COGITO_FAUCET_PRIVATE_KEY=C87509A1C067BBDE78BEB793E6FA76530B6382A4C0241E5E4A9EC0A0F44DC0D3 \
cogito-faucet --donation 0.01 --provider http://192.168.1.112:8545 0x627306090abab3a6e1400e9345bc60c78a8bef57
After the faucet is started, you can use test it by performing a post using e.g.
curl
:
curl -X POST -D - http://localhost:3001/donate/0xdf562290eceb83d659e23252ae8d38fa0bbc06e8
or using httpie:
http POST http://localhost:3001/donate/0xdf562290eceb83d659e23252ae8d38fa0bbc06e8
When using a deployed network, you may want to increase the timeouts. For
curl
:
curl -X POST -m 600 -D - https://blockchain.deployed.com/faucet/donate/0x6b0be084e6ffc7d6cace8e01e2814c869257c3aa
for httpie
:
http --timeout=600 POST https://blockchain.deployed.com/faucet/donate/0x6b0be084e6ffc7d6cace8e01e2814c869257c3aa
This will give the network 10min
.
FAQs
Simple faucet with REST API
We found that @cogitojs/faucet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.