Markopy
Utilizing Markov Models for brute forcing attacks
markopy.cpp File Reference

CPython wrapper for libmarkov utils. More...

#include <Python.h>
#include <boost/python.hpp>
#include <MarkovAPI/src/modelMatrix.h>
Include dependency graph for markopy.cpp:

Go to the source code of this file.

Namespaces

 Markov
 Namespace for the markov-model related classes. Contains Model, Node and Edge classes.
 
 Markov::Markopy
 CPython module for Markov::API objects.
 

Macros

#define BOOST_ALL_STATIC_LIB   1
 
#define BOOST_PYTHON_STATIC_LIB   1
 

Functions

 Markov::Markopy::BOOST_PYTHON_MODULE (markopy)
 

Detailed Description

CPython wrapper for libmarkov utils.

Authors
Ata Hakçıl, Celal Sahir Çetiner

This file is a wrapper for libmarkov utilities, exposing:

  • MarkovPasswords
    • Import
    • Export
    • Train
    • Generate
  • ModelMatrix
    • Import
    • Export
    • Train
    • ConstructMatrix
    • DumpJSON
    • FastRandomWalk

Markov::Model with char represented nodes. Includes wrappers for Markov::Model and additional helper functions to handle file I/O

This class is an extension of Markov::Model<char>, with higher level abstractions such as train and generate.

Class to flatten and reduce Markov::Model to a Matrix. Matrix level operations can be used for Generation events, with a significant performance optimization at the cost of O(N) memory complexity (O(1) memory space for slow mode)

To limit the maximum memory usage, each generation operation is partitioned into 50M chunks for allocation. Threads are sychronized and files are flushed every 50M operations.

Definition in file markopy.cpp.

Macro Definition Documentation

◆ BOOST_ALL_STATIC_LIB

#define BOOST_ALL_STATIC_LIB   1

Definition at line 24 of file markopy.cpp.

◆ BOOST_PYTHON_STATIC_LIB

#define BOOST_PYTHON_STATIC_LIB   1

Definition at line 25 of file markopy.cpp.