February2011

Dbus session bus address with applications using SSH

With one host connecting and launching dbus sessions, this should work. You can get the variable from running sessions in /proc/ /environ. But as soon as you have multiple hosts, you need to figure out which host you’re coming from.

Print without a newline in Python

With python 3 you can override the print function’s delimiter value to make it null or whatever else you want. But if you’re stuck with 2.5 or 2.6 like the rest of us, try this on for size. The only problem with this is when you want to use it like a progress bar. If you do this in a loop over time, you will get the expected output, but over time it won’t be the way you expected.

Generate Diagrams with yEd Graph Editor

Get rid of Microsoft Visio once and for all. yEd is a powerful diagram editor that can be used to quickly and effectively generate high-quality drawings of diagrams. I love that I can run this anywhere I have the run-time environment available. You can output your charts in many formats, even in Flash.

Sniff video streams with UCSniff and Videosnarf

ooking to sniff your VoIP traffic? ccording to the sourceforge site, UCSniff is a VoIP & IP Video Security Assessment tool that integrates existing open source software into several useful features, allowing VoIP and IP Video owners and security professionals to rapidly test for the threat of unauthorized VoIP and Video Eavesdropping.

Make Linux ignore pings without touching the firewall

Perhaps you don’t have iptables running or you don’t want to process icmp stuff in your firewall rules. Echo this as root, and it will take effect immediately. If you’re wondering if changing things like this, tcp timeouts, and open ports will trick nmap fingerprint scanning, the answer is no.