Skip to content

Commit

Permalink
[PROCESS] Prepare URL Pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav WEB committed Jan 17, 2017
1 parent d41b651 commit 6827bdd
Show file tree
Hide file tree
Showing 70 changed files with 244 additions and 180 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
logs/
opendoor.egg-info/
/dist/
/syslog/exceptions.log
/tmp/
/pycallgraph.png
/syslog/
6 changes: 2 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OpenDoor Directory Access scanner
Copyright (C) 2017 Stanislav Menshov
Copyright (C) 2017 Stanislav WEB

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -13,6 +13,4 @@ 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/>.

Development Team:

Stanislav Menshov (Stanislav WEB)
Development Team: Stanislav WEB
2 changes: 1 addition & 1 deletion opendoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import sys
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from setuptools import setup, find_packages
Expand Down Expand Up @@ -42,7 +42,7 @@
url='https://github.com/stanislav-web/OpenDoor',

# Author details
author='Stanislav Menshov',
author='Stanislav WEB',
author_email='stanisov@gmail.com',

# You can just specify the packages manually here if your project is
Expand Down
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""


Expand Down
2 changes: 1 addition & 1 deletion src/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from src.lib import args
Expand Down
2 changes: 1 addition & 1 deletion src/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .filesystem import FileSystem as filesystem
Expand Down
2 changes: 1 addition & 1 deletion src/core/color/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .color import Color
2 changes: 1 addition & 1 deletion src/core/color/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import sys
Expand Down
2 changes: 1 addition & 1 deletion src/core/color/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

class Config:
Expand Down
2 changes: 1 addition & 1 deletion src/core/decorators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .timer import execution_time
2 changes: 1 addition & 1 deletion src/core/decorators/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import time
Expand Down
2 changes: 1 addition & 1 deletion src/core/filesystem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .filesystem import FileSystem
2 changes: 1 addition & 1 deletion src/core/filesystem/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

class FileSystemError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion src/core/filesystem/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import ConfigParser
Expand Down
2 changes: 1 addition & 1 deletion src/core/helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .helper import Helper
2 changes: 1 addition & 1 deletion src/core/helper/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from distutils.version import StrictVersion
Expand Down
2 changes: 1 addition & 1 deletion src/core/http/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

class SocketConfig:
Expand Down
2 changes: 1 addition & 1 deletion src/core/http/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""


Expand Down
24 changes: 21 additions & 3 deletions src/core/http/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,31 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import requests
import urllib3
import socket

from .exceptions import RequestError

class RequestPool(type):
"""RequestPool class"""

@property
def _pool(cls, *args, **kargs):
if getattr(cls, '_request', None) is None:
socket_options = urllib3.connection.HTTPConnection.default_socket_options + [
(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), ]
cls._request = urllib3.connection_from_url('http://google.com/', socket_options=socket_options)
return cls._request

class Request:
class Request(object):
"""Request class"""

def __int__(self, config):

print config
exit()
self.__metaclass__._pool(config)
pass
2 changes: 1 addition & 1 deletion src/core/http/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .exceptions import ResponseError
Expand Down
2 changes: 1 addition & 1 deletion src/core/http/socks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import socket
Expand Down
2 changes: 1 addition & 1 deletion src/core/logger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .logger import Logger
Expand Down
2 changes: 1 addition & 1 deletion src/core/logger/colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import ctypes
Expand Down
2 changes: 1 addition & 1 deletion src/core/logger/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion src/core/logger/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import logging
Expand Down
2 changes: 1 addition & 1 deletion src/core/logger/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""
import time
import sys
Expand Down
4 changes: 2 additions & 2 deletions src/core/logger/rainbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import logging
Expand All @@ -27,7 +27,7 @@ class RainbowLoggingHandler(ColorizingStreamHandler):
level_map = {
logging.DEBUG: (None, 'cyan', False),
logging.INFO: (None, 'white', False),
logging.WARNING: (None, 'yellow', True),
logging.WARNING: (None, 'yellow', False),
logging.ERROR: (None, 'red', True),
logging.CRITICAL: ('red', 'white', True),
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/options/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .options import Options
2 changes: 1 addition & 1 deletion src/core/options/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""


Expand Down
2 changes: 1 addition & 1 deletion src/core/options/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from argparse import ArgumentParser
Expand Down
2 changes: 1 addition & 1 deletion src/core/options/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import re
Expand Down
2 changes: 1 addition & 1 deletion src/core/options/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from argparse import RawDescriptionHelpFormatter
Expand Down
2 changes: 1 addition & 1 deletion src/core/signals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .main import MainHandler
2 changes: 1 addition & 1 deletion src/core/signals/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import signal
Expand Down
2 changes: 1 addition & 1 deletion src/core/system/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

from .system import System
Expand Down
2 changes: 1 addition & 1 deletion src/core/system/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

class SystemError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion src/core/system/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Stanislav Menshov
Development Team: Stanislav WEB
"""

import subprocess
Expand Down
Loading

0 comments on commit 6827bdd

Please sign in to comment.