Skip to content

Instantly share code, notes, and snippets.

@chadfurman
Created April 24, 2017 12:46
Show Gist options
  • Save chadfurman/62c5813a4bbbf1a8bedec604fd967704 to your computer and use it in GitHub Desktop.
Save chadfurman/62c5813a4bbbf1a8bedec604fd967704 to your computer and use it in GitHub Desktop.
test
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