Skip to content

Posts from the ‘Misc’ Category

5
Nov

Managing tv series from the console

I’ve still not posted about my awesome terminal configuration, but I’ll be making that completly irrelevant today with my awesome way to handle tv series in the terminal.

 

Read moreRead more

31
Oct

Recording lastfm songs with shell-fm

I listen to the last.fm radio all day at the office (it’s a lifesaver
when your workplace has quite a lot noise).

This has one good advantage: I don’t have to bring my music with me.
I dont have to worry about changing groups, nor putting anything into
“shuffle” mode, also, I really like last.fm, is a great service.

But, what happens when your network goes down, or is just too slow?

Here comes to the rescue Shell-fm.

Read moreRead more

8
Nov

Airoscrip-ng reporting system

As from svn revision 1988 airoscript-ng comes out with a nice reporting system.
It adds Airgraph-ng, tcpdstats  and kstats to airoscript-ng deps, but it’s really worth it.

It also fixes the automatic mode system and parameters, so we can run, as I’ve made for the following example:

airoscript-ng -w wlan1 -f -a -n WLAN_16 -pdigenpy -pwkhtmltopdf

And this will:

  • Select wlan1 as interface
  • Change interface mac to fake mac configured by default
  • Start automatic mode
  • Filter essids to only attack WLAN_16 (This supports regexes if you add a “-e”)
  • Load digenpy (a dictionary generator for default router passwords)
  • Loads wkhtmltopdf to automatically create a pdf with the report

Report on my test router (bough on cash converters)

7
Nov

LucidChart, in-the-cloud diagrams

I’m getting my Furnivall talk at libresoftwareworldconferences ready, and I had in mind to keep a few diagrams, to make it more… well, user-friendly.

I recognise a half-presentation half-tech talk about furnivall and it’s development can blow minds, It’s not easy to assimilate, and I’m not usually noob-friendly, so I tough on trying something else, I want to make a confy talk, unlike the ones I usually do.

I didn’t really like any of the opensource tools to make diagrams, DIA is not good-looking and inkscape is too hard to use, so I searched for a diagram generator, and among the various things I found, there it was: LucidChart.
A free-for-use (limited by the number of elements, but it’s a high number) in-the-cloud diagram generator, incredibly userfriendly, with a nice drag-and-drop interface and integrated with google services.

I havent found a way to download the diagram in a editable form, however, you can save it in PDF using share/publish online (yeah, I know, it’s not intuitive at all) and then selecting PDF file as output format.

My webbrowser, with furnivall's future chart.

7
Nov

Wireshark does not support usb sniffing on windows

Yep, I installed wireshark on windows yesterday for nothing.

However, according to this wireshark documentation, you can emulate a windows machine with virtualbox, use the usb port there, and still get wireshark on linux to capture that traffic!
So, as I already had virtualbox on linux, that were a minor loss… but I had another trouble: I was working on my laptop, and everything was connected to my home server,

I set up a rdp connection with the windows machine, and usb monitor module + ssh + wireshark (can be done with tcpdump too)

ssh -L 3389:localhost:3389 -p6969 xayon@ssh.davidfrancos.net # Set Up ssh tunnel for rdesktop
mount -t debugfs none_debugs /sys/kernel/debug # mount debugfs
modprobe usbmon # modprobe usb monitor module

Then, I made a lsusb and checked out the usb bus of the reader, wich turned out to be 7,
after that, I tee’d it, and remotely opened with wireshark on my laptop

server# touch capture; chmod a+rwx capture; cat /sys/kernel/debug/usb/usbmon/7u |tee capture
laptop$ ssh user@server cat capture |wireshark -k -i -

Et voilá, we’ve got a wireshark sniffing usb on a virtualbox emulated windows in a remote server.

6
Nov

Getting ready for windows development

I’ve been working on a linux driver to get a friend’s RFID reader/writer working on linux.
The RFID reader’s company even gave us the datasheet and protocol specifications, but they were unclear about a few things (including how a XOR needed in the protocol is generated) so I’m having to reverse-engineer it, launching wireshark on windows.

So, that came out with a worse problem: I didn’t have any windows machines, nor virtualization systems ready. So I went with the easiest solution I could think of: the non-free version of virtualbox, with its extensions to support usb2, and an old windows XP cd.

I had to do it anyway to build and release a functional windows version of Digenpy and try out some idea i had for airoscript on windows!

Installing virtualbox on debian, I had to add this to fstab to get usb working:

usbfs /proc/bus/usb usbfs devmode=664 0 0

Finally, after a few complications I got it working, installed the windows stuff, wireshark, and the propietary Windows software from that company.

To work more confy on windows I also installed GNU Tools, Cygwin and sharpenviro (An opensource windows shell replacement). It ended up being linke this:

SharpEnviro and wireshark under a virtual machine.

SharpEnviro and wireshark under a virtual machine.

I’ll write up about the  reverse engineering tomorrow, wait for it!

4
Oct

Reading RSS Feeds from Mutt

I’m starting to have a troble with console: I have used too many TUI apps to build an text-based integrated personal information management solution, and I really don’t want to add more of them… but I want the fucking features!

I was lacking RSS support on my PIM, so i decided to integrate it, somehow, on the mutt mail user agent, but guess what? Mutt does not support it…
I recently migrated all my systems to google apps, and started using IMAP with mutt, and I never tough that would get me to have a rss feed reader on mutt.

First of all, let’s itnroduce the external utility we’ll be usign to this, it’s a daemon, fee2imap, wich will provide us rss feeds on our imap accounts, so I can read them as if they were mails with mutt.
I’m going to configure it in three lines to use google apps and get http://meneame.net ‘s rss:

feeds:
- name: meneame
url: http://www.meneame.net/rss2.php
target: imaps://user%40domain:pass@imap.gmail.com:993/INBOX.meneame

Erm, et, well, there it is. Sort blog post, but huh, it’s easy as hell… the most notable things are that you have to be careful on putting the “s” on imaps (that drove me nuts), otherwise, it’ll just hang there, no advices of any kind, and that you should be careful with the “@”, replace it with %40 as noted on config file samples.

Now, we put that on ~/.feed2imaprc and launch feed2imap