Installing John The Ripper on Ubuntu 18.04.02
How To Install JTR
Login
sudo bash
apt-get install john
The application will install. Now run it to check the benchmarks
john –test
Login
sudo bash
apt-get install john
The application will install. Now run it to check the benchmarks
john –test
Open a Command Prompt on the Windows 10 Computer and type:
netsh wlan show profiles
Identify the network you want to show the password for…Ex. HOME
netsh wlan show profile name=HOME key=clear
Look for the line that says Key Content and that will be your wireless password.
A tip for the masses. Once a user is done on your network, erase your network from their device….otherwise your password can be compromised and your privacy is at risk.
AND if you have the ability to have a guest network at your house, set it up. Keep your network secure.
On your Kali box, you will want to go to the AMD Driver download page for the RX 480 Cards
Once there you will want to download the UBUNTU Drivers
After the download completes, open a Terminal
Navigate to the directory where you downloaded the drivers and type
tar -xJvf amd(AND THE REST OF THE NAME OF THE FILE)
cd to the amd driver directory
nano amdgpu-pro-install
ctrl +w and search for ubuntu
After the ubuntu | linuxmint | debian text, insert | kali
So the line will look like
ubuntu | linuxmint | debian | kali
Save the file and exit
Type the following to install the drivers, and it should go through now. If you encounter any errors, you may need to repair and reinstall the drivers
./amdgpu-pro-install -y –opencl=legacy
sudo nano /etc/apt/sources.list
Add the following if they are not already in the file:
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
Save and Exit the File
sudo apt-get update
Your packages should now be available
WordPress, by default, changes the code you place into posts and merges items like “–” into “-” so articles don’t show properly. To fix this error do the following:
Modify your site’s wp-includes/formatting.php file
***Make a Backup Copy of this file before you modify it, so you can roll back if it doesnt work***
Remove the following lines:
// Dashes and spaces
$dynamic[‘/—/’] = $em_dash;
$dynamic[ ‘/(?<=^|’ . $spaces . ‘)–(?=$|’ . $spaces . ‘)/’ ] = $em_dash;
$dynamic[‘/(?<!xn)–/’] = $en_dash;
$dynamic[ ‘/(?<=^|’ . $spaces . ‘)-(?=$|’ . $spaces . ‘)/’ ] = $en_dash;
$dynamic_characters[‘dash’] = array_keys( $dynamic );
$dynamic_replacements[‘dash’] = array_values( $dynamic );
Save the file
Now browse to the pages on your website and refresh the page/pages that had the issue. You should now see the Double Dash “–“
A question that has been asked multiple times is how do I know what my risk is at the border of my network….Miners and Wallet holders are concerned due to the increased risk of compromised wallets, and compromised mining rigs. So to answer this I will send you to a few quick places to do a spot check on your exposure.
There you have it. Some quick tools to see what the perimeter of your network looks like. Remember to follow up on every open port, banner, and CVE…lock your system down now before it is compromised.
Simple Command To Install Alfa Drivers
Open a terminal and escalate your privelages
sudo bash
apt install wireless-tools
iwconfig
Note your wireless adapters…if any are installed
apt-get install realtek-rtl8812au-dkms
Drivers will install, this may take a few minutes.
Once it is done type the following
iwconfig
You will now see your ALFA wireless card
In the coming weeks I will be writing more about how to check the perimeter of your network, understand what data is leaking out from it, and how to safeguard your network, and especially your wallet from bad actors. These tools are the beginning, I will wrap it altogether piece by piece.
Log into your Ubuntu rig
Install zmap and zgrab
sudo bash
apt install zmap
apt install golang-go
go get github.com/zmap/zgrab
cd /home/USERNAME/go/src/github.com/zmap/zgrab
go build
Test it by running the following from a remote system, against your network
zmap -p 30303 (Your Public IP Here) –output-fields=* –output-file=results.csv | zgrab –port 30303 -banners –output-file=banners.json
Within the search box on shodan.io, you can mix and match combinations of each of the following below to gather together results:
To Search by Country
country:US
To Search by Vulnerability using the CVE from HERE
vuln:CVE-2018-5281
These are self explainatory
city:”New York”
port:21,1098,389
category:malware
net:190.30.40.0/24 – ip address or range
org:”Verizon Wireless” – organization
after:”25/12/2018″ – results after a certain date
before:”25/12/2010 “– results before a certain date
os: – operating system
isp: – ISP managing their Net Block
postal: – postal code
product: – name of software or product
version: – version of software
uptime: – how long a host has been up
To Exclude Certain Results add a “-” sign
-city:”New York”
This guide assumes that you have Ubuntu 18.04 setup fresh.
On another computer, download the AMD drivers from the vendor’s website
Use winscp and move them to the computer
On the Mining Rig, login, and from the command line you will want to navigate to the directory you copied your AMD Drivers to….most likely it will be your home directory (/home/username/)
sudo bash
apt-get update && apt-get upgrade
ls
Look for those AMD Drivers
tar -xJvf amdgpu-pro-18.50-756341-ubuntu-18.04.tar.xz
cd amdgpu-pro-18.50-756341-ubuntu-18.04/
sudo dpkg –add-architecture i386
./amdgpu-pro-install -y –opencl=legacy
mkdir /miner && cd /miner
apt install clinfo -y
apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev
apt-get install libssl-dev
git clone https://github.com/xmrig/xmrig-amd.git
mkdir xmrig-amd/build
cd xmrig-amd/build
cmake ..
make
apt install mesa-opencl-icd -y
nano loki.sh
@echo off
./xmrig-amd -a cryptonight-ultralite –donate-level 1 -o loki.miner.rocks:4005 -u LChtjHqr29p5FojLdMtcUW5ApLWyQHH5j4366V78YECEjUkgK99Y7uLDVLpHjXpYM3UcZ39FFL5Gvd4debF95mcJHbnx5ke -p w=rx480 -k -o ca.loki.miner.rocks:4005 -u LChtjHqr29p5FojLdMtcUW5ApLWyQHH5j4366V78YECEjUkgK99Y7uLDVLpHjXpYM3UcZ39FFL5Gvd4debF95mcJHbnx5ke -p w=rx480 -k
pause
Save the file and Exit
chmod +x loki.sh
./loki.sh
And your rig will begin to mine