Dhruv-Techapps / acf-docs

Auto Click Auto Fill on any web page
https://getautoclicker.com/
Apache License 2.0
160 stars 86 forks source link

Bet365 #276

Closed Syr0 closed 1 year ago

Syr0 commented 1 year ago

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 commented 1 year ago

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

Syr0 commented 1 year ago

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

Syr0 commented 1 year ago

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 commented 1 year ago

Can you manually create configuration and try

URL - copy and paste of website. Action

Refresh page and check ----------------------------------------------------------------------------------------------- Docs: Getting Started https://getautoclicker.com/docs/3.x/getting-started/introduction/ | Batch https://getautoclicker.com/docs/3.x/batch/overview/| Action https://getautoclicker.com/docs/3.x/action/overview/| Addon https://getautoclicker.com/docs/3.x/addon/overview/| Settings https://getautoclicker.com/docs/3.x/settings/overview/| Element Finder https://getautoclicker.com/docs/3.x/action/element-finder/

Chat on Discord https://discord.gg/vmnNfWKqnR

Thanks and Regards, Dhruv Techapps

On Wed, Feb 15, 2023 at 2:27 PM Syr0 @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Dhruv-Techapps/auto-click-auto-fill/issues/276#issuecomment-1430967862, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDUIA4U2RBMZ74D7OFS4VDWXSLA5ANCNFSM6AAAAAAU37POM4 . You are receiving this because you commented.Message ID: @.***>

Syr0 commented 1 year ago

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 commented 1 year ago

This will not work image

Syr0 commented 1 year ago

This will work image

Syr0 commented 1 year ago

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

Syr0 commented 1 year ago

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

Dhruv-Tech-Apps commented 1 year ago

I tried with username password provided its not able to login ----------------------------------------------------------------------------------------------- Docs: Getting Started https://getautoclicker.com/docs/3.x/getting-started/introduction/ | Batch https://getautoclicker.com/docs/3.x/batch/overview/| Action https://getautoclicker.com/docs/3.x/action/overview/| Addon https://getautoclicker.com/docs/3.x/addon/overview/| Settings https://getautoclicker.com/docs/3.x/settings/overview/| Element Finder https://getautoclicker.com/docs/3.x/action/element-finder/

Chat on Discord https://discord.gg/vmnNfWKqnR

Thanks and Regards, Dhruv Techapps

On Wed, Feb 15, 2023 at 3:07 PM Syr0 @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Dhruv-Techapps/auto-click-auto-fill/issues/276#issuecomment-1431019755, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDUIA5OGZJOZKBVWQ3DZO3WXSPVLANCNFSM6AAAAAAU37POM4 . You are receiving this because you commented.Message ID: @.***>

Syr0 commented 1 year ago

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 commented 1 year ago

Let me check once I’m on desk Sent from my iPhoneOn 16-Feb-2023, at 3:52 PM, Syr0 @.***> wrote:

This works for me Ensure that:

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

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Dhruv-Tech-Apps commented 1 year ago

Rename file .txt -> .json

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

bet365 members (Verify Identity).txt

Syr0 commented 1 year ago

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!