mirror of
https://github.com/anotherhadi/iknowyou.git
synced 2026-05-20 09:12:34 +02:00
gravatar: no output when not found
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -3,6 +3,7 @@ package gravatarrecon
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/anotherhadi/iknowyou/internal/tools"
|
"github.com/anotherhadi/iknowyou/internal/tools"
|
||||||
)
|
)
|
||||||
@@ -46,8 +47,10 @@ func (r *Runner) Run(ctx context.Context, target string, _ tools.InputType, out
|
|||||||
if err != nil && ctx.Err() != nil {
|
if err != nil && ctx.Err() != nil {
|
||||||
out <- tools.Event{Tool: name, Type: tools.EventTypeError, Payload: "scan cancelled"}
|
out <- tools.Event{Tool: name, Type: tools.EventTypeError, Payload: "scan cancelled"}
|
||||||
} else if output != "" {
|
} else if output != "" {
|
||||||
out <- tools.Event{Tool: name, Type: tools.EventTypeOutput, Payload: output}
|
if !strings.Contains(output, "status 404") {
|
||||||
count = 1
|
out <- tools.Event{Tool: name, Type: tools.EventTypeOutput, Payload: output}
|
||||||
|
count = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
out <- tools.Event{Tool: name, Type: tools.EventTypeCount, Payload: count}
|
out <- tools.Event{Tool: name, Type: tools.EventTypeCount, Payload: count}
|
||||||
out <- tools.Event{Tool: name, Type: tools.EventTypeDone}
|
out <- tools.Event{Tool: name, Type: tools.EventTypeDone}
|
||||||
|
|||||||
Reference in New Issue
Block a user