How would I translate this html POST request into python

0

I am having difficulty translating this specific HTML POST request into Python - I am attempting to exploit a security vulnerability on a test server.

director=
<form action="http://127.0.0.1:8000/card/0" method="POST">
  <input type="hidden" name="amount" value="8000" />
  <input type="hidden" name="username" value="hacker" />
  <input type="submit" value="View my photos" />
</form>

html python
2021-11-24 05:58:06
1

1

Before you run the code below. Run pip install requests.

import requests

response = requests.get("http://api.open-notify.org/astros.json")
print(response)

>>>> Response<200>

See more details in the URL below.

https://www.nylas.com/blog/use-python-requests-module-rest-apis/

2021-11-24 06:22:35

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................