Skip to content

Python script encodes a given Windows command script input file using randomly generated keys and writes the result to an output file. The encoding algorithm replaces each alphabetical letter in the input file with a unique string of 6 lowercase letters. Non alphabetical characters are left as is.

Notifications You must be signed in to change notification settings

duckbillsecurity/EncodeCMD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

alt text

EncodeCMD

Python script encodes a given Windows command script input file using randomly generated keys and writes the result to an output file. The encoding algorithm replaces each alphabetical letter in the input file with a unique string of 6 lowercase letters. Non alphabetical characters are left as is.

Disclaimer

This script is for educational and demonstration purposes only. The author does not endorse or condone the use of this script for any criminal or malicious activities and it should only be used where explicitly allowed with proper permission.

Description:

This code encodes a Windows command script using a substitution cipher. It generates a random lowercase alphabet table key for each letter in the English alphabet. Each key consists of a string of 6 lowercase letters forming a unique string. The code then reads an input file, converts it to lowercase, and substitutes each letter with its corresponding key value. Non-letter characters are left unchanged. The encoded message is then written to an output file along with the randomly generated key for each letter. The output file also includes a full encoded cmd file that can be used by the user. If the input file is not found, an error message is displayed, and the program exits.

Input:

The input file should be a text file in the format of a Windows command script. The name of the input file is specified at the top of the script.

Output:

The output file will be a text file containing the encoded message in the format of a Windows command script. The name of the output file is specified at the top of the script.

Example usage:

Suppose the input file is named "unencoded.cmd" and contains the text "echo Hello, world!". Running this script will generate an output file named "encoded.cmd" containing the encoded message. The encoded output file can then be run as a Windows command script.

alt text

About

Python script encodes a given Windows command script input file using randomly generated keys and writes the result to an output file. The encoding algorithm replaces each alphabetical letter in the input file with a unique string of 6 lowercase letters. Non alphabetical characters are left as is.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages