Open York222 opened 1 year ago
I didn't worked on wallet.dat in any linux
On Tue, 6 Dec 2022, 14:04 York222, @.***> wrote:
the question above was done until i reinstalled openssl in version 1.1.1. but there are 3 warnings when compiling: ameters’ [-Wimplicit-function-declaration] 213 | PEM_write_bio_ECPKParameters(out, group); | ^
~~~~~~~ bc_key.c:214:5: warning: implicit declaration of function ‘PEM_write_bio_ECPrivateKey’ [-Wimplicit-function-declaration] 214 | PEM_write_bio_ECPrivateKey(out,pkey,NULL,NULL,0,NULL,NULL); | ^~~~~~bc_key.c: In function ‘main’: bc_key.c:497:5: warning: implicit declaration of function ‘ENGINE_load_builtin_engines’ [-Wimplicit-function-declaration] 497 | ENGINE_load_builtin_engines(); | ^~~~~~~however, ran "./bc_key BITCOIN_ADDRESS /path/to/wallet.dat" , return error : "Segmentation fault"
— Reply to this email directly, view it on GitHub https://github.com/iconbtcx/wallet.dat-crack-in-c/issues/1#issuecomment-1338963225, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKTVPGLGKPF3MQ74RQUNLDWL327VANCNFSM6AAAAAASU7RLLA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
which version of openssl you use, the console return errors after runing "gcc -g bc_key.c -ldb -lcrypto -o bc_key".
my envirement: Linux version 5.15.0-53-generic (buildd@lcy02-amd64-047) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
The errors obtained are:
bc_key.c: In function ‘sha256’: bc_key.c:95:5: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | SHA256_Init(&sha256); | ^
~~In file included from bc_key.c:11: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX c); | ^~~bc_key.c:96:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 96 | SHA256_Update(&sha256, string, length); | ^~~~~ In file included from bc_key.c:11: /usr/include/openssl/sha.h:74:27: note: declared here 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX c, | ^~~~~ bc_key.c:97:5: warning: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 97 | SHA256_Final(digest, &sha256); | ^~~~ In file included from bc_key.c:11: /usr/include/openssl/sha.h:76:27: note: declared here 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char md, SHA256_CTX c); | ^~~~ bc_key.c: In function ‘ripemd160’: bc_key.c:114:5: warning: ‘RIPEMD160_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 114 | RIPEMD160_Init(&ripe); | ^~~~~~ In file included from bc_key.c:12: /usr/include/openssl/ripemd.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Init(RIPEMD160_CTX c); | ^~~~~~ bc_key.c:115:5: warning: ‘RIPEMD160_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 115 | RIPEMD160_Update(&ripe, string, length); | ^~~~In file included from bc_key.c:12: /usr/include/openssl/ripemd.h:46:27: note: declared here 46 | OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Update(RIPEMD160_CTX c, const void data, | ^~~~bc_key.c:116:5: warning: ‘RIPEMD160_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 116 | RIPEMD160_Final(digest, &ripe); | ^~~~~~~ In file included from bc_key.c:12: /usr/include/openssl/ripemd.h:48:27: note: declared here 48 | OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Final(unsigned char md, RIPEMD160_CTX c); | ^~~~~~~ bc_key.c: In function ‘export_key’: bc_key.c:202:5: warning: ‘EC_KEY_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 202 | EC_KEY pkey=EC_KEY_new(); | ^~In file included from /usr/include/openssl/ecdsa.h:10, from bc_key.c:10: /usr/include/openssl/ec.h:968:31: note: declared here 968 | OSSL_DEPRECATEDIN_3_0 EC_KEY EC_KEY_new(void); | ^~~~~~ bc_key.c:206:5: warning: ‘EC_KEY_set_group’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 206 | EC_KEY_set_group(pkey,group); | ^~~~In file included from /usr/include/openssl/ecdsa.h:10, from bc_key.c:10: /usr/include/openssl/ec.h:1042:27: note: declared here 1042 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY key, const EC_GROUP group); | ^~~~bc_key.c:209:5: warning: ‘d2i_ECPrivateKey’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 209 | if(!d2i_ECPrivateKey(&pkey, &key, length)){ | ^~ In file included from /usr/include/openssl/ecdsa.h:10, from bc_key.c:10: /usr/include/openssl/ec.h:1187:31: note: declared here 1187 | OSSL_DEPRECATEDIN_3_0 EC_KEY d2i_ECPrivateKey(EC_KEY **key, | ^~~~bc_key.c:213:5: warning: implicit declaration of function ‘PEM_write_bio_ECPKParameters’ [-Wimplicit-function-declaration] 213 | PEM_write_bio_ECPKParameters(out, group); | ^~~~~~~~ bc_key.c:214:5: warning: implicit declaration of function ‘PEM_write_bio_ECPrivateKey’ [-Wimplicit-function-declaration] 214 | PEM_write_bio_ECPrivateKey(out,pkey,NULL,NULL,0,NULL,NULL); | ^~~~~~bc_key.c: In function ‘main’: bc_key.c:497:5: warning: implicit declaration of function ‘ENGINE_load_builtin_engines’ [-Wimplicit-function-declaration] 497 | ENGINE_load_builtin_engines(); | ^~~~~~~