10BC0
Skip to content

ssh module doesn't work with ForceCommand, and qemu output is invisible. #1937

@lonnywong

Description

@lonnywong

environment

$ docker run -it pwntools/pwntools:stable
pwntools@bb0ca7101abf:~$ sudo apt -y install sshpass vim

cat test.py

from pwn import *

# s = ssh('rootkit', 'pwnable.kr', 2222, 'guest')  # ssh is not working with ForceCommand

p = process('sshpass -p guest ssh -oStrictHostKeyChecking=no rootkit@pwnable.kr -p2222', shell=True)

p.interactive()

python3 test.py

Screen Shot 2021-07-19 at 11 19 10 PM

python3 test.py DEBUG LOG_FILE=log.txt

log.txt

another example with local qemu

#1937 (comment)

but it's ok with python shell

Screen Shot 2021-10-28 at 11 31 50 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0