Created
April 24, 2017 12:46
-
-
Save chadfurman/62c5813a4bbbf1a8bedec604fd967704 to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def module_check(module): | |
''' | |
Just for debian-based systems like Kali and Ubuntu | |
''' | |
ri = raw_input( | |
'[-] python-%s not installed, would you like to install now? (apt-get install -y python-%s will be run if yes) [y/n]: ' % ( | |
module, module)) | |
if ri == 'y': | |
os.system('apt-get install -y python-%s' % module) | |
else: | |
exit('[-] Exiting due to missing dependency') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment