Code Snippets

How To Make Microsoft Excel Open Multiple Windows on Windows 7

At my job we use more excel spread sheets than I care to comment on. I have always used excel for various tasks but lately I have needed to learn it more. One thing I found really anoting is that you cannot open multiple windows with excel spread sheets. This makes transfering and comparing data in between the tough. So thanks to some vetern guys at my work, they showed me a little registry hack to get this working.

Code Snippets

Script to Find All IP Addresses on a Internal Network

I was working on a presentation this morning and as I was writing I realized I did not have a quick fast way to make a list of all the internal Ips on a LAN (Local Area network). Many of the tools I use including nmap, nessus and nexpose will accept a list of ips so  I decided to whip up a quick dirty shell script to get the job done.  I may clean it up in the future but for now it does its job. This is meant to work on Backtrack 4 but in its current state it will work on any Debian based distro. As always with any code found on the internet you use this at your own risk. Also I am sure this can be done better but like I said it was a 10 minute fix.

Code Snippets

Wordlist Menu Tool for Backtrack 4 Final

I get really sick of trying to remember all the commands I use to work with wordlists so I had some free time and decided to finally get it all in one place.  I started out just gathering all my notes in a text file but then I decided to code up a menu to make the commands easy to access. Normally I would keep something like this just for my own use since I doubt any one would want it but I decided to release it anyway.

Code Snippets

Postfix Logrotate Script For Gentoo Linux

Working on a friends server earlier this morning I noticed that he had logrotate configured but he did not have a configuration file for Postfix. Below is the quick one I whipped up for his environment including a brief explanation of each line of the configuration file below the script. Following the explanation of the various configurations is the command to actually force logrotate to run in debug mode so you can see what happens.