Markopy
Utilizing Markov Models for brute forcing attacks
mmx.py
Go to the documentation of this file.
1 #!/usr/bin/python3
2 
3 
7 
8 
9 from mm import ModelMatrix
10 
11 from importer import import_markopy
12 markopy = import_markopy()
13 
14 from base import BaseCLI, AbstractGenerationModelCLI
15 import os
16 import allogate as logging
17 
19  """!
20  @brief Extension of Python.Markopy.Base.BaseCLI for Markov::API::ModelMatrix
21  @belongsto Python::Markopy
22  @extends Python::Markopy::AbstractGenerationModelCLI
23  @extends Python::Markopy::ModelMatrix
24 
25  adds -st/--stdout arguement to the command line.
26  """
27  def __init__(self, add_help:bool=True):
28  "! @brief initialize model with Markov::API::ModelMatrix"
29  super().__init__(add_help)
30  self.modelmodelmodel = markopy.ModelMatrix()
31 
32  def add_arguments(self):
33  super().add_arguments()
34  self.parserparser.add_argument("-st", "--stdout", action="store_true", help="Stdout mode")
35 
37  super().init_post_arguments()
38  self.fileIOfileIO = not self.argsargs.stdout
39 
40  def _generate(self, wordlist : str, ):
41  self.modelmodelmodel.FastRandomWalk(int(self.argsargs.count), wordlist, int(self.argsargs.min), int(self.argsargs.max), int(self.argsargs.threads), self.fileIOfileIO)
42 
43 if __name__ == "__main__":
44  mp = ModelMatrixCLI()
45  mp.parse()
46  mp.process()
abstract class for generation capable models
Definition: base.py:257
Extension of Python.Markopy.Base.BaseCLI for Markov::API::ModelMatrix.
Definition: mmx.py:18
def _generate(self, str wordlist)
wrapper for generate function.
Definition: mmx.py:40
def add_arguments(self)
Definition: mmx.py:32
def __init__(self, bool add_help=True)
initialize base CLI
Definition: mmx.py:27
def init_post_arguments(self)
Definition: mmx.py:36
Abstract representation of a matrix based model.
Definition: mm.py:38
def FastRandomWalk(int count, str wordlist, int minlen, int maxlen)
Definition: mm.py:48
def import_markopy()
import and return markopy module
Definition: importer.py:12