-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrutforceFile.h
45 lines (31 loc) · 947 Bytes
/
brutforceFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Created by kbod on 19/06/23.
//
#ifndef CVENZIP_BRUTFORCEFILE_H
#define CVENZIP_BRUTFORCEFILE_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
struct arg_struct_dic {
char *pathToDic;
const char *fileToCrack;
int startLine;
int endLine;
};
struct arg_struct_iter {
char *pathToDic;
int max;
int min;
char *chars;
};
void *dicBrutforce (void *parameters);
void *iterativeBrutforce(void *parameters);
void askDicBrutforce (const char *fileToCrack);
void askIterativeBrutforce (char *pathToZip);
void threadsDicController(char *pathToDic, int numberOfThreads, const char *fileToCrack);
int getLineNumber(char *pathToDic);
void threadsIterController (char *pathToDic, int numberOfThreads, int lengthMax, char *chars);
void workerBrutforce(char *current, int len, char *chars, char *fileToCrack);
char* removeTrailingNull(char* str);
#endif //CVENZIP_BRUTFORCEFILE_H