samuellb/aesscan
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
AESScan ------- This is a command line utility to search binary data for possible AES keys. You will need one or more ciphertexts encrypted using the key that is suspected to appear in the binary file. The ciphertexts are used to attempt decryption, and check if the resulting plaintext makes any sense. The plaintext is assumed to contain either a large number of zero bytes (typical for binary data) or a very small number of uncommon control characters (typical for text files). So it's not possible to use this tool on random data that has been encrypted, or data that has been encrypted multiple times. The command line syntax is: aesscan -s binary.bin [options] ciphertext1.bin ciphertext2.bin ... Where binary.bin is the file to search for keys in. Supported options are: -c CIPHER Set the cipher to use: 0 AES128 with CBC (default) 1 AES128 with ECB 2 AES256 with CBC 3 AES256 with ECB -p PADDING Set the padding to use: 0 PKCS#5 (default) 1 Simply throw away the last block 2 No padding -l LEN Try to decrypt only up to LEN bytes in the FILES -o OFFSET Start from the given byte offset in the FILES The -o and -l options are parsed from left to right. An -o or -l option must occur before the ciphertext file(s) it should to apply to. AES is typically used with a block mode and a padding. CBC and PKCS#7 is the most common block mode and padding, so these are the defaults. When the padding type is unknown, it is useful to use "throw away" option (number 1) which will simply skip the last encrypted block. This option will obviously only work if the data is more than 16 bytes, which is the block size of AES (regardless of key size). For block modes other than ECB, this tool will assume that the first 16 bytes is the Initialization Vector (IV) for the following data. This is the most common way of encoding encrypted AES data.
About
Scan for AES keys in binaries
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published