Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

LINUX: bash terminal lockscreen

Not that any of the "L33t H4x0rs" here use linux or anything... But heres somthing I made in class during some free time out of boredom, maybey someone will find it usefull? lol

usage: quit.sh "password" "Display Message"

quit.sh
PHP Code

<?php 
#!/bin/bash
trap "" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
clear
bad
=false
times
=0
wait_time
=2
while true
do
    echo 
""
    
echo ""
    
echo ""
    
echo ""
    
echo ".--[" $2 $3 $4 $5 $6 $7 $8 $9 "| Failed attempts: $times ]-->"
    
if [ $bad == true ]; then
  
echo "\`--Password: ###Incorrect, please wait $wait_time seconds###"
  
sleep $wait_time
  clear
  
echo ""
  
echo ""
  
echo ""
  
echo ""
  
echo ".--[" $2 $3 $4 $5 $6 $7 $8 $9 "| Failed attempts: $times ]-->"
    
fi
    read 
-s -p "\`--Password: " pass
    
if [ "$pass" == "$1" ]; then
  
break
    
fi
    bad
=true
    let times
+=1
    wait_time
=$(echo "2*$times+1" | bc)
    
clear
done
clear
echo 
(Sep 1, 2013 06:06 PM)Ego Inc Wrote:  Not that any of the "L33t H4x0rs" here use linux or anything... But heres somthing I made in class during some free time out of boredom, maybey someone will find it usefull? lol

PHP Code

<?php 
#!/bin/bash
trap "" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
clear
bad
=false
times
=0
wait_time
=2
while true
do
    echo 
""
    
echo ""
    
echo ""
    
echo ""
    
echo ".--[" $2 $3 $4 $5 $6 $7 $8 $9 "| Failed attempts: $times ]-->"
    
if [ $bad == true ]; then
  
echo "\`--Password: ###Incorrect, please wait $wait_time seconds###"
  
sleep $wait_time
  clear
  
echo ""
  
echo ""
  
echo ""
  
echo ""
  
echo ".--[" $2 $3 $4 $5 $6 $7 $8 $9 "| Failed attempts: $times ]-->"
    
fi
    read 
-s -p "\`--Password: " pass
    
if [ "$pass" == "$1" ]; then
  
break
    
fi
    bad
=true
    let times
+=1
    wait_time
=$(echo "2*$times+1" | bc)
    
clear
done
clear
echo 

Thanks for posting this. After installing Ubuntu 13.04 for development purposes(Parallella) I am trying to convert from batch to bash and this will come in handy for sure! Also I just wanted to say that the ASM notepad program you made is pretty cool for a 16 bit app, I hope you put more 8086 ASM scripts under your pastebin account.
(Sep 1, 2013 10:11 PM)CleverCrypter Wrote:  Thanks for posting this. After installing Ubuntu 13.04 for development purposes(Parallella) I am trying to convert from batch to bash and this will come in handy for sure! Also I just wanted to say that the ASM notepad program you made is pretty cool for a 16 bit app, I hope you put more 8086 ASM scripts under your pastebin account.

Someone actually took the time to look at my pastebin? I feel special 😁

And for sure, I have tons more, just haven't taken the time to post them, but for you, tomarrow sometime I will post some more up there 😉


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by DumbChickenFeb 11, 2022 10:09 PM 3 93 Feb 11, 2022 10:09 PM
Last Post: MeW11
[Shell] by .eXeDec 2, 2019 09:58 PM 1 362 Dec 2, 2019 09:58 PM
Last Post: Thomas Saison
[C#] by HardStoNJul 23, 2019 09:22 PM 2 152 Jul 23, 2019 09:22 PM
Last Post: DNA