{"action":"created","issue":{"url":"https://api.github.com/repos/dellis23/ispy/issues/3","labels_url":"https://api.github.com/repos/dellis23/ispy/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dellis23/ispy/issues/3/comments","events_url":"https://api.github.com/repos/dellis23/ispy/issues/3/events","html_url":"https://github.com/dellis23/ispy/issues/3","id":123687948,"number":3,"title":"Does not work on zsh","user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T16:36:04Z","updated_at":"2015-12-24T04:33:13Z","closed_at":null,"body":"```sh\r\n/s/Executables ❯❯❯ sudo ./ispy 10790                                                                                                                ⏎\r\nAttach process 10790\r\nfatal: Not a git repository (or any parent up to mount point /storage)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\ntypeset -A git_info\r\ngit_info=( )\r\na: none\r\nasd: none\r\nasd: none\r\nfatal: Not a git repository (or any parent up to mount point /storage)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\ntypeset -A git_info\r\ngit_info=( )\r\nl: alias\r\nl='ls -1A'\r\nls: alias\r\nls='ls --group-directories-first --color=auto'\r\nls: alias\r\nls='ls --group-directories-first --color=auto'\r\nBrightness  hhvm-perms  hhvm-perms-reset  ispy  ReadLog\r\nfatal: Not a git repository (or any parent up to mount point /storage)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\ntypeset -A git_info\r\ngit_info=( )\r\nl: alias\r\nl='ls -1A'\r\nls: alias\r\nls='ls --group-directories-first --color=auto'\r\nl: alias\r\nl='ls -1A'\r\nc: none\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: no such file or directory: /var//www\r\nl: alias\r\nl='ls -1A'\r\nls: alias\r\nfatal: Not a git repository (or any parent up to mount point /storage)\r\nls='ls --group-directories-first --color=auto'\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\ntypeset -A git_info\r\ngit_info=( )\r\nls: alias\r\nls='ls --group-directories-first --color=auto'\r\nBrightness  hhvm-perms  hhvm-perms-reset  ispy  ReadLog\r\nfatal: Not a git repository (or any parent up to mount point /storage)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\ntypeset -A git_info\r\ngit_info=( )\r\nc: none\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\ncd: alias\r\ncd='nocorrect cd'\r\nl: alias\r\nDebugger error: [ProcessSignal] Signal signal<133>\r\nTraceback (most recent call last):\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy/ispy.py\", line 185, in _main\r\n    self.runDebugger()\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy/ispy.py\", line 175, in runDebugger\r\n    self.syscallTrace(process)\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy/ispy.py\", line 126, in syscallTrace\r\n    self.syscall(process)\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy/ispy.py\", line 130, in syscall\r\n    syscall = state.event(self.syscall_options)\r\n  File \"/home/steel/.pex/install/python_ptrace-0.8.1-py2-none-any.whl.18fa41a1bad5222bc639419593783a12f8c65c79/python_ptrace-0.8.1-py2-none-any.whl/ptrace/debugger/syscall_state.py\", line 13, in event\r\n    return self.exit()\r\n  File \"/home/steel/.pex/install/python_ptrace-0.8.1-py2-none-any.whl.18fa41a1bad5222bc639419593783a12f8c65c79/python_ptrace-0.8.1-py2-none-any.whl/ptrace/debugger/syscall_state.py\", line 38, in exit\r\n    self.process.waitSignals(SIGTRAP)\r\n  File \"/home/steel/.pex/install/python_ptrace-0.8.1-py2-none-any.whl.18fa41a1bad5222bc639419593783a12f8c65c79/python_ptrace-0.8.1-py2-none-any.whl/ptrace/debugger/process.py\", line 726, in waitSignals\r\n    return self.debugger.waitSignals(*signals, **{'pid': self.pid})\r\n  File \"/home/steel/.pex/install/python_ptrace-0.8.1-py2-none-any.whl.18fa41a1bad5222bc639419593783a12f8c65c79/python_ptrace-0.8.1-py2-none-any.whl/ptrace/debugger/debugger.py\", line 196, in waitSignals\r\n    raise event\r\nProcessSignal: Signal signal<133>\r\nTerminate <PtraceProcess #10985>\r\nTerminate <PtraceProcess #10983>\r\nTraceback (most recent call last):\r\n  File \"/storage/Executables/ispy/.bootstrap/_pex/pex.py\", line 317, in execute\r\n  File \"/storage/Executables/ispy/.bootstrap/_pex/pex.py\", line 250, in _wrap_coverage\r\n  File \"/storage/Executables/ispy/.bootstrap/_pex/pex.py\", line 282, in _wrap_profiling\r\n  File \"/storage/Executables/ispy/.bootstrap/_pex/pex.py\", line 358, in _execute\r\n  File \"/storage/Executables/ispy/.bootstrap/_pex/pex.py\", line 389, in execute_script\r\n  File \"/storage/Executables/ispy/.bootstrap/_pex/pex.py\", line 403, in execute_content\r\n  File \"<exec_function>\", line 4, in exec_function\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy-0.1.1.dist-info/ispy-0.1.1.data/scripts/ispy\", line 5, in <module>\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy/ispy.py\", line 210, in main\r\n    SyscallTracer().main()\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy/ispy.py\", line 178, in main\r\n    self._main()\r\n  File \"/home/steel/.pex/install/ispy-0.1.1-py2-none-any.whl.9e1cb5382cfd6d113d80bf9a99e320d948714a00/ispy-0.1.1-py2-none-any.whl/ispy/ispy.py\", line 200, in _main\r\n    subprocess.check_output(['kill', '-cont', str(process.pid)])\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 573, in check_output\r\n    raise CalledProcessError(retcode, cmd, output=output)\r\nsubprocess.CalledProcessError: Command '['kill', '-cont', '10985']' returned non-zero exit status 1\r\n```\r\nHere's the output of the shell it was listening on\r\n```sh\r\n/s/Executables ❯❯❯ echo $$\r\n10790\r\n/s/Executables ❯❯❯ \r\n/s/Executables ❯❯❯ asd\r\nzsh: correct asd to as [nyae]? %                                                                                                                      /s/Executables ❯❯❯ ls                                                                                                                               ⏎\r\nBrightness  hhvm-perms  hhvm-perms-reset  ispy  ReadLog\r\n/s/Executables ❯❯❯ cd /var//www\r\ncd: no such file or directory: /var//www\r\n/s/Executables ❯❯❯ ls                                                                                                                               ⏎\r\nBrightness  hhvm-perms  hhvm-perms-reset  ispy  ReadLog\r\n/s/Executables ❯❯❯ cd /var\r\n/var ❯❯❯ ls\r\nbackups  cache  crash  lib  local  log  mail  metrics  opt  spool  tmp  lock  run\r\n/var ❯❯❯ \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dellis23/ispy/issues/comments/167040076","html_url":"https://github.com/dellis23/ispy/issues/3#issuecomment-167040076","issue_url":"https://api.github.com/repos/dellis23/ispy/issues/3","id":167040076,"user":{"login":"codehate","id":2310476,"avatar_url":"https://avatars.githubusercontent.com/u/2310476?v=3","gravatar_id":"","url":"https://api.github.com/users/codehate","html_url":"https://github.com/codehate","followers_url":"https://api.github.com/users/codehate/followers","following_url":"https://api.github.com/users/codehate/following{/other_user}","gists_url":"https://api.github.com/users/codehate/gists{/gist_id}","starred_url":"https://api.github.com/users/codehate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codehate/subscriptions","organizations_url":"https://api.github.com/users/codehate/orgs","repos_url":"https://api.github.com/users/codehate/repos","events_url":"https://api.github.com/users/codehate/events{/privacy}","received_events_url":"https://api.github.com/users/codehate/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T04:33:13Z","updated_at":"2015-12-24T04:33:13Z","body":"I'm able to see both output of shell command of listening process and \"Not a git repository\" message.\r\n\r\n```log\r\n➜  /tmp  sudo ispy 17056\r\nAttach process 17056\r\nfatal: Not a git repository (or any of the parent directories): .git\r\nfatal: Not a git repository (or any of the parent directories): .git\r\naclocal               ed          nano                     setfacl\r\naclocal-1.11          efibootmgr  nc                       setfont\r\nautomake              egrep       nc.openbsd               setupcon\r\nautomake-1.11         false       netcat                   sh\r\nbash                  fgconsole   netstat                  sh.distrib\r\nbunzip2               fgrep       nisdomainname            sleep\r\nbusybox               findmnt     ntfs-3g                  ss\r\nbzcat                 fuser       ntfs-3g.probe            static-sh\r\nbzcmp                 fusermount  ntfs-3g.secaudit         stty\r\nbzdiff                getfacl     ntfs-3g.usermap          su\r\nbzegrep               grep        ntfscat                  sync\r\nbzexe                 gunzip      ntfsck                   tailf\r\nbzfgrep               gzexe       ntfscluster              tar\r\nbzgrep                gzip        ntfscmp                  tempfile\r\nbzip2                 hostname    ntfsdump_logfile         touch\r\nbzip2recover          ip          ntfsfix                  true\r\nbzless                kbd_mode    ntfsinfo                 udevadm\r\nbzmore                kill        ntfsls                   ulockmgr_server\r\ncat                   kmod        ntfsmftalloc             umount\r\ncgroups-mount         less        ntfsmove                 uname\r\ncgroups-umount        lessecho    ntfstruncate             uncompress\r\nchacl                 lessfile    ntfswipe                 unicode_start\r\nchgrp                 lesskey     open                     vdir\r\nchmod                 lesspipe    openvt                   vmmouse_detect\r\nchown                 ln          pidof                    which\r\nchvt                  loadkeys    ping                     whiptail\r\ncp                    login       ping6                    ypdomainname\r\ncpio                  loginctl    plymouth                 zcat\r\ndash                  lowntfs-3g  plymouth-upstart-bridge  zcmp\r\ndate                  ls          ps                       zdiff\r\ndbus-cleanup-sockets  lsblk       pwd                      zegrep\r\ndbus-daemon           lsmod       rbash                    zfgrep\r\ndbus-uuidgen          mkdir       readlink                 zforce\r\ndd                    mknod       red                      zgrep\r\ndf                    mktemp      rm                       zless\r\ndir                   more        rmdir                    zmore\r\ndmesg                 mount       rnano                    znew\r\ndnsdomainname         mountpoint  running-in-container     zsh\r\ndomainname            mt          run-parts                zsh5\r\ndumpkeys              mt-gnu      rzsh\r\necho                  mv          sed\r\nfatal: Not a git repository (or any of the parent directories): .git\r\nfatal: Not a git repository (or any of the parent directories): .git\r\n```\r\nListening shell:\r\n\r\n```log\r\n➜  /bin  echo $$\r\n17056\r\n➜  /bin  ls\r\naclocal               ed          nano                     setfacl\r\naclocal-1.11          efibootmgr  nc                       setfont\r\nautomake              egrep       nc.openbsd               setupcon\r\nautomake-1.11         false       netcat                   sh\r\nbash                  fgconsole   netstat                  sh.distrib\r\nbunzip2               fgrep       nisdomainname            sleep\r\nbusybox               findmnt     ntfs-3g                  ss\r\nbzcat                 fuser       ntfs-3g.probe            static-sh\r\nbzcmp                 fusermount  ntfs-3g.secaudit         stty\r\nbzdiff                getfacl     ntfs-3g.usermap          su\r\nbzegrep               grep        ntfscat                  sync\r\nbzexe                 gunzip      ntfsck                   tailf\r\nbzfgrep               gzexe       ntfscluster              tar\r\nbzgrep                gzip        ntfscmp                  tempfile\r\nbzip2                 hostname    ntfsdump_logfile         touch\r\nbzip2recover          ip          ntfsfix                  true\r\nbzless                kbd_mode    ntfsinfo                 udevadm\r\nbzmore                kill        ntfsls                   ulockmgr_server\r\ncat                   kmod        ntfsmftalloc             umount\r\ncgroups-mount         less        ntfsmove                 uname\r\ncgroups-umount        lessecho    ntfstruncate             uncompress\r\nchacl                 lessfile    ntfswipe                 unicode_start\r\nchgrp                 lesskey     open                     vdir\r\nchmod                 lesspipe    openvt                   vmmouse_detect\r\nchown                 ln          pidof                    which\r\nchvt                  loadkeys    ping                     whiptail\r\ncp                    login       ping6                    ypdomainname\r\ncpio                  loginctl    plymouth                 zcat\r\ndash                  lowntfs-3g  plymouth-upstart-bridge  zcmp\r\ndate                  ls          ps                       zdiff\r\ndbus-cleanup-sockets  lsblk       pwd                      zegrep\r\ndbus-daemon           lsmod       rbash                    zfgrep\r\ndbus-uuidgen          mkdir       readlink                 zforce\r\ndd                    mknod       red                      zgrep\r\ndf                    mktemp      rm                       zless\r\ndir                   more        rmdir                    zmore\r\ndmesg                 mount       rnano                    znew\r\ndnsdomainname         mountpoint  running-in-container     zsh\r\ndomainname            mt          run-parts                zsh5\r\ndumpkeys              mt-gnu      rzsh\r\necho                  mv          sed\r\n``` "}}