Skip to content

Instantly share code, notes, and snippets.

@gagarine
gagarine / easybox_sip_passwd.pl
Created July 23, 2011 18:20 — forked from wose/easybox_sip_passwd.pl
arcor/vodafone won't give you your sip password for free, but i will: capture an incoming call (WAN VC2) with the diagnostic tool in your easybox, load the .cap file in wireshark and search for SIP/SDP Request:INVITE, Message Header -> Proxy-Authorization
#!/usr/bin/env perl
use strict;
use warnings;
use Digest::MD5 'md5_hex';
print_usage() unless($#ARGV==5);
my ($method, $uri, $user, $realm, $nonce, $response) = @ARGV;
my $hash_method_uri = md5_hex(join(':', $method, $uri));