일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- E-P1
- Splunk
- keras
- pandas
- ipad
- mariadb
- pip
- index
- CNN
- 삼성소프트웨어멤버십
- install
- imread
- SPL
- LSTM
- synology
- dataframe
- RNN
- DFS
- GitHub
- Button
- Series
- 알고리즘
- SciPy
- Lotto
- javascript
- mean
- pycharm
- GT-S80
- Python
- Numpy
- Today
- Total
잠토의 잠망경
[Code Project]Stealing Program's Memory 본문
Introduction
I was recently trying to steal strings from another program's listview control. You need to pass a pointer so it knows where to put the string. Normally this wouldn't be a problem, but because Windows uses virtual memory pointers are not valid across programs.
Virtual memory is how Windows deals out memory to all it's programs. It makes programs think they have 2 Gb of memory to use. It also protects programs from using each other's memory so if one program crashes it doesn't take down the whole system with it.
So after coding a fair bit, I realized my pointers were all invalid and it wouldn't work. A few hours of digging through MSDN brought me to the functions VirtualAllocEx()
, VirtualFreeEx()
, WriteProcessMemory()
and ReadProcessMemory()
. Armed with this new information, I set out to modify my code. Here is what I had so far:
출처: http://www.codeproject.com/KB/threads/int64_memsteal.aspx