Page 1 of 1

Disabling REPL on esp32 UART0

Posted: Mon Aug 31, 2020 8:28 am
by Geoffrey
Could someone please guide me through how to disable REPL on UART0.
My thoughts: this could be a security vulnerability on your system when deployed as someone can easily plug in a USB cable and see everything in your system
Kindly assist.

Re: Disabling REPL on esp32 UART0

Posted: Wed Oct 21, 2020 7:18 pm
by ihornehrutsa
Write in boot.py:

Code: Select all

from uos import dupterm
dupterm(None, 1)  # Disable REPL on UART(0)
But not ideal, if a hacker breaks the boot.py before this code, he can catch the REPR.