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

Wrapper for Markov::Model to use with char represented models. More...

#include "markovPasswords.h"
#include <string.h>
#include <chrono>
#include <thread>
#include <vector>
#include <mutex>
#include <string>
#include <signal.h>
#include <unistd.h>
Include dependency graph for markovPasswords.cpp:

Go to the source code of this file.

Functions

void intHandler (int dummy)
 

Variables

static volatile int keepRunning = 1
 

Detailed Description

Wrapper for Markov::Model to use with char represented models.

Authors
Ata Hakçıl, Osman Ömer Yıldıztugay

This file contains the implementation for Markov::API::MarkovPasswords class.

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.

Definition in file markovPasswords.cpp.

Function Documentation

◆ intHandler()

void intHandler ( int  dummy)

Definition at line 26 of file markovPasswords.cpp.

26  {
27  std::cout << "Terminating.\n";
28  //Sleep(5000);
29  keepRunning = 0;
30  exit(0);
31 }
static volatile int keepRunning

References keepRunning.

Referenced by Markov::API::MarkovPasswords::Train().

Here is the caller graph for this function:

Variable Documentation

◆ keepRunning

volatile int keepRunning = 1
static

Definition at line 24 of file markovPasswords.cpp.

Referenced by intHandler(), and Markov::API::MarkovPasswords::TrainThread().