This is just a quick guide for people interested in generating a vanity Bitcoin address on Kali Linux.  A vanity Bitcoin address looks like 1hack6wuMWBaWe2wgvJWZCSTTipyD1sTW, notice the prefix "1hack".  We will be using oclvanitygen and a Nvidia GTX 1070 GPU.  The same concepts also apply when using the standard vanitygen and a CPU.  Though on my test machine the processor puts out around 1Mkey/s and using a Nvidia GTX 1070 I can produce around 54-58Mkey/s.  So GPU computing tends to be the way to go for most tasks.

Step 1: Install Drivers

First you have to install the drivers for your graphics card.

For Nvidia cards you can install the drivers using the commands below.  If you use an AMD card then install those drivers and skip to step two.

#install nvidia drivers
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
apt-get install nvidia-opencl-icd
reboot
glxinfo | grep -i "direct rendering"
##should output - direct rendering: Yes (if not run "apt-get --reinstall install nvidia-driver bumblebee-nvidia" and "reboot")

Step 2: Install the required Dependencies.

apt-get install opencl-headers libssl1.0-dev libpcre3-dev ocl-icd-dev ocl-icd-dbg

Step 3: Link OpenCL

locate libOpenCL.so
 >/usr/lib/i386-linux-gnu/libOpenCL.so.1
 >/usr/lib/i386-linux-gnu/libOpenCL.so.1.0.0
 >/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
 >/usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0
 >/usr/share/man/man7/libOpenCL.so.7.gz

Note how the output will likely have .1 appended to it, so create a symbolic link to libOpenCL without .1 to avoid compile errors.

ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so

Step 4: Clone Repo and Make oclvanitygen

cd ~
git clone https://github.com/exploitagency/vanitygen-plus.git
cd vanitygen
make all

Step 5: Generate Vanity Address

This command uses GPU0 and prefix "1hack" to generate a Bitcoin address to be saved to file Address.txt

./oclvanitygen -D 0:0 -o Address.txt 1hack
 >Difficulty: 264104224
 >Pattern: 1hack                                                                 
 >Address: 1hack6wuMWBaWe2wgvJWZCSTTipyD1sTW
 >Privkey: 5JYAjf3dMK3uPe97mhxprD8i4cSdmSvUFWD3YPnJvova7YMiSJt

Some important flags to remember.

-v   verbose

-k  Keeps generating vanity addresses after match is found.

-i   Ignores case.  Finds vanity addresses faster by allowing uppercase and lowercase variations.

-o <file>     Write pattern matches to <file>

-D 0:0   Select GPU to mine with, can use multiple GPU with "-D 0:0 -D 0:1", to see a list of devices run oclvanitygen without the -D flag

Step 6: Import Private Key to Wallet

If you use the web client: https://blockchain.info/wallet/

  • Login
  • On left hand menu: Settings->Addresses
  • Scroll down and click: + Import Address
  • Copy/Paste the Privkey (in this example: 5JYAjf3dMK3uPe97mhxprD8i4cSdmSvUFWD3YPnJvova7YMiSJt)

 If you use the Blockchain.info App

  • On Kali: apt-get install qrencode
  • On Kali: qrencode PRIVATE-KEY -o key.jpg (in this example: qrencode 5JYAjf3dMK3uPe97mhxprD8i4cSdmSvUFWD3YPnJvova7YMiSJt -o key.jpg)
  • On Kali: display key.jpg
  • On App: Open app and enter Pin
  • Click Menu->Addresses
  • Scroll to Import Address
  • Now Scan QR-Code you Generated on Kali box

Be sure to make an encrypted backup of your keys and delete any files generated from oclvanitygen.  It is also a good idea to always generate keys offline and try sending a tiny amount to and from address to verify it is working properly.  Then generate a new virgin address.

Please donate to our website if this guide has helped you!  Our address and qr code is located in the footer at the bottom of this page, just scroll down to view it.

-------
Fix libcrypto.so.1.0.2 error(Debian, Ubuntu, Kali)
-------
./vanitygen: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory

cd ~
mkdir deps
cd deps
wget http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6-udeb_2.24-9_amd64.udeb
dpkg -i libc6-udeb_2.24-9_amd64.udeb
wget http://ftp.us.debian.org/debian/pool/main/o/openssl1.0/libcrypto1.0.2-udeb_1.0.2k-1_amd64.udeb
dpkg -i libcrypto1.0.2-udeb_1.0.2k-1_amd64.udeb
cd ..
rm deps -R
-------
END Fix libcrypto.so.1.0.2 error(Debian, Ubuntu, Kali)
-------

Add comment


Copyright © 2015- Legacy Security Group


Please consider supporting my site by clicking start below!
Loading...
Donate Bitcoin:

1egacySQXJA8bLHnFhdQQjZBLW1gxSAjc