![]() |
|
|
|
#1
|
|||
|
|||
|
Are you talking about the section headers? If so, then CFF explorer has this option to enable/disable the sections flags. Apologies if I misunderstand your question.
This might help you: https://github.com/OsandaMalith/PESecInfo Last edited by Stingered; 02-21-2023 at 01:12. |
|
#2
|
|||
|
|||
|
Quote:
I used the same way as below: PUSH ESP PUSH 40 // code writable PUSH 1000 // size of code to make writable PUSH 401000 // start address of code to make writable CALL VirtualProtect // xxxxxxxx is address of VirtualProtect I did this in several x32 app's and worked just fine but in x64 no way Last edited by New Tiger; 02-21-2023 at 05:12. |
|
#3
|
|||
|
|||
|
Based on the original question, there are two ways:
Based on your second post, the most promising answer would be:
|
| The Following User Says Thank You to Kerlingen For This Useful Post: | ||
X0rby (04-01-2024) | ||
|
#4
|
|||
|
|||
|
Quote:
Also, based on yor answer, Mr VIP, in particular the last line "Your problem definitely is not some write permission, but the basic understanding of the CPU architecture" can you teach me Mr professional these fundamentals. Understand the question before you show off your muscles. It's real useful for you to keep this advice for your own as when I was handling these x32 stuff you were still asking for suckle, I don't know how admins promoted you to VIP here??????? Just get away! you're really very rude Last edited by New Tiger; 02-21-2023 at 06:02. |
|
#5
|
|||
|
|||
|
@New Tiger
Take a look at this link and see if it helps: https://ethical.blue/textz/n/28 |
| The Following User Says Thank You to Stingered For This Useful Post: | ||
New Tiger (02-21-2023) | ||
|
#6
|
|||
|
|||
|
Quote:
![]() @New Tiger The calling convention in 64-bit is different from that of 32-bit. The x64 Application Binary Interface (ABI) uses a four-register fast-call calling convention by default. Space is allocated on the call stack as a shadow store for callees to save those registers. Meaning that the parameters are passed to the function through registers as a default which differs significantly from the 32-bit manner where the stack can be wholly used for passing the parameters. Example: Quote:
Please read these 2 pages for more info: Quote:
Then the VirtualProtect should work just fine in 64-bit also
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code to efficiently break on entering code section??? | yaa | General Discussion | 4 | 05-08-2005 05:29 |
| enable buttons | code | General Discussion | 13 | 03-04-2003 15:42 |