Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup.py #229

Merged
merged 20 commits into from
Apr 8, 2019
Merged
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,25 @@
long_description_content_type="text/markdown",
url="https://github.com/laramies/theHarvester",
packages=setuptools.find_packages(),
entry_points={
'console_scripts': [
'theHarvester = theHarvester.__main__:entry_point'
]
},

classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
],
data_files=[
('wordlists', [
('share/dict/theHarvester', [
'wordlists/general/common.txt',
'wordlists/dns-big.txt',
'wordlists/dns-names.txt',
'wordlists/dorks.txt',
'wordlists/names_small.txt'
]
)
]
],
)
2 changes: 1 addition & 1 deletion tests/test_myparser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# coding=utf-8

from parsers import myparser
from theHarvester.parsers import myparser
import pytest


Expand Down
972 changes: 3 additions & 969 deletions theHarvester.py

Large diffs are not rendered by default.

File renamed without changes.
975 changes: 975 additions & 0 deletions theHarvester/__main__.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions discovery/DNS/Base.py → theHarvester/discovery/DNS/Base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import socket
import time

from discovery.DNS import Type, Class, Opcode
from theHarvester.discovery.DNS import Type, Class, Opcode
import asyncore

class DNSError(Exception):
Expand Down Expand Up @@ -107,7 +107,7 @@ def processUDPReply(self):

def processTCPReply(self):
import time
from discovery.DNS import Lib
from theHarvester.discovery.DNS import Lib
self.f = self.s.makefile('r')
header = self.f.read(2)
if len(header) < 2:
Expand All @@ -121,7 +121,7 @@ def processTCPReply(self):
return self.processReply()

def processReply(self):
from discovery.DNS import Lib
from theHarvester.discovery.DNS import Lib
self.args['elapsed'] = (self.time_finish - self.time_start) * 1000
u = Lib.Munpacker(self.reply)
r = Lib.DnsResult(u, self.args)
Expand Down Expand Up @@ -154,7 +154,7 @@ def conn(self):
def req(self, *name, **args):
" needs a refactoring "
import time
from discovery.DNS import Lib
from theHarvester.discovery.DNS import Lib
self.argparse(name, args)
# if not self.args:
# raise DNSError,'reinitialize request before reuse'
Expand Down Expand Up @@ -222,7 +222,7 @@ def sendUDPRequest(self, server):
def sendTCPRequest(self, server):
" do the work of sending a TCP request "
import time
import discovery.DNS.Lib as Lib
import theHarvester.discovery.DNS.Lib as Lib
self.response = None
for self.ns in server:
try:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions discovery/DNS/Lib.py → theHarvester/discovery/DNS/Lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
# DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION
# ------------------------------------------------------------------------

from discovery.DNS import Type, Class, Opcode, Status
from discovery.DNS.Base import DNSError
from theHarvester.discovery.DNS import Type, Class, Opcode, Status
from theHarvester.discovery.DNS.Base import DNSError

class UnpackError(DNSError):
pass
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

__version__ = '2.3.1'

from discovery.DNS import Type
from discovery.DNS import Opcode
from discovery.DNS import Status
from discovery.DNS import Class
from discovery.DNS.Base import DnsRequest, DNSError
from discovery.DNS.Lib import DnsResult
from discovery.DNS.Base import *
from discovery.DNS.Lib import *
from theHarvester.discovery.DNS import Type
from theHarvester.discovery.DNS import Opcode
from theHarvester.discovery.DNS import Status
from theHarvester.discovery.DNS import Class
from theHarvester.discovery.DNS.Base import DnsRequest, DNSError
from theHarvester.discovery.DNS.Lib import DnsResult
from theHarvester.discovery.DNS.Base import *
from theHarvester.discovery.DNS.Lib import *
Error = DNSError
from discovery.DNS.lazy import *
from theHarvester.discovery.DNS.lazy import *
Request = DnsRequest
Result = DnsResult

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#

# routines for lazy people.
from discovery.DNS import Base
from theHarvester.discovery.DNS import Base

def revlookup(name):
"convenience routine for doing a reverse lookup of an address"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
4 changes: 2 additions & 2 deletions discovery/censys.py → theHarvester/discovery/censys.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lib.core import *
from parsers import censysparser
from theHarvester.lib.core import *
from theHarvester.parsers import censysparser
import requests


Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions discovery/crtsh.py → theHarvester/discovery/crtsh.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
6 changes: 3 additions & 3 deletions discovery/cymon.py → theHarvester/discovery/cymon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import cymonparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import cymonparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lib.core import *
from parsers import myparser
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import discovery.DNS as DNS
import discovery.IPy as IPy
import theHarvester.discovery.DNS as DNS
import theHarvester.discovery.IPy as IPy
import os
import sys

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import json
import requests
import time
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import re
import requests
import time
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from lib.core import *
from theHarvester.lib.core import *
import json
import requests

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from discovery.constants import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import intelxparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import intelxparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
4 changes: 2 additions & 2 deletions discovery/netcraft.py → theHarvester/discovery/netcraft.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lib.core import *
from parsers import myparser
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import hashlib
import urllib.parse as urllib
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import securitytrailsparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import securitytrailsparser
import requests
import sys
import time
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from discovery.constants import *
from lib.core import *
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from shodan import exception
from shodan import Shodan

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lib.core import *
from parsers import myparser
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests


Expand Down
4 changes: 2 additions & 2 deletions discovery/trello.py → theHarvester/discovery/trello.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from discovery.constants import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lib.core import *
from parsers import myparser
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests


Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from discovery.constants import *
from lib.core import *
from parsers import myparser
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import re
import requests
import time
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/htmlExport.py → theHarvester/lib/htmlExport.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lib import graphs
from lib import markup
from theHarvester.lib import graphs
from theHarvester.lib import markup
import re


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/reportgraph.py → theHarvester/lib/reportgraph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from theHarvester.lib import stash
from datetime import datetime
from lib import stash
import plotly
import plotly.graph_objs as go
import plotly.plotly as py
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.