This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from shodan import Shodan | |
api = Shodan('API-KEY') | |
results = api.search('isp:"ThreatMetrix Inc." port:443 Bad Request') | |
for banner in results['matches']: | |
# Only care about services that use SSL | |
if 'ssl' in banner: | |
print(banner['ssl']['cert']['subject']['CN']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read line; do dig @1.1.1.1 +short "$line" cname >> out.txt; done < <(assetfinder -subs-only domain.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
def runcommand(cmd): | |
proc = subprocess.Popen(cmd, | |
stdout=subprocess.PIPE, | |
stderr=subprocess.PIPE, | |
shell=True, | |
universal_newlines=True) | |
std_out, std_err = proc.communicate() | |
return proc.returncode, std_out, std_err |
NewerOlder