Technology Insights

Launch Terminal Window & Run A Command From Gnome Menu Item

Tonight I was working on creating some some listeners that run automatically on boot in Ubuntu. Not only should they run automatically but there should be scripts to start, stop, and watch the status of the listeners for incoming traffic. I also decided to add the items to the Ubuntu Applications menu and thought it would be neat if when the menu item was selected that it automatically launched a terminal window and ran the command automatically. Turns out that doing exactly that is really easy as explained below.

Details
Information Security

Filter Wireless Network Captures By SSID Using TShark

It is very common when obtaining wireless network handshakes to end up with a huge capture(.cap or .pcap typically) file. Previously purehate wrote this article on filtering out SSID specific EAPOL packets from a capture file but if you wanted to keep any and all packets related to a specific SSID including data packets, beacon frames, etc. the below tshark command will accomplish that. This is very similar to the previous article but will provide more data for the user and still slim down a capture file if you had packets from multiple SSID’s.

Details
Information Security

SSLScan Install Error: ld: symbol(s) not found for architecture x86_64, Install SSLScan On OSX Lion

Installing SSLScan on OSX is documented numerous other places as well but you may not find the answer immediately when searching via the error output during an attempted install. Below is the output from attempting to install SSLScan on OSX without using the ports version of OpenSSL. Follow the directions below to get SSLScan working on OSX Lion.

Details
Technology Insights

PHP Script Using Exec Function & Launched From Crontab Hogging Server Memory

While working on a PHP script on a CentOS Linux server that runs from crontab I ran into an issue where PHP was bogging the server down because of memory use. The script has a lot of output that is not necessary to store though when using the exec function within the PHP script it was storing the unneeded output to an away which I believe was causing the memory usage problem. At first I thought I simply needed to modify the memory_limit setting within php.ini however that was not the true issue at hand. Below I describe two items to look at modifying if you run into a similar issue.

Details
Information Security

How To Set a Root CA to Untrusted on Mac OSX

I decided to make a quick post on how to set a trusted root CA to untrusted in Mac OSX. As some people may or may not know, one of the root CA authorities was recently hacked and several rouge certificates were issued including one with a domain name of  .google.com. Now DigiNotar, which is the company in question, claims that the have revoked all the rouge certificates and all is well. However, me being involved in infosec and security I would rather not take any chances so I decided to set DigiNotar to a “trust never” level on my machine for the time being. Below I will outline the few simple steps to do this for any certificate authority on Mac OSX.

Details