Mar 30, 2020 10:41 AM
(This post was last modified: Apr 7, 2020 01:35 AM by SIM-4604643.)
deleteddeleteddeleteddeleteddeleteddeleted
|
Python
Duplicating website form login via Python HTTPS PUT requests? |
|
Mar 30, 2020 10:41 AM
(This post was last modified: Apr 7, 2020 01:35 AM by SIM-4604643.)
deleteddeleteddeleteddeleteddeleteddeleted
Mar 30, 2020 10:47 AM
(This post was last modified: Mar 30, 2020 10:47 AM by Charger.)
Use requests or curl to post the data. You’ll have to solve the captcha to get that variable as well as scrape the csrf field
(Mar 30, 2020 10:49 AM)SIM-4604643 Wrote: Hey thanks for the reply. Yes. csrf is going to be a form field or JavaScript variable that you’ll need to get the value of to submit your request.
Mar 30, 2020 11:37 AM
(This post was last modified: Mar 30, 2020 01:06 PM by Mohinder.)
(Mar 30, 2020 11:13 AM)SIM-4604643 Wrote: So what's the difference between curl and requests. Any recommendations? How do you know what the csrf is before you submit the form? If you use requests you could post data to a url easily. Let's say you have a form: 127.0.0.1/index.html PHP Code With Python you can visit the index, grab the page source and scrape the token. PHP Code |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [Python] by Bass_ReevesAug 20, 2023 01:44 AM | 9 | 630 |
Aug 20, 2023 01:44 AM Last Post: Lucky4L |
| [Python] by OGLORDAug 20, 2023 01:40 AM | 3 | 208 |
Aug 20, 2023 01:40 AM Last Post: Lucky4L |
| [Python] by evilgnomeJan 11, 2022 05:39 AM | 2 | 194 |
Jan 11, 2022 05:39 AM Last Post: Charger |