Init the spoofing feature #6

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-08-23 10:35:37 +02:00
parent c1d732e03a
commit 6229445251
4 changed files with 134 additions and 4 deletions
+6
View File
@@ -42,6 +42,8 @@ func printStruct(settings github_recon_settings.Settings, s any, indent int) {
return
}
printed := 0
for i := 0; i < v.NumField(); i++ {
field := t.Field(i).Name
value := v.Field(i)
@@ -55,6 +57,7 @@ func printStruct(settings github_recon_settings.Settings, s any, indent int) {
if (field == "FirstFoundIn" || field == "FoundIn") && !settings.ShowSource {
continue
}
printed++
switch value.Kind() {
case reflect.Struct, reflect.Slice, reflect.Array, reflect.Ptr:
@@ -66,6 +69,9 @@ func printStruct(settings github_recon_settings.Settings, s any, indent int) {
fmt.Printf("%s%s %s\n", prefix, greyStyle.Render(field+":"), greenStyle.Render(fmt.Sprintf("%v", value.Interface())))
}
}
if printed == 0 {
fmt.Println(prefix + greyStyle.Render("No data found"))
}
fmt.Println("")
case reflect.Slice, reflect.Array: