Skip to content

Commit

Permalink
readme, exception info
Browse files Browse the repository at this point in the history
  • Loading branch information
NtQuery authored and NtQuery committed May 3, 2015
1 parent 1fc7e91 commit db5eb01
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ Keyboard Shortcuts
Changelog
---------

Version 0.9.8

- Bugfixes for x64, IAT Search
- diStorm3 update from Jan 3rd 2015

Version 0.9.7

- Fixed bug bad allocation https://forum.tuts4you.com/topic/36458-scylla-097b-crash-on-pep-50-unpackme/
Expand Down
3 changes: 3 additions & 0 deletions Scylla/IATSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ bool IATSearch::findIATAdvanced( DWORD_PTR startAddress, DWORD_PTR* addressIAT,

filterIATPointersList(iatPointers);

if (iatPointers.size() == 0)
return false;

*addressIAT = *(iatPointers.begin());
*sizeIAT = (DWORD)(*(--iatPointers.end()) - *(iatPointers.begin()) + sizeof(DWORD_PTR));

Expand Down
7 changes: 5 additions & 2 deletions Scylla/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ LONG WINAPI HandleUnknownException(struct _EXCEPTION_POINTERS *ExceptionInfo)
WCHAR filepath[MAX_PATH] = {0};
WCHAR file[MAX_PATH] = {0};
WCHAR message[MAX_PATH + 200 + _countof(registerInfo)];
WCHAR osInfo[100];
DWORD_PTR baseAddress = 0;
DWORD_PTR address = (DWORD_PTR)ExceptionInfo->ExceptionRecord->ExceptionAddress;

Expand All @@ -131,6 +132,8 @@ LONG WINAPI HandleUnknownException(struct _EXCEPTION_POINTERS *ExceptionInfo)
}
}

swprintf_s(osInfo, _countof(osInfo), TEXT("Exception! Please report it! OS: %X"), GetVersion());

DWORD_PTR moduleBase = (DWORD_PTR)GetModuleHandleW(file);

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"),
Expand Down Expand Up @@ -169,7 +172,7 @@ LONG WINAPI HandleUnknownException(struct _EXCEPTION_POINTERS *ExceptionInfo)

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

MessageBox(0, message, TEXT("Exception! Please report it!"), MB_ICONERROR);
MessageBox(0, message, osInfo, MB_ICONERROR);

return EXCEPTION_EXECUTE_HANDLER;
return EXCEPTION_CONTINUE_SEARCH;
}

0 comments on commit db5eb01

Please sign in to comment.