Exploit databaseDownload repository ZIP
GH-44d3c067f41a902d7e7d341755d2cc59
jpiechowka/at-doom-fortigate
Sources for CVE-2018-13379
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
jpiechowka/at-doom-fortigateRevision c8feee86b9a1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
networking/tor.go
Go · 826 bytespackage networking
import (
"at-doom-fortigate/config"
"github.com/rs/zerolog/log"
"strings"
)
func IsTorConnected() bool {
log.Info().Msg("Checking TOR connection")
torCheckResponse := GetRequestThroughTor(config.TorCheckURL)
if torCheckResponse.HttpStatusCode >= 400 {
log.Error().
Int("response-status-code", torCheckResponse.HttpStatusCode).
Msg("HTTP status code is higher than or equal 400. TOR is not connected")
return false
}
log.Info().
Str("networking-check-url", config.TorCheckURL).
Msg("Checking TOR response body from TOR check")
if strings.Contains(strings.ToLower(string(torCheckResponse.ResponseBody)), strings.ToLower(config.YouAreUsingTorString)) {
log.Info().Msg("TOR is connected! Ready to rock!")
return true
}
log.Error().Msg("TOR is not connected")
return false
}