From 5bb2684d9eb8a5c3b65f54d1cf67bf3434810ed2 Mon Sep 17 00:00:00 2001 From: Jake Daynes Date: Fri, 13 Mar 2026 01:54:48 -0700 Subject: [PATCH] update function calls to include context --- internal/attack/attacker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/attack/attacker.go b/internal/attack/attacker.go index cee5f4b..2b22eba 100644 --- a/internal/attack/attacker.go +++ b/internal/attack/attacker.go @@ -217,7 +217,7 @@ func (a Attacker) attackCredentialsForStream(ctx context.Context, target camerad } a.reporter.Progress(cameradar.StepAttackCredentials, cameradar.ProgressTickMessage()) - ok, err := a.credAttack(target, username, password) + ok, err := a.credAttack(ctx, target, username, password) if err != nil { target.CredentialsFound = false @@ -253,7 +253,7 @@ func (a Attacker) attackRoutesForStream(ctx context.Context, target cameradar.St if emitProgress { a.reporter.Progress(cameradar.StepAttackRoutes, cameradar.ProgressTickMessage()) } - ok, err := a.routeAttack(target, dummyRoute) + ok, err := a.routeAttack(ctx, target, dummyRoute) if err != nil { a.reporter.Debug(cameradar.StepAttackRoutes, fmt.Sprintf("route probe failed for %s:%d: %v", target.Address.String(), target.Port, err)) return target, nil @@ -275,7 +275,7 @@ func (a Attacker) attackRoutesForStream(ctx context.Context, target cameradar.St if emitProgress { a.reporter.Progress(cameradar.StepAttackRoutes, cameradar.ProgressTickMessage()) } - ok, err := a.routeAttack(target, route) + ok, err := a.routeAttack(ctx, target, route) if err != nil { a.reporter.Debug(cameradar.StepAttackRoutes, fmt.Sprintf("route attempt failed for %s:%d (%s): %v", target.Address.String(), target.Port, route, err)) return target, nil