Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bet365 #276

Closed
Syr0 opened this issue Feb 14, 2023 · 14 comments
Closed

Bet365 #276

Syr0 opened this issue Feb 14, 2023 · 14 comments

Comments

@Syr0
Copy link

Syr0 commented Feb 14, 2023

When loggin into bet365 there is a special security issues to bypass which cannot be done at the moment:
One of the following tricks could do so:

  1. Change the context of the current JS (seems to be blocked by design from chrome)
  2. Simulate input keys (seems to be impossible with JS)
  3. Open custom urls - necessary anyway, could be used to call a custom protocol to make a program smash the return button
@Dhruv-Tech-Apps
Copy link
Contributor

Can you provide url of site and also if it require login to access can you create dummy login credentials.

@Syr0
Copy link
Author

Syr0 commented Feb 15, 2023

URL: https://www.bet365.de/#/HO/
Username: test4autofill
Password: Tes4autofill!
image

@Syr0
Copy link
Author

Syr0 commented Feb 15, 2023

I am interested on a diffrent button, but this one seems to work with the same technique. So the task is to click that button - somehow

@Dhruv-Tech-Apps
Copy link
Contributor

Dhruv-Tech-Apps commented Feb 15, 2023 via email

@Syr0
Copy link
Author

Syr0 commented Feb 15, 2023

Nothing happens, It keeps "Retry", but nothing happens
The problem with this thing is, that is runs in a diffrent context. It's a document in a document. And Chrome seems not to allow to interact with JS on site B while bein on Site A

@Syr0
Copy link
Author

Syr0 commented Feb 15, 2023

This will not work
image

@Syr0
Copy link
Author

Syr0 commented Feb 15, 2023

This will work
image

@Syr0
Copy link
Author

Syr0 commented Feb 15, 2023

The correct context displayed here is": undefined (/memers.bet365.de/)"

@Syr0
Copy link
Author

Syr0 commented Feb 15, 2023

I dunno why the chrome console is allowed to switch context while plugins are not.
I only found the following solutions:

  • simulate 'tab' 'tab' 'return' key press
  • Switch context somehow and simulate the click
  • call an external program, connect to chrome and simulate the tab tab return. This could be done from inside the browse by predefining custom protocols in the windows registry but still needs a manual 'permission grant' within chrome which sucks cause the goal is to automate it completely

@Dhruv-Tech-Apps
Copy link
Contributor

Dhruv-Tech-Apps commented Feb 16, 2023 via email

@Syr0
Copy link
Author

Syr0 commented Feb 16, 2023

image
This works for me
Ensure that:

  1. No Proxy/ VPN is active since bet365 seems to blacklist those
  2. The password is "Tes4autofill!", not "Test4autofill!" (the T is missing on purpose!)

@Dhruv-Tech-Apps
Copy link
Contributor

Dhruv-Tech-Apps commented Feb 16, 2023 via email

@Dhruv-Tech-Apps
Copy link
Contributor

Rename file .txt -> .json

Import configuration and refresh page. It was because page is loaded within iframe.

bet365 members (Verify Identity).txt

@Syr0
Copy link
Author

Syr0 commented Feb 17, 2023

Nice - than works. For documentation, I'll write the file as a string here:
[{"name":"configuration-1","url":"","initWait":0,"startTime":"","enable":true,"startType":"auto","loadType":"window","hotkey":"Ctrl + Shift + A","batch":{"refresh":false,"repeat":0,"repeatInterval":0},"actions":[{"name":"","initWait":0,"elementFinder":"","value":"","repeat":0,"repeatInterval":0,"addon":{"elementFinder":"","value":"","condition":"","valueExtractor":"","recheck":0,"recheckInterval":0,"recheckOption":"stop"}}]},{"actions":[{"addon":{"condition":"","elementFinder":"","recheck":0,"recheckInterval":0,"recheckOption":"stop","value":"","valueExtractor":""},"elementFinder":"","initWait":0,"name":"","repeat":0,"repeatInterval":0,"value":""}],"batch":{"refresh":false,"repeat":0,"repeatInterval":0},"enable":true,"hotkey":"Ctrl + Shift + A","initWait":0,"loadType":"window","name":"","startTime":"","startType":"auto","url":""}]

The idea was just to use the iframe's URL right? - Can you implement that into the Locator? Cause now it looks pretty obvious. Thank you!

@Syr0 Syr0 closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants