Added Samba, BusyBox and a bind shell service

This commit is contained in:
Héctor Molinero Fernández
2021-11-07 22:02:39 +01:00
parent 29e5bec8ba
commit 92dd9a8e7e
8 changed files with 110 additions and 6 deletions

12
scripts/bin/vmshell Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -eu
# Wait until bind shell is available
until printf 'exit\n' | nc 127.0.0.1 5151 >/dev/null 2>&1; do sleep 1; done
if [ -t 0 ] || [ -t 1 ]; then
exec rlwrap nc 127.0.0.1 5151
else
exec nc 127.0.0.1 5151
fi