Skip to content

Commit

Permalink
Update ssrf_ywing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
santosomar authored Jul 3, 2023
1 parent 5bb4649 commit a977060
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions web_application_testing/ssrf_ywing.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,15 @@

parser = argparse.ArgumentParser()

# The user can optionally provide a session cookie. If not provided, a default value is used.
parser.add_argument("-s", "--session", required=False ,default="9765ac114207245baf67dfd2a5e29f3a",help="Session Cookie Value")

# The URL of the host to be checked for SSRF. It needs to have http or https.
parser.add_argument("-u", "--url", required=False, default="http://8t2s8yx5gh5nw0z9bd3atkoprgx6lv.burpcollaborator.net",help="URL of host to check will need http or https")

# The Grafana host URL. This argument is required.
parser.add_argument("-H", "--host", default="http://kubernetes.docker.internal:5000",required=True, help="Host for Grafana")

# Username for the Grafana instance. It's not required by default.
parser.add_argument("-f", "--file", default="urls.txt",required=False, help="File of URLS to check SSRF Against")
parser.add_argument("-U", "--username", default="",required=False, help="Username for Grafana")

# Password for the Grafana instance. It's not required by default.
parser.add_argument("-P", "--password", default="",required=False, help="Password for Grafana")

# If the user wants to use a proxy for debugging, they can provide it here.
parser.add_argument("-p", "--proxy", default="",required=False, help="Proxy for debugging")

# Parsing the arguments
args = parser.parse_args()

ssrf_url = args.url
sessionid = args.session
ghost = args.host
Expand All @@ -53,7 +41,6 @@
password = args.password



if args.proxy:
http_proxy = args.proxy
os.environ['HTTP_PROXY'] = http_proxy
Expand Down

0 comments on commit a977060

Please sign in to comment.