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 #666
  • Loading branch information
asolino committed Aug 20, 2019
1 parent c9f26f6 commit 80ca724
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 80ca724

Please sign in to comment.