forked from pantyusha/nesca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebformWorker.h
50 lines (39 loc) · 1.28 KB
/
WebformWorker.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
43
44
45
46
47
48
49
50
#ifndef WEBFORMWORKER_H
#define WEBFORMWORKER_H
#include "Utils.h"
#include "Connector.h"
#include "mainResources.h"
#include "externFunctions.h"
#include "BruteUtils.h"
#include "STh.h"
class WFClass : BruteUtils {
private:
int passCounter = 1;
lopaStr doGetCheck(const char *ip, int port, char *actionVal, char *userVal, char *passVal, char *formVal);
lopaStr doPostCheck(const char *ip, int port, char *actionVal, char *userVal, char *passVal, char *formVal);
lopaStr parseResponse(const char *ip, const int port, const std::string *buffer, const char* formVal,
const char *login,
const char *pass);
public:
WFClass(){
if(gMaxBrutingThreads > 0) {
while(BrutingThrds >= gMaxBrutingThreads) Sleep(700);
//++WF;
++BrutingThrds;
//BConInc();
passCounter = 1;
}
}
~WFClass(){
//BConDec();
--BrutingThrds;
}
lopaStr _WFBrute(const char *ip,
int port,
char *methodVal,
char *actionVal,
char *userVal,
char *passVal,
char *formVal);
};
#endif // WEBFORMWORKER_H