Skip to content

Commit

Permalink
fix: ssh_harvester unable to find sshd process
Browse files Browse the repository at this point in the history
The process exe seems to be `/usr/sbin/sshd` in most systems
  • Loading branch information
jm33-m0 committed Feb 8, 2025
1 parent 2c80456 commit 5c1de64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/agent/ssh_harvester_amd64_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ var (
)

func sshd_monitor(password_file string) (err error) {
alive, sshd_procs := util.IsProcAlive("sshd")
alive, sshd_procs := util.IsProcAlive("/usr/sbin/sshd")
if !alive {
err = fmt.Errorf("SSHD process not found")
util.LogFilePrintf(password_file, "sshd_monitor (%d): sshd process not found, aborting", unix.Getpid())
return
}

Expand Down

0 comments on commit 5c1de64

Please sign in to comment.