Advertisement
Guest User

Untitled

a guest
Aug 15th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # login for HaqSHELLS - MOTD+MENU
  3.  
  4. CPUTIME=$(ps -eo pcpu | awk 'NR>1' | awk '{tot=tot+$1} END {print tot}')
  5. CPUCORES=$(cat /proc/cpuinfo | grep -c processor)
  6. CPUTEMP=$(sensors | grep Core | awk -F: ' { print $2 } '| cut -c8-9 | tr "n" " " | awk '{tot=tot+$1} END {print tot}')
  7. 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}' )
  8. GPUCORES=8
  9.  
  10. echo -n "
  11. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
  12. -> Welcome to HaqSHELLS
  13. ~~~~~~~~~~~~~~
  14. +This is a private server.
  15. +All connection attempts are monitored,if need-be,also logged.
  16. +By connecting you agree to be bound by the terms in our TOS.
  17. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
  18. HaqSHELLS Online UNIX SHELL Services ~
  19. RUNNING:         Ubuntu Linux
  20. YOURHOME Dir:   `pwd`
  21. Available Ports (For your Eggys/Wraith/psy etc) : 10000 to 50000
  22.  
  23.  
  24. Location: North America,USA
  25. ~~~~~~~~~~~~~~
  26. Box Specs:
  27. * Ubuntu 10.10 Linux O/S
  28. * 2.8Ghz Intel Core-2-Duo CPU
  29. * 1.5Gig DDR2 Ram
  30. * 500GB HDD / RAID1
  31. * 150Mbps Uplink
  32. * 300+ IPv6 IPs wich reverse onto Hostnames!
  33. * Anti DDoS + Online Firewall
  34. * XEN ,CPanel .. and much More!
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. echo "
  37. System Summary (collected `date`)
  38.  
  39. - CPU Usage (average)       = `echo $CPUTIME / $CPUCORES | bc`%
  40. - CPU Temperature (average) = `echo $CPUTEMP / $CPUCORES | bc`c
  41. - GPU Temperature (average) = `echo $GPUTEMP / $GPUCORES | bc`c
  42. - Memory free (real)        = `free -m | head -n 2 | tail -n 1 | awk {'print $4'}` Mb
  43. - Memory free (cache)       = `free -m | head -n 3 | tail -n 1 | awk {'print $3'}` Mb
  44. - Swap in use               = `free -m | tail -n 1 | awk {'print $3'}` Mb
  45. - System Uptime             =`uptime`
  46. - Disk Space Used           = `df / | awk '{ a = $4 } END { print a }'`
  47.  
  48. " > /etc/motd
  49.  
  50. Main Menu:
  51. ~~~~~~~~~~~~~~
  52. get-psy            ~~ Tells you how to config your psyBNC and starting it up
  53. get-egg            ~~ Installs Modified 1.6.19(SSL+Ipv6+Threadfix+Ctctpfix+more) EGGDROP into your /home/shell
  54. znc --makeconf     ~~ Installs ZNC.v0.098 (+Extras.&.Modules) ~ (BNC Like Application) in your /home/shell
  55. vhosts             ~~ List of VHosts Available / IPv6 (IP6 -> VHost) [ Total: 300+ ]
  56. motd               ~~ Shows the MOTd
  57. uptime             ~~ Shows the BOXs Uptime
  58. passwd             ~~ Change your Password using this command (passwd <new-pass> ,follow the onscreen instructions)
  59.  
  60. -> Should you need any heklp with setup of anything, please just ask an Admin!
  61. -> Enjoy Your Stay,and Behave! (Staff)
  62. ";
  63.  
  64. echo -n "$TIME | $DATE";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement