binfalse
Suspend and Resume Aircrack sessions
January 22nd, 2015The aircrack tool unfortunately does not have a suspend or pause mechanism, thus as soon as you stop it you need to start again from the very beginning. Of course, you may manually adjust the dictionary, but that’s tedious and “error prone”.. ;-)
Lucky us, there is john the ripper to give us a hand. John knows about sessions. Just start a run which prints the words in the dictionary one after the other:
john --session=somename --stdout --wordlist=dictionary
Stop the run at any point in time using e.g. Ctrl+c
and john will store the information about the session. Just return the session with --restore
:
john --restore=somename
and john will continue from where it was stopped.
To make aircrack read the words from stdin use -w -
. A typical run might look like
# start john
john --session=somename --stdout --wordlist=dictionary | aircrack-ng -w - handshake.cap -b 01:12:23:34:45:56
# kill the run
^C
# restart from where is was stopped
john --restore=somename | aircrack-ng -w - handshake.cap -b 01:12:23:34:45:56
gem installation fails? update gcc!
January 18th, 2015Just wanted to install a ruby package using gem. However, I’m not a ruby dev and it took me a while to work around a certain problem with gem..
I wanted to install the Effing Package Management:
Especially line 35 drove me insane: You have to install development tools first. That made me think I need to install more *-dev stuff.
Took me some time to find out that there was a problem with gcc! Turns out that gcc version 4.8.3 (Debian 4.8.3-13)
(gcc -v) wasn’t able to build the package for me. So I installed gcc version 4.9.1 (Debian 4.9.1-19)
and everything worked like a charm. :)
Web Screenshots. W/O browser!
August 30th, 2014Just discovered a nice way to take screenshots of web sites from the command line! No browser needed. Cool.
The tool I’d like to advertise is called gnome-web-photo
:
For instance. To take generate an image of my website just call:
Just take a look at binfalse.png
to examine the result. I obtained a 1024x6334
image. I guess the main use case is to generate some kind of preview/thumbnail. To get a thumbnail simply add --mode=thumbnail
:
Afaik, there is no option to generate a larger thumb, but you could just pass --width=
without the --mode=thumbnail
. And then crop the pic yourself (e.g. using imagemagick). However, you need to run X and you need to have GTK, if I understand correctly. Nevertheless, I like that solution.
Record Stream Using VLC
July 2nd, 2014I just needed to record a video stream. Usually, I use mplayer for these kinds of jobs, but this time it failed. However, on the internet I found a way to do it using VLC, which apparently has quite a command line interface.
This comment revealed that the VLC media player comes with some command line magic. Of course, not much is documented in the man page, but the user guide on their website seems to be useful.
Long story short, I ended up with the following command to save the stream http://STREAM.mp4
to /tmp/file.mkv
:
Cool.
For the records, here are some alternatives:
New GPG Key
January 15th, 2014It was time to finally replace my old GPG key. I created the key in 2008 and from today’s perspective a 1024 bit DSA key is really weak. Thus, today I decided to move to a new key and created a 4096 bit RSA key.
My old key was
And the new key is:
For those of you who already trust my old key I created a transition note which is signed by both my old and my new key.
To import my new key to your key chain you can use the following command:
The new key is already signed by the old key. Those of you trusting my old key may verify the signature using:
To sign the new key execute the following command:
And it would be nice if you upload the signed to one of the key servers:
You are of course free to give me a call in order to verify the fingerprint ;-)