Skip to content

Commit db5eb01

Browse files
NtQueryNtQuery
authored andcommitted
readme, exception info
1 parent 1fc7e91 commit db5eb01

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ Keyboard Shortcuts
5656
Changelog
5757
---------
5858

59+
Version 0.9.8
60+
61+
- Bugfixes for x64, IAT Search
62+
- diStorm3 update from Jan 3rd 2015
63+
5964
Version 0.9.7
6065

6166
- Fixed bug bad allocation https://forum.tuts4you.com/topic/36458-scylla-097b-crash-on-pep-50-unpackme/

Scylla/IATSearch.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ bool IATSearch::findIATAdvanced( DWORD_PTR startAddress, DWORD_PTR* addressIAT,
7979

8080
filterIATPointersList(iatPointers);
8181

82+
if (iatPointers.size() == 0)
83+
return false;
84+
8285
*addressIAT = *(iatPointers.begin());
8386
*sizeIAT = (DWORD)(*(--iatPointers.end()) - *(iatPointers.begin()) + sizeof(DWORD_PTR));
8487

Scylla/main.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ LONG WINAPI HandleUnknownException(struct _EXCEPTION_POINTERS *ExceptionInfo)
115115
WCHAR filepath[MAX_PATH] = {0};
116116
WCHAR file[MAX_PATH] = {0};
117117
WCHAR message[MAX_PATH + 200 + _countof(registerInfo)];
118+
WCHAR osInfo[100];
118119
DWORD_PTR baseAddress = 0;
119120
DWORD_PTR address = (DWORD_PTR)ExceptionInfo->ExceptionRecord->ExceptionAddress;
120121

@@ -131,6 +132,8 @@ LONG WINAPI HandleUnknownException(struct _EXCEPTION_POINTERS *ExceptionInfo)
131132
}
132133
}
133134

135+
swprintf_s(osInfo, _countof(osInfo), TEXT("Exception! Please report it! OS: %X"), GetVersion());
136+
134137
DWORD_PTR moduleBase = (DWORD_PTR)GetModuleHandleW(file);
135138

136139
swprintf_s(message, _countof(message), TEXT("ExceptionCode %08X\r\nExceptionFlags %08X\r\nNumberParameters %08X\r\nExceptionAddress VA ")TEXT(PRINTF_DWORD_PTR_FULL_S)TEXT(" - Base ")TEXT(PRINTF_DWORD_PTR_FULL_S)TEXT("\r\nExceptionAddress module %s\r\n\r\n"),
@@ -169,7 +172,7 @@ LONG WINAPI HandleUnknownException(struct _EXCEPTION_POINTERS *ExceptionInfo)
169172

170173
wcscat_s(message, _countof(message), registerInfo);
171174

172-
MessageBox(0, message, TEXT("Exception! Please report it!"), MB_ICONERROR);
175+
MessageBox(0, message, osInfo, MB_ICONERROR);
173176

174-
return EXCEPTION_EXECUTE_HANDLER;
177+
return EXCEPTION_CONTINUE_SEARCH;
175178
}

0 commit comments

Comments
 (0)