Skip to content

Commit

Permalink
remove pwned file in case it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Hynek Petrak committed Nov 4, 2021
1 parent bcf8296 commit a1ddd6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exploit_defaults_mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ def run_until_success(argv, env):
#null_fd = os.open('/dev/null', os.O_RDWR)
#os.dup2(null_fd, 2)

# remove the pwned file if exists
if os.path.exists(PWNED_PATH):
os.remove(PWNED_PATH)

for i in range(65536):
sys.stdout.write('%d\r' % i)
if i % 8 == 0:
Expand Down

0 comments on commit a1ddd6b

Please sign in to comment.