SHARE
TWEET

Untitled

extcgomezp Oct 10th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import argparse
  4. import time
  5.  
  6. from beroot.run import run
  7.  
  8.  
  9. if __name__ == '__main__':
  10.  
  11.     banner = '''
  12. |====================================================================|
  13. |                                                                    |
  14. |                      Linux Privilege Escalation                    |
  15. |                                                                    |
  16. |                          ! BANG BANG !                             |
  17. |                                                                    |
  18. |====================================================================|
  19. '''
  20.     parser = argparse.ArgumentParser(description='%s\nFind a way to BeRoot' % banner, formatter_class=argparse.RawTextHelpFormatter)
  21.     parser.add_argument('--version', action='version', version='%(prog)s 1.1')
  22.     parser.add_argument('--password', dest='password', help='if no NOPASSWD in sudoers, sudo -ll needs user password')
  23.  
  24.     arguments = parser.parse_args()
  25.     start_time = time.time()
  26.  
  27.     print(banner)
  28.     run(arguments.password)
  29.  
  30.     elapsed_time = time.time() - start_time
  31.     print('\nElapsed time = %s' % elapsed_time)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top