pbertera / SIPPing

Python SIP Packet forging tool
97 stars 32 forks source link

how to generate Register Challenge Response? #9

Open liangguohao66 opened 2 weeks ago

liangguohao66 commented 2 weeks ago

freeswitch return 401 challenge as below:

SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.1.182:5060;branch=z9hG4bK-p985iy;rport=5060 From: "fake" sip:fake@192.168.1.182;tag=as2e95fad1 To: sip:1004@192.168.1.171:5060;line=kutixubf;tag=6F5pBm4y1NSjK Call-ID: fqyh1k@fake CSeq: 0 REGISTER User-Agent: FreeSWITCH-mod_sofia/1.10.6-release+git~20210325T131609Z~1ff9d0a60e~64bit Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, path, replaces WWW-Authenticate: Digest realm="192.168.1.182", nonce="07c7027a-db52-413c-92e0-1c0bb8e14ca2", algorithm=MD5, qop="auth" Content-Length: 0

liangguohao66 commented 2 weeks ago

I turn to pjsua2 now