Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit cd98987

Browse files
author
byt3bl33d3r
committed
Removed debug statement and fixed output in tokens.py module
1 parent 7bfe042 commit cd98987

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/credentials/tokens.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def on_admin_login(self, context, connection):
3535

3636
context.log.debug('Payload: {}'.format(payload))
3737
payload = create_ps_command(payload)
38-
print connection.execute(payload, get_output=True)
38+
connection.execute(payload)
3939
context.log.success('Executed payload')
4040

4141
def on_request(self, context, request):
@@ -63,6 +63,6 @@ def on_response(self, context, response):
6363
if len(data) > 0:
6464
context.log.success('Enumerated available tokens')
6565

66-
buf = StringIO(data).read()
66+
buf = StringIO(data.strip()).readlines()
6767
for line in buf:
68-
context.log.highlight(line)
68+
context.log.highlight(line.strip())

0 commit comments

Comments
 (0)