We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 570fae1 commit 595b0c0Copy full SHA for 595b0c0
PyDuck.py
@@ -299,6 +299,15 @@ def cmdUseGenerate(modulename):
299
#read the duckyscript and replace the uac key if needed
300
global moduleAttributes
301
ducky = moduleAttributes['sdcard_mount']
302
+ suffix = "/"
303
+ if os.name == 'nt':
304
+ suffix = "\\"
305
+ if not ducky.endswith(suffix, len(ducky)-1, len(ducky)):
306
307
+ ducky = ducky + "\\"
308
+ else:
309
+ ducky = ducky + "/"
310
+
311
lang = moduleAttributes['language']
312
moduleAttributes.pop('sdcard_mount', None)
313
moduleAttributes.pop('language', None)
0 commit comments