CTFd / ctfcli

ctfcli is a tool to manage Capture The Flag events and challenges
https://ctfd.io/
Apache License 2.0
165 stars 67 forks source link

better file comparing #142

Closed MilyMilo closed 7 months ago

MilyMilo commented 7 months ago

Use changes in CTFd 3.7+ (sha1sum for files) to determine whether files should be re-uploaded.

https://github.com/CTFd/CTFd/pull/2451

By comparing the hash we can avoid always deleting and re-uploading files when syncing or verifying challenges.

Also did some housekeeping:

These changes should be backward compatible, sha1sum has been treated completely optionally, and we'll still use the old behavior if it's not present.