[Solved] SIOCSIFFLAGS: Operation not possible due to RF-kill

This error message happened to my Kali Linux when I was trying to enable my WiFi interface by issued command “ifconfig wlan0 up

If you use command rfkill list all, you will see like

0: py0: Wireless LAN
      Soft blocked: yes
      Hard blocked: no

The solution to this is simple, you just need to issue a command:

$ rfkill unblock wifi

Try ifconfig again, now the problem should be solved

Count number of devices involved in your WiFi network

In our case, we have already captured and saved to a file “afternoon-masterroom-7users.pcapng”. We want to see how many users involved in my WiFi network (AP) and because we didn’t apply capture filter when we captured, then we need to apply display filter to specify only only traffic connected with my AP (We need to know its BSSID, mac address of AP). Finally we export the field ‘wlan.staa’, sort it and get unique mac address to determine number of users

$ tshark -r afternoon-masterroom-7users.pcapng -R ‘wlan.bssid==00:18:e7:ea:df:eb’ -2 -T fields -e wlan.staa | sort | uniq

You may add one more pip as | wc -l to output number

Screen Shot 2018-03-25 at 12.07.53 PM

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 https://get.adobe.com/flashplayer/
  2. Extract it to somewhere (e.g. Desktop)
  3. Go to extracted folder and open terminal
  4. Issue command: cp libflashplayer.so /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

https://wiki.debian.org/SourcesList

vi /etc/apt/sources.list

deb  http://deb.debian.org/debian stretch main
deb-src  http://deb.debian.org/debian stretch main

deb  http://deb.debian.org/debian stretch-updates main
deb-src  http://deb.debian.org/debian stretch-updates main

deb http://security.debian.org/debian-security/ stretch/updates main
deb-src http://security.debian.org/debian-security/ 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:

https://wikidevi.com/wiki/D-Link_DWA-182_rev_C1

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