mirror of
https://github.com/peass-ng/PEASS-ng.git
synced 2026-03-12 21:23:13 -07:00
builder: ignore missing temporary file on cleanup
This commit is contained in:
@@ -20,7 +20,11 @@ def main(all_modules, all_no_fat_modules, no_network_scanning, small, include_mo
|
||||
lbuilder = LinpeasBuilder(ploaded)
|
||||
lbuilder.build()
|
||||
lbuilder.write_linpeas(output)
|
||||
os.remove(TEMPORARY_LINPEAS_BASE_PATH) # Remove the built linpeas_base_temp.sh file
|
||||
# Best-effort cleanup of temporary file: ignore if it's not present
|
||||
try:
|
||||
os.remove(TEMPORARY_LINPEAS_BASE_PATH) # Remove the built linpeas_base_temp.sh file
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
st = os.stat(output)
|
||||
os.chmod(output, st.st_mode | stat.S_IEXEC)
|
||||
|
||||
Reference in New Issue
Block a user