Freitag, 19. Dezember 2014

64-bit libbesocket.so

As I have both 32-bit and 64-bit systems, a patched 32-bin library alone is obviously not enough. So same game for 64-bit:

.text:0000000000023C36 loc_23C36:                              ; CODE XREF: getifaddrs(ifaddrs **)+58 j
.text:0000000000023C36                 mov     edi, eax        ; fd
.text:0000000000023C38                 lea     rdx, [rsp+1A8h+var_BC]
.text:0000000000023C40                 xor     eax, eax
.text:0000000000023C42                 mov     esi, 8938h      ; request
.text:0000000000023C47                 call    _ioctl
.text:0000000000023C4C                 test    eax, eax
.text:0000000000023C4E                 jns     short loc_23C69
.text:0000000000023C50                 call    ___errno_location
.text:0000000000023C55                 cmp     dword ptr [rax], 16h
.text:0000000000023C58                 jnz     loc_23F9E
So in the end, you have to change 0x16 at the position 0x23c55 to 0x19 ;).

Keine Kommentare:

Kommentar veröffentlichen