scan-bitcoin-addresses

command module
v0.0.0-...-0768deb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Scan base58 Addresses

A Cli utility to scan files for Bitcoin addresses and base58 strings

Building

cd scan-bitcoin-addresses  
go build

Get help?

cd scan-bitcoin-addresses  
./scan-bitcoin-addresses.exe -h

Sample run for file vs directory [path can be relative or absolute]

DirectoryPath:
./scan-bitcoin-addresses.exe scan directory1 directory2 directory3  
FilePath:
./scan-bitcoin-addresses.exe scan testDirectory/possible/btc/possible.txt

Sample output

Perfect match
{
    "MatchType": "perfect",
    "MatchFile": "testDirectory\\perfect\\btc\\perfect.txt",
    "MatchedLine": "1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nK9 some words after the address",
    "MatchedWord": "1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nK9"
}
Possible match
{
    "MatchType": "possible",
    "MatchFile": "testDirectory\\possible\\btc\\possible.txt",
    "MatchedLine": "btc:1NKRhS7iYUGTaAfaR5z8BueAJesqaTyc4a btc:19ck9VKC6KjGxR9LJg4DNMRc45qFrJguvV address then possible address then some words case:2",
    "MatchedWord": "btc:1NKRhS7iYUGTaAfaR5z8BueAJesqaTyc4a"
}

Verbose mode

go run main.go scan -v testDirectory


Scanning: Dir(1 of 1) File(1 of 6): testDirectory\possible\btc\possible.txt
{
    "MatchType": "possible",
    "MatchFile": "testDirectory\\possible\\btc\\possible.txt",
    "MatchedLine": "btc:1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nK9 btc:1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nK9 address then possible address then some words case:2",
    "MatchedLineNo": 1,
    "MatchedWord": "btc:1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nK9"
}
...

Scan Complete: Dir(1 of 1) File(1 of 6): testDirectory\possible\btc\possible.txt, size: 1 KB(s), line(s): 18, timeTaken: 65 ms

---

Scanning: Dir(1 of 1) File(6 of 6): testDirectory\perfect\skycoin\perfect.txt
{
    "MatchType": "perfect",
    "MatchFile": "testDirectory\\perfect\\skycoin\\perfect.txt",
    "MatchedLine": "1QCaxc8hutpdZ62iKZsn1TCG3nh7uPZojq some words after the address",
    "MatchedLineNo": 1,
    "MatchedWord": "1QCaxc8hutpdZ62iKZsn1TCG3nh7uPZojq"
}
...

Scan Complete: Dir(1 of 1) File(6 of 6): testDirectory\perfect\skycoin\perfect.txt, size: 529 Byte(s), line(s): 9, timeTaken: 21 ms```

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL