mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
Update zipslip_good.py
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import zipfile
|
||||
|
||||
zf = zipfile.ZipFile(filename)
|
||||
with zipfile.open() as zipf:
|
||||
for entry in zipf:
|
||||
zipf.extract(entry, "/tmp/unpack/")
|
||||
def unzip(filename, dir):
|
||||
zf = zipfile.ZipFile(filename)
|
||||
zf.extractall(dir)
|
||||
|
||||
|
||||
def unzip1(filename, dir):
|
||||
zf = zipfile.ZipFile(filename)
|
||||
zf.extract(dir)
|
||||
|
||||
Reference in New Issue
Block a user