Check handler must have -lport option specified

pull/24/head
xyzkab 2020-01-09 09:58:40 +07:00
parent 95b28008e4
commit 2ffa7985b9
1 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@ class SSRF(object):
self.load_modules()
# Start a reverse shell handler
if args.handler == "1":
if args.handler and args.lport and args.handler == "1":
handler = Handler(args.lport)
handler.start()
else:
elif args.handler and args.lport:
self.load_handler(args.handler)
handler = self.handler.exploit(args.lport)
handler.start()