forked from bhavsec/reconspider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (45 loc) · 1.82 KB
/
setup.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
from setuptools import setup
import os
import pip
fout = open("core/config.py", "w")
fout.write("shodan_api = " + '"' + "C23OXE0bVMrul2YeqcL7zxb6jZ4pj2by" + '"' + "\n")
fout.close()
fout = open("plugins/api.py", "w")
fout.write("def phoneapis():"+ "\n")
fout.write(" api= "+ '"' + "e01791e4d18fbbdfa0c9033bf207decd,2f8c8e865a0b25bbf4da08c4db039b8d" + '"' + "\n")
fout.write(" return str(api)"+ "\n")
fout.write("def ipstack():"+ "\n")
fout.write(" api="+ '"' +"276cfee2c31729505691e515e8321a02"+ '"' + "\n")
fout.write(" return str(api)"+ "\n")
fout.write("def gmap():"+ "\n")
fout.write(" api="+ '"' +"AIzaSyAKGik6Fok3_mbIsgquaAnDGNy-h_AjhVw"+ '"' + "\n")
fout.write(" return str(api)"+ "\n")
fout.close()
setup(
name="ReconSpider",
version="1.0.5",
description="Most Advanced OSINT Framework",
url="https://github.com/bhavsec/reconspider/",
author="BhavKaran (@bhavsec)",
author_email="[email protected]",
license="GPL-3.0",
install_requires=["shodan", "requests", "prompt_toolkit","wget","beautifulsoup4","click","urllib3","IP2proxy","wget","paramiko","h8mail","nmap","pythonping","whois","gmplot","pillow","lxml"],
console=["reconspider.py"],
)
try:
import wget
except Exception as e:
print(e)
pip.main(['install','wget'])
import wget
#Database
url="https://www.ip2location.com/download?token=hg5uYe2Jvri4R7P1j8b71Pk8dnvIU2M6A9jz2tvcVtGx8ZK2UPQgzr6Hk3cV68oH&file=PX8LITEBIN"
print('\nDownloading IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN.BIN...')
filepath=os.getcwd()+"/plugins/"
wget.download(url,out=filepath)
print('\nDownload Finished')
import zipfile
print('\nExtracting Files')
with zipfile.ZipFile(filepath+"IP2PROXY-LITE-PX8.BIN.ZIP","r") as zip_ref:
zip_ref.extract("IP2PROXY-LITE-PX8.BIN",filepath)
print("\nInstallation Successfull")