Skip to content

Commit

Permalink
Merge pull request #106 from elyscape/handle-sshd-priv
Browse files Browse the repository at this point in the history
Handle sshd sessions that use privilege separation
  • Loading branch information
FrostyX committed Apr 8, 2018
2 parents e706cd4 + 0ac3842 commit 66a58f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracer/resources/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def name(self):
try:
if self._attr("name") == 'sshd':
if self._attr("exe") not in self._attr("cmdline"):
return 'ssh-{0}-session'.format(re.split(' |@|',self._attr("cmdline")[0])[1])
return 'ssh-{0}-session'.format(re.split(' |@',' '.join(self._attr("cmdline")))[1])
except psutil.AccessDenied:
pass
return self._attr("name")
Expand Down

0 comments on commit 66a58f1

Please sign in to comment.