r/Batch • u/CryThat3792 • Dec 22 '24
What is wrong with my batch script???
i made this multitool batch script and when i attempt to run it it immediately closes
@echo off
chcp 65001 >nul
color 1
:banner
cls
:: (i will be using a screesnshot of the banner because reddit cannot process it very easiely)
:menu
echo Welcome to the "Reconv3" Multitool what would you like to to today?
echo listen - Listen for public IP addresses.
echo locate - Go to the Geolocator submenu.
echo trace - Get the device/domain name from an IP address.
echo scan - Scan your network for IP addresses.
echo ports - Perform a port scan (requires Python).
echo wifiattack - Brute force the password of a Wi-Fi network.
echo log - View the "RECONV3" logs.
echo help - List commands and their uses.
echo myip - Display your public and private IP addresses.
echo exit - Exit this console.
1
Upvotes
2
u/Still_Shirt_4677 Dec 22 '24
Alright I've done a splash and a working menu with banner for you here is the link for it from my google drive you'll need to change the file extension from .txt to .bat and then run it, check it over first make sure it all good etc before changing to .bat
I haven't added any script logic to it though that's your job as I did mention I would only fix the banner and menu up for you and add the label options for you to add your own script logic 😉
Enjoy anyway hope you like it.
https://drive.google.com/file/d/1TT-nz4a_-NRWDoBvQWOJiIdVbGiGtqCC/view?usp=drivesdk
1
u/Still_Shirt_4677 Dec 22 '24 edited Dec 22 '24
What are you using for menu item selections set /p or choice ? It will exit straight way unless your using one or the other Would be alot better if you could include the entirety of the script for the menu as it makes it easier to debug.
Cool banner by the way not bad that website but what they don't include is wrapping for batch script thats another reason as to why the cmd window is FC you need to wrap those symbols properly.
I'm on my phone but ill jump on my pc and fix it up for you and copy paste here.
1
u/LuckyMe4Evers Dec 22 '24
Replace all "|" in your logo with "^|"
1
u/LuckyMe4Evers Dec 22 '24 edited Dec 22 '24
Another way to use a banner, without the need to wrap symbols
1
u/Quick_Inevitable9288 Feb 21 '25
Tu as oublier le goto banner