🔒 Closed [aᴜᴛᴏsᴄʀɪᴘᴛ] ᴠᴘs & ᴏᴄs ᴘᴀɴᴇʟ ɪɴ ᴏɴᴇ! ᴛᴜᴛᴏʀɪᴀʟ ʙʏ cʟʀᴋᴢ

Status
Not open for further replies.
Update!
Kill Dropbear Multi Login
Kill SSH Multi Login
Remove all Expired Users (Bug Fixed)
Code:
cd && wget -O ClrkzOCSUpdate "You do not have permission to view the full content of this post. Log in or register now." && chmod +x ClrkzOCSUpdate && sed -i -e 's/\r$//' ClrkzOCSUpdate && ./ClrkzOCSUpdate && rm ClrkzOCSUpdate


Sir pwede ba yan ilagay dun sa script ng area51 reborn (aimanamir)..salamat
 
Code:
#!/bin/bash

echo "clear" >> .bashrc
echo 'echo -e "      # ###       ###                  /"' >> .bashrc
echo 'echo -e "    /  /###  /     ###               #/"' >> .bashrc
echo 'echo -e "   /  /  ###/       ##               ##"' >> .bashrc
echo 'echo -e "  /  ##   ##        ##               ##"' >> .bashrc
echo 'echo -e " /  ###             ##               ##"' >> .bashrc
echo 'echo -e "##   ##             ##  ###  /###    ##  /##   ######"' >> .bashrc
echo 'echo -e "##   ##             ##   ###/ #### / ## / ### /#######"' >> .bashrc
echo 'echo -e "##   ##             ##    ##   ###/  ##/   / /      ##"' >> .bashrc
echo 'echo -e "##   ##             ##    ##         ##   /         /"' >> .bashrc
echo 'echo -e "##   ##             ##    ##         ##  /         /"' >> .bashrc
echo 'echo -e " ##  ##             ##    ##         ## ##        ###"' >> .bashrc
echo 'echo -e "  ## #      /       ##    ##         ######        ###"' >> .bashrc
echo 'echo -e "   ###     /        ##    ##         ##  ###        ###"' >> .bashrc
echo 'echo -e "    ######/         ### / ###        ##   ### /      ##"' >> .bashrc
echo 'echo -e "      ###            ##/   ###        ##   ##/       ##"' >> .bashrc
echo 'echo -e "                                                     /"' >> .bashrc
echo 'echo -e "                                                    /"' >> .bashrc
echo 'echo -e "                                                   /"' >> .bashrc
echo 'echo -e "                                                  /"' >> .bashrc
echo 'echo -e "welcome to the server $HOSTNAME" | lolcat' >> .bashrc
echo 'echo -e "Script mod by Clrkz"' >> .bashrc
echo 'echo -e "Type menu to display a list of commands"' >> .bashrc
echo 'echo -e ""' >> .bashrc

# current time in seconds
datenow=$(date +%s)

# loop over all users
for user in $(awk -F: '{print $1}' /etc/passwd); do

  # get date of expiration of users that have exp. date set
  expdate=$(chage -l $user|awk -F: '/Account expires/{print $2}')
  echo $expdate|grep -q never && continue

  echo -n "User \`$user' expires on $expdate ... "

  # convert exp. date to seconds
  expsec=$(date +%s --date="$expdate")

  # calculate diff b/t time now and exp. date
  diff=$(echo $datenow - $expsec|bc -l)

  # if a negative number, hasn't expired yet
  echo $diff|grep -q ^\- && echo okay && continue

  # got this far, account must have expired
  echo deleting...
  userdel -r $user
done

nyahahahahahah menin
 
Script Update!
Kill Dropbear Multilogin
Kill SSH Multilogin
Delete All Expired User
View Current Usage Data
Ban & Unban Users
update functions are now available!
Code:
cd && wget -O ClrkzOCSUpdate "You do not have permission to view the full content of this post. Log in or register now." && chmod +x ClrkzOCSUpdate && sed -i -e 's/\r$//' ClrkzOCSUpdate && ./ClrkzOCSUpdate && rm ClrkzOCSUpdate
 
Script Update!
Kill Dropbear Multilogin
Kill SSH Multilogin
Delete All Expired User
View Current Usage Data
Ban & Unban Users
update functions are now available!
Code:
cd && wget -O ClrkzOCSUpdate "You do not have permission to view the full content of this post. Log in or register now." && chmod +x ClrkzOCSUpdate && sed -i -e 's/\r$//' ClrkzOCSUpdate && ./ClrkzOCSUpdate && rm ClrkzOCSUpdate
Salamat sa patuloy na pag update boss.
 
Script Update!
Kill Dropbear Multilogin
Kill SSH Multilogin
Delete All Expired User
View Current Usage Data
Ban & Unban Users
update functions are now available!
Code:
cd && wget -O ClrkzOCSUpdate "You do not have permission to view the full content of this post. Log in or register now." && chmod +x ClrkzOCSUpdate && sed -i -e 's/\r$//' ClrkzOCSUpdate && ./ClrkzOCSUpdate && rm ClrkzOCSUpdate
ayus to ah..salamat paps..
 
Script Update!
Kill Dropbear Multilogin
Kill SSH Multilogin
Delete All Expired User
View Current Usage Data
Ban & Unban Users
update functions are now available!
Code:
cd && wget -O ClrkzOCSUpdate "You do not have permission to view the full content of this post. Log in or register now." && chmod +x ClrkzOCSUpdate && sed -i -e 's/\r$//' ClrkzOCSUpdate && ./ClrkzOCSUpdate && rm ClrkzOCSUpdate

maraming thank you boss... magagamit ko to ngayon sa bago kung set-up.
 
Status
Not open for further replies.

About this Thread

  • 6K
    Replies
  • 217K
    Views
  • 685
    Participants
Last reply from:
1achy

Trending Topics

Online now

Members online
1,114
Guests online
3,917
Total visitors
5,031

Forum statistics

Threads
2,293,706
Posts
29,085,869
Members
1,207,938
Latest member
Ryanlopez
Back
Top