How to take a screenshot on Macintosh OSX: http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X.
To delete your Internet history quickly in Firefox; use the Ctrl-Shift-Del keyboard combination. You will be presented with a dialog that allows you to select the time period to erase.
Watch the original Star Wars movie in ASCII with this awesome website: http://asciimation.co.nz/.
How to monitor events on your wireless network with the iwevent command for Linux Mint.
homer@deep-thought ~/Documents $ iwevent Waiting for Wireless Events from interfaces... 20:55:30.615515 wlan0 Scan request completed 20:57:30.619451 wlan0 Scan request completed |
Type man iwevent
to read more about this command.
This is sample output from the wifite Python script. This automates the cracking of wireless networks using the aircrack-ng suite. You just run the wifite command as root and it will scan for wireless networks near you. Then press Ctrl-C when you are ready to select a network to attack.
NUM ESSID CH ENCR POWER WPS? CLIENT --- -------------------- -- ---- ----- ---- ------ 1 DalekExterminat... 6 WPA2 62db no client 2 GTLHOME 6 WPA 57db no [+] select target numbers (1-2) separated by commas, or 'all': 2 [+] 1 target selected. [0:08:20] starting wpa handshake capture on "GTLHOME" [0:07:30] sending 1 deauth to *broadcast*... sent (^C) WPA handshake capture interrupted [+] 1 attack completed: [+] 0/1 WPA attacks succeeded [+] disabling monitor mode on mon0... done [+] quitting |
Here I am trying to get into a wireless network. This might not actually work since it is using WPA2; but it is just to test the script anyway.
NUM ESSID CH ENCR POWER WPS? CLIENT --- -------------------- -- ---- ----- ---- ------ 1 Optus486789686676787 6 WPA2 60db no client 2 GTLHOME 6 WPA 57db no 3 NetComm Wireless 1 WPA2 47db no [+] select target numbers (1-3) separated by commas, or 'all': 3 [+] 1 target selected. [0:08:20] starting wpa handshake capture on "NetComm Wireless" [0:08:10] sending 1 deauth to *broadcast*... |
Type sudo apt-get install wifite
to install this useful script.
How to read a gzipped text file on the command line. Use the zcat command for this task.
deep-thought apache2 # zcat access.log.2.gz ::1 - - [25/Aug/2013:11:19:31 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" ::1 - - [25/Aug/2013:11:19:31 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" ::1 - - [25/Aug/2013:11:19:31 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" ::1 - - [01/Sep/2013:08:11:12 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" ::1 - - [01/Sep/2013:08:11:12 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" ::1 - - [01/Sep/2013:08:11:12 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" ::1 - - [01/Sep/2013:08:11:12 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" ::1 - - [01/Sep/2013:08:11:12 +1000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.2.22 (Ubuntu) (internal dummy connection)" |
How to compare two gzipped files and see the differences. The zcmp command will compare two files
deep-thought apache2 # zcmp access.log.4.gz access.log.5.gz /dev/fd/5 - differ: byte 10, line 1 |