Proxy returning invalid challenge

Help
2013-07-20
2013-07-20
  • Hello. I am trying to configure CNTLM but i am getting the same message every time: cntlm: PID XXXX: Proxy returning invalid challenge!

    I've tried with a hash password (-M option) and using NTLMv2 as Auth method. Then I tried with my password and after that changed to LM authentication, but all options provide the same error.

    I've also restarted the machine.

    I am using Chrome with a proxy extension (SwitchySharp) to test this out.

    Here's a sample log. Can you guys help me out?

    C:\Program Files (x86)\Cntlm>cntlm.exe -v
    cygwin warning:
    MS-DOS style path detected: C:\Program Files (x86)\Cntlm\cntlm.ini
    Preferred POSIX equivalent is: /Cntlm/cntlm.ini
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    section: global, Username = 'USERNAME'
    section: global, Domain = 'DOMAIN'
    section: global, PassNTLMv2 = 'C6763DB961FBA19067B9DD76A10806B6'
    section: global, Proxy = '10.98.73.2:8080'
    section: global, NoProxy = 'localhost, 127.0.0., 10., 192.168.
    section: global, Listen = '8081'
    section: global, Auth = 'NTLMv2'
    Default config file opened successfully
    cntlm: Proxy listening on 127.0.0.1:8081
    Adding no-proxy for: 'localhost'
    Adding no-proxy for: '127.0.0.
    '
    Adding no-proxy for: '10.'
    Adding no-proxy for: '192.168.
    '
    cntlm: Workstation name used: MACHINE_NAME_ON_DOMAIN
    cntlm: Using following NTLM hashes: NTLMv2(1) NT(0) LM(0)
    cntlm: PID 6116: Cntlm ready, staying in the foreground

    * Round 1 C: 4 *
    Reading headers (4)...
    HEAD: GET http://www.google.com/ HTTP/1.1

    * Round 1 C: 5 *
    NO: www.google.com (localhost)
    Reading headers (5)...

    * Round 1 C: 6 *
    NO: www.google.com (127.0.0.)
    Reading headers (6)...
    NO: www.google.com (10.
    )
    NO: www.google.com (192.168.)
    Thread processing...
    cntlm: PID 6116: Using proxy 10.98.73.2:8080
    cntlm: PID 6116: Resolving proxy 10.98.73.2...
    Resolve 10.98.73.2:
    -> 10.98.73.2
    Host => www.google.com
    Proxy-Connection => keep-alive
    Cache-Control => max-age=0
    User-Agent => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKi
    t/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
    Accept => text/html,application/xhtml+xml,application/xm
    l;q=0.9,
    /;q=0.8
    X-Chrome-Variations => CKy1yQEIi7bJAQibtskBCKS2yQEIqLbJAQiptskBCLW2yQ
    EIw4PKAQ==
    Accept-Encoding => gzip,deflate,sdch
    Accept-Language => en-US,en;q=0.8,pt-BR;q=0.6
    Accept-Charset => ISO-8859-1,utf-8;q=0.7,
    ;q=0.3
    Cookie => HSID=ArGdodoDwu59QQEhX; APISID=RLgVWOrc7a9q2xn
    C/AYVdddUcC7fesYmVI; GZ=Z=1; BCSI-CS-dbda9621a06f9fd2=2; BCSI-CS-5e8f76f650abca1
    f=2; BCSI-CS-c49a2bdb95fe9b3a=2; BCSI-CS-fc72ca24ee6722b5=2; BCSI-CS-69cec2abda6
    e9951=2; BCSI-CS-17ecc84e1863d163=2; BCSI-CS-ded51d4498ddb626=2; BCSI-CS-4632ab6
    e5523c947=2; NID=67=A0s0l2htAD8fBwA-eqZgk3ICyp7gt9HZy0bBkKemfcB-3k8r5M0RZ_sZ52N0
    6h10cXP6PHoetnF8T6rKkkCLqXmE56Ve8pSSe-IQmkcA-jFxOiS-RLgYIlU5YfpfXFPINb5q7Q-Gw6Pv
    3HTd-gx_k5aFZxs0BIyQ7lyLFOQEK67wNcPSaDluXfreJKBS2k3nheBCU3OtkaSaqsASRjN8GmmpFHTd
    wSAl; BCSI-CS-6942dd92ab6be45c=2; BCSI-CS-9f448e344d6ec4d5=2; SID=DQAAALoAAABi7g
    xok9PnY6UOSipg2iUIYeG1IKNqvBG7Dn3byK5Qxh3CX2D542uLa0-DXB7aPkXtzi0WRbN1oVaEjzS4Hb
    uDIC6TNln_TuDYCizAUW_kpo5Armzp3R0hWFOhnZ68NZtKkFourJvUS5GFKr_deKjUNDsht-8oT4dSfW
    UQffcIxKvc3rk9JNonJUJzJZR-9Xxk891VlhyVkAWC3TqF6GggJSOiU-DcHQVlUsRtgl7gRpxR9bp6aI
    5nYniQMlIecyY; PREF=ID=e8555a8d9d1708a2:U=2bba07982de328dc:FF=0:LR=lang_en|lang_
    pt:LD=en:TM=1373563147:LM=1374327924:GM=1:SG=1:S=z9Z3GMhNyNcIFCdO
    cntlm: PID 6116: 127.0.0.1 GET http://www.google.com/
    NTLM Request:
    Domain: DOMAIN
    Hostname: MACHINE_NAME_ON_DOMAIN
    Flags: 0xA208B205

    Sending PROXY auth request...
    Host => www.google.com
    Proxy-Connection => keep-alive
    Cache-Control => max-age=0
    User-Agent => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKi
    t/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
    Accept => text/html,application/xhtml+xml,application/xm
    l;q=0.9,/;q=0.8
    X-Chrome-Variations => CKy1yQEIi7bJAQibtskBCKS2yQEIqLbJAQiptskBCLW2yQ
    EIw4PKAQ==
    Accept-Encoding => gzip,deflate,sdch
    Accept-Language => en-US,en;q=0.8,pt-BR;q=0.6
    Accept-Charset => ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie => HSID=ArGdodoDwu59QQEhX; APISID=RLgVWOrc7a9q2xn
    C/AYVdddUcC7fesYmVI; GZ=Z=1; BCSI-CS-dbda9621a06f9fd2=2; BCSI-CS-5e8f76f650abca1
    f=2; BCSI-CS-c49a2bdb95fe9b3a=2; BCSI-CS-fc72ca24ee6722b5=2; BCSI-CS-69cec2abda6
    e9951=2; BCSI-CS-17ecc84e1863d163=2; BCSI-CS-ded51d4498ddb626=2; BCSI-CS-4632ab6
    e5523c947=2; NID=67=A0s0l2htAD8fBwA-eqZgk3ICyp7gt9HZy0bBkKemfcB-3k8r5M0RZ_sZ52N0
    6h10cXP6PHoetnF8T6rKkkCLqXmE56Ve8pSSe-IQmkcA-jFxOiS-RLgYIlU5YfpfXFPINb5q7Q-Gw6Pv
    3HTd-gx_k5aFZxs0BIyQ7lyLFOQEK67wNcPSaDluXfreJKBS2k3nheBCU3OtkaSaqsASRjN8GmmpFHTd
    wSAl; BCSI-CS-6942dd92ab6be45c=2; BCSI-CS-9f448e344d6ec4d5=2; SID=DQAAALoAAABi7g
    xok9PnY6UOSipg2iUIYeG1IKNqvBG7Dn3byK5Qxh3CX2D542uLa0-DXB7aPkXtzi0WRbN1oVaEjzS4Hb
    uDIC6TNln_TuDYCizAUW_kpo5Armzp3R0hWFOhnZ68NZtKkFourJvUS5GFKr_deKjUNDsht-8oT4dSfW
    UQffcIxKvc3rk9JNonJUJzJZR-9Xxk891VlhyVkAWC3TqF6GggJSOiU-DcHQVlUsRtgl7gRpxR9bp6aI
    5nYniQMlIecyY; PREF=ID=e8555a8d9d1708a2:U=2bba07982de328dc:FF=0:LR=lang_en|lang_
    pt:LD=en:TM=1373563147:LM=1374327924:GM=1:SG=1:S=z9Z3GMhNyNcIFCdO
    Proxy-Authorization => NTLM TlRMTVNTUAABAAAABbIIogkACQAqAAAACgAKACAAA
    ABNSTAwMjU1Mjg1UEVUUk9CUkFT
    Content-Length => 0

    Reading PROXY auth response...
    HEAD: HTTP/1.1 407 Proxy Authentication Required
    Proxy-Authenticate => BASIC realm="PROXY_NAME."
    Cache-Control => no-cache
    Pragma => no-cache
    Content-Type => text/html; charset=utf-8
    Proxy-Connection => close
    Set-Cookie => BCSI-CS-9f448e344d6ec4d5=2; Path=/
    Connection => close
    Content-Length => 825
    X-RBT-Optimized-By => OW01PLS (RiOS 6.1.3c) SC
    Discarding 825 bytes.
    cntlm: PID 6116: Proxy returning invalid challenge!
    Sending headers (7)...
    Host => www.google.com
    Proxy-Connection => keep-alive
    Cache-Control => max-age=0
    User-Agent => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKi
    t/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
    Accept => text/html,application/xhtml+xml,application/xm
    l;q=0.9,/;q=0.8
    X-Chrome-Variations => CKy1yQEIi7bJAQibtskBCKS2yQEIqLbJAQiptskBCLW2yQ
    EIw4PKAQ==
    Accept-Encoding => gzip,deflate,sdch
    Accept-Language => en-US,en;q=0.8,pt-BR;q=0.6
    Accept-Charset => ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie => HSID=ArGdodoDwu59QQEhX; APISID=RLgVWOrc7a9q2xn
    C/AYVdddUcC7fesYmVI; GZ=Z=1; BCSI-CS-dbda9621a06f9fd2=2; BCSI-CS-5e8f76f650abca1
    f=2; BCSI-CS-c49a2bdb95fe9b3a=2; BCSI-CS-fc72ca24ee6722b5=2; BCSI-CS-69cec2abda6
    e9951=2; BCSI-CS-17ecc84e1863d163=2; BCSI-CS-ded51d4498ddb626=2; BCSI-CS-4632ab6
    e5523c947=2; NID=67=A0s0l2htAD8fBwA-eqZgk3ICyp7gt9HZy0bBkKemfcB-3k8r5M0RZ_sZ52N0
    6h10cXP6PHoetnF8T6rKkkCLqXmE56Ve8pSSe-IQmkcA-jFxOiS-RLgYIlU5YfpfXFPINb5q7Q-Gw6Pv
    3HTd-gx_k5aFZxs0BIyQ7lyLFOQEK67wNcPSaDluXfreJKBS2k3nheBCU3OtkaSaqsASRjN8GmmpFHTd
    wSAl; BCSI-CS-6942dd92ab6be45c=2; BCSI-CS-9f448e344d6ec4d5=2; SID=DQAAALoAAABi7g
    xok9PnY6UOSipg2iUIYeG1IKNqvBG7Dn3byK5Qxh3CX2D542uLa0-DXB7aPkXtzi0WRbN1oVaEjzS4Hb
    uDIC6TNln_TuDYCizAUW_kpo5Armzp3R0hWFOhnZ68NZtKkFourJvUS5GFKr_deKjUNDsht-8oT4dSfW
    UQffcIxKvc3rk9JNonJUJzJZR-9Xxk891VlhyVkAWC3TqF6GggJSOiU-DcHQVlUsRtgl7gRpxR9bp6aI
    5nYniQMlIecyY; PREF=ID=e8555a8d9d1708a2:U=2bba07982de328dc:FF=0:LR=lang_en|lang_
    pt:LD=en:TM=1373563147:LM=1374327924:GM=1:SG=1:S=z9Z3GMhNyNcIFCdO
    headers_send: fd 7 warning -999 (connection closed)
    forward_request: palive=0, authok=0, ntlm=0, closed=1

    Thread finished.
    proxy_thread: request rc = 0xffffffff

    * Round 1 C: 4 *
    Joining thread 537207304; rc: 0
    Reading headers (4)...
    HEAD: GET http://toolbarqueries.google.com/search?client=navclient-auto&hl=en&ch
    =62809919908&ie=UTF-8&oe=UTF-8&features=Rank&q=info:http://www.google.com HTTP/1
    .1
    NO: toolbarqueries.google.com (localhost)
    NO: toolbarqueries.google.com (127.0.0.)
    NO: toolbarqueries.google.com (10.
    )
    NO: toolbarqueries.google.com (192.168.)
    Thread processing...
    Host => toolbarqueries.google.com
    Proxy-Connection => keep-alive
    User-Agent => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKi
    t/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
    Accept =>
    /
    X-Chrome-Variations => CKy1yQEIi7bJAQibtskBCKS2yQEIqLbJAQiptskBCLW2yQ
    EIw4PKAQ==
    Accept-Encoding => gzip,deflate,sdch
    Accept-Language => en-US,en;q=0.8,pt-BR;q=0.6
    Accept-Charset => ISO-8859-1,utf-8;q=0.7,
    ;q=0.3
    Cookie => HSID=ArGdodoDwu59QQEhX; APISID=RLgVWOrc7a9q2xn
    C/AYVdddUcC7fesYmVI; BCSI-CS-dbda9621a06f9fd2=2; BCSI-CS-fc72ca24ee6722b5=2; BCS
    I-CS-17ecc84e1863d163=2; BCSI-CS-c49a2bdb95fe9b3a=2; BCSI-CS-a58af4b7150ffe60=2;
    BCSI-CS-4632ab6e5523c947=2; NID=67=A0s0l2htAD8fBwA-eqZgk3ICyp7gt9HZy0bBkKemfcB-
    3k8r5M0RZ_sZ52N06h10cXP6PHoetnF8T6rKkkCLqXmE56Ve8pSSe-IQmkcA-jFxOiS-RLgYIlU5Yfpf
    XFPINb5q7Q-Gw6Pv3HTd-gx_k5aFZxs0BIyQ7lyLFOQEK67wNcPSaDluXfreJKBS2k3nheBCU3OtkaSa
    qsASRjN8GmmpFHTdwSAl; BCSI-CS-6942dd92ab6be45c=2; BCSI-CS-5e8f76f650abca1f=2; BC
    SI-CS-9f448e344d6ec4d5=2; SID=DQAAALoAAABi7gxok9PnY6UOSipg2iUIYeG1IKNqvBG7Dn3byK
    5Qxh3CX2D542uLa0-DXB7aPkXtzi0WRbN1oVaEjzS4HbuDIC6TNln_TuDYCizAUW_kpo5Armzp3R0hWF
    OhnZ68NZtKkFourJvUS5GFKr_deKjUNDsht-8oT4dSfWUQffcIxKvc3rk9JNonJUJzJZR-9Xxk891Vlh
    yVkAWC3TqF6GggJSOiU-DcHQVlUsRtgl7gRpxR9bp6aI5nYniQMlIecyY; PREF=ID=e8555a8d9d170
    8a2:U=2bba07982de328dc:FF=0:LR=lang_en|lang_pt:LD=en:TM=1373563147:LM=1374327924
    :GM=1:SG=1:S=z9Z3GMhNyNcIFCdO
    cntlm: PID 6116: 127.0.0.1 GET http://toolbarqueries.google.com/search?client=na
    vclient-auto&hl=en&ch=62809919908&ie=UTF-8&oe=UTF-8&features=Rank&q=info:http://
    www.google.com
    NTLM Request:
    Domain: DOMAIN
    Hostname: MACHINE_NAME_ON_DOMAIN
    Flags: 0xA208B205

    Sending PROXY auth request...
    Host => toolbarqueries.google.com
    Proxy-Connection => keep-alive
    User-Agent => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKi
    t/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
    Accept => /
    X-Chrome-Variations => CKy1yQEIi7bJAQibtskBCKS2yQEIqLbJAQiptskBCLW2yQ
    EIw4PKAQ==
    Accept-Encoding => gzip,deflate,sdch
    Accept-Language => en-US,en;q=0.8,pt-BR;q=0.6
    Accept-Charset => ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie => HSID=ArGdodoDwu59QQEhX; APISID=RLgVWOrc7a9q2xn
    C/AYVdddUcC7fesYmVI; BCSI-CS-dbda9621a06f9fd2=2; BCSI-CS-fc72ca24ee6722b5=2; BCS
    I-CS-17ecc84e1863d163=2; BCSI-CS-c49a2bdb95fe9b3a=2; BCSI-CS-a58af4b7150ffe60=2;
    BCSI-CS-4632ab6e5523c947=2; NID=67=A0s0l2htAD8fBwA-eqZgk3ICyp7gt9HZy0bBkKemfcB-
    3k8r5M0RZ_sZ52N06h10cXP6PHoetnF8T6rKkkCLqXmE56Ve8pSSe-IQmkcA-jFxOiS-RLgYIlU5Yfpf
    XFPINb5q7Q-Gw6Pv3HTd-gx_k5aFZxs0BIyQ7lyLFOQEK67wNcPSaDluXfreJKBS2k3nheBCU3OtkaSa
    qsASRjN8GmmpFHTdwSAl; BCSI-CS-6942dd92ab6be45c=2; BCSI-CS-5e8f76f650abca1f=2; BC
    SI-CS-9f448e344d6ec4d5=2; SID=DQAAALoAAABi7gxok9PnY6UOSipg2iUIYeG1IKNqvBG7Dn3byK
    5Qxh3CX2D542uLa0-DXB7aPkXtzi0WRbN1oVaEjzS4HbuDIC6TNln_TuDYCizAUW_kpo5Armzp3R0hWF
    OhnZ68NZtKkFourJvUS5GFKr_deKjUNDsht-8oT4dSfWUQffcIxKvc3rk9JNonJUJzJZR-9Xxk891Vlh
    yVkAWC3TqF6GggJSOiU-DcHQVlUsRtgl7gRpxR9bp6aI5nYniQMlIecyY; PREF=ID=e8555a8d9d170
    8a2:U=2bba07982de328dc:FF=0:LR=lang_en|lang_pt:LD=en:TM=1373563147:LM=1374327924
    :GM=1:SG=1:S=z9Z3GMhNyNcIFCdO
    Proxy-Authorization => NTLM TlRMTVNTUAABAAAABbIIogkACQAqAAAACgAKACAAA
    ABNSTAwMjU1Mjg1UEVUUk9CUkFT
    Content-Length => 0

    Reading PROXY auth response...
    HEAD: HTTP/1.1 407 Proxy Authentication Required
    Proxy-Authenticate => BASIC realm="PROXY_NAME."
    Cache-Control => no-cache
    Pragma => no-cache
    Content-Type => text/html; charset=utf-8
    Proxy-Connection => close
    Set-Cookie => BCSI-CS-9f448e344d6ec4d5=2; Path=/
    Connection => close
    Content-Length => 825
    X-RBT-Optimized-By => OW01PLS (RiOS 6.1.3c) SC
    Discarding 825 bytes.
    cntlm: PID 6116: Proxy returning invalid challenge!
    Sending headers (7)...
    Host => toolbarqueries.google.com
    Proxy-Connection => keep-alive
    User-Agent => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKi
    t/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
    Accept => /
    X-Chrome-Variations => CKy1yQEIi7bJAQibtskBCKS2yQEIqLbJAQiptskBCLW2yQ
    EIw4PKAQ==
    Accept-Encoding => gzip,deflate,sdch
    Accept-Language => en-US,en;q=0.8,pt-BR;q=0.6
    Accept-Charset => ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie => HSID=ArGdodoDwu59QQEhX; APISID=RLgVWOrc7a9q2xn
    C/AYVdddUcC7fesYmVI; BCSI-CS-dbda9621a06f9fd2=2; BCSI-CS-fc72ca24ee6722b5=2; BCS
    I-CS-17ecc84e1863d163=2; BCSI-CS-c49a2bdb95fe9b3a=2; BCSI-CS-a58af4b7150ffe60=2;
    BCSI-CS-4632ab6e5523c947=2; NID=67=A0s0l2htAD8fBwA-eqZgk3ICyp7gt9HZy0bBkKemfcB-
    3k8r5M0RZ_sZ52N06h10cXP6PHoetnF8T6rKkkCLqXmE56Ve8pSSe-IQmkcA-jFxOiS-RLgYIlU5Yfpf
    XFPINb5q7Q-Gw6Pv3HTd-gx_k5aFZxs0BIyQ7lyLFOQEK67wNcPSaDluXfreJKBS2k3nheBCU3OtkaSa
    qsASRjN8GmmpFHTdwSAl; BCSI-CS-6942dd92ab6be45c=2; BCSI-CS-5e8f76f650abca1f=2; BC
    SI-CS-9f448e344d6ec4d5=2; SID=DQAAALoAAABi7gxok9PnY6UOSipg2iUIYeG1IKNqvBG7Dn3byK
    5Qxh3CX2D542uLa0-DXB7aPkXtzi0WRbN1oVaEjzS4HbuDIC6TNln_TuDYCizAUW_kpo5Armzp3R0hWF
    OhnZ68NZtKkFourJvUS5GFKr_deKjUNDsht-8oT4dSfWUQffcIxKvc3rk9JNonJUJzJZR-9Xxk891Vlh
    yVkAWC3TqF6GggJSOiU-DcHQVlUsRtgl7gRpxR9bp6aI5nYniQMlIecyY; PREF=ID=e8555a8d9d170
    8a2:U=2bba07982de328dc:FF=0:LR=lang_en|lang_pt:LD=en:TM=1373563147:LM=1374327924
    :GM=1:SG=1:S=z9Z3GMhNyNcIFCdO
    headers_send: fd 7 warning -999 (connection closed)
    forward_request: palive=0, authok=0, ntlm=0, closed=1

    Thread finished.
    proxy_thread: request rc = 0xffffffff
    Joining thread 537273216; rc: 0