-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.bat
137 lines (128 loc) · 4.92 KB
/
script.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@echo off
title KxSeven
chcp 65001 >nul
color 0d
mode con: cols=160 lines=50
cls
goto kx7
:kx7
cls
color 0d
echo " ____ ____ ______ ______ ____ ____ ______ _____ ______ ";
echo " | | | | _____ _____ ___|\ \ ___|\ \ | | | | ___|\ \|\ \ |\ \ ";
echo " | | | | \ \ / / | |\ \| \ \ | | | || \ \\\ \| \ \ ";
echo " | | / // \ \ / / | |/____/|| ,_____/|| | | || ,_____/|\| \ \ |";
echo " | |/ _ _// \____\/____/ ___| \| | || \--'\_|/| | | || \--'\_|/ | \ | |";
echo " | |\ \' / /\ \ | \ \___|/ | /___/| | | | || /___/| | \ | |";
echo " | | \ \ / / \ \ | |\ \ | \____|\ |\ \ / /|| \____|\ | |\ \| |";
echo " |____| \____\ /____/ /\ \____\|\ ___\|_____| |____ ' /|| \ ___\/___ / ||____ ' /| |____||\_____/|";
echo " | | | || |/ \| || | | | | /_____/ | \ | || | / | /_____/ | | |/ \| ||";
echo " |____| |____||____| |____| \|____|_____| |____| | / \|___||___|/ |____| | / |____| |___|/";
echo " \( )/ \( )/ \( )/ \( |_____|/ \( )/ \( |_____|/ \( )/ ";
echo " ' ' ' ' ' ' ' )/ ' ' ' )/ ' ' ";
echo "
echo.
echo.
echo TOOLS
echo ---------
echo 1) netstat
echo 2) ipconfig
echo 3) port scan
echo 4) net reset
echo 5) group policy reset
echo 6) group policy update
echo 7) fullscreen
echo 8) exit
echo.
set /p input=
if /I "%input%" EQU "1" goto netstat
if /I "%input%" EQU "2" goto ipconfig
if /I "%input%" EQU "3" goto portscan
if /I "%input%" EQU "4" goto reset
if /I "%input%" EQU "5" goto group
if /I "%input%" EQU "6" goto gpupdate
if /I "%input%" EQU "7" goto full
if /I "%input%" EQU "8" goto exit
:netstat
cls
@echo off
color 3
netstat
pause
goto :kx7
:ipconfig
@echo off
cls
color 3
ipconfig
pause
goto :kx7
:portscan
cls
set errorlevel=0
echo.
set /p ip=IP Address:
set /p ports=Ports (e.g. 21,22,23):
start cmd /c "mode 40, 15 && title Scanning Ports... && PortScanner.exe hosts=%ip% ports=%ports%>>portscan.txt"
ping localhost -n 5 >nul
taskkill /im PortScanner.exe /f >nul 2>&1
echo.
type portscan.txt
echo.
ping localhost -n 1 >nul
del portscan.txt
pause
goto :kx7
:group
echo off
echo To use this tool Kx7 must be run as admin
echo This will delete all GroupPolicys on your pc!!!
echo Only continue if you know what you're doing !!!
echo y) yes
echo n) no
set /p input=
if /I "%input%" EQU "y" goto yes
if /I "%input%" EQU "n" goto kx7
:yes
RD /S /Q "%WinDir%\System32\GroupPolicyUsers"
RD /S /Q "%WinDir%\System32\GroupPolicy"
gpupdate /force
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
:: Restore Settings / Apps / Startup page
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v SupportUwpStartupTasks /t REG_DWORD /d 1 /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableFullTrustStartupTasks /t REG_DWORD /d 2 /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableUwpStartupTasks /t REG_DWORD /d 2 /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v SupportFullTrustStartupTasks /t REG_DWORD /d 1 /f
pause
goto :kx7
:gpupdate
gpupdate /force
pause
goto :kx7
:reset
color 3
ipconfig /flushdns
nbtstat -R
nbtstat -RR
netsh int reset all
netsh int ip reset
netsh winsock reset
:full
:VBSDynamicBuild
SET TempVBSFile=%temp%\~tmpSendKeysTemp.vbs
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"
ECHO Set WshShell = WScript.CreateObject("WScript.Shell") >>"%TempVBSFile%"
ECHO Wscript.Sleep 1 >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{F11}" >>"%TempVBSFile%
ECHO Wscript.Sleep 1 >>"%TempVBSFile%"
CSCRIPT //nologo "%TempVBSFile%"
pause
goto :kx7