Advertisement
python_notes

Except Keyboard Interrupt

Apr 14th, 2015
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. try:
  2.     host =  raw_input ("[*] Enter Target Host Address: ")
  3. except KeyboardInterrupt:
  4.     print ("\n\n[*] User Requested An Initerrupt.\n " )
  5.     print ("[*] Application Shutting Down.\n ")
  6.     sys.exit(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement