Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marven11 committed Oct 27, 2023
1 parent e54b1c6 commit 100a1ee
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions tests/test_full_payload_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,57 @@ def setUp(self) -> None:
self.full_payload_gen = get_full_payload_gen(self.blacklist)


class FullPayloadGenTestCaseStringFormat1(FullPayloadGenTestCaseSimple):
def setUp(self) -> None:
super().setUp()
self.blacklist = [
"_",
"'",
'"',
".",
"system",
"os",
"eval",
"exec",
"popen",
"subprocess",
"posix",
"builtins",
"namespace",
"open",
"read",
"\\",
"=",
"%"
]
self.full_payload_gen = get_full_payload_gen(self.blacklist)

class FullPayloadGenTestCaseStringFormat2(FullPayloadGenTestCaseSimple):
def setUp(self) -> None:
super().setUp()
self.blacklist = [
"_",
"'",
'"',
".",
"system",
"os",
"eval",
"exec",
"popen",
"subprocess",
"posix",
"builtins",
"namespace",
"open",
"read",
"\\",
"=",
"%",
"|format"
]
self.full_payload_gen = get_full_payload_gen(self.blacklist)

class FullPayloadGenTestCaseSubs(FullPayloadGenTestCaseSimple):
def setUp(self) -> None:
super().setUp()
Expand Down

0 comments on commit 100a1ee

Please sign in to comment.