forked from i3visio/osrframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
190 lines (181 loc) · 7.99 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# !/usr/bin/python
# -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2015 Félix Brezo and Yaiza Rubio (i3visio, [email protected])
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##################################################################################
__version__ = "0.9.10"
#from distutils.core import setup
import os
# Ensuring that Setuptools is install
import ez_setup
ez_setup.use_setuptools()
# Depending on the place in which the project is going to be upgraded
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
# verifying if the credential files have already been created
import os
try:
if not os.path.isfile("./osrframework/utils/config_credentials.py"):
# An empty credentials file will be created
with open("./osrframework/utils/config_credentials.py", "w") as oF:
with open("./osrframework/utils/config_credentials.py.sample") as iF:
cont = iF.read()
oF.write(cont)
if not os.path.isfile("./osrframework/utils/config_api_keys.py"):
# An empty api_keys file will be created
with open("./osrframework/utils/config_api_keys.py", "w") as oF:
with open("./osrframework/utils/config_api_keys.py.sample") as iF:
cont = iF.read()
oF.write(cont)
except:
print "ERROR: something happened when reading the configuration files."
print "The installation is aborting now."
import sys
sys.exit()
import sys
if sys.platform == 'win32':
files_to_copy=[]
else:
files_to_copy=[
("/usr/bin/",
[
"osrframework/alias_generator.py",
"osrframework/entify.py",
"osrframework/mailfy.py",
"osrframework/phonefy.py",
"osrframework/searchfy.py",
"osrframework/usufy.py",
]
),
("/usr/share/applications/",
[
"res/alias_generator.py.desktop",
"res/entify.py.desktop",
"res/mailfy.py.desktop",
"res/phonefy.py.desktop",
"res/searchfy.py.desktop",
"res/usufy.py.desktop",
]
),
("/usr/share/osrframework",
[
"osrframework/transforms/lib/i3visio-transforms[linux].mtz",
"osrframework/alias_generator.py",
"osrframework/entify.py",
"osrframework/mailfy.py",
"osrframework/phonefy.py",
"osrframework/searchfy.py",
"osrframework/usufy.py",
"res/logo.png",
"COPYING",
]
),
("/usr/share/osrframework/transforms", [
"osrframework/transforms/aliasToKnownEmails.py",
"osrframework/transforms/aliasToSkypeAccounts.py",
"osrframework/transforms/aliasToSkypeIP.py",
"osrframework/transforms/bitcoinAddressToBlockchainDetails.py",
"osrframework/transforms/coordinatesToGoogleMapsBrowser.py",
"osrframework/transforms/coordinatesToTwitterBrowser.py",
"osrframework/transforms/domainToGoogleSearchUriWithEmails.py",
"osrframework/transforms/domainToTld.py",
"osrframework/transforms/emailToAlias.py",
"osrframework/transforms/emailToBreachedAccounts.py",
"osrframework/transforms/emailToDomain.py",
"osrframework/transforms/emailToSkypeAccounts.py",
"osrframework/transforms/expandPropertiesFromI3visioEntity.py",
"osrframework/transforms/hashToMD5crackDotCom.py",
"osrframework/transforms/ipToIp_ApiInformation.py",
"osrframework/transforms/phoneToMoreInfo.py",
"osrframework/transforms/phoneToPerson.py",
"osrframework/transforms/textToEntities.py",
"osrframework/transforms/textToGoogleSearchUri.py",
"osrframework/transforms/textToPlatformSearch.py",
"osrframework/transforms/textToProfiles.py",
"osrframework/transforms/uriToBrowser.py",
"osrframework/transforms/uriToDomain.py",
"osrframework/transforms/uriToEntities.py",
"osrframework/transforms/uriToGoogleCacheUri.py",
"osrframework/transforms/uriToPort.py",
"osrframework/transforms/uriToProtocol.py",
]
),
]
# Launching the setup
setup( name="osrframework",
version=__version__,
description="OSRFramework - A set of GPLv3+ OSINT tools developed by i3visio for online research.",
author="Felix Brezo and Yaiza Rubio",
author_email="[email protected]",
url="http://github.com/i3visio/osrframework",
license="COPYING",
keywords = "python osint harvesting profiling maltego username socialmedia forums",
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 2 :: Only',
'Programming Language :: Python :: 2.7',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Intended Audience :: Telecommunications Industry',
'Natural Language :: English',
'Topic :: Communications',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Text Processing :: Markup :: HTML'
],
packages=[
"osrframework",
"osrframework.api",
"osrframework.thirdparties",
"osrframework.thirdparties.blockchain_info",
"osrframework.thirdparties.haveibeenpwned_com",
"osrframework.thirdparties.infobel_com",
"osrframework.thirdparties.ip_api_com",
"osrframework.thirdparties.md5crack_com",
"osrframework.thirdparties.pipl_com",
"osrframework.thirdparties.pipl_com.lib",
"osrframework.thirdparties.resolvethem_com",
"osrframework.thirdparties.skype",
"osrframework.utils",
"osrframework.transforms",
"osrframework.transforms.lib",
"osrframework.patterns",
"osrframework.wrappers",
"osrframework.searchengines",
#"osrframework.darkfy",
#"osrframework.darkfy.lib",
#"osrframework.darkfy.lib.wrappers",
],
# scripts=[""],
long_description=read_md("./README.md"),
# long_description=open('README.md').read(),
install_requires=[
"pip",
],
data_files=files_to_copy,
)