## https://sploitus.com/exploit?id=6277FD63-E288-5742-96CF-AF4885F365E5
# [AntiCropalypse](https://anticropalypse.qixils.dev)
Discord bot which searches for and deletes images vulnerable to the Acropalypse exploit (CVE-2023-21036).
You can learn more about the project and add the public bot to your server
[**here**](https://anticropalypse.qixils.dev).
## Self-hosting
This bot is written in Kotlin and requires Java 17 to compile and run.
### Releases
Running the bot is as simple as downloading the
[latest release](https://github.com/qixils/anticropalypse/releases/latest),
setting the required environment variables (see below),
and running the `bin/bot` script.
### Building from source
To create a distributable build like the published releases, run `./gradlew build`
and share/extract the resulting archive from `bot/build/distributions`.
Otherwise, you can run the bot directly by setting the required environment variables (see below)
and running `./gradlew :bot:run`.
### Environment variables
| Name | Description | Required |
|-----------------|-------------------------------------|:------------------------:|
| `BOT_TOKEN` | Token for the Discord bot to run as | โ๏ธ |
| `S3_BUCKET` | S3 bucket name to archive images to | For S3 support |
| `S3_REGION` | Region for the S3 archival bucket | For S3 support |
| `S3_ACCESS_KEY` | Your S3 access key | For S3 support |
| `S3_SECRET_KEY` | Your S3 private key | For S3 support |
| `S3_ENDPOINT` | Endpoint for S3 archival bucket | No, defaults to Amazon's |