parent
d1149cdae9
commit
4c9c9d8d69
@ -0,0 +1,22 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Ask for the encoded message input
|
||||
echo Enter the encoded message:
|
||||
set /p input=
|
||||
|
||||
:: Ask for the shift value
|
||||
echo.
|
||||
set /p shift="Enter the shift value: "
|
||||
|
||||
:: Pipe the input into nsdecode.exe with the shift value
|
||||
echo.
|
||||
echo Decoded message [Shift:%shift%]:
|
||||
echo.
|
||||
echo %input% | nsdecode.exe -s %shift%
|
||||
|
||||
:: Pause for user to read/copy/paste output
|
||||
pause
|
||||
|
||||
endlocal
|
||||
|
@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Line break before asking for input
|
||||
echo.
|
||||
echo Enter the encoded message:
|
||||
set /p input=
|
||||
|
||||
:: Loop through shift values from 0 to 36 and decode with each value
|
||||
for /l %%s in (0,1,36) do (
|
||||
echo Decoded message [Shift:%%s]:
|
||||
echo %input% | nsdecode.exe -s %%s
|
||||
echo.
|
||||
)
|
||||
|
||||
:: Pause for user to read/copy/paste output
|
||||
pause
|
||||
|
||||
endlocal
|
||||
|
@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Ask for the shift value
|
||||
set /p shift="Enter the shift value: "
|
||||
|
||||
:: Ask for the group size
|
||||
set /p gsize="Enter the number group size: "
|
||||
|
||||
:: MULTI-LINE INPUT NOT SUPPORTED BY BATCH
|
||||
:: :: Ask for the line size
|
||||
:: set /p lsize="Enter the number of groups per line: "
|
||||
|
||||
:: Ask whether to repeat number groups
|
||||
set /p repeat="Do you want to repeat number groups (y/N)? "
|
||||
|
||||
:: Ask for the message input
|
||||
echo.
|
||||
echo Enter the message to encode and process:
|
||||
set /p input=
|
||||
|
||||
:: Pipe the input into nsencode.exe with the shift value, then pipe nsencode.exe's output into numberstation.exe
|
||||
:: Check user input and apply the -r flag if necessary
|
||||
if /i "%repeat%"=="y" (
|
||||
echo Repeating number groups with the -r flag.
|
||||
echo %input% | nsencode.exe -s %shift% -g %gsize% | numberstation.exe -r
|
||||
) else (
|
||||
echo Not repeating number groups.
|
||||
echo %input% | nsencode.exe -s %shift% -g %gsize% | numberstation.exe
|
||||
)
|
||||
|
||||
:: Pause before exit
|
||||
pause
|
||||
|
||||
endlocal
|
||||
|
@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Ask for the shift value
|
||||
set /p shift="Enter the shift value: "
|
||||
|
||||
:: Ask for the group size
|
||||
set /p gsize="Enter the number group size: "
|
||||
|
||||
:: MULTI-LINE INPUT NOT SUPPORTED BY BATCH
|
||||
:: :: Ask for the line size
|
||||
:: set /p lsize="Enter the number of groups per line: "
|
||||
|
||||
:: Ask for the message input
|
||||
echo.
|
||||
echo Enter the message to encode and process:
|
||||
set /p input=
|
||||
|
||||
:: Dress up output and pass information to nsencode
|
||||
echo.
|
||||
echo Encoded message:
|
||||
echo.
|
||||
:: echo %input% | nsencode.exe -s %shift% -g %gsize% -l %lsize%
|
||||
echo %input% | nsencode.exe -s %shift% -g %gsize%
|
||||
|
||||
:: Pause for user to read/copy/paste output
|
||||
pause
|
||||
|
||||
endlocal
|
||||
|
@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Ask whether to repeat number groups
|
||||
set /p repeat="Do you want to repeat number groups (y/N)? "
|
||||
|
||||
:: Check user input and apply the -r flag if necessary
|
||||
if /i "%repeat%"=="y" (
|
||||
echo Repeating number groups with the -r flag.
|
||||
numberstation.exe -r
|
||||
) else (
|
||||
echo Not repeating number groups.
|
||||
numberstation.exe
|
||||
)
|
||||
|
||||
:: Pause before exit
|
||||
pause
|
||||
|
||||
endlocal
|
||||
|
Loading…
Reference in new issue