From 2721d59147eaf50943ac79834719ad6fe435711c Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 24 Dec 2016 15:37:44 +0100 Subject: busybox spawn shells and sinkdo. rescue_shell for critical things only. --- make-boot-image.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/make-boot-image.sh b/make-boot-image.sh index f1a8e5c..5aa0cc6 100755 --- a/make-boot-image.sh +++ b/make-boot-image.sh @@ -395,7 +395,7 @@ echo "rcS script started" set -v # Setup links for programs supported by busybox -/bin/busybox --install -s +/bin/busybox --install -s || rescue_shell # Mount pseudo-filesystems mount -t proc none /proc || rescue_shell @@ -406,21 +406,13 @@ mount -t devtmpfs -o size=1m none /dev || rescue_shell mount -o remount -o size=80% / # Load keyboard map -loadkmap < /etc/keys.bmap || rescue_shell - -# Starting sinkdo trojan on tty2 (feed data to uploaded scripts via uftp) -tty_prog 2 sinkdo /run/uftpd /run/sink & - -# Start some debug shells (background) -for i in 3 4 5 6; do tty_prog $i sh & done +loadkmap < /etc/keys.bmap network_up efibootmgr -v machine_info network_show start_uftpd -# Remote control on telnet port (23). You could press Alt+F3 to have a shell. -nc -ll -p 23 -e /bin/sh -i EOF chmod +x "$WORKDIR/initrd/etc/init.d/rcS" -- cgit v1.2.3