-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.h
114 lines (91 loc) · 3.12 KB
/
output.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#ifndef OUTPUT_H
#define OUTPUT_H
#include <QWidget>
#include <QCloseEvent>
#include <QTableView>
#include <QStandardItemModel>
#include <QFileSystemWatcher>
#include <QStringListModel>
#include "hookanalysis.h"
#include "colorfulmodel.h"
#include "filewidget.h"
#include "memorywidget.h"
#include "regwidget.h"
#include "heapwidget.h"
#include "netwidget.h"
#include "historytracer.h"
#include "modulewidget.h"
#include "exceptionwidget.h"
#include "logwidget.h"
#include "injectthread.h"
#define FILEACCESS_COUNT 3
#define FILESHAREMODE_COUNT 3
#define FILECREATEDISP_COUNT 5
#define FILEFLAGATTR 12
namespace Ui {
class Output;
}
class Output : public QWidget
{
Q_OBJECT
public:
QFileSystemWatcher* watcher = new QFileSystemWatcher(this);
QStandardItemModel* heapViewModel = new QStandardItemModel(this);
QStandardItemModel* fileViewModel = new QStandardItemModel(this);
QStandardItemModel* exceptionModel = new QStandardItemModel(this);
QStandardItemModel* regeditModel = new QStandardItemModel(this);
QStandardItemModel* netModel = new QStandardItemModel(this);
QStandardItemModel* logWidgetModel = new QStandardItemModel(this);
QStandardItemModel* memoryModel = new QStandardItemModel(this);
QStandardItemModel* moduleModel = new QStandardItemModel(this);
colorfulModel* fileAccessModel = nullptr;
colorfulModel* fileShareModeModel = nullptr;
colorfulModel* fileCreateDispModel = nullptr;
colorfulModel* fileFlagAttrModel = nullptr;
hookAnalysis* analyser = new hookAnalysis(heapViewModel, fileViewModel, exceptionModel,
regeditModel, logWidgetModel, netModel,
memoryModel, moduleModel);
historyTracer* tracer = new historyTracer(analyser, this);
std::vector<bool> injectionOptions;
explicit Output(std::vector<bool> choices = {}, QWidget *parent = nullptr);
void initialize(std::vector<bool> choices);
void updateLog();
void showExeInfo();
void closeEvent(QCloseEvent * event);
void trimExeInfo(QString& fullInfo, bool firstLog = false);
void saveFullLog();
void appendLog(QString log);
void changeStep(int changedValue);
void updateLogCount();
void allClear();
QString getInjOptions();
~Output();
fileWidget* fWdg;
regWidget* rWdg;
heapWidget* hWdg;
exceptionWidget* eWdg;
logWidget* lWdg;
memoryWidget* mWdg;
netWidget* nWdg;
moduleWidget* moWdg;
bool loadHistory = false;
bool executing = true;
injectThread* injThread;
bool uselessFlag = false;
private slots:
void on_fileView_clicked(const QModelIndex &index);
void on_showFileWidget_clicked();
void on_showRegWidget_clicked();
void on_showHeapWidget_clicked();
void on_showExceptionWidget_clicked();
void on_showLogWidget_clicked();
void on_showMemoryWidget_clicked();
void on_showNetWidget_clicked();
void on_showModulesWidget_clicked();
void on_prevStep_clicked();
void on_nextStep_clicked();
private:
Ui::Output *ui;
QStandardItemModel* model = new QStandardItemModel();
};
#endif // OUTPUT_H