Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def solve_dependencies(module_name,download_url=None):
try:
from pipper import pip_install_module
except:
print "[!] pipper not found in the current directory.. Downloading pipper.."
download("https://raw.githubusercontent.com/D35m0nd142/LFISuite/master/pipper.py","pipper.py")
from pipper import pip_install_module
if(download_url is not None):
print "\n[*] Downloading %s from '%s'.." %(module_name,download_url)
download(download_url,module_name)
if(sys.platform[:3] == "win"): # in case you are using Windows you may need to install an additional module
pip_install_module("win_inet_pton")
else:
pip_install_module(module_name)
def solve_dependencies(module_name,download_url=None):
try:
from pipper import pip_install_module
except:
print "[!] pipper not found in the current directory.. Downloading pipper.."
download("https://raw.githubusercontent.com/D35m0nd142/LFISuite/master/pipper.py","pipper.py")
from pipper import pip_install_module
if(download_url is not None):
print "\n[*] Downloading %s from '%s'.." %(module_name,download_url)
download(download_url,module_name)
if(sys.platform[:3] == "win"): # in case you are using Windows you may need to install an additional module
pip_install_module("win_inet_pton")
else:
pip_install_module(module_name)