-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
116 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <BasicAuth.h> | ||
|
||
lopaStr BA::_BABrute(char *cookie, | ||
char *ip, | ||
int port, | ||
char *pathT, | ||
char *method) | ||
{ | ||
|
||
} | ||
|
||
lopaStr BA::_BALobby(char *cookie, | ||
char *ip, | ||
int port, | ||
char *path, | ||
char *method) | ||
{ | ||
while(BrutingThrds >= gMaxBrutingThreads) Sleep(700); | ||
|
||
BruteUtils::BConInc(); | ||
lopaStr res = _BABrute(cookie, ip, port, path, method); | ||
BruteUtils::BConDec(); | ||
|
||
return res; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef BASICAUTH_H | ||
#define BASICAUTH_H | ||
|
||
#include <BruteUtils.h> | ||
#include <mainResources.h> | ||
|
||
class BA : BruteUtils{ | ||
private: | ||
lopaStr _BABrute(char *cookie, | ||
char *ip, | ||
int port, | ||
char *pathT, | ||
char *method); | ||
|
||
lopaStr _BALobby(char *cookie, | ||
char *ip, | ||
int port, | ||
char *path, | ||
char *method); | ||
}; | ||
|
||
#endif // BASICAUTH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include <BruteUtils.h> | ||
#include "STh.h" | ||
#include "externData.h" | ||
|
||
void BruteUtils::BConInc() | ||
{ | ||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) | ||
__asm | ||
{ | ||
lock inc BrutingThrds; | ||
}; | ||
#else | ||
asm("lock incl BrutingThrds"); | ||
#endif | ||
|
||
stt->doEmitionChangeBA(QString::number(BrutingThrds)); | ||
} | ||
|
||
void BruteUtils::BConDec() | ||
{ | ||
if(BrutingThrds > 0) | ||
{ | ||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) | ||
__asm | ||
{ | ||
lock dec BrutingThrds; | ||
}; | ||
#else | ||
asm("lock decl BrutingThrds"); | ||
#endif | ||
} | ||
|
||
stt->doEmitionChangeBA(QString::number(BrutingThrds)); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef BRUTEUTILS_H | ||
#define BRUTEUTILS_H | ||
|
||
class BruteUtils { | ||
|
||
public: | ||
static void BConInc(); | ||
static void BConDec(); | ||
}; | ||
|
||
#endif // BRUTEUTILS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters