You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @random-robbie@tomnomnom, I'd like to suggest a feature, - not showing "non 200 response has been found" by passing an arg.
If this is one parameter/URL - it's ok. But when you need to feed URLs to the script thousands of times in automated pipeline and looking at the output in the console in a real-time, - it's a pain for eyes🤯
I've added a quick fix for myself
if resp.StatusCode != http.StatusOK {
fmt.Printf("non-200 response code: %s (%s)\n", u, resp.Status)
}
if resp.StatusCode == http.StatusOK {
fmt.Printf("200 response code found, checking...\n")
buf := new(bytes.Buffer)
buf.ReadFrom(resp.Body)
newStr := buf.String()
if strings.Contains(newStr , "k6unx4pudf8k5itoapaxjwzjigz") == true {
color.HiGreen("A string has been found in the response! Details: %s (%s)\n", u, resp.Status)
f, err := os.OpenFile("ssrf.log",
os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
What I'm suggesting is adding an arg and if it's been passed - not showing print("non-200 response code\n") for a user.
Thank you and have a nice day, Max (@ w2w).
The text was updated successfully, but these errors were encountered:
Hi @random-robbie @tomnomnom, I'd like to suggest a feature, - not showing "non 200 response has been found" by passing an arg.
If this is one parameter/URL - it's ok. But when you need to feed URLs to the script thousands of times in automated pipeline and looking at the output in the console in a real-time, - it's a pain for eyes🤯
I've added a quick fix for myself
if resp.StatusCode != http.StatusOK {fmt.Printf("non-200 response code: %s (%s)\n", u, resp.Status)
}
What I'm suggesting is adding an arg and if it's been passed - not showing print("non-200 response code\n") for a user.
Thank you and have a nice day, Max (@ w2w).
The text was updated successfully, but these errors were encountered: