mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-09-11 06:14:32 +00:00
Added Samba, BusyBox and a bind shell service
This commit is contained in:
0
data/iso/reactos/3rdParty/.gitkeep
vendored
Normal file
0
data/iso/reactos/3rdParty/.gitkeep
vendored
Normal file
@ -1,3 +1,21 @@
|
||||
@echo off
|
||||
|
||||
%SystemRoot%\system32\shutdown.exe /s /t 5
|
||||
:: Install Samba
|
||||
copy "D:\reactos\3rdParty\samba.exe" "%SystemRoot%\bin\samba.exe"
|
||||
"%SystemRoot%\bin\samba.exe" -s
|
||||
|
||||
:: Install BusyBox
|
||||
copy "D:\reactos\3rdParty\busybox.exe" "%SystemRoot%\bin\busybox.exe"
|
||||
|
||||
:: Install bind shell service
|
||||
copy "D:\reactos\3rdParty\ncat.exe" "%SystemRoot%\bin\ncat.exe"
|
||||
sc create "BindShell" ^
|
||||
DisplayName= "Bind shell" ^
|
||||
BinPath= "ncat.exe -l -k -n -e \"cmd.exe /c (cmd.exe 2^>^&1)\" 51" ^
|
||||
Error= "ignore" ^
|
||||
Start= "auto"
|
||||
|
||||
:: Set UTF-8 encoding in CMD
|
||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d "CHCP 65001" /f
|
||||
|
||||
"%SystemRoot%\system32\shutdown.exe" /s /t 5
|
||||
|
Reference in New Issue
Block a user