Categories
Kali Linux Tutorial

How to Install Whatsapp in Kali Linux

This post was prepared for guide you how to install Whatsapp in Kali Linux. The steps followed in this post is same to all other Debian distributions.

Official Whatsapp community don’t release anything for Linux. So whatsapp is not supported in Linux. So am going to install whatsdesk for using whatsapp in Linux.

WhatsDesk:

WhatsDesk (Unofficial Whatsapp for linux) is released by Snap Store. It allows you to use Whatsapp in Linux, the same as how whatsapp working in Windows. So no worry about anything.

Snap Store:

Snap store is a graphical desktop application for discovering, installing and managing snaps on Linux. Simply snap store is a play store for Linux.

If you want to run Android Apps in Linux >>>>> AnBox– Android Emulator for Linux

Install Snapd:

Snapd is also known as Snappy. It is a software packaging and deployment system developed by Canonical for the operating systems that use the Linux kernel.

In terminal, run the following command for installing snapd.

mk007@linuxlia:~$ sudo apt-get update
mk007@linuxlia:~$ sudo apt-get install snapd
mk007@linuxlia:~$ sudo systemctl enable --now snapd apparmor

Install WhatsDesk:

After installing snapd run the following command for installing WhatsDesk.

mk007@linuxlia:~$sudo snap install whatsdesk

Whatsdesk was started to installing. Now is the time to take little break. Because I could not specify ‘how long it would take for complete it?’. Luckily for me the packages are downloaded in half an hour. Downloading speed is dependent on your system’s network speed. after this step you was ready to rock.

WhatsDesk:

After the complete installation, execute it, using the following command.

mk007@linuxlia:~$ whatsdesk

Shit, I was encountered by the following error.

Command 'sudo' is available in '/snap/bin/sudo'
The command could not be located because '/snap/bin' is not included in the PATH      
environment variable.
snap: command not found

This error occurs due to to path variable mess up.

Solution:

First of all change the directory to ‘/snap/bin’

mk007@linuxlia:~$ cd /snap/bin

Here run the following command for resolving this error.

mk007@linuxlia:~$ export PATH=$PATH:/snap/bin

Finally the shit was successfully resolved.

Now run whatsdesk,

mk007@linuxlia:~$ whatsdesk

Scan this QR code in your WhatsApp (Installed in Mobile).

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial

How to Run Android Apps in Kali Linux

In Software era, lots of software are introduced for Linux. Linux also have all the facilities compared to windows. But some geeky nerds are want to run android apps in Linux.  Linux doesn’t have any special options for using android apps. So, I use AnBox for running android apps in Linux.

So, this post was prepared for guide you how to install AnBox and How to run android apps in Kali Linux.

AnBox:

Anbox is a free and open-source compatibility layer that aims to allow mobile applications and mobile games developed for Android to run on Linux distributions. Canonical introduced Anbox Cloud, for running Android applications in a cloud environment.

The steps followed in this post is same to all other Linux distributions.

Steps:

  • Install Prerequisites
  • Setup Environment
  • Install Snapd (Snap Store)
  • Install AnBox

Install Prerequisites:

Before installing AnBox, you need to install the common software prerequisites of your Linux distro.

In terminal, run the following command.

mk007@linuxlia:~$ sudo apt-get install software-properties-common

Setup Environment:

First of all you need to create two loadable kernel modules, for running AnBox in Linux.

Run the following command for creating kernel module.

mk007@linuxlia:~$ sudo modprobe ashmem_linux
mk007@linuxlia:~$ sudo modprobe binder_linux

Alright, successfully you created a kernel modules. Check it created or not.

mk007@linuxlia:~$ ls -1 /dev/{ashmem,binder}

Install Snapd:

Snapd is also known as Snappy. It is a software packaging and deployment system developed by Canonical for the operating systems that use the Linux kernel.

Snap Store:

Snap store is a graphical desktop application for discovering, installing and managing snaps on Linux.

In terminal, run the following command for installing snapd.

mk007@linuxlia:~$ sudo apt-get update
mk007@linuxlia:~$ sudo apt-get install snapd
mk007@linuxlia:~$ sudo systemctl enable --now snapd apparmor

If you want to use WhatsApp in Linux >>> Install WhatsApp

Install AnBox:

Now install Anbox using snapd.

Open a terminal and run the following command for installing AnBox.

mk007@linuxlia:~$ sudo --devmode --beta anbox

Finally, AnBox was successfully installed.

Update AnBox:

If you want to update AnBox, then use the following command.

mk007@linuxlia:~$ sudo snap refresh --beta --devmode anbox

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial

How to Install ZenMap in Kali Linux 2021

Hi Geeks,

This post was prepared for guide you how to install ZenMap in Kali Linux.

ZenMap:

Zenmap is the official Nmap Security Scanner GUI. It is a multi-platform (Linux, Windows, Mac OS X, BSD, etc.) free and open source application which aims to make Nmap easy for beginners to use while providing advanced features for experienced Nmap users.

Installation Steps:

  • Install Python 2.7
  • Install nmap
  • Download ZenMap RPM Package
  • Install Alien
  • Convert RPM to DEB
  • Install ZenMap

 

Install Python 2.7:

First of you need to install python 2.7 for executing ZenMap. Because zenmap is only supported in Python 2.7. In Default, Kali Linux have python 3. So, you doesn’t able to run ZenMap.

Steps for installing python 2.7:

  • Prerequisites for Python
  • Download Python 2
  • Compile python source code.
  • Check python version.

Step 1 : Prerequisites for Python 2

You must want to install the following prerequisites on your system. Open a terminal and execute the following commands on your system for installing all the required dependencies.

mk007@linuxlia:~$ sudo apt-get update
mk007@linuxlia:~$ sudo apt-get install build-essential checkinstall
mk007@linuxlia:~$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev li

Step 2 : Download Python 2.7

Open a terminal and switch the directory to /usr/bin.

mk007@linuxlia:~$ cd /usr/src

Here run the following command for downloading python2 tgz packages.

mk007@linuxlia:~$ wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz

Now extract the tgz packages by running the below command.

mk007@linuxlia:~$ sudo tar xzf Python-2.7.18.tgz

Step 3 : Compile Python Source

Use the following commands to compile Python source code on your system using altinstall.

mk007@linuxlia:~@ cd Python-2.7.18
mk007@linuxlia:~@ sudo ./configure --enable-optimizations
mk007@linuxlia:~@ sudo make altinstall
make altinstall command is used to prevent replacing the default python binary file /usr/bin/python.

Step 4 : Check Python Version

Check the version of python using the following command.

mk007@linuxlia:~@  python2.7 -V
Python 2.7.18

Install Nmap:

Before installing ZenMap, you need to install Nmap. In terminal, run the following apt command,

mk007@linuxlia:~@ sudo apt-get install nmap


Download ZenMap RPM Packages:

After installing Nmap, download zenmap .rpm packages in there official site.

Click the link”zenmap-7.91-.noarch.rpm“.

ZenMap .rpm package was started to download automatically.

You need to convert this rpm package to debian packages. Use alien file converter for doing this.


Install Alien:

If you install alien via apt command, then the following error was occurs.

package build failed. here's the log:
dh
dh: error:specify sequence to run
make:***[debian/rules:7:binary]Error 25

So, first of all you need to remove this alien and install it in my method.

Read this post for perfect installation >>>> Alien Installation Guide 


Convert RPM to DEB:

First of switch the directory to where was the downloaded file was  located.

mk007@linuxlia:$ cd Downloads

Here run the command in below format.

mk007@linuxlia:/Downloads$ sudo alien package_name.rpm

The generated Debian package ownership was under root. You need to change the ownership of the file before you use it. Run the following command for changing the ownership.

mk007@linuxlia:$ sudo chown -v 'username' genarated_package_name.deb

 


Install ZenMap:

Now run the following dpkg command for installing zenmap.

mk007@linuxlia:$ sudo dpkg --install zenmap.deb

Finally ZenMap was successfully installed.


Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Debugging Kali Linux Tutorial

How to Install Alien in Kali Linux

Hi Geeks,

This post was prepared for guide you how to resolve the following error and how to install Alien file converter in Kali Linux. The steps followed in this post is also same to all other Debian distributions.

package build failed. here's the log:
dh
dh: error:specify sequence to run
make:***[debian/rules:7:binary]Error 25

Most of the peoples are encountered by this error,  during ZenMap installation.

Why this error occurs?

If you install alien via apt command, then the following error was occurs. So, first of all you need to remove this alien and install it in my method.

Resolving Steps:

  • Remove Alien
  • Download Alien Debian Packages

Remove Alien:

Run the following command for removing the packages installed via apt command.

mk007@linuxlia:$ sudo apt-get autoremove alien

Download Alien Debian Packages:

Download Alien deb packages in this site.

In terminal switch the directory to where was the debian packages are located.

mk007@linuxlia:$ cd Downloads

Here run the following command,

mk007@linuxlia:/Downloads$ sudo dpkg -i alien.deb

Alien:

Alien is a tool, used for converting various file formats in Linux. Mainly its used for converting Debian (.deb) packages to RPM packages.

What is RPM Files?

RPM means RedHat Package Manager. RPM packages are containing arbitrary set of files.

What is DEB Files?

Deb is a abbreviation of Debian Packages, as opposed to source package.

File Conversion:

In this post I will teach you how to convert the following formats.

  • RPM to DEB
  • DEB to RPM

RPM to DEB:

If you want to convert rpm packages to deb, then run the command in below format.

mk007@linuxlia:$ sudo alien package_name.rpm

The generated Debian package ownership was under root. You need to change the ownership of the file before you use it. Run the following command for changing ownership.

mk007@linuxlia:$ sudo chown -v 'username' genarated_package_name.deb

 

DEB to RPM:

For converting Debian packages to rpm, run the command in below format.

mk007@linuxlia:$ sudo alien -r package_name.deb

The generated RPM package ownership is under root. Run the following command for changing the ownership of the file.

mk007@linuxlia:$ sudo chown -v 'username' genarated_package_name.rpm

 

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial

How to Install Steam in Kali Linux 2021

   This post was prepared for guide you how to install Steam in Kali Linux.

Steam:

   Steam is a video game digital distribution service by Valve. The software provides a freely available application programming interface (API) called Steamworks, which developers can use to integrate many of Steam’s functions into their products, including in-game achievements, microtransactions, and support for user-created content through Steam Workshop. Though initially developed for use on Microsoft Windows operating systems, versions for macOS and Linux were later released.

How to Install Steam:

Installing Steam is pretty simple. Follow the steps for perfect installation.

Steps:

  • Download Steam .deb package
  • Install Gdebi
  • Steam Launcher
  • Add 32 Bit Version
  • Execute Steam

Download Steam Packages:

Visit Steam official website and download the deb package.

Install GDEBI:

GDebi is a computer program that can install . deb packages. It is available with a graphical interface, but also has a command line option.

In terminal run the following command for installing Gdebi.

mk007@linuxlia:$ sudo apt-get install gdebi

Steam Launcher:

Now switch the directory to where was the downloaded deb package located and run the following command for installing .deb software packages.

mk007@linuxlia:$ sudo gdebi steam_latest.deb

Press ‘Y’ for installing the software packages.

Add 32 bit Version:

Steam was only supported in 32 bit architecture. So, first of all you want to add 32bit arch to your system.

In terminal, run the following command,

mk007@linuxlia:$ sudo dpkg --add-architecture i386

After adding 32 bit, you need to update your system manually.

mk007@linuxlia:$ sudo apt-get update

Execute Steam:

In terminal, run the following command for executing steam.

mk007@linuxlia:$ steam

Enter your password for installing additional packages.

Now is the time to take little break. Because I could not specify ‘how long it would take for complete it?’. Luckily for me the packages are downloaded in half an hour. Downloading speed is dependent on your system’s network speed. after this step your system was ready to rock.

Finally steam was installed successfully.

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial PyCharm Tutorial

Anaconda3 – Install Anaconda for Python 3.9 in Kali Linux

Hi Geeks,

   This post was prepared for guide you how you how to install anaconda3 for python 3.7 in Kali Linux.

Anaconda:

    Anaconda is a set of distributions of the Python and R programming languages for data science, machine learning applications,….  Developed for solo practitioners, it is the toolkit that equips you to work with thousands of open-source packages and libraries.

Difference Between PyCharm and Anaconda:

   PyCharm is a Integrated Development Environment (IDE). Anaconda is a set of python distribution. The PyCharm IDE supports Anaconda. If you install Anaconda, it shows in the list of PyCharm.

PyCharm Tutorial:

This tutorial has been prepared for beginners and intermediates to help them understand the basics of PyChram and software development.

Do I need Anaconda?

   Using python only, you don’t miss any important features. Anaconda is more convenient to use compared to python.

Installation steps:

  • Install Prerequisites
  • Download Anaconda3 Packages
  • Install Anaconda3
  • Update and Run Anaconda

Install Prerequisites:

In terminal run the following command for installing prerequisites.

mk007@linuxlia:$ sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

Download Anaconda Packages:

Download Anaconda .sh files in there Official Website.

Install Anaconda3:

Open a terminal and switch the directory to where the downloaded file was located.

mk007@linuxlia:$ cd Downloads

Here run the following command,

mk007@linuxlia:/Downloads$ sha256sum anaconda3-2020.11-linux-x86.sh
mk007@linuxlia:/Downloads$ bash anaconda3-2020.11-linux-x86.sh

Press ‘Enter’ to Continue.

Type ‘Yes‘ and Click ‘Enter’ for conforming the location.

Anaconda was successfully installed.

Update and Run Anaconda3:

  • Activate Conda from base
  • Update Conda
  • Run Conda

Activate Conda from Base:

Switch the directory to Bin.

Here run the following command for activating base.

mk007@linuxlia:/bin$ source activate root

After activating base, it appears in front of the terminal prompt like this,

(base) mk007@linuxlia:$

Update Conda:

Run the following command for updating conda,

mk007@linuxlia:$ conda update anaconda-navigator

Run Conda:

Now run the following command for executing Anaconda.

mk007@linuxlia:$ anaconda-navigator
 

Anaconda was started to execute.

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial Kali Linux VBox Parrot Security Tutorial

Share Files Between Host to Guest in VMWare

  Every Linux lovers have some small amount of love towards Windows. Like that, every Windows lovers have small minimum amount of love towards Linux Distributions. So the windows users are want to experience the Linux. For that they choose to dual boot it with there existing OS, otherwise installing it in VMWare or Virtual Machines. Not only this users, some Linux geeks also installing Linux in VMWare or VirtualBox due to some specifications.

   They all are want to share the files between Host (Windows) to Guest (Linux). So this post was prepared for show you how share the files between them.

Steps:

  • Check IP Connection
  • Check Shared Files
  • Manage Sharing Settings
  • Create Shared Folder
  • Check Shared Folder
  • Add Shared Folder to Guest
  • Shared Folder Location

Step 1: Check IP Connection

First of all check the Guest IP was connected to the Host or Not.

In Guest OS (Linux) open a terminal and run the following command.

mk007@linuxlia:$ ifconfig

Here note your Guest IP Address.

In Host OS (Windows) open a command prompt and run the following command.

C:\Users\MK007> ipconfig

Check that your Guest OS (Linux) IP address was shown in the command prompt.

It means they are interconnected.

Step 2: Check Shared Files

Check any shared files are available in your Host or not. In Host OS (Windows) run the following command in command prompt.

C:\Users\MK007> net share

It shows no shared files between them. So first of all you need to create shared folder between them.

Step 3: Manage Sharing Settings

Before creating the shared folder enable the following options in your host OS.

Manage advanced sharing settings > Change sharing option for different network profiles > Private

Manage advanced sharing settings > Change sharing option for different network profiles > Guest

Manage advanced sharing settings > Change sharing option for different network profiles > All Networks

Step 4: Create Shared Folder

In Host OS create new folder and customize there settings towards sharing type.

New folder > Properties > Sharing > Advanced Sharing

Here enable “Share this Folder” option.

New folder > Properties > Sharing > Advanced Sharing > Permissions

Save the changes and close the tab.

Now customize security settings of the folder.

New folder > Properties > Security > Edit

Security > Edit > Add

Here add ‘everyone’ group and give full control access.

save the change and close the tab. Finally the shared folder is created in Host.

Step 5: Check Shared Folder

Now check the shared folder is created or not. Follow the same steps instructed in Step 2.

Finally Shared folder was successfully created .

Step 6: Add Shared Folder to Guest

Add the shared folder to the Guest OS.

Follow the steps:

The shared folder was successfully connected to the Guest OS.

Step 7: Shared Folder Location

Shared Folder location in Guest OS.

File System > mnt > hgfc > SharedFiles

Use this folder for sharing files between Guest to Host. This folder containing files are accessible to both OS.

If you want to know about any other VMWare stuffs, then visit this Category.

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial Penetration Testing

Top 12 Things to Do After Installing Kali Linux 2021.1

Kali Linux, by default, probably doesn’t have everything for your workflow. You just have to customize the Kali you want. With the following few tips, tricks, and applications, you can quickly customize your Kali.

  1. Add Official Repositories.
  2. Update and Upgrade
  3. Change Root Password
  4. SuperUser Access
  5. Gedit (Text Editor)
  6. Git (GitHub Package Installer)
  7. Tor Browser
  8. LeafPad
  9. Atom (A Hackable Text Editor)
  10. VPN
  11. Proxy Chains
  12. Wine (Windows  Emulator)

1) Add Official Repositories

What is Repositories ?

Repository –  “A place where things or packages are stored”.

APT Repositories:

If no APT repositories are present, If you run any APT commands, then you was encountered by the following error.

mk007@Linuxlia:~# sudo apt-get install package_name 
Reading package lists... Done
Building dependency tree Reading state information... Done
E: Unable to locate package

Copy the below codes and paste them in sources list.

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

How to add repositories to Source list?

  • You want to add the repositories to the source list.
  • Open a terminal and type the following command.
mk007@linuxlia:~$ sudo nano /etc/apt/sources.list
  • Paste the copied repositories and save it.
  • Ctrl+O for saving. Ctrl+X for exit.

2) Update your system

After adding repositories to the source list, update your system.

mk007@linuxlia:~$ sudo apt-get update
mk007@linuxlia:~$ sudo apt-get dist-upgrade

3) Change Root Password

In Linux, the root account is a special user account used for system administration. Only in root account you was able to make changes in default system packages. I n Kali Linux, default user name and password is,

Username: kali
Password: toor

But this does not work for everyone. So manually change the root password which you like. In user account open a terminal and run the following command for changing the root password.

mk007@linuxlia:~$ sudo passwd root
new password:
retype new password:
passwd updated successfully.


4) SuperUser Access

What is SuperUser Permission (or) Grant Root Access:

In User Account you don’t have permission to make changes in system default packages (Use Thunar File Manager, it helps you). But you want to make changes, then every time you need to type SUDO SU for getting permission or root access. It was the annoying one for lot of users.

If you want to avoid to type SUDO SU every time. Then set up Grant Root Access in your user account. Follow the below steps for Grant Root Access.

How to Get SuperUser Permission?

Steps for Grant root Access:

  • Install Kali-Grant-Root
  • Reconfigure Kali-Grant-Root
  • Edit .Bashrc
  • Reboot

Install Kali-Grant-Root:

First of all you want to install Grant Root packages in your system.

So open a terminal and run the following command for installing the packages,

mk007@linuxlia:~$ sudo apt-get install kali-grant-root

Reconfigure Kali-Grant-Root:

Type the following dpkg command in your terminal.

mk007@linuxlia:~$ sudo dpkg-reconfigure kali-grant-root

 

This command execute the following menu. Here choose “Enable password-less privilege escalation” and hit enter.

Edit .Bashrc :

Open a File manager and press “Ctrl+H” for viewing Hidden Folders.

Open “.Bashrc” file in any text editor and add “sudo su” in bottom of the file.

After that, save the file.

Reboot:

Finally reboot your system for changes let reflect. Click the terminal icon and see the changes.


5) Gedit

gedit is the default text editor of the GNOME desktop environment and part of the GNOME Core Applications. Designed as a general-purpose text editor.

Installation:

Installing gedit is pretty simple. In terminal run the following  apt command for installing it.

mk007@linuxlia:~$ sudo apt-get install gedit

6) Git

What is Git?

Git is software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development.

Installation:

Installing Git is pretty simple. In terminal run the following  apt command for installing it.

mk007@linuxlia:~$ sudo apt-get install git

7) Tor Browser

Tor is free and open-source software for enabling anonymous communication by directing Internet traffic through a free, worldwide, volunteer overlay network consisting of more than seven thousand relays in order to conceal a user’s location and usage from anyone conducting network surveillance or traffic analysis.

If you was a pentester, then you need a privacy during surfing web. So definitely Tor helps you.

Installation:

There are a lot of methods to install this. In it, it is a simple and commands free method. Download official tor.xz packages in Tor’s official site.

After downloading the package, first of all extract it. Inside that extracted file, there will be an icon. If you click that icon, then tor browser automatically started to connecting with relays.

If you was using Gnome Desktop Environment, then you was encountered by the following error.

Failed to add plugin to the panel
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
The name org.xfce.Panel was not provided by any.sevice
files

This error was occurred due to gnome panel. In XFCE4 Desktop during installing Tor, am doesn’t face any errors. In gnome’s new version the permission of the panel was completely changed. So you don’t have permission to add any third party icons to the panel. so you was failed to add plugin or icon to the panel.

Read full Post here.


8) LeafPad

Leafpad is an open source text editor for Linux, BSD, and Maemo. Created with the focus of being a lightweight text editor with minimal dependencies, it is designed to be simple and easy-to-compile.

Installation:

Installing leafpad is pretty simple. In terminal run the following command for downloading it.

mk007@linuxlia:~#  sudo apt-get install leafpad

9) Atom (A hackable text editor for the 21st Century)

Atom is a free and open-source text and source code editor for macOS, Linux, and Microsoft Windows with support for plug-ins written in JavaScript, and embedded Git Control, developed by GitHub. Atom is a desktop application built using web technologies.

Installation:

Download atom debian packages in Atom’s official site.

Now open a terminal and switch the directory to where was the file located.

mk007@linuxlia:$ cd Downloads

Here run the below command.

mk007@linuxlia:$ sudo dpkg -i atom-amd64.deb

Next run the command for executing atom.

mk007@linuxlia:$ atom

10) VPN (Virtual Private Network)

The title VPN and Proxy chain is important one for every Kali users. So it is better to explain it as a video than to say it theoretically.

11) Proxy Chains


12) Wine (Windows Emulator)

What is Wine?

Wine is a free and open-source compatibility layer that aims to allow application software and computer games developed for Microsoft Windows to run on Unix-like operating systems.

Wine supported Windows Applications and Games:

Visit Wines official site. Here Wine supported apps and games are listed here.

Install wine:

Steps:

  • Enable 32 bit packages.
  • Download Repository key
  • Add Wine repos to source list
  • Update your System
  • Download Wine Packages
  • Run Wine

Enable 32 bit packages (if you haven’t already):

Open a terminal and run the following commands for enabling 32 bit packages.

mk007@linuxlia:~# sudo dpkg --add-architecture i386

Download Repository Key:

Now download and install the repository key in your system.

mk007@linuxlia:~# sudo wget -nc https://dl.winehq.org/wine-builds/winehq.key
mk007@linuxlia:~# sudo apt-key add winehq.key

Add wine repos to source list:

Add the official wine repository to your source list for accessing it’s packages.

Brief blog about Repositories.

In run the following command for opening source list.

mk007@linuxlia:~# sudo nano /etc/apt/sources.list

Here add the following  wine repositories and save the list.

deb https://dl.winehq.org/wine-builds/debian/ buster main
deb https://dl.winehq.org/wine-builds/debian/ bullseye main

Press Ctrl+O and hit enter for saving the file.

Press Ctrl+X for exit.

Update your System:

Now run the update command for downloading the official wine packages.

mk007@linuxlia:~$ sudo apt-get update

Install Wine Packages:

Finally your system is compatible to download the wine.

Open a terminal and run the following apt command for installing wine on your system.

mk007@linuxlia:~$ sudo apt install --install-recommends winehq-stable

Alright, now the wine was successfully installed.

Run wine:

Its the time to run lagy windows softwares in Linux.

Open the terminal and switch the directory to where was that software located and run the command in following format.

mk007@linuxlia:~$ sudo wine 'Software Name'Now 

Software was started to execute,

Finally your system is ready to run Windows applications and games.


Bonus Tip:

Switch Environments in Lock Screen:

Kali Linux 2021.1, contains more features. In this features list, this one impress me. That is switching desktop environments in lock screen. From now on no need for running commands for switching desktop environments.

In lock screen’s right side bottom, settings shaped icon was added now. Here choose the environment which you want  and enjoy.


Conclusion:

Hope this complete beginner guide is useful to you. If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Debugging Kali Linux Tutorial

Grub Boot loader Not showing in Dual Boot

How to Repair Grub Boot Load Error in Dual Boot

Hi Geeks,

    If you was dual booted Kali Linux with Windows 10 in UEFI BOIS Mode. The booting process of UEFI is completely different from Legacy BIOS. Do you find that Kali Linux is missing from boot menu options?.  If your system directly booted to Windows 10.

    This is what happened to me. The same thing happened to you? Yes, You have come to the right place. The steps followed in this post is same to all other Debian distributions

Why this error occurred?

    This error was occurred when the grub loader was not installed perfectly in your Linux distro. So you want to install the grub boot loader manually. When some people encounter this error they immediately think it is a big error and start to reboot.

    But here no need for rebooting your Linux distro.

Solution for Grub Boot Load Error:

    First of all you want to open Kali Linux for downloading the missed packages. Use Live USB stick or enter Kali Linux via Boot Menu (Turn on the system and press the boot key for entering boot menu. Here choose Kali Linux).

    Here you want to install the missed packages of grub boot loader. Now open a Terminal and run the following commands for installing Grub boot loader.

mk007@linuxlia:$ sudo mount /dev/sda* /mnt
mk007@linuxlia:$ sudo grub-install /dev/sda
mk007@linuxlia:$ update-grub

    After the complete installation of grub boot loader, shutdown your system and remove the USB stick carefully. Again turn on the system for checking the boot loader was installed or not. If it installed, then you can use the Kali Linux as usual. Otherwise you want to dual boot kali Linux again.

    We also have a tutorial about Kali Linux Dual Booting. Check it out.

       After the successful installation of Kali Linux. Learn something about Penetration Testing.

Conclusion:

    If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial

How to Get SuperUser Permission without Root in Kali Linux

Get Root Access in User Account without Typing SUDO SU (Grant Root Access)

Hi Geeks,

This post was prepared for guide you how to get SuperUser permission or root access in user account without typing SUDO SU or root password.

SuperUser (or) RootUser:

In Linux, the superuser is a special user account used for system administration. Depending on Linux operating system, the actual name of this account might be root.

Only in root account you was able to make changes in default system packages.

What is SuperUser Permission (or) Grant Root Access:

In User Account you don’t have permission to make changes in system default packages (Use Thunar File Manager, it helps you). But you want to make changes, then every time you need to type SUDO SU for getting permission or root access. It was the annoying one for lot of users.

If you want to avoid to type SUDO SU every time. Then set up Grant Root Access in your user account. Follow the below steps for Grant Root Access.

How to Get SuperUser Permission?

Steps for Grant root Access:

The steps are same to all Debian Distributions.

  • Install Kali-Grant-Root
  • Reconfigure Kali-Grant-Root
  • Edit .Bashrc
  • Reboot

Install Kali-Grant-Root:

First of all you want to install Grant Root packages in your system.

So open a terminal and run the following command for installing the packages,

mk007@linuxlia:~$ sudo apt-get install kali-grant-root

Reconfigure Kali-Grant-Root:

Type the following dpkg command in your terminal.

mk007@linuxlia:~$ sudo dpkg-reconfigure kali-grant-root

This command execute the following menu. Here choose “Enable password-less privilege escalation” and hit enter.

Edit .Bashrc :

Open a File manager and press “Ctrl+H” for viewing Hidden Folders.

Open “.Bashrc” file in any text editor and add “sudo su” in bottom of the file.

After that, save the file.

Reboot:

Finally reboot your system for changes let reflect. Click the terminal icon and see the changes.

In User Account the Root Terminal was opening.

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Kali Linux Tutorial

All Repositories for Kali Linux ( APT, Sana and Network Mirrors)

How to Add Repositories to Kali Linux

Hi Geeks,

In this post am going to guide you how to add Repositories to Kali Linux. The repositories suggested in this post are copied from there Official Site.

Content:

  • What is Repository?
  • How to add Repositories to source list
  • APT Repositories
  • Update your System.
  • Old Sana Repositories
  • Network Mirrors

What is Repositories ?

    Repository –  “A place where things or packages are stored”.

APT Repositories:

If no APT repositories are present, If you run any APT commands, then you was encountered by the following error.

mk007@Linuxlia:~# sudo apt-get install package_name 
Reading package lists... Done
Building dependency tree Reading state information... Done
E: Unable to locate package

Copy the below codes and paste them in sources list.

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

 

How to add repositories to Source list?

  • You want to add the repositories to the source list.
  • Open a terminal and type the following command.
mk007@linuxlia:~$ sudo nano /etc/apt/sources.list
  • Paste the copied repositories and save it.
  • Ctrl+O for saving. Ctrl+X for exit.

Update your system:

After adding repositories to the source list, update your system.

mk007@linuxlia:~$ sudo apt-get update
mk007@linuxlia:~$ sudo apt-get dist-upgrade

 

 

Old Sana Repositories:

If no Old or Sana repositories are present, then you was encountered by the following errors.

Was not possible to install The Packages Labeled (Not Ok) in this list above

mk007@Linuxlia:~# sudoapt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-3-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-3-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-3-amd64'

If you need all the old and new packages of Kali Linux. Get all the packages of Kali Rolling from Kali SANA 2.0.

Copy the below codes and paste them in sources list and update the system.

deb http://old.kali.org/kali sana main non-free contrib 
# For source package access, uncomment the following line 
deb-src http://old.kali.org/kali sana main non-free contrib

 

Network Mirrors:

Network mirrors are help you to connect your network to LAN (Local Area Network). So using mirrors can increase your network or downloading speed.

But using network repositories are not safe one (or) suggested one. If you was a pentester, then definitely avoid this. Because it shares your location to the local network.

Copy the below codes and paste them in sources list and update the system.

deb https://mirrors.ocf.berkeley.edu/kali kali-rolling main non-free contrib
deb-src https://mirrors.ocf.berkeley.edu/kali kali-rolling main non-free contrib

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Debugging Kali Linux Tutorial Penetration Testing

Failed to Execute Default Web Browser | BeEF-XSS

How to Install BeEF-XSS in Kali Linux 2021

Hi Geeks,

During BeEF-XSS  installation most of the users are encountered by this error “Failed to execute Default web browser”. So this post was prepared for guiding you how to fix this error and how to install BeEF-XSS properly.

Failed to execute default web browser

Content:

  • What is BeEF-XSS?
  • Why this error occurred?
  • Remove the Packages (Downloaded via APT Command)
  • Install BeEF-XSS (Proper Method)

Why this error occurred?

If you tried to install BeEF using APT commend. Then you was encountered by this error (Failed to Execute Default Web Browser). Via APT command you doesn’t able to install or download all the packages of BeEF-XSS. So this is the only reason why this error was occurred.

Remove the Packages:

So, first of all you want to remove the packages downloaded via APT command. Open a terminal and run the following commands for removing the packages..

mk007@linuxlia:~$ sudo apt-get autoremove beef
mk007@linuxlia:~$ sudo apt-get autoremove beef-xss

What is BeEF?

BeEF is short for The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser.

Install Beef-XSS (Proper method)

Stpes:

  • Clone Git Packages
  • Set up BeEF-XSS
  • Change Default Username and Password
  • Execute BeEF-XSS

Clone Git Packages:

The proper way to installing BeEF-XSS is using Git.

Open a terminal and run the following command for download Git packages of BeEF-XSS.

mk007@linuxlia:~$ git clone https://github.com/beefproject/beef.git

Set up BeEF-XSS:

Now switch the directory to cloned directory.

Here run the following command for installing BeEF-XSS packages.

mk007@linuxlia:~$ sudo ./install

Press ‘Y’ for and hit enter for downloading packages. Downloading speed is dependent on your system’s network speed.

Now all the packages are installed successfully. But RubyGem was missing.

Run the following command for installing RubyGem,

mk007@linuxlia:~$ bundle install

Alright, It’s the time to executing BeEF.

Run the following command for executing BeEF-XSS.

mk007@linuxlia:~$ sudo ./beef

Change Default Username and Password:

Before executing BeEF-XSS, you want to change the default username and password in config.yaml.

In terminal run the following command,

mk007@linuxlia:~$ sudo nano config.yaml

In this file change the default username and password of BeEF-XSS and save it.

Press Ctrl+O for saving the file and Press Ctrl+X for exit.

Execute BeEF-XSS:

Finally, its time to execute BeEF-XSS.

Open a terminal and switch the directory to BeEF-XSS and run the following command.

mk007@linuxlia:~$ cd beef
mk007@linuxlia:~ /beef $ sudo ./beef

Copy the UI URL and open it in your web browser.

Here enter the username and password you changed in config.yaml file.

After the successful installation of BeEF-XSS. Learn something about Penetration Testing.

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Debugging Kali Linux Tutorial

How to reset Xfce4 panel settings in Kali Linux

Reset Xfce4 Panel Settings to Default in Linux

Hi Geeks,

This post was prepared for guiding you how to reset xfce4 panel or top panel settings to default settings in Kali Linux. This method is working well in Xfce desktop environment.

Xfce4:

The Xfce Panel is part of the Xfce Desktop Environment and features application launchers, panel menus, a workspace switcher and more. Many aspects of the panel can be configured through the GUI , but also by GTK+ style properties and hidden Xfconf settings.

Reset Xfce4 panel:

Steps:

  • Shut Down Xfce4 Panel
  • Kill Xfce4 Configuration
  • Delete Panel Settings
  • Delete xfconfd Settings
  • Restart the Panel

Shut Down Panel:

Before reset, first shut down the xfce4 panel.

Open a terminal and run the following command for panel shut down,

mk007@linuxlia:~$ sudo xfce4-panel --quit

Kill Xfce4 Configuration:

Next kill the xfce4 configuration daemon by running the follwoing command,

mk007@linuxlia:~$ sudo pkill xfconfd

Delete Panel Settings:

Now delete the panel settings by the following command.

mk007@linuxlia:~$ sudo rm -rf ~/.config/xfce4/panel

Delete xfconfd Settings:

In this final step, clear out the xfconfd settings.

Open a terminal and run the following command.

mk007@linuxlia:~$ sudo rm -rf ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

Finally the xfce4 panel settings changed to the default system settings.

Restart Panel:

After the reset, you want to restart xfce4 panel manually. Otherwise it doesn’t appear in top of the display.

So run the following command for restarting it.

mk007@linuxlia:~$ sudo xfce4-panel

Alright, now the xfce4 panel settings was changed to default system settings.

Finally inner peace.

 

GDBUS Error:

For some unlucky geeks, during the process they are encountered by the following error,

GDBus:Error:org.freedesktop.DBus| Failed to show the preferences dialogue

For resolving this error,you want to delete the cache.

open a terminal and run the following commands for deleting the cache files.

First switch the directory to Desktop.

mk007@linuxlia:~$ cd Desktop

Now run the following command for  clearing the caches.

mk007@linuxlia:~$ sudo rm -rf ~/.cache/sessions

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

Categories
Customize Desktop Environment Kali Linux Tutorial

How to Add Icons to Gnome Desktop in Kali Linux

Gnome Extension for Desktop Icon

Hi Geeks,

This post was prepared for show you how to add icons to gnome desktop in Kali Linux. In gnome desktop there is no inbuilt option for adding icons. So you want to add gnome extensions for adding icons to the desktop.

Gnome Extensions:

GNOME Shell Extensions is a collection of extensions providing additional and optional functionality to GNOME Shell.

Content:

  • Download and Add Gnome extensions in your browser.
  • Install Desktop icon Extension.

Download and Add Gnome extensions:

Open a web browser in your system and go to gnome extensions official site. In this site one pop up was opened. Here click the ‘Click here to install Browser Extensions’.

again one popup was opened. Here click the ‘Continue to Installation’.

Now the extensions was started to installing.

Right now, the extensions was successfully installed.

Click ‘Add’ for adding the extensions to the browser.

Alright the extensions was successfully added to the Browser. Now refresh the page.

Now click the search bar and search ‘Desktop Icon’. 

Open the first one.

Click ‘ON’ for adding this extension to your desktop.

Finally the icons was successfully added to the desktop.

If you encountered by the following error,

During this method if you was encountered by the following error.

GDBus.Error:org.freedesktop.DBus.Error

This error was occurred due to gnome panel. In XFCE4 Desktop during installing Tor, am doesn’t face any errors. In gnome’s new version the permission of the panel was completely changed. So you don’t have permission to add any third party icons to the panel. so you was failed to add plugin or icon to the panel.

Solution:

You have two ways to resolve this bug,

Read full post here.

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts

Categories
Kali Linux Tutorial

Wine- Run Windows Applications and Games in Kali Linux

Run Windows Applications in Linux (Kali Linux, Parrot, Debian Distros)

Hi Geeks,

This post was prepared for teach you how to run windows software in Linux. I am using wine software for running windows software in Linux.

Content:

  • What is Wine?
  • Wine Supported Applications
  • Install Wine

What is Wine?

Wine is a free and open-source compatibility layer that aims to allow application software and computer games developed for Microsoft Windows to run on Unix-like operating systems.

Wine supported Windows Applications and Games:

Visit Wines official site. Here Wine supported apps and games are listed here.

Install wine:

Steps:

  • Enable 32 bit packages.
  • Download Repository key
  • Add Wine repos to source list
  • Update your System
  • Download Wine Packages
  • Run Wine

Enable 32 bit packages (if you haven’t already):

Open a terminal and run the following commands for enabling 32 bit packages.

mk007@linuxlia:~# sudo dpkg --add-architecture i386

Download Repository Key:

Now download and install the repository key in your system.

mk007@linuxlia:~# sudo wget -nc https://dl.winehq.org/wine-builds/winehq.key
mk007@linuxlia:~# sudo apt-key add winehq.key

Add wine repos to source list:

Add the official wine repository to your source list for accessing it’s packages.

Brief blog about Repositories.

In run the following command for opening source list.

mk007@linuxlia:~# sudo nano /etc/apt/sources.list

Here add the following  wine repositories and save the list.

deb https://dl.winehq.org/wine-builds/debian/ buster main
deb https://dl.winehq.org/wine-builds/debian/ bullseye main

Press Ctrl+O and hit enter for saving the file.

Press Ctrl+X for exit.

Update your System:

Now run the update command for downloading the official wine packages.

mk007@linuxlia:~$ sudo apt-get update

Install Wine Packages:

Finally your system is compatible to download the wine.

Open a terminal and run the following apt command for installing wine on your system.

mk007@linuxlia:~$ sudo apt install --install-recommends winehq-stable

Alright, now the wine was successfully installed.

Run wine:

Its the time to run lagy windows softwares in Linux.

Open the terminal and switch the directory to where was that software located and run the command in following format.

mk007@linuxlia:~$ sudo wine 'Software Name'

Software was started to execute,

Finally your system is ready to run Windows applications and games.

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.