Skip to content

Commit b307c31

Browse files
committed
1 parent 68775dd commit b307c31

File tree

161 files changed

+4408
-1058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+4408
-1058
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
6+
## [0.5] - 2019-07-22
7+
### Added
8+
- added search filter to all panels by pressinf Ctrl+F
9+
- find open file/handles/dll's
10+
- find strings in program memory
11+
- extended QHexEditor with the ability to search for unicode (UTF-16) strings
12+
- added context menu to qhexeditor
13+
- terminate tasks and close handles/sockets/windows using the del key
14+
- added status bar infos
15+
- add system info window in case one closed the system info panel
16+
- disable system info tab settings when panel is collapsed
17+
18+
### Changed
19+
- reworked tree graph's for better performance
20+
21+
### Fixed
22+
- fixed an issue where reused handles woule be colored as to be removed permanently
23+
- fixed column order getting messed up in process tree when adding/removing columns
24+
- QHexEditor does not longer allow to replace a string with a different length string when its not in insert moe
25+
- fixed crash bug in CWinToken::InitStaticData
26+
- fixed a many of small bugs preventing compilation of the UI on Linux
27+
28+
29+
530
## [0.4] - 2019-07-15
631
### Added
732
- gpu usage statistics

TaskExplorer/API/AbstractInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "stdafx.h"
22
#include "AbstractInfo.h"
3-
#include "../../GUI/TaskExplorer.h"
3+
#include "../GUI/TaskExplorer.h"
44

55

66
CAbstractInfoEx::CAbstractInfoEx(QObject *parent)
@@ -27,4 +27,4 @@ bool CAbstractInfoEx::IsNewlyCreated() const
2727
QReadLocker Locker(&m_Mutex);
2828
quint64 curTime = (qint64)GetTime() * 1000ULL;
2929
return curTime - m_CreateTimeStamp < theConf->GetUInt64("Options/PersistenceTime", 5000);
30-
}
30+
}

TaskExplorer/API/AbstractInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include <qobject.h>
3-
#include "..\Common\Common.h"
3+
#include "../Common/Common.h"
44

55
class CAbstractInfo : public QObject
66
{

TaskExplorer/API/AbstractTask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "stdafx.h"
22
#include "AbstractTask.h"
3-
#include "../../GUI/TaskExplorer.h"
3+
#include "../GUI/TaskExplorer.h"
44

55

66
void STaskStats::UpdateStats(quint64 sysTotalTime, quint64 sysTotalCycleTime )

TaskExplorer/API/AbstractTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include <qobject.h>
3-
#include "..\Common\Common.h"
3+
#include "../Common/Common.h"
44
#include "../Common/FlexError.h"
55
#include "AbstractInfo.h"
66

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#include "stdafx.h"
2+
#include "AbstractFinder.h"
3+
4+
#ifdef WIN32
5+
#include "../Windows/Finders/WinHandleFinder.h"
6+
#include "../Windows/Finders/WinModuleFinder.h"
7+
#include "../Windows/Finders/WinStringFinder.h"
8+
#endif
9+
10+
int _QList_QSharedPointer_QObject_type = qRegisterMetaType<QList<QSharedPointer<QObject> >>("QList<QSharedPointer<QObject> >");
11+
12+
CAbstractFinder::CAbstractFinder(QObject* parent) : QThread(parent)
13+
{
14+
m_bCancel = false;
15+
}
16+
17+
CAbstractFinder::~CAbstractFinder()
18+
{
19+
if(!wait(10*1000))
20+
terminate();
21+
}
22+
23+
CAbstractFinder* CAbstractFinder::FindHandles(const QVariant& Type, const QRegExp& RegExp)
24+
{
25+
#ifdef WIN32
26+
return new CWinHandleFinder(Type, RegExp);
27+
#else
28+
// todo: implement other systems liek Linux
29+
#endif // WIN32
30+
}
31+
32+
CAbstractFinder* CAbstractFinder::FindModules(const QVariant& Type, const QRegExp& RegExp)
33+
{
34+
#ifdef WIN32
35+
return new CWinModuleFinder(Type, RegExp);
36+
#else
37+
// todo: implement other systems liek Linux
38+
#endif // WIN32
39+
}
40+
41+
CAbstractFinder* CAbstractFinder::FindStrings(const SMemOptions& Options, const QRegExp& RegExp, const CProcessPtr& pProcess)
42+
{
43+
#ifdef WIN32
44+
return new CWinStringFinder(Options, RegExp, pProcess);
45+
#else
46+
// todo: implement other systems liek Linux
47+
#endif // WIN32
48+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#pragma once
2+
3+
#include "../ProcessInfo.h"
4+
5+
class CAbstractFinder : public QThread
6+
{
7+
Q_OBJECT
8+
9+
public:
10+
CAbstractFinder(QObject* parent);
11+
virtual ~CAbstractFinder();
12+
13+
virtual void Cancel() { m_bCancel = true; }
14+
virtual bool IsCanceled() { return m_bCancel; }
15+
16+
static CAbstractFinder* FindHandles(const QVariant& Type, const QRegExp& RegExp);
17+
static CAbstractFinder* FindModules(const QVariant& Type, const QRegExp& RegExp);
18+
19+
struct SMemOptions
20+
{
21+
int MinLength;
22+
bool Unicode;
23+
bool ExtUnicode;
24+
// regions
25+
bool Private;
26+
bool Image;
27+
bool Mapped;
28+
};
29+
static CAbstractFinder* FindStrings(const SMemOptions& Options, const QRegExp& RegExp, const CProcessPtr& pProcess = CProcessPtr());
30+
31+
signals:
32+
void Progress(float value, const QString& Info = QString());
33+
void Results(QList<QSharedPointer<QObject>> List);
34+
void Error(const QString& Error, int Code);
35+
void Finished();
36+
37+
protected:
38+
bool m_bCancel;
39+
};

TaskExplorer/API/HandleInfo.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <qobject.h>
33
#include "AbstractInfo.h"
4-
#include "..\Common\FlexError.h"
4+
#include "../Common/FlexError.h"
55

66
class CHandleInfo: public CAbstractInfoEx
77
{
@@ -21,9 +21,7 @@ class CHandleInfo: public CAbstractInfoEx
2121
virtual quint64 GetSize() const { QReadLocker Locker(&m_Mutex); return m_Size; }
2222
virtual QString GetGrantedAccessString() const = 0;
2323

24-
25-
virtual QString GetProcessName() { QReadLocker Locker(&m_Mutex); return m_ProcessName; }
26-
virtual QSharedPointer<QObject> GetProcess() { QReadLocker Locker(&m_Mutex); return m_pProcess; }
24+
virtual QSharedPointer<QObject> GetProcess() const { QReadLocker Locker(&m_Mutex); return m_pProcess; }
2725

2826
virtual STATUS Close(bool bForce = false) = 0;
2927

@@ -35,7 +33,6 @@ class CHandleInfo: public CAbstractInfoEx
3533
quint64 m_Position;
3634
quint64 m_Size;
3735

38-
QString m_ProcessName;
3936
QSharedPointer<QObject> m_pProcess;
4037
};
4138

TaskExplorer/API/IOStats.cpp

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#include "stdafx.h"
2+
#include "LinuxAPI.h"
3+
4+
#include "../TaskExplorer/GUI/TaskExplorer.h"
5+
6+
ulong g_fileObjectTypeIndex = ULONG_MAX;
7+
8+
CLinuxAPI::CLinuxAPI(QObject *parent) : CSystemAPI(parent)
9+
{
10+
11+
}
12+
13+
bool CLinuxAPI::Init()
14+
{
15+
return true;
16+
}
17+
18+
CLinuxAPI::~CLinuxAPI()
19+
{
20+
21+
}
22+
23+
bool CLinuxAPI::RootAvaiable()
24+
{
25+
return false;
26+
}
27+
28+
bool CLinuxAPI::UpdateSysStats()
29+
{
30+
31+
32+
33+
QWriteLocker StatsLocker(&m_StatsMutex);
34+
m_Stats.UpdateStats();
35+
36+
return true;
37+
}
38+
39+
bool CLinuxAPI::UpdateProcessList()
40+
{
41+
42+
return true;
43+
}
44+
45+
bool CLinuxAPI::UpdateSocketList()
46+
{
47+
48+
return true;
49+
}
50+
51+
bool CLinuxAPI::UpdateOpenFileList()
52+
{
53+
54+
return true;
55+
}
56+
57+
bool CLinuxAPI::UpdateServiceList(bool bRefresh)
58+
{
59+
60+
return true;
61+
}
62+
63+
bool CLinuxAPI::UpdateDriverList()
64+
{
65+
66+
return true;
67+
}

0 commit comments

Comments
 (0)