Skip to content

Commit

Permalink
Update launch_suspicious_network_tool_on_host.go
Browse files Browse the repository at this point in the history
Signed-off-by: Kapil Sharma <ks3913688@gmail.com>
  • Loading branch information
h4l0gen authored and poiana committed Mar 28, 2024
1 parent 77e19ca commit df80b6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion events/syscall/launch_suspicious_network_tool_on_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ import (
var _ = events.Register(LaunchSuspiciousNetworkToolOnHost)

func LaunchSuspiciousNetworkToolOnHost(h events.Helper) error {

nmap, err := exec.LookPath("nmap")
if err != nil {
h.Log().Warnf("nmap is needed to launch this action")
return err
}

cmd := exec.Command("nmap", "-sn", "192.168.1.0/24")
h.Log().Infof("Network tool launched in host")

Expand Down

0 comments on commit df80b6f

Please sign in to comment.