Bitcoin Forum
November 11, 2024, 11:19:51 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Changing file name wallet.dat  (Read 2599 times)
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
July 21, 2015, 10:44:54 AM
 #1

Hi all,

Is there a way to change the filename of wallet.dat? I'm worried about some new malware that's designed to steal wallet files. There's a script (bitcoin wallet stealer) I noticed on a forum that is looking for that specific file:

Code:
// Check if wallet has been already stolen (to avoid duplicates)
  if not(RegCurrentValue = RegValue) then
  begin
    try
      // Generate path to Bitcoin wallet file
      if Win32MajorVersion >= 6 then
        // Microsoft Windows Vista and newer
        Path := ExpandFileName(AppDataPath + '\..\Roaming\Bitcoin\wallet.dat')
      else


"Panic Selling is not an Investment Strategy"
Amph
Legendary
*
Offline Offline

Activity: 3248
Merit: 1070



View Profile
July 21, 2015, 10:51:09 AM
 #2

isn't just better to secure it with a strong passphrase? and maybe don't download random stuff on your main machine, but use a VM , or don't download anything suspicious at all

also if you change the extension it will not work anymore
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
July 21, 2015, 10:54:25 AM
 #3

isn't just better to secure it with a strong passphrase? and maybe don't download random stuff on your main machine, but use a VM , or don't download anything suspicious at all

also if you change the extension it will not work anymore
Strong passphrase for sure, yes. However, I wouldn't like it if my wallet gets stolen. Changing the file name would just be some extra obfuscation.

"Panic Selling is not an Investment Strategy"
Lauda
Legendary
*
Offline Offline

Activity: 2674
Merit: 2965


Terminated.


View Profile WWW
July 21, 2015, 12:02:44 PM
Last edit: July 21, 2015, 05:19:21 PM by LaudaM
 #4

Strong passphrase for sure, yes. However, I wouldn't like it if my wallet gets stolen. Changing the file name would just be some extra obfuscation.
It is probably going to take more time than it is worth it. Besides, even if it is named random.random it is still going to be in the Bitcoin folder and suspicious. As time goes by wallet stealers are going to be more sophisticated and they might pull those files as well. You can rename it to anything and move around the system. Just make sure to rename it back to wallet.dat and put it back into the directory when you use it.

Update:
However, I'm pretty sure that there needs to be a fair amount of changes in the code if you wanted to make your wallet work with a different name for the file. Looks like I was wrong and it can be done with a shortcut.

"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
😼 Bitcoin Core (onion)
Aggressor66
Hero Member
*****
Offline Offline

Activity: 728
Merit: 501



View Profile
July 21, 2015, 01:10:46 PM
 #5

If I understand correctly, the bitcoin address, the balance are public data, anyone gets the wallet file can see it, only he can't spend the money without the password?
So the easy solution is just to store your wallet.dat file in an encrypted file as it is not fully encrypted in itself - like your password manager's database.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
July 21, 2015, 01:53:06 PM
 #6

You can change the name of the wallet by using the -wallet flag every time you start the program. Something like this:
Code:
bitcoin-qt -wallet=newwallet.dat
It changes the name of the wallet but also needs to have that every time you run Bitcoin Core so that it doesn't create another wallet.dat file.

Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 509


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
July 21, 2015, 03:56:05 PM
 #7

You can change the name of the wallet by using the -wallet flag every time you start the program. Something like this:
Code:
bitcoin-qt -wallet=newwallet.dat
It changes the name of the wallet but also needs to have that every time you run Bitcoin Core so that it doesn't create another wallet.dat file.

It is better to create a shortcut, add that command and when you want to start Bitcoin core, use that shortcut.[1] Remember, auto start will create problems. To prevent this, turn off auto start in Bitcoin-qt and the created shortcut to C:\Users\Chachu\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

[1]


ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
July 21, 2015, 07:13:50 PM
 #8

You can change the name of the wallet by using the -wallet flag every time you start the program. Something like this:
Code:
bitcoin-qt -wallet=newwallet.dat
Thanks, where can I type
Code:
bitcoin-qt -wallet=newwallet.dat
? Guess it's not in de debug console? Or is it via bitcoin-cli?

"Panic Selling is not an Investment Strategy"
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
July 21, 2015, 07:32:48 PM
 #9

You can change the name of the wallet by using the -wallet flag every time you start the program. Something like this:
Code:
bitcoin-qt -wallet=newwallet.dat
Thanks, where can I type
Code:
bitcoin-qt -wallet=newwallet.dat
? Guess it's not in de debug console? Or is it via bitcoin-cli?
You do that when you start up the program. MZ posted above where to do that. In Windows, right click the shortcut for Bitcoin Core. and click properties. In the box where it says target, add
Code:
-wallet=<walletname>
at the end of the what is already there. Make sure there is a space before the dash. <walletname> is whatever you want to call the wallet. Click OK and then double click the shortcut to start Bitcoin Core.

ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
July 22, 2015, 10:10:35 AM
 #10

Thanks to you all guys  Wink

"Panic Selling is not an Investment Strategy"
d4n13
Full Member
***
Offline Offline

Activity: 210
Merit: 104


“Create Your Decentralized Life”


View Profile
July 22, 2015, 07:22:27 PM
 #11

Thanks to you all guys  Wink
There was a post about keeping the wallet and the DB on the same media... so be aware.

If you get hackish and spread the data to multiple disks (like me) you could corrupt when you have a blackout.

LFC_Bitcoin
Legendary
*
Offline Offline

Activity: 3710
Merit: 10446


#1 VIP Crypto Casino


View Profile
July 22, 2015, 09:45:10 PM
 #12

You can change the name of the wallet by using the -wallet flag every time you start the program. Something like this:
Code:
bitcoin-qt -wallet=newwallet.dat
It changes the name of the wallet but also needs to have that every time you run Bitcoin Core so that it doesn't create another wallet.dat file.

It is better to create a shortcut, add that command and when you want to start Bitcoin core, use that shortcut.[1] Remember, auto start will create problems. To prevent this, turn off auto start in Bitcoin-qt and the created shortcut to C:\Users\Chachu\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

[1]



Clever! Must admit I've been noticing you around a lot the last few months Muhammed Zakir & you're beginning to come across as one of the most helpful, knowledgable posters on here. Keep it up bro, we need more people like you on here.

█████████████████████████
███████████▄█████████████
██████▀░▀█▀░▀█▀░▀████████
███████▄███▄███▄█████████
████▀██▀██▀░▀████▀░▀█████
███████████░███▀██▄██████
████▀██▀██░░░█░░░████████
███████████░███▄█▀░▀█████
████▀██▀██▄░▄███▄░░░▄████
███████▀███▀███▀██▄██████
██████▄░▄█▄░▄█▄░▄████████
███████████▀█████████████
█████████████████████████
 
.Bitcasino.io.
 
.BTC  ✦  Where winners play  BTC.
.
..
.
    ..





████
████
░░▄████▄████████████▄███▄▄
░███████▄██▄▄▄▄▄▄█████████▄
███████████████████████████
▀████████████████████████▀
░░▀▀████████████████████
██████████████████▄█████████
██
▐███████▀███████▀██▄██████
███████▄██▄█▀████▀████████
░░██████▀▀▀▄▄▄████▀▀████
██▐██████████▀███▀█████████████    ████
███
████████████
███████████████    ████
█████▀████████████████▀
███████▀▀▀█████████▀▀
..
....
 
 ..✦ Play now... 
.
..
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
July 23, 2015, 05:51:11 PM
 #13

Thanks to you all guys  Wink
There was a post about keeping the wallet and the DB on the same media... so be aware.

If you get hackish and spread the data to multiple disks (like me) you could corrupt when you have a blackout.

I'm aware, I've tested it with a testnet wallet and apparently it doesn't work (in testnet?). Bitcoin-Qt (testnet) didn't know what to do and I got a popup "failed to salvage the wallet".

"Panic Selling is not an Investment Strategy"
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
July 23, 2015, 10:43:49 PM
 #14

my advice is simply change the default bitcoin directory add a password. i run all mine inside a VM and only use it for wallets.

adding a password and changing the default directory will mess up almost all the wallet stealers out there

ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
July 24, 2015, 06:58:00 AM
 #15

my advice is simply change the default bitcoin directory add a password. i run all mine inside a VM and only use it for wallets.

adding a password and changing the default directory will mess up almost all the wallet stealers out there
Indeed, a good advice. Thanks.

"Panic Selling is not an Investment Strategy"
Christian1998
Sr. Member
****
Offline Offline

Activity: 474
Merit: 500


View Profile
July 27, 2015, 01:39:33 PM
 #16

If you know how to code a stealer, its not needed that the wallet.dat is named as wallet.dat, the wallets have all ~ the same size for example.
You need to search only the complete machine for files which have ~ the size and are ending with .dat.
Then you can zip these files with a password and sent them over an email to the spreader of the stealer.
I hope all understand my bad english ^^
Best regards Christian
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
July 27, 2015, 03:01:04 PM
 #17

If you know how to code a stealer, its not needed that the wallet.dat is named as wallet.dat, the wallets have all ~ the same size for example.
You need to search only the complete machine for files which have ~ the size and are ending with .dat.
Then you can zip these files with a password and sent them over an email to the spreader of the stealer.
I hope all understand my bad english ^^
Best regards Christian
Actually they will not be the same size. Wallets with more keys will be bigger. Also, I don't think that they all will end with .DAT. I'm pretty sure that the extension can be changed.

Christian1998
Sr. Member
****
Offline Offline

Activity: 474
Merit: 500


View Profile
July 27, 2015, 03:08:16 PM
 #18

Actually they will not be the same size. Wallets with more keys will be bigger. Also, I don't think that they all will end with .DAT. I'm pretty sure that the extension can be changed.
Of course you can change the extension. But you need to change it, and compile your own ^^
The size is smaller than X and bigger than Y, so the "Bot" can search the file.
Have a nice day

Christian
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
July 27, 2015, 04:11:31 PM
 #19

Actually they will not be the same size. Wallets with more keys will be bigger. Also, I don't think that they all will end with .DAT. I'm pretty sure that the extension can be changed.
Of course you can change the extension. But you need to change it, and compile your own ^^
The size is smaller than X and bigger than Y, so the "Bot" can search the file.
Have a nice day

Christian

Is that so?

I just ran: c:\Program Files\Bitcoin\bitcoin-qt.exe -wallet=Christian1.998 and I now have a wallet file with that name. Its 88 kbyte. I also have a file named wallet.dat that is 421696 kbyte. Its an acutally wallet file and its not protected by a password (sounds juicy, right?).
I did not compile anything for this and I dont think there is an upper bound to the size of a wallet file. 400 MB is pretty much the upper bound of what I want to run, but other people might see this differently. Anyway I did a quick search and found 88603 files that match that size range. The system is not even a month old.

Im not really here, its just your imagination.
Christian1998
Sr. Member
****
Offline Offline

Activity: 474
Merit: 500


View Profile
July 27, 2015, 04:17:03 PM
 #20

Is that so?
I just ran: c:\Program Files\Bitcoin\bitcoin-qt.exe -wallet=Christian1.998 and I now have a wallet file with that name. Its 88 kbyte. I also have a file named wallet.dat that is 421696 kbyte. Its an acutally wallet file and its not protected by a password (sounds juicy, right?).
I did not compile anything for this and I dont think there is an upper bound to the size of a wallet file. 400 MB is pretty much the upper bound of what I want to run, but other people might see this differently. Anyway I did a quick search and found 88603 files that match that size range. The system is not even a month old.
Ive forgotten that you can specify the extension over the comandline ^^
But if you just start it with your folder, your wallet gets saved in the appdatadir right ? If you search only in this location, and zip the found files then you got all possible "wallets".
Best regards

Christian
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!