Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # login for HaqSHELLS - MOTD+MENU
- CPUTIME=$(ps -eo pcpu | awk 'NR>1' | awk '{tot=tot+$1} END {print tot}')
- CPUCORES=$(cat /proc/cpuinfo | grep -c processor)
- CPUTEMP=$(sensors | grep Core | awk -F: ' { print $2 } '| cut -c8-9 | tr "n" " " | awk '{tot=tot+$1} END {print tot}')
- GPUTEMP=$(tail -n 1 /var/log/gputemp.log | cut -d " " -f 2-16 | awk '{tot=tot+1+2+$3+$4+$5+$5+$6+$7+$8} END {print tot}' )
- GPUCORES=8
- echo -n "
- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
- -> Welcome to HaqSHELLS
- ~~~~~~~~~~~~~~
- +This is a private server.
- +All connection attempts are monitored,if need-be,also logged.
- +By connecting you agree to be bound by the terms in our TOS.
- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
- HaqSHELLS Online UNIX SHELL Services ~
- RUNNING: Ubuntu Linux
- YOURHOME Dir: `pwd`
- Available Ports (For your Eggys/Wraith/psy etc) : 10000 to 50000
- Location: North America,USA
- ~~~~~~~~~~~~~~
- Box Specs:
- * Ubuntu 10.10 Linux O/S
- * 2.8Ghz Intel Core-2-Duo CPU
- * 1.5Gig DDR2 Ram
- * 500GB HDD / RAID1
- * 150Mbps Uplink
- * 300+ IPv6 IPs wich reverse onto Hostnames!
- * Anti DDoS + Online Firewall
- * XEN ,CPanel .. and much More!
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- echo "
- System Summary (collected `date`)
- - CPU Usage (average) = `echo $CPUTIME / $CPUCORES | bc`%
- - CPU Temperature (average) = `echo $CPUTEMP / $CPUCORES | bc`c
- - GPU Temperature (average) = `echo $GPUTEMP / $GPUCORES | bc`c
- - Memory free (real) = `free -m | head -n 2 | tail -n 1 | awk {'print $4'}` Mb
- - Memory free (cache) = `free -m | head -n 3 | tail -n 1 | awk {'print $3'}` Mb
- - Swap in use = `free -m | tail -n 1 | awk {'print $3'}` Mb
- - System Uptime =`uptime`
- - Disk Space Used = `df / | awk '{ a = $4 } END { print a }'`
- " > /etc/motd
- Main Menu:
- ~~~~~~~~~~~~~~
- get-psy ~~ Tells you how to config your psyBNC and starting it up
- get-egg ~~ Installs Modified 1.6.19(SSL+Ipv6+Threadfix+Ctctpfix+more) EGGDROP into your /home/shell
- znc --makeconf ~~ Installs ZNC.v0.098 (+Extras.&.Modules) ~ (BNC Like Application) in your /home/shell
- vhosts ~~ List of VHosts Available / IPv6 (IP6 -> VHost) [ Total: 300+ ]
- motd ~~ Shows the MOTd
- uptime ~~ Shows the BOXs Uptime
- passwd ~~ Change your Password using this command (passwd <new-pass> ,follow the onscreen instructions)
- -> Should you need any heklp with setup of anything, please just ask an Admin!
- -> Enjoy Your Stay,and Behave! (Staff)
- ";
- echo -n "$TIME | $DATE";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement