Zekahs

QBOT P2P tutorial

Aug 4th, 2017
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1.  
  2.  
  3. *** QBOT P2P TUTORIAL ***
  4.  
  5. * MUST BE RUNNING CENTOS 6 X64 *
  6.  
  7.  
  8. yum update -y
  9. mkdir /var/www;mkdir /var/www/html
  10. cd /var/www/html
  11.  
  12. //upload client.c
  13. //upload penuis.c
  14. ifconfig
  15.  
  16. //copy the inet address<<your vps ip
  17. //open up client.c
  18. //replace the ip addresses
  19. //click save
  20. //compile that shit
  21. //aka
  22. //python penis.py client.c (SERVERS IP)
  23. //DONT BE LIKE CODE AND WAIT A DAMN MINUTE
  24. //after this compile finishes, my script should redirect you to the /root/
  25. //directory
  26.  
  27. mkdir p2p
  28. cd p2p
  29.  
  30. //upload ztest.c (the server.c)
  31. //and compile that shit
  32. gcc server.c -o server -pthread
  33. rm -rf *c
  34. echo admin admin>>login.txt
  35.  
  36. //time to screen it
  37. //Zekrom Screen Usage: screen ./server [client-port] [threads] [cnc-port]
  38. screen ./server 666 1000 999
  39.  
  40. //stop and disable iptables
  41. //flush httpd
  42. service iptables stop
  43. chkconfig iptables off
  44. service httpd restart
  45.  
  46. //change the ulimit
  47. //the ulimit raises the ammount of bots that can join
  48. //or the traffic the server can handle
  49. ulimit -Hn 999999; ulimit -Sn 99999
  50. echo -e 'ulimit -s 999999; ulimit -n 999999; ulimit -u 999999\n' > ~/.bashrc
  51. ulimit -s 999999; ulimit -n 999999; ulimit -u 999999
  52. sysctl -w fs.file-max=999999 >/dev/null
  53.  
  54. //change the nofile limit
  55. //the hard part
  56. //make sure the changes you make lines up
  57. //this keeps the client from crashing in the screen
  58.  
  59. nano /etc/security/limits.conf
  60.  
  61. #* soft nofile 999999 //add these
  62. #* hard nofile 999999 // to the limits.conf
  63.  
  64. //time to reboot the server
  65. reboot
  66.  
  67. //then restart the screen
  68. //pretty much self explaintory
  69. // just screen the shit again
  70. //but just incase ya stupid not to know that XD
  71. //ill put the commands here again :/
  72.  
  73. cd p2p
  74. screen ./server 666 1000 999
  75. ctrl a-d
  76. service httpd restart
Advertisement
Add Comment
Please, Sign In to add comment