formatting
This commit is contained in:
parent
fd6a5bb569
commit
d7e30ada4d
12
main.py
12
main.py
@ -51,6 +51,7 @@ if onionFlag == 1:
|
||||
|
||||
hiddenService = onionReport['hiddenService']
|
||||
print("\t Hidden service address:", hiddenService)
|
||||
print("")
|
||||
if hiddenService == " http://ciadotgov4sjwlzihbbgxnqg3xiyrg7so2r2o3lt5wz5ypk4sxyjstad.onion":
|
||||
baseScore = 0
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
@ -64,6 +65,7 @@ if onionFlag == 1:
|
||||
baseScore = baseScore * 0.67
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("\t SSH key:", onionReport['sshKey'])
|
||||
print("")
|
||||
|
||||
ftp = onionReport['ftpDetected']
|
||||
print("\t FTP?", ftp)
|
||||
@ -73,6 +75,7 @@ if onionFlag == 1:
|
||||
print("\t FTP fingerprint:", onionReport['ftpFingerprint'])
|
||||
print("\t FTP banner:", onionReport['ftpBanner'])
|
||||
ftp = onionReport['ftpDetected']
|
||||
print("")
|
||||
|
||||
smtp = onionReport['smtpDetected']
|
||||
print("\t SMTP?", smtp)
|
||||
@ -81,6 +84,7 @@ if onionFlag == 1:
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("\t SMTP fingerprint:", onionReport['smtpFingerprint'])
|
||||
print("\t SMTP banner:", onionReport['smtpBanner'])
|
||||
print("")
|
||||
|
||||
bitcoin = onionReport['bitcoinDetected']
|
||||
print("\t Bitcoin?", bitcoin)
|
||||
@ -91,6 +95,7 @@ if onionFlag == 1:
|
||||
print("\t Bitcoin user agent:", bitcoinInfo['userAgent'])
|
||||
print("\t Bitcoin version:", bitcoinInfo['protocolVersion'])
|
||||
print("\t Bitcoin onion peers:", bitcoinInfo['onionPeers'])
|
||||
print("")
|
||||
|
||||
idReport = onionReport['identifierReport']
|
||||
|
||||
@ -99,30 +104,35 @@ if onionFlag == 1:
|
||||
if privateKey:
|
||||
baseScore = baseScore * 0.63
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("")
|
||||
|
||||
apacheStatus = idReport['foundApacheModStatus']
|
||||
print("\t Apache status found?", apacheStatus)
|
||||
if apacheStatus:
|
||||
baseScore = baseScore * 0.87
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("")
|
||||
|
||||
ipAddress = idReport['ipAddresses']
|
||||
print("\t IP address leakage?", ipAddress)
|
||||
if ipAddress:
|
||||
baseScore = baseScore * 0.55
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("")
|
||||
|
||||
emailAddress = idReport['emailAddresses']
|
||||
print("\t Email address found?", emailAddress)
|
||||
if emailAddress:
|
||||
baseScore = baseScore * 0.959
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("")
|
||||
|
||||
analyticsId = idReport['analyticsIDs']
|
||||
print("\t Analytics tags?", analyticsId)
|
||||
if analyticsId:
|
||||
baseScore = baseScore * 0.6
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("")
|
||||
|
||||
risks = onionReport['simpleReport']['risks']
|
||||
if not risks:
|
||||
@ -164,6 +174,7 @@ if httpFlag == 1:
|
||||
baseScore = baseScore * 0.993
|
||||
print("\t Found", badHeader, "in HTTP headers.")
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("")
|
||||
|
||||
for secureHeader in securityHeaders:
|
||||
if secureHeader in httpHeaders:
|
||||
@ -179,6 +190,7 @@ if httpFlag == 1:
|
||||
baseScore = baseScore * 0.983
|
||||
print("\t",secureHeader, "not found.")
|
||||
print("\t Score goes down, now:", baseScore)
|
||||
print("")
|
||||
|
||||
if "Expect-CT" in httpHeaders:
|
||||
baseScore = baseScore * 0.983
|
||||
|
Reference in New Issue
Block a user