Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   3965

C# Selenium Chromedriver Remain Undetected, How?

by DarthGonk - 04 October, 2021 - 08:14 AM
This post is by a banned member (DarthGonk) - Unhide
DarthGonk  
Supreme
49
Posts
28
Threads
4 Years of service
#1
I am trying to find a way to keep the chromedriver undetected from a website in C#. I found many examples and even an undetected driver in python, but can't seem to find anything in C#. Currently the website keeps disabling accounts my program makes. I believe this is due to a script on the website called, 
Code:
capture-webdriver-f85da6b78dc4ce700ab0.js
. The name just gives it away. Recently I have been using a fingerprint blocker and change the user agent with this, 
Code:
options.AddArgument("--user-agent=Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25");
. I am assuming though, this does not change it every time. Is there any other way I can remain undetected without using a hex editor to change something in the chromedriver? Disable that script somehow?Below is the code in the js 
Code:
capture-webdriver-f85da6b78dc4ce700ab0.js
 (I don't know anything about js, I apologize)
Code:
 
(window.webpackJsonp = window.webpackJsonp || []).push([
    [9], {
        105: function(n, e, r) {
            "use strict";
            r.r(e), r.d(e, "default", (function() {
                return i
            }));
            var t = r(3);
            class i extends t.a {
                constructor(n) {
                    super("webdriver", n)
                }
                _bind() {
                    super._bind(), navigator && (this.findInputElement().value = navigator.webdriver)
                }
            }
        }
    }
]);
"Did you ever hear the success of Darth Gonk The Wise? I thought not. It’s not a story the Jedi would tell you. It’s a Sith legend. Darth Gonk was a Dark Lord of the Sith, so powerful and so wise he could use the Force to influence the midichlorians to create things… He had such a knowledge of the dark side that he could even save himself.  The dark side of the Force is a pathway to many abilities some consider to be unnatural." - Darth Sidious (The real quote from Revenge of the Sith).
This post is by a banned member (PayByte) - Unhide
PayByte  
Supreme
49
Posts
13
Threads
6 Years of service
#2
Can you show me the Python version? I know C# and Python I can help ^-^. Also, you can contact me here: MohanadHosny#9152

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)