Results for basic-kali

Damn important Things to do after installing Kali Linux - By Paid Hackers

00:13
things to do after installing kali linux by paid hackers
With a percentage of the stuff I concentrate on, I get the opportunity to manufacture Virtual Machines, Raspberry PI's and different gadgets that run Kali Linux. For those that don't have the foggiest idea about this is a Linux Distribution particularly made for penetration testing and possibly a touch of hacking.

The last one I based was on my Lenovo tablet at home, deciding to run it as my essential working system and run Windows inside Virtual Machines as required.

To introduce Kali Linux just download the ISO from here, then either copy it to a DVD or a bootable USB drive. I like to utilize the USB alternative and utilize the "Universal USB Installer" device to make the bootable USB drive. There are huge amounts of excercises on the best way to introduce this so I will leave that for you to Google or Bing.

After I setup Kali Linux I like to roll out a couple of improvements to the system, to make it more usable for me. The accompanying rundown are things that I do.
  1. Change default SSH keys (if I used the Virtual Machine image)
  2. Update, Upgrade and Distribution Upgrade
  3. Fix Device Not Managed Error
  4. Change the Default Repository
  5. Enable Sound
  6. Install Chrome and Chromium
  7. Remove Iceweasal and Install Firefox
  8. Install Java
  9. Install Flash
  10. Install an Archive Manager
  11. Setup Tor
  12. Setup “Wine” to run Windows Applications
These things improve my experience and I can then utilize this as my essential operating system.

Change Default SSH Keys


At the point when utilizing the standard Virtual Machine Image offered, the "SSH" keys are the same which obviously for security reason you wouldn't need. To change them, we have to duplicate the first ones to keep them safe, yet produce new ones. To begin, explore to the accompanying folder and run the commands.
change default ssh keys on kali linux after installinh kali linux
1cd /etc/ssh
2mkdir original_ssh_keys
3mv ssh_host_* original_ssh_keys/

Now to generate the new keys we need to run the following command.

generating new keys in ssh in kalin inux after installing kali linux
1dpkg-reconfigure openssh-server

This will then make new H keys, so when we join over SSH it ought to request that we acknowledge the key and we ought to now have the capacity to remotely SSH to the Kali Linux machine (if the systems administration is set up.

In the event that you can't SSH then check the network and firewalls first and foremost, and afterward watch that you really have "openssh-server" introduced.

Update, Upgrade and Distribution Upgrade


This done very easily using the following command line:




update and upgrade and distribution upgrade after installing kali linux
1apt-get update

Once this has completed then you can run the upgrade by running the following command:

upgrade kali linux after installing kali lnux
1apt-get upgrade
 
To perform a distribution upgrade run the following command:

distribution upgrade after installing kali lnux
1apr-get dist-upgrade

You can run all of these command together using the following command:

updating, upgrading after installing kali lnux
1apt-get update && apt-get upgrade && apt-get dist-upgrade

Fix Device Not Managed Error


This is an issue that means you are unable to manage the network adapter using the Network Manager.
Fix Device Not Managed Error after installing kali linux

To resolve this you will need to run the following command to open the “NetworkManager.conf“.

resolve error in network after installing kali linux
Once this is open simply change the “managed=false” to be “managed=true“.




fix error in kali linux after installing kali linux
fix error in kali linux after installing kali linux

Once this is done the core Network Manager will be able to manage the device.

Change the Default Repository


The core repositories that Kali Linux uses for updates, is set to the following:

Change the Default Repository after installing kali linux

To change them run the following command:

Change the Default Repository after installing kali linux
1leafpad /etc/apt/source.list

I set them to these instead, giving me better updates and selection of components.

Change the Default Repository after installing kali linux
1## Regular repositories
2deb http://http.kali.org/kali kali main non-free contrib
3deb http://security.kali.org/kali-security kali/updates main contrib non-free
4## Source repositories
5deb-src http://http.kali.org/kali kali main non-free contrib
6deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
As with a previous step, I normally run an update, and upgrade after modifying the sources.

Enable Sound


To enable sound on Kali, you first need to install the required components. To do this we need to run the following command.

Enable Sound at boot after installing kali linux
1apt-get install alsa-utils -y

Next we need to bring up the settings for the sound, and then enable it.

Enable Sound at boot after installing kali linux
Enable Sound at boot after installing kali linux


Install Chrome and Chromium


The easiest way to install Chrome is to really just download the latest version from the chrome site. https://www.google.com/chrome
It should then prompt you to install the “*.deb” version of Chrome, I choose the following version.

Install Chrome and Chromium after installing kali linux

Once it is download, you need to run the following command.

Install Chrome and Chromium after installing kali linux
1dpkg -i google-chrome-stable_current_amd64.deb

This will install Google Chrome, once it is done, click to launch it.

Install Chrome and Chromium after installing kali linux
If you get an error like this when launching Chrome you will need to make some changes.

Install Chrome and Chromium after installing kali linux
Install Chrome and Chromium after installing kali linux
1nano /opt/google/chrome/google-chrome
Scroll to this line and modify.

Install Chrome and Chromium after installing kali linux
Install Chrome and Chromium after installing kali linux
Then when you try it again it should now load as expected.
I also like to run Chromium as a backup, plus it gives me a different version of the Chrome base to use in testing. This can be done by running the following command.

Install Chrome and Chromium after installing kali linux
1apt-get install chromium
Once it is installed if you try to run it and you get the same error as Chrome did then you need make the following changes.

Install Chrome and Chromium after installing kali linux
1nano /etc/chromium/default
You now need to change the following line.

Install Chrome and Chromium after installing kali linux
Install Chrome and Chromium after installing kali linux

Remove Iceweasel and Install Firefox


Even though “Iceweasel” is technically Firefox, I found it much better to actually install the latest “Firefox Browser“, as this is one that most people would be using instead of “Iceweasel“.
Firstly we need to remove “Iceweasel” using the following command.

Remove Iceweasel and Install Firefox in kali linux after installing kali linux
1apt-get remove iceweasel
Now we need to add a source so we can be able to run the “apt-get” command to install it.

Remove Iceweasel and Install Firefox in kali linux after installing kali linux
1echo -e "\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | tee -a /etc/apt/sources.list > /dev/null
Once done we need to import the “GPG” key using this command.

Remove Iceweasel and Install Firefox in kali linux after installing kali linux
1apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
Now we can perform an update and tell it to install “Firefox”

Remove Iceweasel and Install Firefox in kali linux after installing kali linux
1apt-get install firefox-mozilla-build
Once it is installed you should be able to run it without any errors.

Remove Iceweasel and Install Firefox in kali linux after installing kali linux
Of course I renamed it from its original one.

Install Java

We all know that even with all the issues Java has had recently, that a ton of devices still use it and we need it too.
To install it, firstly visit the site and download the latest version.
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

installing java in kali linux after installing kali linux
Extract the downloaded file.

installing java in kali linux after installing kali linux
1tar -xzvf jdk-7u71-linux-x64.tar.gz
Move this to the “/OPT/” directory and then change to that directory.

installing java in kali linux after installing kali linux
1mv jdk1.7.0_71/ /opt/
installing java in kali linux after installing kali linux
1cd /opt/jdk1.7.0_71/
Now we need to run the following commands.

installing java in kali linux after installing kali linux
1update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_71/bin/java 1
2update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_71/bin/javac 1
3update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_71/jre/lib/amd64/libnpjp2.so 1
4update-alternatives --set java /opt/jdk1.7.0_71/bin/java
5update-alternatives --set javac /opt/jdk1.7.0_71/bin/javac
6update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_71/jre/lib/amd64/libnpjp2.so

Install Flash


Whether you like Flash or not, there are still many sites that need Flash, as well as a few occasions where you would need it during testing. To install it, use the following command.

install flash in kali linux after installing kali linux
1apt-get install flashplugin-nonfree

Once this has completed, you need to then run the following command.

install flash in kali linux after installing kali linux
1update-flashplugin-nonfree --install
It should now be installed.

Install an Archive Manager


Kali Linux does not come with a great Archive Manager with a GUI, so I choose to install the following using the command line.

Install an Archive Manager in kali linux after installing kali linux
1apt-get install unrar unace rar unrar p7zip zip unzip p7zip-full p7zip-rar file-roller -y

Setup Tor


When working with Kali Linux you may need to hide the traffic, force it to come from a different country or just need some privacy then we can install “Tor“. This can be installed using the following command.

setup and installing tor in kali linux after installing kali linux
1apt-get install tor

Once this is installed successfully we now need to download the “Tor” client from the following link: https://www.torproject.org/dist/torbrowser/4.0.2/tor-browser-linux64-4.0.2_en-US.tar.xz
We then need to extract the downloaded file using the following command, change the directory to the newly created “tor-browser_en_US” folder and then run the “./start-tor-browser”

setup and installing tor in kali linux after installing kali linux
1tar xf tor-browser-linux64-4.0.2_en-US.tar.xz

If you get an error about running as root then you need to make a change to the “start-tor-browser” file. Open the file in “leafpad“., and comment out the section listed below.

setup and installing tor in kali linux after installing kali linux
1leafpad start-tor-browser
3

This should now launch as expected, however if you then get an error like this, you need to run the following command within the “tor-browser_en_US”

setup and installing tor in kali linux after installing kali linux
setup and installing tor in kali linux after installing kali linux

1chown -R root /root/Downloads/tor-browser_en-US/Browser/TorBrowser/Data/Tor
Once done this should now load as expected.
setup and installing tor in kali linux after installing kali linux
setup and installing tor in kali linux after installing kali linux
setup and installing tor in kali linux after installing kali linux


Setup “Wine” to run Windows Applications


“Wine” allows us to install certain Windows Applications and run then natively on Kali Linux. This useful for things like “Notepad++” which is a great tool to be able to use, I also like to install “Soap UI” for testing too. To set it up we first need to make our system a “Multi Architecture” system by running the following command.

Setup “Wine” to run Windows Applications after installing kali linux
1dpkg --add-architecture i386

This should take a second to run, then we need to update the system using the standard “apt-get update” command. Once done we can then run the following command to install “Wine“.

Setup “Wine” to run Windows Applications after installing kali linux
1apt-get install wine-bin:i386

Once it has completed, we then need to configure it to run in the operating system of our choice. For me I like to use “Windows 7“. Open the main menu, select “System Tools”, then access the “Wine Configuration” item.


Setup “Wine” to run Windows Applications after installing kali linux

Once this has loaded you should have the configuration tool open, where you can change the “Windows Version” from the default of “Windows XP” to whatever you want from the menu.
Setup “Wine” to run Windows Applications after installing kali linux

Now apply those changes and it should close. To test this I am going to download “Notepad++” from here: http://download.tuxfamily.org/notepadplus/6.7/npp.6.7.Installer.exe
Once it is downloaded, in the command prompt use the following command.

Setup “Wine” to run Windows Applications after installing kali linux
1wine npp.6.7.Installer.exe

It should then launch the installer like this.

Setup “Wine” to run Windows Applications after installing kali linux
Setup “Wine” to run Windows Applications after installing kali linux
Setup “Wine” to run Windows Applications after installing kali linux

It should then launch as you would expect on Windows.

Setup “Wine” to run Windows Applications after installing kali linux
With this introduced, we are then ready to introduce different Windows Applications, but not every one of them but rather helpful ones that we require. Office 2007 introduces fine yet others have a couple issues.

When all the above are finished my Kali Linux is currently better to utilize. Different things I additionally not reported here but rather will in future post are:
  1. Virtual box Installation
  2. “Lazykali” Script Setup
  3. Enabling Multi-Factor to SSH using Google Authenticator Service
  4. Install other utilities to make my life easier
                              Sincerely Paid hackers
Damn important Things to do after installing Kali Linux - By Paid Hackers Damn important Things to do after installing Kali Linux - By Paid Hackers Reviewed by amit on 00:13 Rating: 5
Powered by Blogger.