Skip to main content
4 votes
1 answer
204 views

I'm investigating the possibility of cross-modifying (hotpatching) code without pausing other threads. The Intel and AMD manuals specifically document that aligned writes to memory of 1, 2, 4 or 8 ...
Joseph Garvin's user avatar
0 votes
1 answer
125 views

There is a lot of documentation online suggesting that when you modify code at runtime that you should flush the instruction cache. However, it's unclear how much this is about making sure the old ...
Joseph Garvin's user avatar
-1 votes
1 answer
374 views

i have some questions, is possible to make a programm in windows that modify itself? i write this program that use the _asm{} function: #include <iostream> using namespace std; void print() //...
hacktooth's user avatar
1 vote
2 answers
150 views

Suppose we have an array of 100 numbers. I saw a question about this here but didn't understand how to solve the problem. These are the instructions we have: Instruction Meaning mov addr1,addr2 Maddr1 ...
Arthouse Tracker's user avatar
-5 votes
1 answer
167 views

i have a simple programme that shuts down a computer but it always gets detected as a virus when i share the exe file so i was wondering if i could make the programme treat a part of the code like a ...
killer queen's user avatar
0 votes
0 answers
380 views

When I was learning to program in assembler on a DOS system - the program could change its own code while the program was running and see it in the debugger. For some reason it doesn't work on Windows....
Jekgley's user avatar
0 votes
2 answers
161 views

Update: A lot of progress was made to the ini result and the self-editing-code result; however, only the functions that make the edits are finished, not the gui/implementation. Will add more soon. My ...
Wolfpack'08's user avatar
  • 4,168
1 vote
1 answer
266 views

I have a function that uses the compiler intrinsic __movsq to copy some data from a global buffer into another global buffer upon every call of the function. I'm trying to nop out those instructions ...
Arush Agarampur's user avatar
0 votes
1 answer
56 views

i want to modify the system kernell for linux, i want to change the open system call, so when i try to open one file, i want to open another one, but i cannot find where in the open.c file this can be ...
legend1999's user avatar
0 votes
1 answer
368 views

I want to access the first two items in the list and change it to the variable "first_two" but i can't find my mistake, please help. Color_list = ["red", "blue", "...
Anél Schütz's user avatar
3 votes
1 answer
220 views

Let's say I have x86-64 code that looks like this (though this question applies more generally to all code): mov rbx,7F0140E5247Dh jmp rbx Is it safe to overwrite the target constant if that target ...
PiRocks's user avatar
  • 2,065
0 votes
0 answers
34 views

In fork, the parent and child share the code, so if I modify the code content in the child (for example, by self-modifying), can the parent execute the modified content when it reaches the ...
gazile's user avatar
  • 109
0 votes
0 answers
44 views

I tried to write a self-modifying code. (Refer to the link https://shanetully.com/2013/12/writing-a-self-mutating-x86_64-c-program/) The self-modifying code works when there is no optimization (-o0) ...
gazile's user avatar
  • 109
-1 votes
1 answer
211 views

In the example of self-modifying code, you can use the function name as a label to get the actual address of the program, plus the offset of the byte to be modified, and then get the actual address of ...
gazile's user avatar
  • 109
4 votes
1 answer
3k views

The general, more abstract procedure for writing and later executing JIT or self-modifying code is, to my understanding, something like the following. Write the generated code, make sure it's flushed ...
Mona the Monad's user avatar

15 30 50 per page
1
2 3 4 5
11