Skip to content

Commit

Permalink
Merge pull request #21 from 0x00-0x00/touhidshaikh-exception-patch-1
Browse files Browse the repository at this point in the history
exception update
  • Loading branch information
Andre Marques (zc00l) authored Jun 2, 2018
2 parents b4b02a5 + 29b58cf commit 4c1a045
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions bin/shellpop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# Description:
# ShellPop is program to aid penetration testers
# generating quick and dirty reverse/bind shell
Expand All @@ -11,7 +11,7 @@
# ===================================================
# LowFuel contributed to the project in 27/04/2018
# Github: https://github.com/SouAquele
# Touhid Shaik joined the project in 29/04/2018
# Touhid Shaikh joined the project in 29/04/2018
# Github: https://github.com/touhidshaikh


Expand Down Expand Up @@ -695,7 +695,14 @@ def main():

if shell.handler is not None and args.handler is True:
print(info("Starting shell handler ..."))
shell.handler(shell.handler_args)
try:
shell.handler(shell.handler_args)
except KeyboardInterrupt:
print(info("Killing handler ..."))
sys.exit()
except IOError:
print(info("Port Already used by another Program or Something Wrong..."))
sys.exit()
else:
print(info("This shell DOES NOT have a handler set."))

Expand Down

0 comments on commit 4c1a045

Please sign in to comment.