forked from dvopsway/datasploit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathipOsint.py
More file actions
40 lines (28 loc) · 728 Bytes
/
ipOsint.py
File metadata and controls
40 lines (28 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
import requests
import sys
import config as cfg
import clearbit
import json
import time
import hashlib
from bs4 import BeautifulSoup
import re
from termcolor import colored
from ip_whois import ip_whois
from ip_shodan import domaintoip,shodansearch
class style:
BOLD = '\033[1m'
END = '\033[0m'
ip_addr = sys.argv[1]
def print_iposint(ip_addr):
ip_whois(ip_addr)
#print res_from_shodan
print colored(style.BOLD + '-----------------------------------------' + style.END, 'blue')
shodansearch(ip_addr)
#print res_from_shodan
print colored(style.BOLD + '-----------------------------------' + style.END, 'blue')
def main():
print_iposint(ip_addr)
if __name__ == "__main__":
main()