mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-27 15:00:27 +00:00
Added ability for older python versions to not use multiprocessing
This commit is contained in:
parent
65183d7fe5
commit
2797bc0b53
3 changed files with 17 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
~~~~~~~~~~~~~~~~
|
||||
version 5.0.6
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
* added ability for multiprocessing to not be used on the webattack vector for older use of python 2.6 and below
|
||||
|
||||
~~~~~~~~~~~~~~~~
|
||||
version 5.0.5
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -15,9 +15,7 @@ import string
|
|||
import inspect
|
||||
import base64
|
||||
from src.core import dictionaries
|
||||
import multiprocessing
|
||||
import thread
|
||||
from multiprocessing import Process
|
||||
|
||||
# check to see if we have python-pycrypto
|
||||
try:
|
||||
|
@ -229,7 +227,7 @@ def print_error(message):
|
|||
print bcolors.RED + bcolors.BOLD + "[!] " + bcolors.ENDC + bcolors.RED + str(message) + bcolors.ENDC
|
||||
|
||||
def get_version():
|
||||
define_version = '5.0.5'
|
||||
define_version = '5.0.6'
|
||||
return define_version
|
||||
|
||||
class create_menu:
|
||||
|
@ -1410,7 +1408,7 @@ def dns():
|
|||
sys.exit()
|
||||
udps.close()
|
||||
|
||||
# start dns with multiprocessing
|
||||
# start dns
|
||||
def start_dns():
|
||||
thread.start_new_thread(dns,())
|
||||
|
||||
|
|
|
@ -236,8 +236,13 @@ def web_server_start():
|
|||
import src.core.webserver as webserver
|
||||
# specify the path for the SET web directories for the applet attack
|
||||
path = (setdir + "/web_clone/")
|
||||
p = multiprocessing.Process(target=webserver.start_server, args=(web_port,path))
|
||||
p.start()
|
||||
try:
|
||||
import multiprocessing
|
||||
p = multiprocessing.Process(target=webserver.start_server, args=(web_port,path))
|
||||
p.start()
|
||||
except Exception:
|
||||
import thread
|
||||
thread.start_new_thread(webserver.start_server, (web_port,path))
|
||||
|
||||
# Handle KeyboardInterrupt
|
||||
except KeyboardInterrupt:
|
||||
|
@ -522,8 +527,8 @@ try:
|
|||
|
||||
# prep ratte if its posix
|
||||
if operating_system == "posix":
|
||||
subprocess.Popen("chmod +x ../../payloads/ratte/ratteserver", stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
||||
os.system("../../payloads/ratte/ratteserver %s" % (port))
|
||||
subprocess.Popen("chmod +x src/payloads/ratte/ratteserver", stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
||||
os.system("src/payloads/ratte/ratteserver %s" % (port))
|
||||
|
||||
# if not then run it in windows
|
||||
if operating_system == "windows":
|
||||
|
|
Loading…
Reference in a new issue