{"action":"created","issue":{"url":"https://api.github.com/repos/pwndbg/pwndbg/issues/218","repository_url":"https://api.github.com/repos/pwndbg/pwndbg","labels_url":"https://api.github.com/repos/pwndbg/pwndbg/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/pwndbg/pwndbg/issues/218/comments","events_url":"https://api.github.com/repos/pwndbg/pwndbg/issues/218/events","html_url":"https://github.com/pwndbg/pwndbg/issues/218","id":222024031,"number":218,"title":"Cross-OS IDA Pro integration","user":{"login":"roman-soft","id":6954870,"avatar_url":"https://avatars3.githubusercontent.com/u/6954870?v=3","gravatar_id":"","url":"https://api.github.com/users/roman-soft","html_url":"https://github.com/roman-soft","followers_url":"https://api.github.com/users/roman-soft/followers","following_url":"https://api.github.com/users/roman-soft/following{/other_user}","gists_url":"https://api.github.com/users/roman-soft/gists{/gist_id}","starred_url":"https://api.github.com/users/roman-soft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roman-soft/subscriptions","organizations_url":"https://api.github.com/users/roman-soft/orgs","repos_url":"https://api.github.com/users/roman-soft/repos","events_url":"https://api.github.com/users/roman-soft/events{/privacy}","received_events_url":"https://api.github.com/users/roman-soft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-16T18:08:21Z","updated_at":"2017-04-19T07:44:43Z","closed_at":null,"body":"My scenario:\r\n- IDA 6.8 running on *Windows* host. Xmlrpc (ida_script.py) running on (win) 127.0.0.1:8888\r\n- Gdb w/ pwndbg running on *Linux* (Kali) host. Xmlrpc socket at (linux) 127.0.0.1:8888 (ssh-forwarded from Windows machine).\r\n\r\nJust copied Linux's /bin/cat to a directory on Windows machine and started ida-64 session on \"cat\" executable.\r\n\r\nThen started gdb/pwndbg in Linux but it gets stuck at this point:\r\n\r\n```\r\nroman@int3pids:/tmp$ gdb /bin/cat\r\nGNU gdb (Debian 7.12-6) 7.12.0.20161007-git\r\nCopyright (C) 2016 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-linux-gnu\".\r\nType \"show configuration\" for configuration details.\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\nFind the GDB manual and other documentation resources online at:\r\n<http://www.gnu.org/software/gdb/documentation/>.\r\nFor help, type \"help\".\r\nType \"apropos word\" to search for commands related to \"word\"...\r\nPwndbg successfully connected to Ida Pro xmlrpc: http://127.0.0.1:8888\r\n_<<stuck here;  no pwndbg prompt>>_\r\n```\r\n\r\nGoing to windows machine I can see the following attached error:\r\n\r\n![pwndbg-ida](https://cloud.githubusercontent.com/assets/6954870/25073104/47214634-22df-11e7-93db-65acee61fd3e.png)\r\n\r\nClicking ok in Win messagebox, led me to the following stack trace on Linux machine:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/roman/exploiting/pwndbg/pwndbg/commands/__init__.py\", line 57, in __call__\r\n    return self.function(*args, **kwargs)\r\n  File \"/home/roman/exploiting/pwndbg/pwndbg/commands/ida.py\", line 106, in save_ida\r\n    data = open(full_path, 'rb').read()\r\nFileNotFoundError: [Errno 2] No existe el fichero o el directorio: 'ida-backup/C_\\\\Users\\\\roman\\\\Desktop\\\\pwndbg-test\\\\cat-2017-04-16T19_57_48.590368.i64'\r\n\r\nLoaded 108 commands.  Type pwndbg [filter] for a list.\r\nReading symbols from /bin/cat...(no debugging symbols found)...done.\r\npwndbg>\r\n```\r\n\r\nSince many users prefer to use IDA on Windows (or simply don't have a license for Linux), it would be nice to have this integration working.\r\n\r\nThank you.\r\n-r"},"comment":{"url":"https://api.github.com/repos/pwndbg/pwndbg/issues/comments/295144224","html_url":"https://github.com/pwndbg/pwndbg/issues/218#issuecomment-295144224","issue_url":"https://api.github.com/repos/pwndbg/pwndbg/issues/218","id":295144224,"user":{"login":"roman-soft","id":6954870,"avatar_url":"https://avatars3.githubusercontent.com/u/6954870?v=3","gravatar_id":"","url":"https://api.github.com/users/roman-soft","html_url":"https://github.com/roman-soft","followers_url":"https://api.github.com/users/roman-soft/followers","following_url":"https://api.github.com/users/roman-soft/following{/other_user}","gists_url":"https://api.github.com/users/roman-soft/gists{/gist_id}","starred_url":"https://api.github.com/users/roman-soft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roman-soft/subscriptions","organizations_url":"https://api.github.com/users/roman-soft/orgs","repos_url":"https://api.github.com/users/roman-soft/repos","events_url":"https://api.github.com/users/roman-soft/events{/privacy}","received_events_url":"https://api.github.com/users/roman-soft/received_events","type":"User","site_admin":false},"created_at":"2017-04-19T07:44:43Z","updated_at":"2017-04-19T07:44:43Z","body":"Yes, only few days ago version (Apr 11th). And if you check my snapshot, you can see included replaced chars (your fix from ~5 months ago).\r\n\r\nroman@int3pids:~/exploiting/pwndbg$ ls -l\r\ntotal 56\r\ndrwxr-xr-x  2 roman roman 4096 abr 11 14:30 caps\r\ndrwxr-xr-x  4 roman roman 4096 abr 11 14:30 docs\r\n-rw-r--r--  1 roman roman 6053 abr 11 14:30 FEATURES.md\r\n-rw-r--r--  1 roman roman 1049 abr 11 14:30 gdbinit.py\r\n-rw-r--r--  1 roman roman 2114 abr 11 14:30 ida_script.py\r\n-rw-r--r--  1 roman roman 1078 abr 11 14:30 LICENSE.md\r\ndrwxr-xr-x 10 roman roman 4096 abr 11 14:38 pwndbg\r\n-rw-r--r--  1 roman roman 2598 abr 11 14:30 README.md\r\n-rw-r--r--  1 roman roman  180 abr 11 14:30 requirements.txt\r\n-rw-r--r--  1 roman roman  145 abr 11 14:30 setup.cfg\r\n-rwxr-xr-x  1 roman roman 1624 abr 11 14:30 setup.sh\r\n-rwxr-xr-x  1 roman roman  188 abr 11 14:30 tag_release.sh\r\ndrwxr-xr-x  3 roman roman 4096 abr 11 14:30 tests\r\nroman@int3pids:~/exploiting/pwndbg$ \r\n\r\nSo maybe it's still broken or may be I'm missing some config?\r\n\r\nPlease, note I didn't config anything at pwndbg side (used defaults), because I thought only rpc url could be configurable. If there are other settings (\"path mapping\" exists????), I should check, please, tell me (I didn't find any info at docs and I didn't have time for checking code directly).\r\n\r\nPS: I'm sorry I'm currently very busy. Otherwise, I could have a look by myself and try to help here :-(\r\n\r\nCheers,\r\n-r"}}
{"actor":{"display_login":"roman-soft"}}