Help on lame! Root flag gets an error

I try to run the exploit and it’s not working and I don’t know why. I hope you can help and thank you for your time. I have tried other exploits and the same error.

msf5 exploit(multi/samba/usermap_script) > use exploit/multi/samba/usermap_script
msf5 exploit(multi/samba/usermap_script) > set RHOSTS 10.10.10.3
RHOSTS => 10.10.10.3
msf5 exploit(multi/samba/usermap_script) > show options

Module options (exploit/multi/samba/usermap_script):

Name Current Setting Required Description


RHOSTS 10.10.10.3 yes The target host(s), range CIDR identifier, or hosts file with syntax ‘file:’
RPORT 139 yes The target port (TCP)

Exploit target:

Id Name


0 Automatic

msf5 exploit(multi/samba/usermap_script) > run

[-] 10.10.10.3:139 - Exploit failed: An exploitation error occurred.
[*] Exploit completed, but no session was created.

edit: I have the flag but when I try to submit it I get an error?

nvm Found out you need to set a payload

I have the lame flag but its not working

nvm im supid

forgot to rate

The exploit “multi/samba/usermap_script” failed to execute successfully. Ensure that the target IP address and port are correct, confirm the vulnerability has not been patched, check for any firewall or IDS blocking the exploit traffic. For the submission error, provide more details about the specific error message to determine the cause.

Regards,
Rachel Gomez