-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalyze.h
More file actions
35 lines (30 loc) · 1.09 KB
/
analyze.h
File metadata and controls
35 lines (30 loc) · 1.09 KB
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
#ifndef ANALYZE_H
#define ANALYZE_H
#include <QElapsedTimer>
#include <QString>
#include "binarysection.h"
enum FILETYPE { ELF, OTHER };
class Analyze {
public:
Analyze();
virtual ~Analyze();
Analyze(QString filepath);
static enum FILETYPE GetFileType(QString filepath);
QMap<QString, QString>* GetNtHeader();
qint64 getDuration() const;
void setDuration(qint64 newDuration);
QString GetAnalyzeDuration();
QStringList* strs;
QVector<QString>* GetStrings(bool utf8, bool utf16);
virtual QMap<QString, QString>* ParseHeader();
virtual QVector<BinarySection>* GetSections();
virtual QVector<QVector<QString>*>* GetImports();
// QVector<PEImport> *GetImports();
protected:
QString filepath;
QVector<QString>* extracted_strings;
QVector<BinarySection>* sections;
QElapsedTimer timer;
qint64 duration;
};
#endif // ANALYZE_H