Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/fakenetflix/coinbase-repo-btcexport
btcexport is a utility for parsing the blockchain as stored by a btcd full node and exporting it as CSV to be loaded into a columnar data store. The project supports multiple file destinations, currently the local filesystem and Amazon S3.
To run btcexport, you must have a btcd node that is synced to the chain height you intend to export to. The node must be off while the export process is running.
Usage:
btcexport [OPTIONS]
Application Options:
-b, --datadir= Location of the btcd data directory (default: /home/nobody/.btcd/data)
--dbtype= Database backend to use for the Block Chain (default: ffldb)
--testnet Use the test network
--regtest Use the regression test network
--simnet Use the simulation test network
--output= Directory to write output files to
--s3-bucket= S3 bucket to write output files to
--s3-prefix= Key prefix of S3 objects to upload
--start-height= Optional beginning height of export range (default=0)
--end-height= Ending height of of export range (default=tip-6)
-p, --progress= Show a progress message each time this number of seconds have passed -- Use 0 to disable progress announcements (default: 10)
Help Options:
-h, --help Show this help message
Export entire mainnet chain to output
directory on local filesystem.
$ btcexport --output=output
Export testnet blocks beginning at height 400,000 to Amazon S3.
$ btcexport \
--testnet \
--start-height=400000 \
--s3-bucket=my-btcexport
--s3-prefix mainnet
The program outputs CSV files compressed with gzip for four different logical tables:
blocks-%d.csv.gz
txs-%d.csv.gz
txins-%d.csv.gz
txouts-%d.csv.gz
The rows of each logical table are split across multiple files. Each file is capped at approximately 1 MiB.
$ go get -u github.com/coinbase/btcexport
$ cd $GOPATH/src/github.com/coinbase/btcexport
$ dep ensure
$ go install ./cmd/...
FAQs
Unknown package
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.