Question on Bitcoin/Litcoin
#11
Here is the one that is not working

$bitcoin$96$856e263a5c91fa5df09049153f9b3b889b3b5be0185b2ca95a352832e83dc519c63074a0bbc42615bae8b352149431f3$16$9dd95fb690bb7d5e$125989$96$0135a17e315d528da597892e4510d51971a4bb8b2da21f577620a294b8baabb88a0fe5aa4cb672ccdad575a9b9064fb1$130$04c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c4d92b0bbb8205521bd7b020db080b355acb75cf9ec04ebef0d2c3889f7369679


vs the one I know works with hashcat

$bitcoin$96$14dc151ca145c0ec267b363012338b537df18749abb5f0b2ae0bdcbccb724d12899d08ad17e99fc0dcaf92c54194c396$16$3d72cf0dd583b5dd$81065$96$5308037f4fb3e4b531c83de779fb999863db2746ae0123aa8e5810047486ae9ad958d8dd1d7d0d554761fb588ea7f5ea$66$03fd63e79f347dc1156e5820ce8ece56b16840bf2766b7aab225395e3e9e6abdc3
#12
sorry to hijack.. but whenever I run this bitcoin2john.py I get

ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this
again.

I put bitcoin2john.py into the wallet.dat folder.. ran cmd as admin.. still error.
#13
(06-12-2015, 06:30 PM)x34cha Wrote: sorry to hijack.. but whenever I run this bitcoin2john.py I get

ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this
again.

I put bitcoin2john.py into the wallet.dat folder.. ran cmd as admin.. still error.

I got that a few times myself, restart the computer worked for me.
#14
(06-12-2015, 03:09 PM)giveen Wrote: Here is the one that is not working

$bitcoin$96$856e263a5c91fa5df09049153f9b3b889b3b5be0185b2ca95a352832e83dc519c63074a0bbc42615bae8b352149431f3$16$9dd95fb690bb7d5e$125989$96$0135a17e315d528da597892e4510d51971a4bb8b2da21f577620a294b8baabb88a0fe5aa4cb672ccdad575a9b9064fb1$130$04c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c4d92b0bbb8205521bd7b020db080b355acb75cf9ec04ebef0d2c3889f7369679


vs the one I know works with hashcat

$bitcoin$96$14dc151ca145c0ec267b363012338b537df18749abb5f0b2ae0bdcbccb724d12899d08ad17e99fc0dcaf92c54194c396$16$3d72cf0dd583b5dd$81065$96$5308037f4fb3e4b531c83de779fb999863db2746ae0123aa8e5810047486ae9ad958d8dd1d7d0d554761fb588ea7f5ea$66$03fd63e79f347dc1156e5820ce8ece56b16840bf2766b7aab225395e3e9e6abdc3

I have found the issue. The first hash is from and older wallet using uncompressed keypair because it starts with 04 instead of 03. http://bitcoin.stackexchange.com/questio...itcoin-key

Using pycoin tool it is easy to fix the last part of the hash.

Incompatible part:
Code:
$130$04c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c4d92b0bbb8205521bd7b020db080b355acb75cf9ec04ebef0d2c3889f7369679

Specify a compressed pubkey.
Code:
$130 --> $66

Compress the pubkey and use "key pair as sec". 
Code:
$ ku 04c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c4d92b0bbb8205521bd7b020db080b355acb75cf9ec04ebef0d2c3889f7369679

input                        : 04c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c\
                                 4d92b0bbb8205521bd7b020db080b355acb75cf9ec04ebef0d2c3889f7369679
network                      : Bitcoin mainnet
netcode                      : BTC
public pair x                : 90234338766489736260560541387516194814900220115552850975862447215427335274764
public pair y                : 35087268780626980418258611515549367557368934105453932834202777821135781664377
 x as hex                    : c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c
 y as hex                    : 4d92b0bbb8205521bd7b020db080b355acb75cf9ec04ebef0d2c3889f7369679
y parity                     : odd
key pair as sec              : 03c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c
 uncompressed                : 04c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c\
                                 4d92b0bbb8205521bd7b020db080b355acb75cf9ec04ebef0d2c3889f7369679
hash160                      : a3759ac93719b9a3ce91d57413af6f7fbc96a215
 uncompressed                : e53d032e405ce162fa75d054c453419051f053da
Bitcoin address              : 1FuJ2ajAGSTeeXkdS1gbv6oZUxYtcEBwao
Bitcoin address uncompressed : 1Mu6q9WdP3Jd7QHhkfkU4Qijhm6g2H1AiV

Fix the hash.
Code:
$66$03c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c

Final result:
Code:
$bitcoin$96$856e263a5c91fa5df09049153f9b3b889b3b5be0185b2ca95a352832e83dc519c63074a0bbc42615bae8b352149431f3$16$9dd95fb690bb7d5e$125989$96$0135a17e315d528da597892e4510d51971a4bb8b2da21f577620a294b8baabb88a0fe5aa4cb672ccdad575a9b9064fb1$66$03c77ed36b8f0affb1b434ef6975b2fa224131f42ab47df30b7c6b6dffe47cc10c

Now it works!
Code:
oclHashcat v2.01 (g6d37c12) starting...

Device #1: GeForce GTX 780 Ti, 767/3068 MB allocatable, 1019Mhz, 15MCU

Hashes: 1 hashes; 1 unique digests, 1 unique salts