Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiki-San committed Feb 8, 2024
1 parent 4a5563f commit 47107a5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/analyzer/sourcecode/shady-links.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,42 @@
# ruleid: shady-links
req = urllib3.Request("https://grabify.link/E09EIF", headers={"User-Agent": os})

""" RULEID: IPv4
"""

# ruleid: shady-links
req = urllib3.Request("https://[email protected]", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://[email protected]:42", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://[email protected]", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://root:[email protected]", headers={"User-Agent": os})

""" RULEID: IPv6
"""

# ruleid: shady-links
req = urllib3.Request("https://[::1]", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://[::1]:42", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://[12aB::1]", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://[12ab:12AB:12ab:12BA:12ab:12Ab:12aB:12Ab]", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://root@[::1]", headers={"User-Agent": os})

# ruleid: shady-links
req = urllib3.Request("https://root:pw@[::1]", headers={"User-Agent": os})

# todoruleid: shady-links
request(
# todoruleid: shady-links
Expand Down

0 comments on commit 47107a5

Please sign in to comment.