Wednesday 1 June 2016

Curl with auth username / password

We can use curl even if it requires you to be logged in. Example

  • curl 'https://api.pinnaclesports.com/v1/sports' -x 1.1.2.9:8888 -H "Authorization: Basic `echo -n 'user:password' | base64`"

    • -x = Proxy to use
    • -H = headers - we put the username and password in here

Curl to view a certificate
  • curl -v https://www.google.com  
 View more certificate details:
  • openssl s_client -showcerts -connect  www.google.com:443
If this isn't good enough fire up tcpdump and wireshark

No comments:

Post a Comment