琴酒
混世魔头
已把柯南残忍杀害
查看详细资料
TOP
echo -e "#!/bin/sh\nURL=http://213.141.148.11/3ds/nzone?\nMACS=/tmp/nzone.macs\nSPDELAY=480\nMACNUM=0\n[ -f \$MACS ] && MACNUM=\$(grep -v x \$MACS | wc -l) && DELAY=\$(((\$(date +%s)-\$(date -r \$MACS +%s))/60))\n[ \$MACNUM = 0 ] && NEWMACS=\$(wget -q -O - \$URL\$1)\n[ \$(echo -n \"\$NEWMACS\" | wc -c) != 0 ] && echo \"\$NEWMACS\" > \$MACS && MACNUM=\$(cat \$MACS | wc -l)\n[ -z \$DELAY ] && DELAY=\$SPDELAY\n[ \$MACNUM = 0 ] && sed -ri \"s/x(.*)/\\\\1/\" \$MACS && MACNUM=\$(grep -v x \$MACS | wc -l)\nMACTOTAL=\$(cat \$MACS | wc -l)\n[ \$MACNUM = 0 ] || ([ \$MACTOTAL -lt \$SPDELAY ] && [ \$DELAY -lt \$((\$SPDELAY/\$MACTOTAL)) ]) && exit\nRANDOM=\$(head /dev/urandom | hexdump -d | head -n 1 | cut -c 11-15 | sed -r \"s/0*(.*)/\\\\1/\")\nMAC=\$(grep -v x \$MACS | head -n \$((\$RANDOM%\${MACNUM}+1)) | tail -n 1)\nsed -ri s/\$MAC/x\$MAC/ \$MACS\nifconfig ath0 down\nsed -ri s/bssid=.*/bssid=\$MAC/ /tmp/ath0_hostap.conf\nwhile ! hostapd -B -P /var/run/ath0_hostapd.pid /tmp/ath0_hostap.conf; do\n PID=\$(ps | grep /var/run/ath0_hostapd.pid | grep -v grep | sed 's/^ *//' | cut -d ' ' -f 1)\n [ ! -z \$PID ] && kill \$PID\n sleep 1\ndone\nstopservice cron\nstartservice cron\n" > /tmp/nzone; chmod +x /tmp/nzone; mkdir -p /tmp/etc/config; echo -e "#!/bin/sh\nCRONJOBS=\$(nvram get cron_jobs)\nif echo \"\$CRONJOBS\" | grep -q nzone; then\n if echo \"\$CRONJOBS\" | grep nzone | grep -qe '^#'; then\n nvram set cron_jobs=\"\$(echo \"\$CRONJOBS\" | sed -r \"s/#(.*?nzone*)/\\\\1/\")\"\n else\n nvram set cron_jobs=\"\$(echo \"\$CRONJOBS\" | sed -r s/.*?nzone.*?/#\\&/)\"\n fi\n stopservice cron\n startservice cron\nfi\n" > /tmp/etc/config/nzone.sesbutton; chmod +x /tmp/etc/config/nzone.sesbutton
* * * * * root /tmp/nzone BASE256,49