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