Recovery - Blockchain
Task
We are The Profits. During a hacking battle our infrastructure was compromised as were the private keys to our Bitcoin wallet that we kept. We managed to track the hacker and were able to get some SSH credentials into one of his personal cloud instances, can you try to recover my Bitcoins?
Username: satoshi Password: L4mb0Pr0j3ct
NOTE: Network is regtest, check connection info in the handler first.
Solution
We get SSH credentials satoshi:L4mb0Pr0j3ct
and the number of 3 different port numbers 53834
, 51098
, 24985
. We can connect to the first port, which is 53834
using netcat:
According to the information we get to obtain the flag we need to find some way to recover Bitcoins from the hacker and send them to the following wallet address:
In satoshi
user's home directory we can find a directory called wallet
which contains the electrum-wallet-seed.txt
file. This file contains 10 words:
As the electrum-wallet-seed.txt
file name suggests these words are the seed we should use to recover the attacker's wallet. To recover the attacker's wallet, we need to install Electrum.
Electrum
On the Electrum start screen, we can choose which wallet we want to use, in this case, we want like to recover the wallet, so we can continue with the default wallet name:
Leave the Standard wallet
option selected and click Next
:
Then we select the I already have a seed
option and we go to the next window:
Then let's enter the seed, which is the 10 words found in the electrum-wallet-seed.txt
file:
Leave the wallet password blank and click Finish
:
We successfully recovered the attacker's wallet with 1000 Bitcoins. Now we have to make a transfer. As the transfer amount we have to set 999.835 BTC, due to we have to pay 0.165 BTC as the mining fee:
After sending payment, we should be able to obtain a flag. Let's connect using the netcat
as before and select 1 to get the flag:
Flag:
Last updated