hugsy / gef-binja

Interface GDB-GEF with Binary Ninja
MIT License
58 stars 6 forks source link

Gef object has no attribute 'Sync' #4

Closed huntergregal closed 4 years ago

huntergregal commented 4 years ago

kidding.zip

user:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

Error:

[!] Command 'ida-interact' failed to execute properly, reason: <Fault 1: "<class 'AttributeError'>:'Gef' object has no attribute 'Sync'">
Starting program: /home/user/CTF/kidding AAAAAAAABBBBCCCC
[!] Command 'ida-interact' failed to execute properly, reason: <Fault 1: "<class 'AttributeError'>:'Gef' object has no attribute 'Sync'">
[ Legend: Modified register | Code | Heap | Stack | String ]
─────────────────────────────────────────────────────────── registers ────
$eax   : 0x0804887c  →  <main+0> push ebp
$ebx   : 0x080481a8  →  <_init+0> push ebx
$ecx   : 0xfd939f97
$edx   : 0xffffcf34  →  0x080481a8  →  <_init+0> push ebx
$esp   : 0xffffcf00  →  0x080ea00c  →  0x08066de0  →  <__strcpy_sse2+0> mov edx, DWORD PTR [esp+0x4]
$ebp   : 0xffffcf08  →  0x00000000
$esi   : 0x080ea00c  →  0x08066de0  →  <__strcpy_sse2+0> mov edx, DWORD PTR [esp+0x4]
$edi   : 0x5e      
$eip   : 0x08048882  →  <main+6> push 0x64
$eflags: [zero carry PARITY adjust SIGN trap INTERRUPT direction overflow resume virtualx86 identification]
$cs: 0x0023 $ss: 0x002b $ds: 0x002b $es: 0x002b $fs: 0x0000 $gs: 0x0063 
─────────────────────────────────────────────────────────────── stack ────
0xffffcf00│+0x0000: 0x080ea00c  →  0x08066de0  →  <__strcpy_sse2+0> mov edx, DWORD PTR [esp+0x4]   ← $esp
0xffffcf04│+0x0004: 0x0000005e ("^"?)
0xffffcf08│+0x0008: 0x00000000   ← $ebp
0xffffcf0c│+0x000c: 0x08048ae1  →  <generic_start_main+545> add esp, 0x10
0xffffcf10│+0x0010: 0x00000002
0xffffcf14│+0x0014: 0xffffcfd4  →  0xffffd1b8  →  "/home/user/CTF/kidding"
0xffffcf18│+0x0018: 0xffffcfe0  →  0xffffd1e0  →  "CLUTTER_IM_MODULE=xim"
0xffffcf1c│+0x001c: 0xffffcf34  →  0x080481a8  →  <_init+0> push ebx
───────────────────────────────────────────────────────── code:x86:32 ────
    0x804887c <main+0>         push   ebp
    0x804887d <main+1>         mov    ebp, esp
    0x804887f <main+3>         sub    esp, 0x8
 →  0x8048882 <main+6>         push   0x64
    0x8048884 <main+8>         lea    eax, [ebp-0x8]
    0x8048887 <main+11>        push   eax
    0x8048888 <main+12>        push   0x0
    0x804888a <main+14>        call   0x806d180 <read>
    0x804888f <main+19>        add    esp, 0xc
───────────────────────────────────────────────────────────── threads ────
[#0] Id 1, Name: "kidding", stopped 0x8048882 in main (), reason: BREAKPOINT
─────────────────────────────────────────────────────────────── trace ────
[#0] 0x8048882 → main()
──────────────────────────────────────────────────────────────────────────
[!] Command 'ida-interact' failed to execute properly, reason: <Fault 1: "<class 'AttributeError'>:'Gef' object has no attribute 'Sync'">

Breakpoint 1, 0x08048882 in main ()
hugsy commented 4 years ago

You must use the dev branch of gef for now.

This will also be merged to master soon.

huntergregal commented 4 years ago

ahh i should have known that. please disregard.

btw - great plugin ! gonna be trying it out on ida too

hugsy commented 4 years ago

Thanks! However gef_ida doesn't work due to pretty serious changes IDAPython API, and none of the devs have a 7.4+ version to work on...