Internal Links

Pages

  • Recent Posts

  • Archives

  • Online Tools

Install the Metasploit Framework on Apple Mac OS X

Mac OS X 10.5 (Leopard) and 10.6 (Snow Leopard) come pre-installed with Ruby 1.8, but we recommend that you install Ruby 1.9 from MacPorts instead.

Install MacPorts

  1. Make sure you have Xcode installed - http://developer.apple.com/tools/xcode/
  2. Download and install the .dmg from MacPorts - http://www.macports.org/

Verify that MacPorts is up to date

$ sudo port selfupdate

 Install Ruby 1.9.1

Once MacPorts has been configured, you can install a new version of Ruby and RubyGems with the following command:

$ sudo port install ruby19 +nosuffix
This will install ruby into /opt/local/

For a complete listing of all the files that were installed, run:

$ port contents ruby19

You should verify that your PATH is set correctly such that /opt/local/bin is listed before /usr/bin.

$ echo $PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin 
$ which ruby gem /opt/local/bin/ruby /opt/local/bin/gem

 Install a database (optional)

Some Metasploit Framework functionality requires a database. We support and recommend using postgres. That said, the Metasploit Framework also contains drivers for MySQL.

PostgreSQL:

$ sudo env PATH=/opt/local/lib/postgresql84/bin/:$PATH 
$ sudo port install postgresql84-server 
$ sudo gem install pg

MySQL:

$ sudo port install mysql5-server 
$ sudo gem install mysql

 Install and use the Metasploit Framework

Once Ruby and RubyGems have been properly installed, download the Unix tarball from the Metasploit Framework Website and extract it to the directory of your choice. Change into the framework3 directory and execute msfconsole to get started.

Learning Things Quick With Simple-Wiki

Dear Viewer (who if you’re like me you Google your way through life),

So, you’re standing alone, naked, in the middle of a freeway, talking to your close friend, when he busts out the term “Random access memory” In moments you realize that that word doesn’t mean anything to you and in a flurry of fear and confusion you whip out your iPhone and head on over to Wikipedia to look it up. Unfortunately if you did take the “wiki” path you’d be screwed. The Wikipedia entry for “Random access memory” upwards of 5 pages long. So, what do you do in a situation like this?

http://simple.wikipedia.com

Surprisingly, not that many people know about this magnificent version of wikipedia. It creates really short and easy to understand version of, what could be, really complex things. Look at this side by side comparison between the page for RAM on simple.wikipedia.com and the same page but on wikipedia.com

Calibrize

In many cases when I’m working I have many windows open so I make good use my dual monitor setup. Well one of the problems that I had is that even with 2 or 3 of the same exact monitor there is a color difference between them and this can become quite annoying. However, Calibrize offers the solution and fixes this for me.

Calibrize is free software that helps you to calibrate the colors of your monitor in three simple steps. Just download the software and follow the procedure to generate a reliable color ‘profile’ and adjust the colors of your monitor automatically.

Changing the MAC address in Windows – The Manual Way!

*Note: I know there are programs such as Mac Makeup to automate this process but in a situation where if you didn’t have the program on the system or simply didn’t have the proper permissions this tutorial could be very useful.

http://www.nthelp.com/NT6/change_mac_w2k.htm

DNS Hacks for Faster Web Browsing

What is DNS? Domain Name System (DNS) is like a phone book, but for Internet. DNS translates human-readable computer hostnames, e.g. www.softpedia.com, into an IP address needed by the networking equipment to deliver information. In other words, when you open your browser and type an URL in the address bar , e.g. www.softpedia.com, the DNS server translates that URL into a numeric IP address, from www.softpedia.com to 193.226.140.131. To understand better, type the IP address from the previous example into your browser’s address bar and you will see that it will be transformed into www.softpedia.com.

Now, if you have a DSL, ADSL, Dial-up or FIOS (fiber-optic service) Internet connection, you must understand that your computer uses the default DNS server(s) from your Internet Service Provider (ISP) and if this DNS server is slow in resolving URLs, you (the victim) will see that almost all the web pages that you try to access, are loading slow. So, practically it doesn’t matter how fast your Internet pipe is. For example, you can be the proud owner of a 1 Gbps bandwith, but if the DNS servers from your ISP are slow, your web surfing will be slow too.

What can you do to fix this? You can call or go to your ISP and complain about this problem, until you get tired probably, or you can continue reading this guide in order to improve your web surfing sessions.

Use OpenDNS - Make your Internet better

Probably you have figured it out already that you must change your DNS servers, in order to speed up your web surfing. And to achieve this, you will have to use the OpenDNS service, which is the #1 DNS service provider around the world. OpenDNS is FREE and requires nothing to download. Moreover, it will not replace your existing Internet connection, it will just make it better. Also, OpenDNS offers some other free services, like the possibility to have your personal web shortcuts. For more information about OpenDNS please visit the official home page.

Here is what you must do. Please back up your DNS addresses before replacing them with the ones from OpenDNS, in case you want to return to them later for any reason. The DNS server addresses for OpenDNS are:

208.67.222.222
208.67.220.220

For Static IP address

If you have a static IP address that you must manually configure in order to have Internet access, please use the following method.

Open a console and type:

sudo gedit /etc/resolv.conf 

Read more ›

Python webcomic

http://xkcd.com/353/

Root method for .621 update

http://forum.xda-developers.com/showthread.php?t=1560608

***Root method for .621 update***
THIS IS FOR USERS WITH THE .621 UPDATE ONLY. IF YOU HAVE NOT UPDATED DO NOT USE THIS METHOD.
*****DO NOT USE WINDOWS*****DO NOT USE RSDLITE*****

Instructs are made by Skelente

1.) Download the latest Ubuntu iso for your system. Most processors these days are 64 bit, but if you’re running on an older computer or do not know if you have a 32 or 64 bit processor I’d recommend doing 32 bit just to be safe (64 bit processors can run both 32 and 64 bit distributions, but 32 bit systems cannot run 64 bit distributions.) Side note: you can download other distributions, but if you do you will not be able to create the persistent drive using the USB method. It should also be noted that some older systems cannot boot from USB, most newer systems (post 2000/2001 IIRC) can boot from USB, however you should consult Google to verify for your system.

2.) Burn the iso:
2.a If you have a cd burner and blank disc, this is the easiest method but, again, you will not have a persistent drive you will just have a Live CD. Use an iso burner to burn to cd, then skip to step 3a.
2.b If you do not have a burner, a blank disc (or don’t feel like wasting a DVD disc) but have a free USB drive (with at least 2 GB of memory, bit overkill but it has to be big enough to hold the iso + changes + the persistent “drive”) then I recommend downloading either unetbootin or universal USB installer. Go to either web site and follow their instructions. If you use Ubuntu, you’ll have the option of creating a persistent drive, which is basically a fake-partition that allows you to save files to when you reboot Linux after running this Live USB. I would recommend using a persistent size of at least 200 mb so we can save the SBF file and sbf_flash. If you created a persistent drive go to step 4. If you opted out of this, skip to step 4.

3.a So you have a Live CD now. If you have a spare flash drive, load up the 604 SBF and sbf_flash. Either way, you’ll need to proceed to booting into linux, go to step 4.
3.b Once the respective application has finished, copy the SBF and sbf_flash file to the persistent drive listed in windows.

Read more ›

A Word on Screen

Most of the time GUI is not available on remote Linux system, you login over ssh and start to work, if you need to run two or three task at a time, you login over ssh two or three times. However, there’s no need for that because with screen windows manager utility you can run multiple terminals at the same time from single console login over ssh session (UNIX guru uses the term called multiplexing for this concept). Any seasoned Linux admin should be aware of this nifty tool.

Install screen if it is not installed under Debian Linux

Type the following command:

# apt-get install screen

FreeBSD user can use ports to install screen

# cd /usr/ports/misc/screen 
# make install clean

Login to remote server over ssh

$ ssh [email protected]

(C) Start screen session. You can name your window/session (1 is name of session):

$ screen -S 1

Let us start pine mail reader on first session or window.

$ pine

Read more ›

Disable the Powersave Option

I often work on multiple boxes sharing a keyboard and monitor. When I switch back and forth between boxes after being away for a short period of time, the display is blank and I need to hit a key to make it come back. Usually I’m only switching to check the status of a program that is running and hitting a key interferes with the output and sometimes even gets run as a command on exit. You can disable this annoying powersave option by adding one line to an init script on debian and fedora. Add the following to /etc/rc.local and make sure the file is executable:

/usr/bin/setterm -powersave off -blank 0 
exit 0

Tunneling Web Traffic through Two SSH Connections

This double proxy allowed me to browse any website and use any network application with a proxy option.

The first step was to create a socks5 proxy on my localhost to tunnel traffic to the remote-server, but forwarding another ssh connection through that proved to be a little more difficult. With putty it was a simple matter of going through the gui options and sending the connections through a proxy, but I wanted to use the built in terminal client for scripting an easy one step command to open a connection to my home server. With a little help from friends on irc I came to the proper command. The first step was to create a tunnel that would forward an ssh connection from my laptop to the school’s unix server then on to my home server with this command:

ssh -L 9090:home-server:22 username@unix-server

You would of course substitute your own server ip addresses and login information for home-server, username, and remote-server. If you are familiar with the network operation performed by this command you can change anything else as well to suit your needs. What this does is setup a tunnel to send an ssh connection to your home server through the remote-server, but it won’t actually do anything until you run the following command:

ssh -D 7070 username-on-home-server@localhost -p 9090

This command creates the actual socks5 proxy you’ll be directing all your outbound web traffic to on localhost port 7070 and sends the ssh connection through the tunnel created with the previous command to the remote-server. Simple enough. Just enable the proxy option in your web browser and other network applications as localhost, port 7070, socks5 and you’ll be browsing the internet as god intended and encrypted. Twice.

External Links

Hit Counter

  • Time

  • Linux and System Administration

  • Network Security Research

  • Conventions and Conferences

  • Geek Culture