![]() |
|
[Python] Duplicating website form login via Python HTTPS PUT requests? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Duplicating website form login via Python HTTPS PUT requests? (/showthread.php?tid=6061653) |
Duplicating website form login via Python HTTPS PUT requests? - SIM-4604643 - Mar 30, 2020 deleteddeleteddeleteddeleteddeleteddeleted RE: Duplicating website form login via Python HTTPS PUT requests? - Charger - Mar 30, 2020 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 RE: Duplicating website form login via Python HTTPS PUT requests? - Charger - Mar 30, 2020 (Mar 30, 2020 10:49 AM)SirRad0x 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. RE: Duplicating website form login via Python HTTPS PUT requests? - Mohinder - Mar 30, 2020 I think you should use two libraries: requests and bs4. Use requests to make a request to the page, scrape with bs4 and send the captcha to your handler. I've been using anticaptcha for a while, and it suits my needs. If you want help hit me up with your telegram name in a PM. RE: Duplicating website form login via Python HTTPS PUT requests? - Mohinder - Mar 30, 2020 (Mar 30, 2020 11:13 AM)SirRad0x 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 |