diff --git a/winbatch/decode-message.bat b/winbatch/decode-message.bat new file mode 100755 index 0000000..1535ecb --- /dev/null +++ b/winbatch/decode-message.bat @@ -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 + diff --git a/winbatch/decode-scan.bat b/winbatch/decode-scan.bat new file mode 100755 index 0000000..548a7d1 --- /dev/null +++ b/winbatch/decode-scan.bat @@ -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 + diff --git a/winbatch/encode-and-play.bat b/winbatch/encode-and-play.bat new file mode 100755 index 0000000..face116 --- /dev/null +++ b/winbatch/encode-and-play.bat @@ -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 + diff --git a/winbatch/encode-message.bat b/winbatch/encode-message.bat new file mode 100755 index 0000000..7d8d79f --- /dev/null +++ b/winbatch/encode-message.bat @@ -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 + diff --git a/winbatch/run-numberstation.bat b/winbatch/run-numberstation.bat new file mode 100755 index 0000000..8ce7400 --- /dev/null +++ b/winbatch/run-numberstation.bat @@ -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 +