Omnicrist / BFShift

A super simple encode/decode/bruteforce script for shift ciphers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BFShift

A super simple encode/decode/bruteforce script for shift ciphers by @AleDiBen & @Omnicrist.

Description

This Python 3 script to encode/decode/bruteforce arbitrary strings using a shift cipher (i.e. Caesar Cipher, ROT-13, etc.).

Features / TO-DO

The following features are supported

  • Encode/Decode a message
  • Perform a Bruteforce attack using different alphabets and/or shift amounts
  • Specify your own custom alphabet
  • Specify a flag format in order to filter results
  • Run the script in Debug Mode
  • Multi-threading? May be useless

Supported Alphabets

Code Alphabet
0 [SPACE]!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
1 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
2 ABCDEFGHIJKLMNOPQRSTUVWXYZ
3 abcdefghijklmnopqrstuvwxyz
4 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
5 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
6 0123456789abcdefABCDEF

Supported Shifts

From 1 to chosen alphabet lenght minus one.

Examples

Linux Version: encoding and decoding a message

user@kali:~$ python3 bfshift.py -m this_is_a_message
"uv!lv!lnlzr!!ntr
user@kali:~$ python3 bfshift.py -d -m '"uv!lv!lnlzr!!ntr'
this is a message
user@kali:~$ python3 bfshift.py -a 3 --bf-shift -m 'ozhshi{Aopz_pz_h_tlzzhnl}'
nygrgh{znoy_oy_g_skyygmk}
mxfqfg{ymnx_nx_f_rjxxflj}
lwepef{xlmw_mw_e_qiwweki}
...
rCkvkl{DrsC_sC_k_woCCkqo}
qBjujk{CqrB_rB_j_vnBBjpn}
pAitij{BpqA_qA_i_umAAiom}
user@kali:~$ python3 bfshift.py --bf-alphabets -s 7 --flag-format 'hsalab{' -m 'ozhshi{Aopz_pz_h_tlzzhnl}'
hsalab{this_is_a_message}
hsalab{this_is_a_message}
hsalab{this_is_a_message}

Windows Version (cmd.exe): encoding and decoding a message

C:\> python.exe bfshift.py -m this_is_a_message
"uv!lv!lnlzr!!ntr
C:\> python.exe bfshift.py -a 3 --bf-shift -m "ozhshi{Aopz_pz_h_tlzzhnl}"
nygrgh{znoy_oy_g_skyygmk}
mxfqfg{ymnx_nx_f_rjxxflj}
lwepef{xlmw_mw_e_qiwweki}
...
rCkvkl{DrsC_sC_k_woCCkqo}
qBjujk{CqrB_rB_j_vnBBjpn}
pAitij{BpqA_qA_i_umAAiom}
C:\> python.exe bfshift.py --bf-alphabets -s 7 --flag-format "hsalab{" -m "ozhshi{Aopz_pz_h_tlzzhnl}"
hsalab{this_is_a_message}
hsalab{this_is_a_message}
hsalab{this_is_a_message}

...may the security be with you...

About

A super simple encode/decode/bruteforce script for shift ciphers


Languages

Language:Python 100.0%