This commit is contained in:
SSpirits 2024-03-25 14:36:12 +08:00 committed by GitHub
commit ad2af85f6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -44,8 +44,9 @@ func (processAttack) Attack(options core.AttackConfig, _ Environment) error {
for _, p := range processes {
pid := int(p.Pid)
name, err := p.Name()
// If we can't get the name of the process, we just skip it.
if err != nil {
return errors.WithStack(err)
continue
}
if attack.Process == strconv.Itoa(pid) || attack.Process == name {