Wednesday, March 21, 2007
Stripping down a Gentoo based distro
Having played with the somewhat bloated (but beautiful looking) Sabayon Gentoo distro, I wanted to quickly strip down some of the fat so I wrote this little bash script (killpkg.sh) for removing packages en masse.
#!/bin/bash
# usage: killpkg.sh media-tv
for PKG in `egrep $1 /var/lib/portage/world` ; do
emerge --unmerge $PKG
done
The nice thing is that it accepts regular expressions thanks to egrep. But use it carefully, as it could easily make a distro unbootable.
#!/bin/bash
# usage: killpkg.sh media-tv
for PKG in `egrep $1 /var/lib/portage/world` ; do
emerge --unmerge $PKG
done
The nice thing is that it accepts regular expressions thanks to egrep. But use it carefully, as it could easily make a distro unbootable.
Friday, December 15, 2006
Transcoder
This is a little app that was spawned out of some web application pen testing. Transcoder modifies strings and can:
Transcoder also supports dragging and dropping of text files. You can find a standalone .EXE version here.
- Change case - upper or lower
- Remove duplicates
- URL Encode & decode
- Base64 Encode & decode
- Escape special characters
- Do regular expression search & replaces
- Sort
- MD5 Hash
- Calculate the length of text.
Transcoder also supports dragging and dropping of text files. You can find a standalone .EXE version here.
rDNS - Bulk reverse DNS resolver
This is multi-threaded tool for doing bulk reverse DNS lookups to locate host names. It handles multiple host names (i.e. multiple host names bound to a single IP). I have released it as a Windows standalone .EXE for simplicity.
The tool returns no output for unsuccessful lookups and is only limited by the speed of your ISP's DNS server. It can happily reverse a class B in around 6 minutes.
rdns 10.0.0.0/24
You can download rDNS from here.
The tool returns no output for unsuccessful lookups and is only limited by the speed of your ISP's DNS server. It can happily reverse a class B in around 6 minutes.
rdns 10.0.0.0/24
You can download rDNS from here.
SimpleIP Ruby IP Address Management Library
This is Ruby library for handling simple IP related tasks such as forward and reverse DNS lookups as well as providing a basic IP address management class.
require 'SimpleIP'
ipaddress = SimpleIP.host2ip("www.pentester.com.au")
server = SimpleIP.ip2host(ipaddress)
network = SimpleIPNetwork.new("10.0.0.1-10")
network.each do | ip |
print ip
end
network.set("10.0.0.1-1.255")
print network.first()
print network.last()
network.set("10.0.0.0/28")
print network.includes?("10.0.0.1")
print network.includes?("10.1.1.1")
The class handles IP ranges including CIDR blocks.
The SimpleIP library can be downloaded from here.
require 'SimpleIP'
ipaddress = SimpleIP.host2ip("www.pentester.com.au")
server = SimpleIP.ip2host(ipaddress)
network = SimpleIPNetwork.new("10.0.0.1-10")
network.each do | ip |
print ip
end
network.set("10.0.0.1-1.255")
print network.first()
print network.last()
network.set("10.0.0.0/28")
print network.includes?("10.0.0.1")
print network.includes?("10.1.1.1")
The class handles IP ranges including CIDR blocks.
The SimpleIP library can be downloaded from here.
Friday, November 11, 2005
Drives Enumerator
Drives enumerator is command line (DOS) program that enumerates the current in use drive letters on a Windows system. It ignores floppy drives but does include currently mapped network drives.
It writes to STDOUT making it ideal for scripting. For example :
for /F "usebackq" %%i in (`drives`) do tree %%i:\ > tree_%%i.txt
will write a directory tree of each drive to tree_drive.txt
Download drives enumerator (8kb)
It writes to STDOUT making it ideal for scripting. For example :
for /F "usebackq" %%i in (`drives`) do tree %%i:\ > tree_%%i.txt
will write a directory tree of each drive to tree_drive.txt
Download drives enumerator (8kb)
Tuesday, January 25, 2005
LMCrack v0.2.1
LMCrack is a Windows LanMan hash cracking tool. LMCrack can test a SAM file (dumped with PWDump or SAMDump) against 3 trillion dictionary words and dictionary word derivatives in under 60 seconds.
Why and how LMCrack is so effective and fast can be found in an article at InfoSecWriters.
Platform: Windows
Direct Download (35MB)
Why and how LMCrack is so effective and fast can be found in an article at InfoSecWriters.
Platform: Windows
Direct Download (35MB)