Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Python Login+Captcha

Hi! Im using python to try and login to a website that has an easy captcha, Im using robobrowser. I have no idea how I can do this, all that I found was of no use
(Dec 7, 2018 08:55 PM)migsinthehouse Wrote:  Hi! Im using python to try and login to a website that has an easy captcha, Im using robobrowser. I have no idea how I can do this, all that I found was of no use

what kind of captcha is it
http://sunjester.rf.gd - proxies, logins, scanner results
I don't know the name of it, here's an example imgur.com/9Iu8Si4
I don't think robobrowser have anything related to captcha solving. Your best bet would be to get the image and use an other lib to solve it such as tesseract or any OCR based lib. (you will need to mess around with it)

https://gist.github.com/chroman/5679049
Accepting freelancing jobs ! PM me for more info !
Be the [BRAND NAME REMOVED] king ..
iirc you can send captcha image to captcha solving services and get answer from there.
(Dec 7, 2018 08:55 PM)migsinthehouse Wrote:  Hi! Im using python to try and login to a website that has an easy captcha, Im using robobrowser. I have no idea how I can do this, all that I found was of no use

I'm not sure how to use robobrowser, however I use selenium for automated web actions.
Here's and example:
Code
from selenium import webdriver

driver = webdriver.Chrome("Path to headless chrome executable")
driver.get("site.com/login") # Go to site

driver.find_element_by_id("userfield").send_keys("user1") # enter username into username field on site.
driver.find_element_by_id("passfield").send_keys("password123") # enter password into password field on site

driver.find_element_by_id("subBtn").click() # Click the submit button

if driver.page_source.__contains__("Invalid login"): # Check site for text "Invalid login"
  print("Login invalid!")
else:
  print("Success!")
Why don't you just use browser cookies to login to your website? or would that not be applicable in your case?
this is easy captcha image , you can llook on 2captcha API , or else msg them they help
for more help msg me.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by SIM-4791248Jan 28, 2021 11:53 AM 3 137 Jan 28, 2021 11:53 AM
Last Post: ArbiterLenny
[.NET] by ClusterzIncMar 11, 2019 09:48 AM 10 1,250 Mar 11, 2019 09:48 AM
Last Post: ClusterzInc