Skip to content

Commit b842979

Browse files
committed
Pymeterpreter use print_exc and not print_exception
1 parent 77eac38 commit b842979

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

data/meterpreter/meterpreter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,7 @@ def create_response(self, request):
526526
except Exception:
527527
if DEBUGGING:
528528
print('[-] method ' + handler_name + ' resulted in an error')
529-
exc_type, exc_value, exc_traceback = sys.exc_info()
530-
traceback.print_exception(exc_type, exc_value, exc_traceback, file=sys.stderr)
529+
traceback.print_exc(file=sys.stderr)
531530
result = ERROR_FAILURE
532531
else:
533532
if DEBUGGING:

0 commit comments

Comments
 (0)