Sunday 26 June 2011

Metasploit - How to log the output of what you are doing

Yes, I admit it, I also was one of the people scrolling up and down to find the information I was looking for in a module's output, or copying the whole stdout to a file in order to make my life a bit easier. As of revision r13028 [1] the console now supports the spool command.
(To access the new command, use the msfupdate command on Linux (or just "svn update") or the Metasploit Update link on Windows)


No more hassle, you can use the spool command to log all the stdout to a file automatically! So, while in metasploit, you can type:


spool on


or


spool /root/msfoutput.txt


and anything you do will be logged in that file (all output will always append).




If you want to stop this just type:


spool off




As a quick tip, you can either check the contents of the log file by using the 'cat' command or follow the stream as it is being generated by using the 'tail -f' command


Hope you find this helpful as I did! :D







[1] https://community.rapid7.com/community/metasploit/blog/2011/06/25/metasploit-framework-console-output-spooling

Monday 16 May 2011

Free Up Hard Disk Space On Windows

This is a proper quick-list for freeing disk space on your Win7 System. Obviously, if you want to free up space consider uninstalling unwanted programs using the Programs and Features feature in your Control Panel. Also, consider running a search for large files that you might have missed/forgot to delete (such as virtual machines, music video files or installation package). Compared to other lists on the web, the order in this list is actually important


Sunday 11 July 2010

Installing Windows from USB - The easy way

Microsoft has a tool which allows you to create a bootable* USB drive (or DVD, but dual-layer discs are not supported) for installing a copy of Windows. The tool is called: Windows USB/DVD Download Tool

The Windows USB/DVD Download tool allows you to create a copy of your Windows 7/8 ISO file on a USB flash drive or a DVD. To create a bootable DVD or USB flash drive, download the ISO file and then run the Windows 7 USB/DVD Download tool. Once this is done, you can install Windows 7 or Windows 8 directly from the USB flash drive or DVD. 

Wednesday 12 August 2009

Wireless HotSpot using your laptop (Windows 7 and Windows 8)

I get to travel around and I have stayed in a number of hotels. One of the most important things for me is Internet access during my stay. I have been to hotels (major hotel chains) where the WiFi signal is so weak in the room that sometimes you need stand by the open door in order to send an email. That is not very convenient, so I needed a quick solution in such cases. By creating a hotspot using your laptop's Wireless adapter, you can have a very strong signal anywhere in the room to access the Internet from any other devices you may have with you (e.g. mobile phone).

I am assuming that your laptop has both an Ethernet port and a Wireless adapter. Before you start check Windows Updates to make sure you have all the latest security updates and the latest drivers for your Ethernet card and the Wireless adapter (consider rebooting if needed).

Sunday 31 August 2008

Reverse IP Lookup under Windows

Yes, dig is an amazing Linux tool, and yes, you can do reverse lookups by typing:
dig -x [IP Address]

However, if you need similar functionality under Windows, you can do:
nslookup [URL]

or for reverse lookups:

nslookup -type=PTR [IP Address]