Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 18 19 [20] 21 22 ... 108

Author Topic: DFHack 0.5.15 (legacy)  (Read 401122 times)

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #285 on: September 08, 2010, 04:40:56 am »

It was the kernel-pae :D

Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #286 on: September 08, 2010, 05:06:54 am »

All this is a bit too weird to be honest. I dug into it a bit more and found out that I've had ASLR enabled pretty much since I started working on dfhack, with a 64bit kernel.
This is with ASLR enabled (/proc/sys/kernel/randomize_va_space set to 2):
Code: [Select]
08048000-08b39000 r-xp 00000000 08:01 303572                             /home/peterix/DF2010/libs/Dwarf_Fortress
08b39000-08b3a000 r--p 00af0000 08:01 303572                             /home/peterix/DF2010/libs/Dwarf_Fortress
08b3a000-08b3b000 rw-p 00af1000 08:01 303572                             /home/peterix/DF2010/libs/Dwarf_Fortress
08b3b000-09578000 rw-p 00000000 00:00 0
0a1e8000-1c97f000 rw-p 00000000 00:00 0                                  [heap]
There's a clear distinction between the heap (0a1e8000-1c97f000) and the 'static data' (08b3b000-09578000). All the addresses in Memory.xml actually point into this 'static data' area. The binary contains pointers into this area (for example a static 'WORLD' pointer is used all over the place).

Now this is how the memory layout looks like without ASLR:
Code: [Select]
08048000-08b39000 r-xp 00000000 08:01 303572                             /home/peterix/DF2010/libs/Dwarf_Fortress
08b39000-08b3a000 r--p 00af0000 08:01 303572                             /home/peterix/DF2010/libs/Dwarf_Fortress
08b3a000-08b3b000 rw-p 00af1000 08:01 303572                             /home/peterix/DF2010/libs/Dwarf_Fortress
08b3b000-09ac4000 rw-p 00000000 00:00 0                                  [heap]
f3ea7000-f3f83000 rw-p 00000000 00:00 0
No 'static data' area, only heap. I'll do some testing with my automated offset search tool and report back :)

Edit:
OK. the tool crashes and burns without ASLR. It actually makes the binary easier to hack... lol.
WTF.
« Last Edit: September 08, 2010, 05:29:17 am by peterix »
Logged

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #287 on: September 08, 2010, 05:39:31 am »

I'm using a 32bit kernel so if you want to try something just let me know.
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #288 on: September 08, 2010, 06:08:31 am »

I'm using a 32bit kernel so if you want to try something just let me know.
It would be awesome if you could get the memory layout (/proc/pid/maps) of the same version of DF running under the generic and -pae kernels.

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #289 on: September 08, 2010, 06:17:33 am »

I'm using a 32bit kernel so if you want to try something just let me know.
It would be awesome if you could get the memory layout (/proc/pid/maps) of the same version of DF running under the generic and -pae kernels.

Just to be clear:

Code: [Select]
cat /proc/`pidof Dwarf_Fortress`/maps | grep Dwarf
This, right?
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #290 on: September 08, 2010, 06:21:54 am »

Code: [Select]
cat /proc/`pidof Dwarf_Fortress`/maps | grep Dwarf
This, right?
This:
Code: [Select]
cat /proc/`pidof Dwarf_Fortress`/mapsPreferably posted to pastebin :)

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #291 on: September 08, 2010, 06:24:54 am »

generic-PAE

http://pastebin.com/5CPeF8CE

I have to reboot.
Logged

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #292 on: September 08, 2010, 06:29:47 am »

Logged

zxcvmnb

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #293 on: September 08, 2010, 07:18:56 am »

Wow, I'm really glad I'm not on Linux. That stuff seems to be way over my head, until next semester.

Similar things happen on Windows, but Linux is less tight-lipped about it. The problem is complicated, not the system.
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #294 on: September 08, 2010, 07:36:44 am »

Hmm... doesn't tell me much unfortunately. The layout is quite different, but the binary itself seems to be mapped into the same place... I'll have to do a bit of research it seems.

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #295 on: September 08, 2010, 08:24:03 am »

Hmm... doesn't tell me much unfortunately. The layout is quite different, but the binary itself seems to be mapped into the same place... I'll have to do a bit of research it seems.

well, if you need something else, just let me know.
Logged

finesse

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #296 on: September 08, 2010, 10:55:07 am »

I don't know if this is a false alarm, but im getting a malware warning when trying to view the last page of this thread (100 posts per page).

EDIT: After some checking, it seems to be the site that dierre is hosting his avatar on. It's been flagged for one reason or another.

--> http://safebrowsing.clients.google.com/safebrowsing/diagnostic?site=http://gaming.ngi.it/customavatars/avatar30146_24.gif&client=googlechrome&hl=en-US <-- a friendly google generated page about it, I don't think it's a problem though.
« Last Edit: September 08, 2010, 11:12:36 am by finesse »
Logged

Woof

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #297 on: September 08, 2010, 11:11:11 am »

I don't know if this is a false alarm, but im getting a malware warning when trying to view the last page of this thread (100 posts per page).

EDIT: After some checking, it seems to be the site that dierre is hosting his avatar on. It's been flagged for one reason or another.


Yup, chrome keeps flagging it up for me and it's mildly annoying...
Logged

Granite

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #298 on: September 08, 2010, 11:56:36 am »

I'm trying to compile DFHack 0.4.0.7b under Mandriva, following the instructions in the COMPILE file, but cmake always complains about X11_LIBRARY not being installed. What does that mean? X11 seems to be working normally.
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #299 on: September 08, 2010, 12:09:41 pm »

you need the x11-dev files
Logged
Pages: 1 ... 18 19 [20] 21 22 ... 108