This commit is contained in:
L1ghtn1ng 2022-11-13 00:45:15 +00:00
parent 9f8095c5a7
commit 0f883a6533
3 changed files with 9 additions and 7 deletions

View file

@ -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'],

View file

@ -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 *')

View file

@ -0,0 +1,4 @@
# coding=utf-8
def version() -> str:
return '4.2.0'