Commit b024226a by fwkz

Creating utils package

parent 24a4151d
from __future__ import print_function
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import print_function
import threading
import os
import sys
import re
import collections import collections
import random import errno
import string
import importlib import importlib
import os
import random
import re
import select import select
import socket import socket
import errno import string
from functools import wraps import sys
from distutils.util import strtobool import threading
from abc import ABCMeta, abstractmethod from abc import ABCMeta, abstractmethod
from distutils.util import strtobool
from functools import wraps
import requests import requests
from .printer import printer_queue, thread_output_stream from .. import modules as rsf_modules
from .exceptions import RoutersploitException from ..exceptions import RoutersploitException
from . import modules as rsf_modules from ..printer import printer_queue, thread_output_stream
MODULES_DIR = rsf_modules.__path__[0] MODULES_DIR = rsf_modules.__path__[0]
CREDS_DIR = os.path.join(MODULES_DIR, 'creds') CREDS_DIR = os.path.join(MODULES_DIR, 'creds')
...@@ -543,7 +543,7 @@ def tokenize(token_specification, text): ...@@ -543,7 +543,7 @@ def tokenize(token_specification, text):
def create_exploit(path): # TODO: cover with tests def create_exploit(path): # TODO: cover with tests
from .templates import exploit from ..templates import exploit
parts = path.split(os.sep) parts = path.split(os.sep)
module_type, name = parts[0], parts[-1] module_type, name = parts[0], parts[-1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment