Closed theguly closed 7 months ago
running weevely in the "onecmd" mode as per https://github.com/epinna/weevely3/blob/master/weevely.py#L59 doesn't run anything if the session has not been established beforehands.
i guess the self.default() called at https://github.com/epinna/weevely3/blob/0bae932d5cb0e96370e1b76fbdb6ca84bd42c0ed/core/terminal.py#L106 after no do_ or doalias commands are found doesn't support an session with empty default_shell
to reproduce:
now force a shell_sh:
open a session and run a single command:
Fixed by 3fe896a.
running weevely in the "onecmd" mode as per https://github.com/epinna/weevely3/blob/master/weevely.py#L59 doesn't run anything if the session has not been established beforehands.
i guess the self.default() called at https://github.com/epinna/weevely3/blob/0bae932d5cb0e96370e1b76fbdb6ca84bd42c0ed/core/terminal.py#L106 after no do_ or doalias commands are found doesn't support an session with empty default_shell
to reproduce:
now force a shell_sh:
open a session and run a single command: