예제 #1
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "enable_nested":
         ParamSpec(req=False,
                   desc="Enables nested ciphers. "
                   "Incredibly slow, and not guaranteed to terminate",
                   default="False"),
         "invert_priority":
         ParamSpec(
             req=False,
             desc="Causes more complex encodings to be looked at first. "
             "Good for deeply buried encodings.",
             default="False"),
         "max_cipher_depth":
         ParamSpec(
             req=False,
             desc="The depth at which we stop trying to crack ciphers. "
             "Set to 0 to disable",
             default="0"),
         "max_depth":
         ParamSpec(req=False,
                   desc="The depth at which we give up. "
                   "Set to 0 to disable",
                   default="0"),
         "priority_cap":
         ParamSpec(
             req=False,
             desc="Sets the maximum depth before we give up ordering items.",
             default="2"),
     }
예제 #2
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected":
         ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "group":
         ParamSpec(
             desc=
             "An ordered sequence of chars that make up the caesar cipher alphabet",
             req=False,
             default="abcdefghijklmnopqrstuvwxyz",
         ),
         "lower":
         ParamSpec(
             desc=
             "Whether or not the ciphertext should be converted to lowercase first",
             req=False,
             default=True,
         ),
         "p_value":
         ParamSpec(
             desc="The p-value to use for standard frequency analysis",
             req=False,
             default=0.01,
         )
         # TODO: add "filter" param
     }
예제 #3
0
파일: brandon.py 프로젝트: y0d4a/Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "top1000": ParamSpec(
             desc="A wordlist of the top 1000 words",
             req=False,
             default="cipheydists::list::english1000",
         ),
         "wordlist": ParamSpec(
             desc="A wordlist of all the words",
             req=False,
             default="cipheydists::list::english",
         ),
         "stopwords": ParamSpec(
             desc="A wordlist of StopWords",
             req=False,
             default="cipheydists::list::englishStopWords",
         ),
         "threshold": ParamSpec(
             desc="The minimum proportion (between 0 and 1) that must be in the dictionary",
             req=False,
             default=0.45,
         ),
         "phases": ParamSpec(
             desc="Language-specific phase thresholds",
             req=False,
             default="cipheydists::brandon::english",
         ),
     }
예제 #4
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "invert_priority": ParamSpec(req=False,
                                      desc="Causes more complex encodings to be looked at first. "
                                           "Good for deeply buried encodings.",
                                      default="True"),
         "priority_cap": ParamSpec(req=False,
                                   desc="Sets the maximum depth before we give up on the priority queue",
                                   default="3")
     }
예제 #5
0
파일: quorum.py 프로젝트: tars-c/APP-Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "checker":
         ParamSpec(req=True,
                   desc="The checkers to be used for analysis",
                   list=True),
         "k":
         ParamSpec(
             req=False,
             desc=
             "The minimum quorum size. Defaults to the number of checkers",
         ),
     }
예제 #6
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected": ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "dict": ParamSpec(
             desc="The Baconian alphabet dictionary to use",
             req=False,
             default="cipheydists::translate::baconian",
         ),
     }
예제 #7
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected": ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "p_value": ParamSpec(
             desc="The p-value to use for standard frequency analysis",
             req=False,
             default=0.01,
         )
         # TODO: add "filter" param
     }
예제 #8
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "invert_priority":
         ParamSpec(
             req=False,
             desc="Causes more complex encodings to be looked at first. "
             "Good for deeply buried encodings.",
             default="False"),
         "disable_priority":
         ParamSpec(req=False,
                   desc="Disables the priority queue altogether. "
                   "May be much faster, but will take *very* odd paths",
                   default="True")
     }
예제 #9
0
파일: affine.py 프로젝트: zu1kbackup/Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected":
         ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "group":
         ParamSpec(
             desc="An ordered sequence of chars that make up the alphabet",
             req=False,
             default="abcdefghijklmnopqrstuvwxyz",
         ),
     }
예제 #10
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict":
         ParamSpec(
             desc="The Soundex dictionary to use",
             req=False,
             default="cipheydists::translate::soundex",
         ),
         "freq":
         ParamSpec(
             desc="The word frequency dictionary to use",
             req=False,
             default="cipheydists::list::English5000Freq",
         ),
     }
예제 #11
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict":
         ParamSpec(
             desc="The quadgrams dictionary to use",
             req=False,
             default="cipheydists::dist::quadgrams",
         ),
         "score":
         ParamSpec(
             desc="The score threshold to use",
             req=False,
             default=0.00011,
         ),
     }
예제 #12
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict": ParamSpec(
             desc="The baudot alphabet dictionary to use",
             req=False,
             default="cipheydists::translate::baudot",
         )
     }
예제 #13
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict": ParamSpec(
             desc="The leetspeak dictionary to use",
             req=False,
             default="cipheydists::translate::leet",
         )
     }
예제 #14
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict": ParamSpec(
             desc="The alphabet used for the atbash operation.",
             req=False,
             default="cipheydists::list::englishAlphabet",
         )
     }
예제 #15
0
파일: regex.py 프로젝트: michalani/Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "resource": ParamSpec(
             req=True,
             desc="A list of regexes that could be matched",
             list=True,
         )
     }
예제 #16
0
파일: regex.py 프로젝트: michalani/Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "regex": ParamSpec(
             req=True,
             desc="The regex that must be matched (in a substring)",
             list=True,
         )
     }
예제 #17
0
파일: xandy.py 프로젝트: zu1kbackup/Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected": ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         )
     }
예제 #18
0
파일: base69.py 프로젝트: zu1kbackup/Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict":
         ParamSpec(
             desc="The charset used for the decoder.",
             req=False,
             default="cipheydists::list::base69",
         )
     }
예제 #19
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict":
         ParamSpec(
             desc="Brainfuck alphabet (default English)",
             req=False,
             default="cipheydists::list::englishAlphabet",
         )
     }
예제 #20
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "dict":
         ParamSpec(
             desc=
             "The table of letters used for the tap code interpretation.",
             req=False,
             default="cipheydists::translate::tap_code",
         )
     }
예제 #21
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "enable_nested":
         ParamSpec(req=False,
                   desc="Enables nested ciphers. "
                   "Incredibly slow, and not guaranteed to terminate",
                   default="False"),
         "invert_priority":
         ParamSpec(
             req=False,
             desc="Causes more complex encodings to be looked at first. "
             "Good for deeply buried encodings.",
             default="True"),
         "priority_cap":
         ParamSpec(
             req=False,
             desc=
             "Sets the maximum depth before we give up on the priority queue",
             default="3")
     }
예제 #22
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected":
         ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "keysize":
         ParamSpec(
             desc=
             "A key size that should be used. If not given, will attempt to work it out",
             req=False,
         ),
         "p_value":
         ParamSpec(
             desc="The p-value to use for windowed frequency analysis",
             req=False,
             default=0.001,
         ),
     }
예제 #23
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected":
         ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "group":
         ParamSpec(
             desc=
             "An ordered sequence of chars that make up the ROT47 cipher alphabet",
             req=False,
             default=
             """!"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~""",
         ),
         "p_value":
         ParamSpec(
             desc="The p-value to use for standard frequency analysis",
             req=False,
             default=0.01,
         )
         # TODO: add "filter" param
     }
예제 #24
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected":
         ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "group":
         ParamSpec(
             desc=
             "An ordered sequence of chars that make up the ASCII shift cipher alphabet",
             req=False,
             default=
             """\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f""",
         ),
         "p_value":
         ParamSpec(
             desc="The p-value to use for standard frequency analysis",
             req=False,
             default=0.01,
         )
         # TODO: add "filter" param
     }
예제 #25
0
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "expected":
         ParamSpec(
             desc="The expected distribution of the plaintext",
             req=False,
             config_ref=["default_dist"],
         ),
         "group":
         ParamSpec(
             desc=
             "An ordered sequence of chars that make up the caesar cipher alphabet",
             req=False,
             default="abcdefghijklmnopqrstuvwxyz",
         ),
         "lower":
         ParamSpec(
             desc=
             "Whether or not the ciphertext should be converted to lowercase first",
             req=False,
             default=True,
         ),
         "keysize":
         ParamSpec(
             desc=
             "A key size that should be used. If not given, will attempt to work it out",
             req=False,
         ),
         "p_value":
         ParamSpec(
             desc="The p-value to use for windowed frequency analysis",
             req=False,
             default=0.5,
         ),
         "detect_p_value":
         ParamSpec(
             desc="The p-value to use for the detection of Vigenere length",
             req=False,
             default=0.01,
         ),
         "clamp":
         ParamSpec(
             desc=
             "The maximum number of candidates that can be returned per key len",
             req=False,
             default=10,
         ),
     }
예제 #26
0
파일: files.py 프로젝트: zu1kbackup/Ciphey
 def getParams() -> Optional[Dict[str, ParamSpec]]:
     return {
         "path": ParamSpec(req=True,
                           desc="The path to a JSON file",
                           list=True)
     }
예제 #27
0
파일: files.py 프로젝트: mydoom2010/Ciphey
 def getParams() -> Optional[Dict[str, ciphey.iface.ParamSpec]]:
     return {"path": ParamSpec(req=True, desc="The path to a CSV file", list=True)}