Skip to content

Commit 2d0bef5

Browse files
committed
Add options to print progress regularly and to save/restore state
1 parent 20ca00e commit 2d0bef5

File tree

9 files changed

+579
-314
lines changed

9 files changed

+579
-314
lines changed

AUTHORS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
2014-2015 Guillaume LE VAILLANT <guillaume.le.vaillant@openmailbox.org>
1+
2014-2017 Guillaume LE VAILLANT <glv@posteo.net>
22
2015-2015 Paweł Stiasny <pawelstiasny@gmail.com>

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2017-07-19 Guillaume LE VAILLANT <glv@posteo.net>
2+
Version 1.5.0
3+
Add bruteforcing speed and last tried password to progress info.
4+
Add option to print progress info regularly.
5+
Add option to restore/save state from/to a file.
6+
17
2016-05-24 Guillaume LE VAILLANT <guillaume.le.vaillant@openmailbox.org>
28
Version 1.4.1
39
Fix a mutex in the function reading lines from the dictionary file.

INSTALL

+159-161
Large diffs are not rendered by default.

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 1.5.0
2+
2017-07-19
3+
14
Version 1.4.1
25
2016-05-24
36

README

+13-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ per line.
4444
The program requires the OpenSSL and BerkeleyDB libraries. Installation on Debian & Ubuntu:
4545

4646

47-
apt-get install libdb6.0-dev libssl-dev -y
47+
apt install libdb6.0-dev libssl-dev -y
4848

4949

5050
## Compilation
@@ -107,6 +107,18 @@ Print progress info:
107107
pkill -USR1 -f bruteforce-wallet
108108

109109

110+
Print progress info every 30 seconds:
111+
112+
bruteforce-wallet -t 6 -f dictionary.txt -v 30 wallet.dat
113+
114+
115+
Save/restore state between sessions:
116+
117+
bruteforce-wallet -t 6 -f dictionary.txt -w state.txt wallet.dat
118+
(Let the program run for a few minutes and stop it)
119+
bruteforce-wallet -t 6 -w state.txt wallet.dat
120+
121+
110122
## Donations
111123

112124
If you find this program useful and want to make a donation, you can send coins

configure.ac

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT(bruteforce_wallet, 1.4.1)
1+
AC_INIT(bruteforce_wallet, 1.5.0)
22
AM_INIT_AUTOMAKE
33
AC_CONFIG_SRCDIR(src/bruteforce-wallet.c)
44

@@ -7,7 +7,7 @@ AC_PROG_CC
77
AC_PROG_INSTALL
88

99
dnl Check for standard headers
10-
AC_CHECK_HEADERS([math.h locale.h signal.h stdio.h stdlib.h string.h unistd.h wchar.h])
10+
AC_CHECK_HEADERS([ctype.h locale.h math.h signal.h stdio.h stdlib.h string.h time.h unistd.h wchar.h])
1111

1212
dnl Check for functions
1313
AC_CHECK_FUNCS([calloc malloc realloc free])
@@ -18,6 +18,7 @@ AC_CHECK_FUNCS([memcmp memset])
1818
AC_CHECK_FUNCS([setlocale mbstowcs wcsncpy wcstombs])
1919
AC_CHECK_FUNCS([getopt])
2020
AC_CHECK_FUNCS([signal])
21+
AC_CHECK_FUNCS([localtime setitimer strftime time])
2122

2223
dnl Check for libraries
2324
AC_CHECK_LIB(m, pow, [], AC_MSG_ERROR([math library required]))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2014-2015 Guillaume LE VAILLANT
2+
# Distributed under the terms of the GNU General Public License v3
3+
4+
EAPI="5"
5+
6+
inherit eutils autotools
7+
8+
DESCRIPTION="A bruteforce cracker for Peercoin (and Bitcoin, Litecoin, etc...) encrypted wallet files."
9+
HOMEPAGE="https://github.com/glv2/${PN}"
10+
SRC_URI="https://github.com/glv2/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
11+
12+
LICENSE="GPL-3"
13+
SLOT="0"
14+
KEYWORDS="~amd64 ~arm ~x86"
15+
16+
DEPEND="
17+
dev-libs/openssl
18+
sys-libs/db
19+
"
20+
RDEPEND="${DEPEND}"
21+
22+
src_prepare() {
23+
eautoreconf
24+
}
25+
26+
src_configure() {
27+
econf
28+
}
29+
30+
src_install() {
31+
dobin "${PN}"
32+
dodoc AUTHORS ChangeLog COPYING NEWS README
33+
}

0 commit comments

Comments
 (0)