This is a metasploit issue not a Backtrack one.
Have you tried purging metasploit than installing it again?
Hi,
I am getting syntax error when trying to update metasploit using command msfupdate.
msf > msfupdate[*] exec: msfupdate
/opt/metasploit/msf3/msfupdate:79: syntax error, unexpected tLSHFT, expecting $end
<<<<<<< .mine
I am using Backtrack 5 R3 and when i tried to run metasploit I get more syntax errors. I have already tried apt-get update and apt-get upgrade
root@bt:~# msfconsole
[-] WARNING! The following modules could not be loaded!
[-] /opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb: SyntaxError /opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:35: syntax error, unexpected tLSHFT, expecting ')'
<<<<<<< .mine
^
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:36: syntax error, unexpected tASSOC, expecting keyword_end
'Version' => '$Revision: 16005 $',
^
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:36: syntax error, unexpected ',', expecting keyword_end
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:37: syntax error, unexpected tASSOC, expecting keyword_end
'Platform' => [ 'windows' ],
^
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:37: syntax error, unexpected ',', expecting keyword_end
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:39: syntax error, unexpected tASSOC, expecting keyword_end
'Version' => '$Revision: 16005 $',
^
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:39: syntax error, unexpected ',', expecting keyword_end
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:40: syntax error, unexpected tASSOC, expecting keyword_end
'Platform' => [ 'win' ],
^
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:40: syntax error, unexpected ',', expecting keyword_end
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:42: syntax error, unexpected tASSOC, expecting keyword_end
'SessionTypes' => [ 'meterpreter' ]
^
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:43: syntax error, unexpected ')', expecting keyword_end
))
^
/opt/metasploit/msf3/modules/post/windows/gather/credentials/outlook.rb:379: syntax error, unexpected $end, expecting keyword_end
IIIIII dTb.dTb _.---._
II 4' v 'B .'"".'/|`.""'.
II 6. .P : .' / | `. :
II 'T;. .;P' '.' / | `.'
II 'T; ;P' `. / | .'
IIIIII 'YvP' `-.__|__.-'
I love shells --egypt
=[ metasploit v4.5.0-dev [core:4.5 api:1.0]
+ -- --=[ 985 exploits - 540 auxiliary - 161 post
+ -- --=[ 262 payloads - 28 encoders - 8 nops
Please help
This is a metasploit issue not a Backtrack one.
Have you tried purging metasploit than installing it again?
Back|track giving machine guns to monkeys since 2007 !
Do not read the Wiki, most your questions will not be answered there !
Do not take a look at the: Forum Rules !
hi mannigill1, the folowing commands will do it for ya ;-)
cd /opt/metaspoilt
./uninstall
then download metasploit from the website www.mettasploit.com and install it as sickness suggested, am sure it will work for you, but just make sure you download the latest vision and just go for the default installation,
./metaspoiltyourlatestversion.run
good luck
I delete outlook.rb,It's fine![]()
No need to delete the outlook.rb, simply edit the file (modules/post/windows/gather/credentials/outlook.rb) and delete the lines 35, 38 and 41. Ready, fix a glitch.
Regards,
(gdb) disass m(y_br)ain
®
Actually, it is only problem in one line:
'Version' => '$Revision: 16264 $',
Change it to be:
'Version' => ['$Revision: 16264 $'],
Of course, remove those lines which might injected by msfupdate:
<<<<<<< .mine
=======
>>>>>>> .r16327
Again, don't need to remove )) or list "end" line.
hi
i have a problem if you can answer me
plz send my email id : arshia_paknejad@yahoo.com
msf > db_status sqlite3[*] postgresql connected to msf3dev
msf > db_connect sbh1
[-] Error while running command db_connect: Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Call stack:
/opt/metasploit/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1600:in `db_connect_postgresql'
/opt/metasploit/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1438:in `cmd_db_connect'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:383:in `each'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single'
/opt/metasploit/msf3/lib/rex/ui/text/shell.rb:200:in `run'
/opt/metasploit/msf3/msfconsole:148:in `<main>'
msf >
Solved hire http://www.backtrack-linux.org/forum...ad.php?t=61247
if it does not work, then try with Synaptic using (Couplet removal)