Monday, 27 February 2017
Penetration test of my Wifi
How to compile Reaver under Ubuntu 12.04 (and aircrack-ng)
This is a quick how-to compile and install Reaver under Ubuntu 12.04
Steps:
1. download source
2. install required libraries and tools
3. download and build aircrack-ng
4. compile and install
5. run
Download Source
First you need to download the latest source from http://code.google.com/p/reaver-wps/
wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz
Extract the tarball
tar -xzvf reaver-1.4.tar.gz
Install Required Libraries and Tools
Before you can build Reaver you need pcaplib and later on aircrack-ng (iw) to run Reaver
sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev
Compile and Install
Build Reaver
cd reaver-1.4
cd src
./configure
make
Install Reaver
sudo make install
Download aircrack-ng source and build it
Since Ubuntu 12.04 aircrack-ng is not longer in the repository but you can still download it from source and compile it. It’s only one little tweak that need to be done since it will not build without the following errors.
johan@ubuntu-lab:~/aircrack-ng-1.1$ make
make -C src all
make[1]: Entering directory `/home/johan/aircrack-ng-1.1/src’
make -C osdep
make[2]: Entering directory `/home/johan/aircrack-ng-1.1/src/osdep’
Building for Linux
make[3]: Entering directory `/home/johan/aircrack-ng-1.1/src/osdep’
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o osdep.o osdep.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o network.o network.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/johan/aircrack-ng-1.1/src/osdep’
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/johan/aircrack-ng-1.1/src/osdep’
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/johan/aircrack-ng-1.1/src’
make: *** [all] Error 2
This is how to build aircrack-ng under Ubuntu 12.04
sudo apt-get install build-essential
sudo apt-get install libssl-dev
wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz
tar -zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1
Edit common.mak with vi as example
vi common.mak
Find the following row
CFLAGS ?= -g -W -Wall -Werror -O3
Remove “-Werror” so that it looks like this
CFLAGS ?= -g -W -Wall -O3
Save the file, build and install
make
sudo make install
Run
Reaver is now installed and ready to use. You will first need to put the wifi adapter info monitor mode before you can start and the most easiest way is to use airmon-ng (part of aircrack-ng) that you just installed.
First put your adapter info monitor mode, in my case it’s wlan0
sudo airmon-ng start wlan0
Run Reaver
sudo reaver -i mon0 -b 00:00:00:00:00:00
Replace MAC 00:00:00:00:00:00 with the actual AP:s MAC address to crack
Friday, 17 February 2017
Xiaomi Wireless Bluetooth Gamepad Controller driver issue on Windows 10
Another offtopic...
I got recently Xiaomi gamepad from china. Specs were cool, the issue was that by default buttons were assigned incorrectly. I spent some time looking for solution to this and the only thing that worked for me was found here.
With that small app all buttons are assigned correctly and vibration works.
I got recently Xiaomi gamepad from china. Specs were cool, the issue was that by default buttons were assigned incorrectly. I spent some time looking for solution to this and the only thing that worked for me was found here.
With that small app all buttons are assigned correctly and vibration works.
DNN: can't find /DesktopModules/DDRMenu/Menu.ascx
Little offtopic...
I suddenly got Unexpected error while opening my local dev website dotNetNuke. The log in Portals\_default\Logs mentioned that /DesktopModules/DDRMenu/Menu.ascx is not found although it existed on file system.
Apparently this was caused by adding custom developed module. One guy found the solution and described this situation on this blog post.
So, the solution is to delete virtual folder desktopmodules in IIS. Then the original folder DesktopModules from file system will appear in this place. Next restart application pool and that's it!
I suddenly got Unexpected error while opening my local dev website dotNetNuke. The log in Portals\_default\Logs mentioned that /DesktopModules/DDRMenu/Menu.ascx is not found although it existed on file system.
Apparently this was caused by adding custom developed module. One guy found the solution and described this situation on this blog post.
So, the solution is to delete virtual folder desktopmodules in IIS. Then the original folder DesktopModules from file system will appear in this place. Next restart application pool and that's it!
Sunday, 23 October 2016
OpenWRT on WR1043ND-v1 & Huawei E5577-321 HiLink USB connection
I got Huawei E5577-321 from my internet provider. This MIFI connected via USB works as a network card.
I couldn't find any reliable instruction that would work. Here is what I did:
Flash OpenWrt Chaos Calmer 15.05.1 on my TP-Link WR1043ND v1.
Enter following in command line:
Your /etc/config/network file should have following entry:
Flash OpenWrt Chaos Calmer 15.05.1 on my TP-Link WR1043ND v1.
Enter following in command line:
# uci del network.wan
# uci set network.wan=interface
# uci set network.wan.proto=dhcp
# uci set network.wan.ifname=eth1
# uci commit network
# reboot
Your /etc/config/network file should have following entry:
config 'interface' 'wan'
option 'proto' 'dhcp'
option 'ifname' 'eth1'
Tuesday, 10 May 2016
Split flac file easy way
I need to split large flac audio files to convert them to apple lossless format and them transfer them to my ipod. The official way says:
First you need to install cuetools and shntool. From the terminal type:
sudo apt-get install cuetools shntool flac
To split a flac file back to the original files using a .cue file:
cuebreakpoints '<cue file>' | shnsplit -o flac '<audio flac file>'
This didn't really work, no tags were saved and editing hundreds of individual files is not an option.
I found in one comment to use K3b. And that helped a lot. What must be done is:
1. Open the CUE file in K3b.
2. Choose convert tracks to FLAC.
3. Press Start.
This created folder in my home dir with artist name - album and files inside. Very helpful, from there next step was to convert all files to m4a/alac format in soundKonverter.
*Notice it was soundKonverter - with K not C.
First you need to install cuetools and shntool. From the terminal type:
sudo apt-get install cuetools shntool flac
To split a flac file back to the original files using a .cue file:
cuebreakpoints '<cue file>' | shnsplit -o flac '<audio flac file>'
This didn't really work, no tags were saved and editing hundreds of individual files is not an option.
I found in one comment to use K3b. And that helped a lot. What must be done is:
1. Open the CUE file in K3b.
2. Choose convert tracks to FLAC.
3. Press Start.
This created folder in my home dir with artist name - album and files inside. Very helpful, from there next step was to convert all files to m4a/alac format in soundKonverter.
*Notice it was soundKonverter - with K not C.
Sunday, 10 April 2016
Wednesday, 6 April 2016
Kobo Glo HD memory upgrade on Linux
Received my reader today and couldn't wait to upgrade memory and load all my stuff. Well tutorials which I saw were all for windows. I foung in gparted that my Kobo card in SD reader is SDE and 32GB card in USB reader is SDD. So I just used below command:
sudo dd if=/dev/sde of=/dev/sdd
sudo dd if=/dev/sde of=/dev/sdd
7744512+0 read records
7744512+0 written records
copied 3965190144 bytes (4.0 GB), 3042.42 s, 1.3 MB/s
It took about 1 hour but worked ok, ereader booted and everything works so far. 29 GB left for my library.
You can use sudo nmon to monitor activity.
#koboglohd #memoryupgrade
Subscribe to:
Posts (Atom)