Install Flashplayer on Kali

This tutorial will briefly show you how to get flashplayer working on your Firefox ESR on Kali Linux.

  1. Download flash player .tar.gz file from
  2. Extract it to somewhere (e.g. Desktop)
  3. Go to extracted folder and open terminal
  4. Issue command: cp /usr/lib/mozilla/plugins
  5. Issue another command: cp -r usr/* /usr
  6. Restart your Mozilla browser, Flash player should work ok now

Debian 9 (stretch) source.list example

vi /etc/apt/sources.list

deb stretch main
deb-src stretch main

deb stretch-updates main
deb-src stretch-updates main

deb stretch/updates main
deb-src stretch/updates main

apt update

apt install your_package_name

How to install USB wireless dongle on Kali Linux or Ubuntu

For this tutorial, I have a DWA-182 USB wireless dongle which is one of the affordable devices that we can start with when getting into Wireless hacking/pen testing on Kali Linux.

Now, I’ll show you how to get it works.

My scenario:

  • I have Kali 2017.3 32 bit as installed on Virtualbox on Macbook air (early 2015)
  • I have DWA-182 (rev. C1) USB wireless dongle connected my Kali VM from my Mac (refer to below figure)

Screen Shot 2018-01-30 at 3.51.25 AM

How to get your WiFi working

  1. Log in as super user root with password toor
  2. Open terminal and issue
$ lsusb (you should see D-Link adapter)
$ apt update && apt upgrade -y
$ apt install realtek-rtl88xxau-dkms -y (rtl8812au-dkms for ubuntu)
$ reboot
==== after reboot ===
$ ifconfig (you should see wlan0 now)
$ ifconfig wlan0 down
$ iwconfig wlan0 mode monitor
$ ifconfig wlan0 up
$ tcpdump -I -i wlan0 -w ~/my-trace.pcap (listen packets on air)

Screen Shot 2018-01-30 at 3.44.24 AM

*** note that to know which chipset drivers to install, you can check here:

Then you’ll see that DWA-182 uses Realtek RTL8812AU

Create Multiple Users in Linux using Python script

The last post for years, I showed how to create multiple in Linux using a shell script. But the limitation is that every user needs to use the same given password. This time, I’ll show you how to create multiple users in Linux using Python script. I know that most of Linux (maybe all, if I’m not wrong) come with Python (.py) as default as Shell script (.sh), so you don’t need to worry if you need to install additional Python package.

E.g. Create three users (john, richhat, jackie) with its own password. Here is how, you need to run a script called followed by user_pass.txt that contains user and password:

$ python user_pass.txt

You can name the file anything you wish and below is the content of each file:

import sys
import os
import string
import random
import crypt

# function for create one user with supplied password
def createUser(name,passwd):
   two = ''.join(random.choice(string.ascii_letters) for x in range(2))
   encPass = crypt.crypt(passwd, two)
   os.system("useradd -p "+encPass+ " -m "+name)

# main program
if __name__ == '__main__':
   # prepare variables like file name and lists of user and password
   fname = sys.argv[1]
   list_users = []
   list_passwds = []
   # read username and password from file and save to the created lists
   with open(fname,'r') as file:
      for line in file:
         list_temp = line.rstrip('\n').split(" ")
   # start creating users
   for i,user in enumerate(list_users):

user_pass.txt (separate username and password by space)

john 1234
richhat secret123
jackie 1234567

How to dual boot Kali on Macbook and Fix WiFi problem

This is a brief note of how I dual boot Kali Linux on Macbook air early 2015 and how I fixed WiFi problem


Before you do, you might be interested to have a look at this video or official guide (the steps are different, but it gives an idea)

1. Prepare a minimum 20 GB of HDD from Machintosh HDD (Partition, add partition)
2. Prepare a USB bootable of Kali Linux
3. Reboot and hold option key, you’ll get into a boot menu where you can select your USB drive
4. Select Live Kali, open GParted, resize the USB drive to make sure that there is no additional unallocated space on it, otherwise, it gonna mess up because you might not select the right space to install.
5. Reboot, again hold option key to get to menu again, select USB
6. Select Kali installer
7. From here, make you you can connect to Internet because you require your Kali to work especially when install Boot loader.
8. Partitioning is an important part, make sure you select the right free (unallocated space 20GB or whatever you spare)
– partition
9. Then just next and next follow the normal process until finish and reboot; YOU’ve DONE!!!


After installation finish, you will face a serious problem that WiFi doesn’t work, so follow this:

Before you get started, you can check if your WiFi adapter present and to see its chipset:

$ lspci | grep Wireless
03:00.0 Network controller: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter (rev 03)

1. add “deb kali-rolling main contrib non-free” to /etc/apt/sources.list
2. update it and upgrade as well (make sure you connect to internet access by ethernet USB or else): apt update && apt upgrade -y

if it turns out error, you might follow advice from error, you might run: apt –fix-broken install

3. Install some required packages (hopefully, this might work for you or might not since I try many)

$ apt install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
$ apt install broadcom-sta-dkms
$ modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
$ modprobe -r wl && modprobe wl

*** The last line is what makes your WiFi works, this it might turn out error, but then just reboot, it works for me and it should work for you too. If not, you might try to search more so that “wl” module can be loaded 🙂