일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- javascript
- Numpy
- CNN
- Python
- Series
- keras
- mariadb
- SciPy
- 삼성소프트웨어멤버십
- index
- ipad
- Splunk
- pandas
- LSTM
- imread
- GitHub
- install
- SPL
- DFS
- Button
- GT-S80
- mean
- synology
- Lotto
- RNN
- dataframe
- pip
- 알고리즘
- pycharm
- E-P1
- 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