-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8212cee
commit fe45630
Showing
17 changed files
with
355 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
include src/forbidden/*.py | ||
include src/forbidden/*.txt | ||
include src/stresser/*.py | ||
include src/stresser/*.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
requires = ["setuptools>=75.3.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "forbidden" | ||
version = "12.6" | ||
version = "13.0" | ||
authors = [{ name = "Ivan Sincek" }] | ||
description = "Bypass 4xx HTTP response status codes and more. Based on PycURL and Python Requests." | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent" | ||
] | ||
dependencies = ["alive-progress>=3.1.5", "colorama>=0.4.6", "pycurl>=7.45.2", "pyjwt>=2.7.0", "regex>=2023.8.8", "requests>=2.31.0", "tabulate>=0.9.0", "termcolor>=2.4.0"] | ||
dependencies = [ | ||
"alive-progress>=3.1.5", | ||
"colorama>=0.4.6", | ||
"pycurl>=7.45.2", | ||
"pyjwt>=2.7.0", | ||
"regex>=2023.8.8", | ||
"requests>=2.31.0", | ||
"tabulate>=0.9.0", | ||
"termcolor>=2.4.0" | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/ivan-sincek/forbidden" | ||
|
||
[project.scripts] | ||
forbidden = "forbidden.forbidden:main" | ||
stresser = "stresser.stresser:main" | ||
forbidden = "forbidden.main:main" | ||
stresser = "stresser.main:main" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["user_agents.txt"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
|
||
def unique(array: list): | ||
""" | ||
Remove duplicates from a list. | ||
""" | ||
seen = set() | ||
return [x for x in array if not (x in seen or seen.add(x))] | ||
|
||
def remove_empty_strings(array: list[str]) -> list[str]: | ||
""" | ||
Strip whitespace from each string in a list, and remove empty strings. | ||
""" | ||
tmp = [] | ||
for entry in array: | ||
entry = entry.strip() | ||
if entry: | ||
tmp.append(entry) | ||
return tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
|
||
APP_VERSION = "v13.0" | ||
|
||
USER_AGENT = "Forbidden/13.0" | ||
|
||
def banner(): | ||
""" | ||
Display the banner. | ||
""" | ||
print("#########################################################################") | ||
print("# #") | ||
print("# Forbidden v13.0 #") | ||
print("# by Ivan Sincek #") | ||
print("# #") | ||
print("# Bypass 4xx HTTP response status codes and more. #") | ||
print("# GitHub repository at github.com/ivan-sincek/forbidden. #") | ||
print("# #") | ||
print("#########################################################################") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
|
||
def print_error(message: str): | ||
""" | ||
Print an error message. | ||
""" | ||
print(f"ERROR: {message}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import enum | ||
|
||
class Type(enum.Enum): | ||
""" | ||
Enum containing supported tests. | ||
""" | ||
BASE = "base" | ||
METHODS = "methods" | ||
METHOD_OVERRIDES = "method-overrides" | ||
SCHEME_OVERRIDES = "scheme-overrides" | ||
PORT_OVERRIDES = "port-overrides" | ||
HEADERS = "headers" | ||
VALUES = "values" | ||
PATHS = "paths" | ||
PATHS_RAM = "paths-ram" | ||
ENCODINGS = "encodings" | ||
AUTHS = "auths" | ||
REDIRECTS = "redirects" | ||
PARSERS = "parsers" | ||
|
||
@classmethod | ||
def all(cls): | ||
""" | ||
Get all tests. | ||
""" | ||
return [ | ||
cls.BASE, | ||
cls.METHODS, | ||
cls.METHOD_OVERRIDES, | ||
cls.SCHEME_OVERRIDES, | ||
cls.PORT_OVERRIDES, | ||
cls.HEADERS, | ||
cls.VALUES, | ||
cls.PATHS, | ||
cls.PATHS_RAM, | ||
cls.ENCODINGS, | ||
cls.AUTHS, | ||
cls.REDIRECTS, | ||
cls.PARSERS | ||
] |
File renamed without changes.
Oops, something went wrong.