Projects STRLCPY extractify Commits 17885673
🤬
  • ■ ■ ■ ■ ■ ■
    main.go
    skipped 135 lines
    136 136  }
    137 137   
    138 138  func HandleResults(endpoint, parameter, url, secret, all bool, secrets []scanner.SecretMatched, urls, endpoints, parameters []string, input string) {
     139 + if all {
     140 + HandleSecret(secrets, input)
     141 + HandleURL(urls, input)
     142 + HandleEndpoint(endpoints, input)
     143 + HandleParameter(parameters, input)
     144 + return
     145 + }
     146 + 
    139 147   if endpoint {
    140 148   HandleEndpoint(endpoints, input)
    141  - } else if parameter {
     149 + }
     150 + 
     151 + if parameter {
    142 152   HandleParameter(parameters, input)
    143  - } else if url {
     153 + }
     154 + 
     155 + if url {
    144 156   HandleURL(urls, input)
    145  - } else if secret {
    146  - HandleSecret(secrets, input)
    147  - } else if all {
     157 + }
     158 + 
     159 + if secret {
    148 160   HandleSecret(secrets, input)
    149  - HandleURL(urls, input)
    150  - HandleEndpoint(endpoints, input)
    151  - HandleParameter(parameters, input)
    152  - } else {
     161 + }
     162 +
     163 + if !endpoint && !parameter && !url && !secret && !all {
    153 164   HandleSecret(secrets, input)
    154 165   }
    155 166  }
    skipped 107 lines
Please wait...
Page is in error, reload to recover