Skip to content

Commit fbacb63

Browse files
authored
Update sender.py
1 parent f5aeb35 commit fbacb63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main():
7272
choice = raw_input('Choose a payload to send: ')
7373
try:
7474
choice = int(choice)
75-
except ValueError:
75+
except (ValueError, NameError):
7676
choice = 0
7777
with open(os.path.join(CWD, 'payloads', payloads[choice-1]), 'rb') as f:
7878
print('>> Sending {}...'.format(payloads[choice-1]))

0 commit comments

Comments
 (0)