
Originally Posted by
DeadWolf
Why do you think starting msfconsole from the same directory (as the script) matters?
because it loads a different nmap Version:
Code:
root@root:~# cd /opt/framework/msf3/
root@root:/opt/framework/msf3# msfconsole
...SNIP...
msf > nmap -sT -A --script=smb-check-vulns -P0 192.168.1.136[*] exec: nmap -sT -A --script=smb-check-vulns -P0 192.168.1.136
Starting Nmap 5.51SVN ( http://nmap.org ) at 2012-01-29 06:43 EST
Traceroute does not support idle or connect scan
QUITTING!
msf >
now try starting msfconsole from /opt/framework/msf3/
Code:
root@root:/opt/framework/msf3# ./msfconsole
....SNIP....
msf > nmap -sT -A --script=smb-check-vulns -P0 192.168.1.136[*] exec: nmap -sT -A --script=smb-check-vulns -P0 192.168.1.136
Starting Nmap 5.59BETA1 ( http://nmap.org ) at 2012-01-29 06:45 EST
Nmap scan report for 192.168.1.136
Host is up (0.00060s latency).
Not shown: 997 closed ports
PORT STATE SERVICE VERSION
as you can see, the first call uses Nmap 5.51SVN which doesn't work, the second one uses 5.59BETA1 which works! hope this helps.