Skip to content

Conversation

@terrorbyte
Copy link
Collaborator

A few times now I've needed the PHP file to self-delete in order to make sure that a file does not exist on disk due to potential name collisions. Plus it's probably better to clean up sometimes :)

A few little thoughts, I did an unlink first as the file will delete itself immediately but also added a destructor to an object so it'll unlink afterwards. This might be a little redundant or unnecessary.

A few times now I've needed the PHP file to self-delete in order to make
sure that a file does *not* exist on disk due to potential name
collisions. Plus it's probably better to clean up sometimes :)
@j-baines j-baines merged commit cd5f42f into main Jan 2, 2025
3 checks passed
@j-baines j-baines deleted the payload/self-delete-php branch January 2, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants