Markopy
Utilizing Markov Models for brute forcing attacks
Markov::Markopy Namespace Reference

CPython module for Markov::API objects. More...

Namespaces

 CUDA
 CPython module for Markov::API::CUDA objects.
 

Functions

 BOOST_PYTHON_MODULE (markopy)
 

Detailed Description

CPython module for Markov::API objects.

Function Documentation

◆ BOOST_PYTHON_MODULE()

Markov::Markopy::BOOST_PYTHON_MODULE ( markopy  )

Definition at line 37 of file markopy.cpp.

38  {
39  bool (Markov::API::MarkovPasswords::*Import)(const char*) = &Markov::Model<char>::Import;
40  bool (Markov::API::MarkovPasswords::*Export)(const char*) = &Markov::Model<char>::Export;
41  class_<Markov::API::MarkovPasswords>("MarkovPasswords", init<>())
42  .def(init<>())
45  .def("Import", Import, "Import a model file.")
46  .def("Export", Export, "Export a model to file.")
47  ;
48 
49  int (Markov::API::ModelMatrix::*FastRandomWalk)(unsigned long int, const char*, int, int, int, bool)
51  class_<Markov::API::ModelMatrix>("ModelMatrix", init<>())
52 
53  .def(init<>())
54  .def("Train", &Markov::API::ModelMatrix::Train)
55  .def("Import", &Markov::API::ModelMatrix::Import, "Import a model file.")
56  .def("Export", Export, "Export a model to file.")
57  .def("ConstructMatrix",&Markov::API::ModelMatrix::ConstructMatrix)
58  .def("DumpJSON",&Markov::API::ModelMatrix::DumpJSON)
59  .def("FastRandomWalk",FastRandomWalk)
60  ;
61  };
Markov::Model with char represented nodes.
void Generate(unsigned long int n, const char *wordlistFileName, int minLen=6, int maxLen=12, int threads=20)
Call Markov::Model::RandomWalk n times, and collect output.
void Train(const char *datasetFileName, char delimiter, int threads)
Train the model with the dataset file.
Class to flatten and reduce Markov::Model to a Matrix.
Definition: modelMatrix.h:23
int FastRandomWalk(unsigned long int n, const char *wordlistFileName, int minLen=6, int maxLen=12, int threads=20, bool bFileIO=true)
Random walk on the Matrix-reduced Markov::Model.
void DumpJSON()
Debug function to dump the model to a JSON file.
bool ConstructMatrix()
Construct the related Matrix data for the model.
Definition: modelMatrix.cpp:31
void Import(const char *filename)
Open a file to import with filename, and call bool Model::Import with std::ifstream.
Definition: modelMatrix.cpp:19
void Train(const char *datasetFileName, char delimiter, int threads)
Train the model with the dataset file.
Definition: modelMatrix.cpp:25
class for the final Markov Model, constructed from nodes and edges.
Definition: model.h:45

References Markov::API::ModelMatrix::ConstructMatrix(), Markov::API::ModelMatrix::DumpJSON(), Markov::Model< NodeStorageType >::Export(), Markov::API::ModelMatrix::FastRandomWalk(), Markov::API::MarkovPasswords::Generate(), Markov::API::ModelMatrix::Import(), Markov::Model< NodeStorageType >::Import(), Markov::API::MarkovPasswords::Train(), and Markov::API::ModelMatrix::Train().

Here is the call graph for this function: