Skip to content

Commit

Permalink
bugfix - fix import issue on python3
Browse files Browse the repository at this point in the history
  • Loading branch information
corelanc0d3r committed Jan 8, 2020
1 parent 17902ac commit d75c9b6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions artillery.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#
# Tested on win 7/8/10 also on kali rolling. left this here for when someone tries to launch this directly before using setup.

#
init_globals()

if not os.path.isfile(src.globals.g_appfile):
Expand Down
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import os
import platform
import globals
from . import globals

if platform.system() == "Windows":
import ntpath
Expand Down
3 changes: 2 additions & 1 deletion src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
import socket
import traceback

import globals
from . import globals


# initialize global vars
def init_globals():
Expand Down
2 changes: 1 addition & 1 deletion src/ftp_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
ftp_attempts = read_config("FTP_BRUTE_ATTEMPTS")
# check for whitelist

import globals
from . import globals

def ftp_monitor(monitor_time):
while 1:
Expand Down
2 changes: 1 addition & 1 deletion src/ssh_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
except ImportError: import _thread as thread
from src.core import *

import globals
from . import globals

monitor_frequency = int(read_config("MONITOR_FREQUENCY"))
ssh_attempts = read_config("SSH_BRUTE_ATTEMPTS")
Expand Down

0 comments on commit d75c9b6

Please sign in to comment.