Skip to content

Commit

Permalink
Do not enconde the string to bytes when changing drive letter.
Browse files Browse the repository at this point in the history
- Should address fortra#666
  • Loading branch information
asolino authored and c0d3z3r0 committed Sep 4, 2019
1 parent b283b26 commit 1175f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/wmiexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def default(self, line):
# Drive valid, now we should get the current path
self.__pwd = line
self.execute_remote('cd ')
self.__pwd = self.__outputBuffer.strip('\r\n').encode(CODEC)
self.prompt = (self.__pwd + b'>')
self.__pwd = self.__outputBuffer.strip('\r\n')
self.prompt = (self.__pwd + '>')
self.__outputBuffer = ''
else:
if line != '':
Expand Down

0 comments on commit 1175f66

Please sign in to comment.