Sunday, December 25, 2016

get shell via serial port on linux host

1- if you test using virtualbox, on virtual machine setting, on serial ports
 - check on "enable serial port"
 - port number "COM1"
 - port mode "TCP"
 - Path/Address "localhost:20000"

so on your host machine execute the following command to listen and wait for the connection from the vm machine
$ nc -vvv -l 20000

2- after you boot to linux execute the following to create tty on serial port, /dev/ttyS0

$ sudo getty -8 115200 ttyS0

then the login will appear on your host machine,
below is the snapshot of it.

No comments:

Post a Comment