Google Auto Login in C# Community Version menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    dv999's Avatar Sergeant
    Reputation
    22
    Join Date
    Jul 2016
    Posts
    41
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google Auto Login in C# Community Version

    In GoogleLogin.cs enter

    Code:
            public static void AutomaticEnterCode(string token)
            {
                IWebDriver driver = new ChromeDriver(@"YOURLINK\Desktop\SOMEFILES\Selenium"); // POINT ME TO SELENIUM FOLDER PLEASE
                driver.Navigate().GoToUrl("http://www.google.com/device");
                IWebElement searchEmail = driver.FindElement(By.Id("Email"));
                searchEmail.SendKeys("YOURGMAIL");
                IWebElement searchNextButton = driver.FindElement(By.Id("next"));
                searchNextButton.Click();
                driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(6));
                IWebElement searchPassword = driver.FindElement(By.Id("Passwd"));
                searchPassword.SendKeys("YOURPASSWORD");
                searchPassword.Submit();
                IWebElement searchInputCode = driver.FindElement(By.Id("single_input_user_code"));
                searchInputCode.SendKeys(token);
                searchInputCode.Submit();
                driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(50));
                Thread.Sleep(10000);
                IWebElement searchApproveButton = driver.FindElement(By.Id("submit_approve_access"));
                searchApproveButton.Click();
                driver.Close();
            }
    Then replace

    Code:
     internal static async Task<TokenResponseModel> GetAccessToken()
            {
                var deviceCodeResponse = await GetDeviceCode();
                Console.WriteLine("Please visit " + deviceCodeResponse.verification_url + " and enter " +
                                  deviceCodeResponse.user_code);
    
                //Poll until user submitted code..
                TokenResponseModel tokenResponse;
                do
                {
                    await Task.Delay(2000);
                    tokenResponse = await PollSubmittedToken(deviceCodeResponse.device_code);
                } while (tokenResponse.access_token == null || tokenResponse.refresh_token == null);
                Console.WriteLine("Logged in Google Account..");
                return tokenResponse;
            }
    With

    Code:
     internal static async Task<TokenResponseModel> GetAccessToken()
            {
                var deviceCodeResponse = await GetDeviceCode();
                Console.WriteLine("Please visit " + deviceCodeResponse.verification_url + " and enter " +
                                  deviceCodeResponse.user_code);
    
                var GoogleToken = deviceCodeResponse.user_code.ToString();
                AutomaticEnterCode(GoogleToken);
    
                //Poll until user submitted code..
                TokenResponseModel tokenResponse;
                do
                {
                    await Task.Delay(2000);
                    tokenResponse = await PollSubmittedToken(deviceCodeResponse.device_code);
                } while (tokenResponse.access_token == null || tokenResponse.refresh_token == null);
                Console.WriteLine("Logged in Google Account..");
                return tokenResponse;
            }
    You need to get nuget


    Done, enjoy leaving your bot unattended.
    Credits to whoever came up with the idea, i only adapted it.
    (Yes it can be done much nicer but **** it, it works )
    https://www.mediafire.com/?5lsd21uj2uba1t7 (Selenium folder for the lazy)
    Click, Project > Add Reference > Browse to folder to add the dll's then add in the top of GoogleLogin.cs
    using OpenQA.Selenium;
    using OpenQA.Selenium.Chrome;
    Last edited by dv999; 07-21-2016 at 06:23 PM.

    Google Auto Login in C# Community Version
  2. Thanks user751140, jonoefthy (2 members gave Thanks to dv999 for this useful post)
  3. #2
    user751140's Avatar Member
    Reputation
    1
    Join Date
    May 2016
    Posts
    14
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everything makes sense except I didn't get this:

    Originally Posted by dv999 View Post
    You need to get nuget

  4. #3
    dv999's Avatar Sergeant
    Reputation
    22
    Join Date
    Jul 2016
    Posts
    41
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to reference the dlls inside this folder and point to the folder
    https://www.mediafire.com/?5lsd21uj2uba1t7

  5. #4
    expander8's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    16
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but google permanent auth is already working

  6. #5
    dv999's Avatar Sergeant
    Reputation
    22
    Join Date
    Jul 2016
    Posts
    41
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by expander8 View Post
    but google permanent auth is already working
    Not working for me, anyways can be usefull to some people botting multiple accounts

  7. #6
    expander8's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    16
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    after 30 minutes the bot restarts without needing to put the code on browser

  8. #7
    dv999's Avatar Sergeant
    Reputation
    22
    Join Date
    Jul 2016
    Posts
    41
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not for me no. If it does for you, i'm happy.

  9. #8
    expander8's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    16
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    did you put the token in the user file?

  10. #9
    TROLOLO_XYZ's Avatar Member
    Reputation
    4
    Join Date
    Jul 2016
    Posts
    22
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Google Auto Login in C# Community Version-1cdd7476d71101c536616fd-jpg

    Google Auto Login in C# Community Version-e34803272049d4b54b9aaea-jpg

    Help please

  11. #10
    dv999's Avatar Sergeant
    Reputation
    22
    Join Date
    Jul 2016
    Posts
    41
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by expander8 View Post
    did you put the token in the user file?
    Hehe, yes don't worry. I'm not stupid, i prefer this method because it's easier to manage multiple accounts when i use my own GUI version.

    @Trololo_xyz do you have chrome installed?

  12. #11
    TROLOLO_XYZ's Avatar Member
    Reputation
    4
    Join Date
    Jul 2016
    Posts
    22
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dv999 View Post
    Hehe, yes don't worry. I'm not stupid, i prefer this method because it's easier to manage multiple accounts when i use my own GUI version.

    @Trololo_xyz do you have chrome installed?
    yeah this was my fail :P

  13. #12
    S3lent's Avatar Member
    Reputation
    3
    Join Date
    Jun 2016
    Posts
    334
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You steal the idea and code from some other!
    Dont sell it as yours please

  14. #13
    TROLOLO_XYZ's Avatar Member
    Reputation
    4
    Join Date
    Jul 2016
    Posts
    22
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Google Auto Login in C# Community Version-e07116c43f8fbcfc9c286e4-jpg

    but it didnt work when you have more accs in one email -.-

  15. #14
    dv999's Avatar Sergeant
    Reputation
    22
    Join Date
    Jul 2016
    Posts
    41
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by S3lent View Post
    You steal the idea and code from some other!
    Dont sell it as yours please
    Who is selling shit? I adapted the code from another version.
    Remove your retard hat please this is free.

    @Trololol_xyz

    Sorry, i didn't even know that was a thing but you can adapt it to work with that too.
    Last edited by dv999; 07-21-2016 at 07:15 PM.

  16. #15
    bigwigs420's Avatar Member
    Reputation
    2
    Join Date
    Jul 2016
    Posts
    16
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where is googlelogin.cs ?

Page 1 of 2 12 LastLast

Similar Threads

  1. [PC] WoW Auto-Login Manager (With MEFix support!)
    By Gothian in forum World of Warcraft Bots and Programs
    Replies: 131
    Last Post: 10-29-2011, 10:59 AM
  2. World of warcraft auto login script
    By Ancathon in forum World of Warcraft Bots and Programs
    Replies: 12
    Last Post: 11-25-2007, 12:21 AM
  3. Hate getting D/C?? -- Auto Login -- useful for bots and private servers
    By ADAMZY in forum World of Warcraft Bots and Programs
    Replies: 24
    Last Post: 11-05-2007, 05:06 PM
  4. [Mac] WoWAL (WoW Auto Login)
    By Quafe in forum World of Warcraft Bots and Programs
    Replies: 17
    Last Post: 10-29-2007, 03:53 PM
  5. Auto Login
    By Relz in forum World of Warcraft Bots and Programs
    Replies: 15
    Last Post: 12-27-2006, 10:56 AM
All times are GMT -5. The time now is 08:51 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search