Move range to common code folder

This commit is contained in:
Itay Mizeretz 2018-02-26 18:39:49 +02:00
parent e57ce1099f
commit 1d07e5f98f
7 changed files with 7 additions and 4 deletions

1
common/__init__.py Normal file
View File

@ -0,0 +1 @@
__author__ = 'itay.mizeretz'

View File

@ -0,0 +1 @@
__author__ = 'itay.mizeretz'

View File

@ -4,7 +4,7 @@ block_cipher = None
a = Analysis(['main.py'], a = Analysis(['main.py'],
pathex=['.'], pathex=['.', '..'],
binaries=None, binaries=None,
datas=None, datas=None,
hiddenimports=['_cffi_backend'], hiddenimports=['_cffi_backend'],

View File

@ -2,7 +2,7 @@
import os import os
import platform import platform
a = Analysis(['main.py'], a = Analysis(['main.py'],
pathex=['.'], pathex=['.', '..'],
hiddenimports=['_cffi_backend', 'queue'], hiddenimports=['_cffi_backend', 'queue'],
hookspath=None, hookspath=None,
runtime_hooks=None) runtime_hooks=None)

View File

@ -8,7 +8,7 @@ import itertools
import netifaces import netifaces
from subprocess import check_output from subprocess import check_output
from random import randint from random import randint
from range import CidrRange from common.network.range import CidrRange
def get_host_subnets(): def get_host_subnets():

View File

@ -3,7 +3,8 @@ import time
from config import WormConfiguration from config import WormConfiguration
from info import local_ips, get_interfaces_ranges from info import local_ips, get_interfaces_ranges
from range import * from common.network.range import *
from model import VictimHost
from . import HostScanner from . import HostScanner
__author__ = 'itamar' __author__ = 'itamar'