0% found this document useful (0 votes)
171 views2 pages

NGROK Setup

This document contains a batch script that generates a random password, creates a local administrator account with the generated password, and downloads and configures additional tools on the system. It sets up an RDP connection and provides the credentials for remote access.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views2 pages

NGROK Setup

This document contains a batch script that generates a random password, creates a local administrator account with the generated password, and downloads and configures additional tools on the system. It sets up an RDP connection and provides the credentials for remote access.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

@echo off

setlocal
if not "%1%"=="if" (
goto csmpw
)
goto rdmpw
:csmpw
set "_Password=%1"
goto crtacc
:rdmpw
set "set[1]=ABCDEFGHIJKLMNOPQRSTUVWXYZ" & set "len[1]=26" & set "num[1]=0"
set "set[2]=abcdefghijklmnopqrstuvwxyz" & set "len[2]=26" & set "num[2]=0"
set "set[3]=0123456789" & set "len[3]=10" & set "num[3]=0"
set "set[4]=~!@#$%%" & set "len[4]=6" & set "num[4]=0"
setlocal EnableDelayedExpansion
set "list="
for /L %%i in (1,1,10) do (
set /A rnd=!random! %% 4 + 1
set "list=!list!!rnd! "
set /A num[!rnd!]+=1
)

:checkList
set /A mul=num[1]*num[2]*num[3]*num[4]
if %mul% neq 0 goto genpw
set /A num[%list:~0,1%]-=1
set "list=%list:~2%"
set /A rnd=%random% %% 4 + 1
set "list=%list%%rnd% "
set /A num[%rnd%]+=1
goto checkList

:genpw
set "_Password="
for %%a in (%list%) do (
set /A rnd=!random! %% len[%%a]
for %%r in (!rnd!) do set "_Password=!_Password!!set[%%a]:~%%r,1!"
)

:crtacc
del /f "C:\Users\Public\Desktop\Epic Games Launcher.lnk" > out.txt 2>&1
net config server /srvcomment:"Windows Azure VM" > out.txt 2>&1
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /V
EnableAutoTray /T REG_DWORD /D 0 /F > out.txt 2>&1
net user runneradmin %_Password%
echo All done! Connect your VM using RDP. When RDP expired and VM shutdown, Re-run
jobs to get a new RDP.
sh ip.sh
echo User: runneradmin
echo Pass: %_Password%
curl -O
https://raw.githubusercontent.com/mrijoo/RDP/main/Files/DisablePasswordComplexity.p
s1 > out.txt 2>&1
curl -o "C:\Users\Public\Desktop\Fast Config VPS.exe"
https://raw.githubusercontent.com/mrijoo/RDP/main/Files/FastConfigVPS_v5.1.exe >
out.txt 2>&1
curl -o "C:\Users\Public\Desktop\Everything.exe"
https://raw.githubusercontent.com/mrijoo/RDP/main/Files/Everything.exe > out.txt
2>&1
curl -o "C:\Users\Public\Desktop\Windows-User.bat"
https://raw.githubusercontent.com/mrijoo/RDP/main/Files/Windows-User.bat > out.txt
2>&1

PowerShell -NoProfile -ExecutionPolicy Bypass -Command "&


'./DisablePasswordComplexity.ps1'" > out.txt 2>&1
diskperf -Y >nul
sc start audiosrv >nul
sc config Audiosrv start= auto >nul
ICACLS C:\Windows\Temp /grant runneradmin:F >nul
ICACLS C:\Windows\installer /grant runneradmin:F >nul
ping -n 10 127.0.0.1 >nul

You might also like