Commit Graph

219 Commits

Author SHA1 Message Date
Duncan Ogilvie 807951bac6 Improve the DisableAslr functionality
It will now retry 10 times to get the image to load at the expected base
2022-09-10 00:55:19 +02:00
Duncan Ogilvie b435ee57d3 Implement UE_ENGINE_DISABLE_ASLR 2022-09-10 00:07:34 +02:00
Duncan Ogilvie 39934ea3ae Implement safe stepping with DBG_REPLY_LATER 2022-09-09 22:56:39 +02:00
Duncan Ogilvie 660619edf3
Merge pull request #70 from gmh5225/Branch_fix_dep_opportunity
the code to determine dep should be placed in LOAD_DLL_DEBUG_EVENT
2022-07-20 21:49:17 +02:00
gmh5225 cc5b8cc4d1
the code to determine dep should be placed in LOAD_DLL_DEBUG_EVENT 2022-07-21 01:35:35 +08:00
Duncan Ogilvie f6896bc22e
Merge pull request #69 from gmh5225/Branch_fix_dep
Solving DEP problem when attaching process
2022-07-20 12:21:16 +02:00
gmh5225 9bd5c380e5
Solving "What happens if you hit a breakpoint before a system breakpoint" 2022-07-03 21:53:09 +08:00
Duncan Ogilvie 69be313fac
Merge pull request #68 from gmh5225/Branch_AStyle
AStyle format
2022-06-29 12:31:38 +02:00
gmh5225 8e1ff5a123
Fix another crash 2022-06-22 01:11:59 +08:00
gmh5225 df29f506c9
Fix incorrect type 2022-06-22 01:08:33 +08:00
gmh5225 244ba4a10b
Add code-format.bat 2022-06-21 17:41:51 +08:00
gmh5225 30217c92d4
AStyle format 2022-06-19 19:12:44 +08:00
Duncan Ogilvie 63a6668514
Merge pull request #66 from gmh5225/Branch_fix_crash
Fix crash
2022-06-19 12:32:37 +02:00
gmh5225 c865113301
Fix crash 2022-06-19 17:43:30 +08:00
gmh5225 8ede5be134
Merge branch 'x64dbg:vs2015' into vs2015 2022-05-14 21:31:55 +08:00
Duncan Ogilvie 5afd1f039b
Merge pull request #65 from gmh5225/Branch_fix_bug
[bug] Fix missing code
2022-05-14 15:14:46 +02:00
gmh5225 8f774681b7
Merge pull request #1 from gmh5225/Branch_fix_bug
Fix missing code
2022-05-12 09:19:35 +08:00
gmh5225 9d453b9c1b
Make info.internal.hardware.enabled = true when Process::SetHardwareBreakpoint return true 2022-05-12 09:15:59 +08:00
Matthijs Lavrijsen 7fca84f656
Emulator: fix offset to VA calculation 2020-12-24 15:47:30 +01:00
Duncan Ogilvie 0356726f20 Implement GetDebuggedDLLBaseAddress 2020-11-13 11:13:06 +01:00
Duncan Ogilvie 5bc2e682e9 Implement some more missing APIs 2020-11-12 04:36:00 +01:00
Duncan Ogilvie 3c02faea83 Execute the attach breakpoint after the create process breakpoint 2020-11-12 04:36:00 +01:00
Duncan Ogilvie 7790cc9e12 Disable DbgUiIssueRemoteBreakin and switch to safe attach per default 2020-11-12 04:35:59 +01:00
Duncan Ogilvie ddfa81366e Improve detaching 2020-11-12 04:35:59 +01:00
Duncan Ogilvie 821234ae37
Merge pull request #57 from cw2k/patch-1
ConvertVAtoFileOffsetEx() fails on VA's and crashes client
2020-11-11 23:33:49 +01:00
cw2k 34b632311f
Added handler for AddressIsRVA & ReturnType 2020-11-03 23:10:22 +01:00
cw2k 9f16d36504
added handler for 'ReturnType'
added handler for the parameter 'ReturnType'  inConvertFileOffsetToVA(),  ConvertVAtoFileOffset() and ConvertVAtoFileOffsetEx()
2020-11-03 22:53:57 +01:00
cw2k 951852bab1
ConvertVAtoFileOffsetEx() now supports VA values
* ConvertVAtoFileOffsetEx(): implemented a handler for the bool AddressIsRVA. 
  Before AddressToConvert was always assumed to be a RVA
  what lead to problems if a VA was passed in AddressToConvert [what was shown by AddressIsRVA=true]

  Combined with previous bug that returns INVALID_VALUE in case of an error it crashed the gleebug clientapp since they interpreted  INVALID_VALUE  as a file offset

* ConvertFileOffsetToVA: fix for return value.
  In case an error occurs it now returns 0.  Before it returned INVALID_VALUE.

* Start commenting function purpose and it's parameters
2020-11-03 21:52:22 +01:00
cw2k 07ec166b94
ConvertVAtoFileOffsetEx
* now returns 0 on error (and not INVALID_VALUE  => -1)
* implementation for ReturnType 

In short I just copied that from:
c5aed9fccc/StaticEngine/Emulator.h (L507)
2020-11-03 05:37:41 +01:00
Duncan Ogilvie c5aed9fccc
Merge pull request #55 from Mattiwatti/staticfileload-getpe32data
Emulator: implement StaticFileLoad and GetPE32Data
2020-10-10 17:51:06 +02:00
Matthijs Lavrijsen 6b6fdd5bb5
Emulator: implement StaticFileLoad and GetPE32Data 2020-10-10 02:23:22 +02:00
Matthijs Lavrijsen ab5716c6fb
DebugActiveProcess_: always return a value 2020-10-10 01:41:24 +02:00
Matthijs Lavrijsen 2d92c9f236
Merge pull request #54 from x64dbg/emulator-improvements
Emulator improvements
2020-10-10 01:34:07 +02:00
Matthijs Lavrijsen b9378f0b0b
Add UTF-8/UTF-16 string conversion functions (taken from x64dbg) 2020-10-10 01:16:32 +02:00
Duncan Ogilvie 4c7aa4a31f Fix a bug in the rva to offset conversion 2020-10-09 13:59:22 +02:00
Duncan Ogilvie b79988f9cc
Merge pull request #53 from Mattiwatti/ConvertVAtoFileOffset
Emulator: add ConvertVAtoFileOffset
2020-10-09 13:56:14 +02:00
Matthijs Lavrijsen 807283d5ee
Emulator: add ConvertVAtoFileOffset 2020-10-04 09:45:23 +02:00
Duncan Ogilvie 958039802f
Merge pull request #51 from Mattiwatti/getpe32dataw_impl
Implement missing cases in GetPE32DataW_impl
2020-09-23 23:49:32 +02:00
Matthijs Lavrijsen 8dcc6573bf
Implement missing cases in GetPE32DataW_impl 2020-09-23 21:05:23 +02:00
Duncan Ogilvie ad67ff50fc Implement some more emulated APIs 2020-09-18 19:56:37 +02:00
Duncan Ogilvie 3413850282 references for GleeBug 2020-09-08 22:16:08 +02:00
Duncan Ogilvie 44bc9c8c15
support SafeAttach 2020-09-08 22:14:04 +02:00
Duncan Ogilvie 9fd62daff1 add fallback to ReadMemorySafe 2019-11-04 13:44:24 +01:00
Duncan Ogilvie 7ac6950874 add StaticEngine project 2019-08-19 16:14:53 +02:00
Duncan Ogilvie 85846e4ed1 Fix a dumb bug when setting memory breakpoints 2018-11-21 16:58:24 +01:00
Duncan Ogilvie 2ee4dc0f83 Implement all TitanEngine functionality (finally) 2018-10-08 20:22:23 +02:00
Duncan Ogilvie 642e8956d3 Convert MyDebugger and TitanEngineEmulator projects to VS2015 2018-10-01 15:22:13 +02:00
Duncan Ogilvie 9a2f5e4358 Implement UE_SIZEOFIMAGE in GetPE32Data* 2018-10-01 15:21:55 +02:00
Duncan Ogilvie 8f3dacb9b0 change license 2018-08-01 16:47:57 +02:00
Duncan Ogilvie ae2c715811 add option to not create a process in a new console 2018-06-22 11:32:06 +02:00