Git Product home page Git Product logo

Comments (3)

initstring avatar initstring commented on June 25, 2024

Hi @aaronleshalock - thanks so much for taking the time to open an issue!

I actually don't use this tool myself much these days, so I only find out about a breaking change when someone reports it. This is helpful.

I just ran the tool myself, though, and I can't reproduce your problem.

Can you run the tool with the -x or --proxy command to go through ZAP or Burp and take a look at the 302/303 you are receiving? Any details you can provide to troubleshoot would be helpful, of course being careful not to share cookies or credentials.

Thanks!

Also, BTW, the bit of code you are hitting is here. So perhaps they've changed some strings that I'm matching on or perhaps there is a new type of redirect that I don't know about:

    if response.status_code == 302 or response.status_code == 303:
        redirect = response.headers['Location']
        if 'feed' in redirect:
            print(PC.ok_box + "Successfully logged in.\n")
            return session
        if 'challenge' in redirect:
            print(PC.warn_box + "LinkedIn doesn't like something about this"
                  " login. Maybe you're being sneaky on a VPN or something."
                  " You may get an email with a verification token. You can"
                  " ignore the email. Log in from a web browser and try"
                  " again.\n")
            return False
        if 'captcha' in redirect:
            print(PC.warn_box + "You've triggered a CAPTCHA. Oops. Try logging"
                  " in with your web browser first and come back later.")
            return False

        # The below will detect some 302 that I don't yet know about.
        print(PC.warn_box + "Some unknown redirection occurred. If this"
              " persists, please open an issue on github.\n")
        return False

from linkedin2username.

aaronleshalock avatar aaronleshalock commented on June 25, 2024

Thanks for the response. It looks like it was somewhat related to my account. It was redirecting me over to add/confirm my phone number, but for some reason that didn't show up when i logged in on the web. After confirming my phone number, everything works as expected.

Here's the HTTP request:

POST /checkpoint/lg/login-submit?loginSubmitSource=GUEST_HOME HTTP/1.1
Host: www.linkedin.com
User-Agent: Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; SCH-I535 Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
X-RestLi-Protocol-Version: 2.0.0
Content-Length: 160
Content-Type: application/x-www-form-urlencoded

Here's the relevant portion of the response as shown in Burp

HTTP/1.1 303 See Other
Cache-Control: no-cache, no-store
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location: /check/add-phone?country_code=us

Thanks!

from linkedin2username.

initstring avatar initstring commented on June 25, 2024

Thank you very much for the detail!

Probably there is a way to skip past it in the tool, but it's hard to test as it doesn't prompt me.

Instead, I chose the easy way out and simply added it in the list of error checks in 2e0dbe1.

Thanks again!

from linkedin2username.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.