To Use This Script In BackTrack5 R2

Just Edit It With Nano

And Change The Metasploit Path From /pentest/exploit/framework3/ to /opt/metasploit/msf3/ and save it !!