Skip to content

Compilation error without port #3

@advidsec

Description

@advidsec

If a user set http by default the port should be 80 and with https 443

The problem is if the port is not included a user might get this error, for example setting http://domain.com/

Might be interesting set a disclaimer setting the port as mandatory or in other field

StdErr:
Error building payload: not enough values to unpack (expected 2, got 1)
Traceback (most recent call last):
File "/Mythic/xenon/mythic/agent_functions/builder.py", line 337, in build
hostname, port = url_without_scheme.split(':')
^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)

StdOut:

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