Today I've written a small tool which dumps all P2SH addresses from blockchain
Something like this:
[...]
3CUgLbAQUoJV4Bea3gNUAprcg7rsMeejHN msig 1-of-1 { 1K7eMkbrNjbaiPWZjhKz9Nf5RAc8XvqHC3 }
3FH2jvRApWBaMckuuxJLrB2DwQmcrocMAe msig 1-of-2 { 1BNAjfnBV1y8vAwciekFM8KPxFph5mdzgv, 12rRqgQyw2rShyaTQtoj9FwUaFmuaiU3Pz }
3Hqy8mN46HcMo34z1DYMrXiKjPre181fQm msig 3-of-4 { 1GxLcaoRvhhDQkrntHCvarDkiNxBoyjTcC, 13rjSt92G4KXnmwi9z5zfp6dSieZ2eYeDU, 16GTkGJyQdi2QtLCkYmmYFpg2e82g7eaU8, 16ZMUYtAJF8sN91DHBtPDWSfpEvXvFoSyW }
3E3edFtWarsnztYDgTF5qoETE6WVkEr5Kg msig 5-of-10 { 1Ps6Mso99vgXAvhr6ZstojMhtnpJrCJ1Kt, 1L9jD3c8uU3B7Wx5bpRE2Y4DifgMRNz7Je, 16FPYkAXNTxcVsTWsjvYKMhmN2yXfJKuuQ, 1BnzzPAs35rE6sSFAgqbdUFFVDdZB3zi3s, 1827Jif4vLsoh34AK8RLiLZXCKkhdZUbhp, 1AvuyQ4qQEUA45hRuHyEbHm2ocRMrPKbPG, 1MH2JQazifaYWj7nu7Dy3mJd49oALdbC96, 1DLDdEc2B7E5T7zSdH95g2unKxdnCLwVb1, 1L6u2HEddyZSmZ2zWnAo1xtLkDvp6ZCLX9, 1N7uYBVL6ENAV2Xx1oLPgURZueD9QnDY4Q }
3QFAvLouP3Zpbzmx9pXSHZMfsZ9gq8yaB2 msig 6-of-10 { 1BsV7jWXsEHaAYSwtXPGjzUFN8rKP98ZWT, 1HK4Xdz9X2uX4eXi1DNRwz2keKGc3cJTkj, 15s8akPKrXoVahikp1cGrs48NQV1ygByVi, 1DuGR4aiVN7SWqcp1HXX8AYrH1XPegq7KA, 19oqXpZSd2DPwC81ZVCxhPVvKgSsv1X8x8, 1Gtw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