Metasploit mailing list archives

Error creating socket: Connection failed:


From: hdm at metasploit.com (H D Moore)
Date: Fri, 20 Aug 2004 03:11:36 -0500

On Friday 20 August 2004 02:28, gatekeeper wrote:
Hi,

I am running metasploit within cgywin. I always get this error:
[*] Error creating socket: Connection failed: Operation now in progress

This message means that whatever host/port that you tried to connect to 
was not responding in time. The Framework uses non-blocking connect calls 
IIRC. In other words, this is not an error with the Framework, but one 
with your settings.

msf windows_ssl_pct(win32_bind) > exploit RHOST
This is not the correct syntax; the "exploit" command takes no arguments.

[*] WARNING: the correct case of the 'target' variable is 'TARGET'
This means that you need to "set TARGET X", not "set target x", the 
environment is case-sensitive.

msf windows_ssl_pct(win32_bind) > set target 6
target -> 6
This should be "set TARGET 6".

msf windows_ssl_pct(win32_bind) > set
Avoid: 0
There is no "Avoid" variable, not sure why this was set.

Keys: win32_bind
There is also not "Keys" variable.

PAYLOAD: win32_bind
RHOST: 192.168.3.3
This IP address is not accepting connections to port 443 (the default 
port). You can view all default settings with the command "show options" 
after selecting an exploit.

Space: 1800
There is no "Space" variable

msf windows_ssl_pct(win32_bind) > exploit
[*] Error creating socket: Connection failed: Operation now in progress

msf windows_ssl_pct(win32_bind) > set RHOST 192.168.3.9
RHOST -> 192.168.3.9
[*] Error creating socket: Connection failed: Operation now in progress
This system is also not accepting connects on port 443 (or is firewalled 
off completely, as the error suggests). You can verify this with a 
command like:

msf > bash
$ telnet 192.168.3.9 443

Please take a few minutes to read over the online documentation, in 
particular the crash course, it should make the correct usage a bit more 
clear:

http://metasploit.com/projects/Framework/docs/CrashCourse-2.2.html
http://metasploit.com/projects/Framework/documentation.html

-HD




Current thread: