What's new

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
 
Thread Updated.
Nasa Thread na yung latest update ng Script.
Thanks Sir Draft
Again.
Kill Multilogins
Delete All Expired Users
Menu Update.
bossing hindi lumalabas yung "menu" sa debian 7.11x32 ?

Screenshot_2018-05-10-02-37-01.png
 

Attachments

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.

Users search this thread by keywords

  1. 1366x768 wallpaper
Back
Top