mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-20 15:26:31 +08:00
Fix #1193
This commit is contained in:
parent
9f8095c5a7
commit
0f883a6533
6
setup.py
6
setup.py
|
@ -1,12 +1,12 @@
|
|||
from setuptools import setup, find_packages
|
||||
from theHarvester.lib.core import Core
|
||||
from theHarvester.lib.version import version
|
||||
|
||||
with open('README.md', 'r') as fh:
|
||||
long_description: str = fh.read()
|
||||
|
||||
setup(
|
||||
name='theHarvester',
|
||||
version=Core.version(),
|
||||
version=version(),
|
||||
author="Christian Martorella",
|
||||
author_email="cmartorella@edge-security.com",
|
||||
description="theHarvester is a very simple, yet effective tool designed to be used in the early stages of a penetration test",
|
||||
|
@ -14,7 +14,7 @@
|
|||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/laramies/theHarvester",
|
||||
packages=find_packages(exclude=['tests']),
|
||||
python_requires='>=3.7',
|
||||
python_requires='>=3.10',
|
||||
scripts=['bin/theHarvester',
|
||||
'bin/restfulHarvest'],
|
||||
|
||||
|
|
|
@ -7,12 +7,10 @@
|
|||
import random
|
||||
import ssl
|
||||
import certifi
|
||||
from version import version
|
||||
|
||||
|
||||
class Core:
|
||||
@staticmethod
|
||||
def version() -> str:
|
||||
return '4.2.0'
|
||||
|
||||
@staticmethod
|
||||
def api_keys() -> dict:
|
||||
|
@ -113,7 +111,7 @@ def banner() -> None:
|
|||
print(r"* \__|_| |_|\___| \/ /_/ \__,_|_| \_/ \___||___/\__\___|_| *")
|
||||
print('* *')
|
||||
print(
|
||||
'* theHarvester {version}{filler}*'.format(version=Core.version(), filler=' ' * (51 - len(Core.version()))))
|
||||
'* theHarvester {version}{filler}*'.format(version=version(), filler=' ' * (51 - len(version()))))
|
||||
print('* Coded by Christian Martorella *')
|
||||
print('* Edge-Security Research *')
|
||||
print('* cmartorella@edge-security.com *')
|
||||
|
|
4
theHarvester/lib/version.py
Normal file
4
theHarvester/lib/version.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
# coding=utf-8
|
||||
|
||||
def version() -> str:
|
||||
return '4.2.0'
|
Loading…
Reference in a new issue