eshaham / israeli-bank-scrapers

Provide scrapers for all major Israeli banks and credit card companies
MIT License
567 stars 152 forks source link

Bank HaPoalim is asking for 2FA in chromium #823

Open liranelisha opened 6 months ago

liranelisha commented 6 months ago

starting last week, Bank HaPoalim is asking for elevated privileges via 2FA through the phone for unknown sessions, causing each run from the scraper to prompt the 2FA

daniel-hauser commented 5 months ago

Where do you run the scraper from? It might be related to the location of the servers. I'm running in GitHub actions and never got a 2fa request

liranelisha commented 5 months ago

i run it locally from a machine in israel

JavierChames commented 3 months ago

Hi ,i have the same issue(running the code on raspberry pi)-any idea for a solution?

baruchiro commented 3 months ago

@galbarm

gbarmashiahflir commented 3 months ago

Happens to me to well. What's weird is that when testing with showBrowser: true, the login finishes successfully and no 2FA is requested.

liranelisha commented 3 months ago

@gbarmashiahflir yeah, that's my mitigation as well. when scrapping hapoalim i show browser. that makes sense as the headlesss browser and headed browser has different signature, making the headed browser show the 2fa once, and once solved not showing it again. however this isn't possible with headless browser. waiting to see if there could be a more reliable solution

ranrib commented 3 months ago

I'm experiencing the same issue. It looks like when I'm trying a new machine/IP (changing somehow my signature), it asks for 2FA again.

JavierChames commented 3 months ago

i found a "kind" of workaround for my case, I use raspberry pi, usually i installed a light version of Raspbian os(OS for raspberry pi) with no desktop(only cli)-this time i installed the desktop version enter to the browser-get the SMS to enter the code, enter to the site. and then tried again the script-this time it worked..not the best-but for my case its seems to work 🤣