mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
43 lines
775 B
C++
43 lines
775 B
C++
#ifndef COREOUTPUTPARSER_H
|
|
#define COREOUTPUTPARSER_H
|
|
|
|
#include <QByteArray>
|
|
#include <QString>
|
|
|
|
enum class CoreOutputEvent
|
|
{
|
|
None,
|
|
AskSudoPassword,
|
|
GraphCaptcha,
|
|
SmsCodeWithSkipOption,
|
|
SmsCode,
|
|
TotpCode,
|
|
RandCode,
|
|
RadiusCodeWithSkipOption,
|
|
SsoCallback,
|
|
ClientStarted,
|
|
CaptchaFailed,
|
|
AccessDenied,
|
|
ListenFailed,
|
|
InvalidCredentials,
|
|
BruteForceBlocked,
|
|
LoginFailed,
|
|
InteractiveError,
|
|
AuthNotAvailable,
|
|
AuthExpired,
|
|
ClientFailed,
|
|
CorePanic,
|
|
};
|
|
|
|
class CoreOutputParser
|
|
{
|
|
public:
|
|
static CoreOutputEvent parse(const QString &output);
|
|
|
|
static bool hasInteractivePrompt(const QByteArray &output);
|
|
|
|
static QString graphCaptchaFile(const QString &output);
|
|
};
|
|
|
|
#endif // COREOUTPUTPARSER_H
|