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

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

Functions

 BOOST_PYTHON_MODULE (cudamarkopy)
 

Detailed Description

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

Function Documentation

◆ BOOST_PYTHON_MODULE()

Markov::Markopy::CUDA::BOOST_PYTHON_MODULE ( cudamarkopy  )

Definition at line 20 of file cudaMarkopy.cu.

21  {
22  bool (Markov::API::MarkovPasswords::*Export)(const char*) = &Markov::Model<char>::Export;
23  void (Markov::API::CUDA::CUDAModelMatrix::*FastRandomWalk)(unsigned long int, const char*, int, int, bool, bool) = &Markov::API::CUDA::CUDAModelMatrix::FastRandomWalk;
24 
25  class_<Markov::API::CUDA::CUDAModelMatrix>("CUDAModelMatrix", init<>())
26 
27  .def(init<>())
28  .def("Train", &Markov::API::ModelMatrix::Train)
29  .def("Import", &Markov::API::ModelMatrix::Import, "Import a model file.")
30  .def("Export", Export, "Export a model to file.")
31  .def("ConstructMatrix",&Markov::API::ModelMatrix::ConstructMatrix)
32  .def("DumpJSON",&Markov::API::ModelMatrix::DumpJSON)
33  .def("FastRandomWalk", FastRandomWalk)
34  ;
35  };
Extension of Markov::API::ModelMatrix which is modified to run on GPU devices.
__host__ void FastRandomWalk(unsigned long int n, const char *wordlistFileName, int minLen, int maxLen, bool bFileIO, bool bInfinite)
Random walk on the Matrix-reduced Markov::Model.
Markov::Model with char represented nodes.
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::Import(), and Markov::API::ModelMatrix::Train().

Here is the call graph for this function: