{"action":"created","issue":{"url":"https://api.github.com/repos/hugsy/gef/issues/214","repository_url":"https://api.github.com/repos/hugsy/gef","labels_url":"https://api.github.com/repos/hugsy/gef/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/hugsy/gef/issues/214/comments","events_url":"https://api.github.com/repos/hugsy/gef/issues/214/events","html_url":"https://github.com/hugsy/gef/issues/214","id":298711980,"number":214,"title":"Does gef-remote support restarting process on remote host?","user":{"login":"pgrohe","id":359095,"avatar_url":"https://avatars0.githubusercontent.com/u/359095?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrohe","html_url":"https://github.com/pgrohe","followers_url":"https://api.github.com/users/pgrohe/followers","following_url":"https://api.github.com/users/pgrohe/following{/other_user}","gists_url":"https://api.github.com/users/pgrohe/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrohe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrohe/subscriptions","organizations_url":"https://api.github.com/users/pgrohe/orgs","repos_url":"https://api.github.com/users/pgrohe/repos","events_url":"https://api.github.com/users/pgrohe/events{/privacy}","received_events_url":"https://api.github.com/users/pgrohe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-20T19:07:02Z","updated_at":"2018-02-21T00:07:11Z","closed_at":null,"author_association":"NONE","body":"### Step 0: Preliminary (remove this part if all good)\r\n\r\n  * Did you read the [documentation](https://gef.readthedocs.org/en/latest/) first?\r\n    Yes, read the docs for [gef-remote](https://gef.readthedocs.io/en/master/commands/gef-remote/).  It mentions a -E and -p option but does not present examples of their usage.\r\n  * Did you check closed [issues](https://github.com/hugsy/gef/issues)?\r\n    Found [this Merge request](https://github.com/hugsy/gef/pull/50) that discusses the issue.  It mentions a -f flag to gef-remote in the first comment but I cannot find any trace of that.\r\n\r\n  * Did you use the latest version of GEF from `master` branch?\r\n   Maybe a week or two old now.  I will test again on latest branch.  My 'issue' is more a question / documentation request.\r\n\r\n### Step 1: Describe your environment\r\n\r\n  * Operating System:  Ubuntu 17.10 (gdb client) / Ubuntu 14.04.5 (gdbserver)\r\n  * Architecture: x64 (gdb client) / x32 (gdb server)\r\n  * GDB version (including the Python library version):\r\n   Believe it is 8.0.1, default version for 17.10 apt-get install of gdb.  Python version is 3.x\r\n\r\n\r\n### Step 2: Describe your problem\r\n\r\nI have been unable to figure out how to connect to a remote, specify the file I want to debug, debug through repeated executions without having to restart gdbserver on the remote.\r\n\r\n\r\n#### Expected results\r\n\r\nI would like to be able to use GEF to connect to a remote gdbserver and debug an executable through several executions without manually restarting gdbserver on the remote.\r\n\r\nI don't have a whole lot of experience with gdbserver so I may just need some help understanding it & how to use it with GEF (gdbserver --multi, target extended-remote, set remote exec-file, etc....)\r\n\r\nDocumentation should include this use-case more clearly (happy to help with that once I have a better understanding).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hugsy/gef/issues/comments/367166062","html_url":"https://github.com/hugsy/gef/issues/214#issuecomment-367166062","issue_url":"https://api.github.com/repos/hugsy/gef/issues/214","id":367166062,"user":{"login":"pgrohe","id":359095,"avatar_url":"https://avatars0.githubusercontent.com/u/359095?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrohe","html_url":"https://github.com/pgrohe","followers_url":"https://api.github.com/users/pgrohe/followers","following_url":"https://api.github.com/users/pgrohe/following{/other_user}","gists_url":"https://api.github.com/users/pgrohe/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrohe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrohe/subscriptions","organizations_url":"https://api.github.com/users/pgrohe/orgs","repos_url":"https://api.github.com/users/pgrohe/repos","events_url":"https://api.github.com/users/pgrohe/events{/privacy}","received_events_url":"https://api.github.com/users/pgrohe/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T00:07:11Z","updated_at":"2018-02-21T00:07:11Z","author_association":"NONE","body":"Remote\r\n```\r\nmbe_test@mbe-testlab:~/mbe_dev/bin$ gdbserver --multi :1234 ./lab3C\r\nProcess ./lab3C created; pid = 1125\r\nListening on port 1234\r\nRemote debugging from host 192.168.122.1\r\ngdbserver: unable to open /proc file '/proc/1125/status'\r\ngdbserver: unable to open /proc file '/proc/1125/status'\r\nCannot attach to lwp 1125: No such file or directory (2)\r\n```\r\n\r\nGDB Client\r\n```\r\ngef➤  gef-remote -p 1125 -E 192.168.122.55:1234\r\nwarning: No executable has been specified and target does not support\r\ndetermining executable automatically.  Try using the \"file\" command.\r\nwarning: Could not load vsyscall page because no executable was specified\r\n0xb7fdf030 in ?? ()\r\n[+] Connected to '192.168.122.55:1234'\r\n[+] Attaching to 1125\r\n[!] Command 'gef-remote' failed to execute properly, reason: Attaching to process 1125 failed\r\n\r\n```\r\n\r\n"}}
{"actor":{"display_login":"pgrohe"}}