shell bypass 403

UnknownSec Shell

: /etc/cron.hourly/ [ drwxr-xr-x ]

name : 0anacron
#!/bin/sh
# Check whether 0anacron was run today already
if test -r /var/spool/anacron/cron.daily; then
    day=`cat /var/spool/anacron/cron.daily`
fi
if [ `date +%Y%m%d` = "$day" ]; then
    exit 0
fi

# Do not run jobs when on battery power
online=1
for psupply in AC ADP0 ; do
    sysfile="/sys/class/power_supply/$psupply/online"

    if [ -f $sysfile ] ; then
        if [ `cat $sysfile 2>/dev/null`x = 1x ]; then
            online=1
            break
        else
            online=0
        fi
    fi
done
if [ $online = 0 ]; then
    exit 0
fi
/usr/sbin/anacron -s

© 2025 UnknownSec
New In-App Live System | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar
New In-App Live System

New In-App Live System

in Communications
5.00
(1 Ratings)
Created by Robert Ransdell
4/10 Students
BLK10
Black Firday Offer

Buy now with a special offer

ticket-discount

Report course

Please describe about the report short and clearly.

Share

Share course with your friends

Buy with points