Skip to content

'color false' not affecting the prompt #9096

@glezo1

Description

@glezo1

I love running msf as a service (msfd) an using netcat as a thin client rather than msfconsole, as nc is up in less than one second.
So, working with nc, I always set 'color false', and I came to realize that the prompt is not honouring the color false directive.

Steps to reproduce

msfd -q -a 0.0.0.0
nc 127.0.0.1 55554
nc>color false
nc>set PROMPT msf

After setting the prompt, you can see that nc receives from the server:

0x20 [blank]
0x01 [SOH, start of header]
0x02 [SOT, start of text]
0x3E [>]
0x20 [blank]

The issue lays on removing the 0x01 and 0x02 from the prompt when 'color false' has been stablished.

Expected behavior

0x20 [blank] 0x3E [>] 0x20 [blank]

Current behavior

0x20 [blank] 0x01 [SOH, start of header] 0x02 [SOT, start of text] 0x3E [>] 0x20 [blank]

System stuff

Metasploit version

framework: 4.16.7-dev
console: 4.16.7-dev

OS

kali 2017.2

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions