{"id":143,"date":"2014-09-10T16:27:20","date_gmt":"2014-09-10T07:27:20","guid":{"rendered":"http:\/\/manatails.net\/blog\/?p=143"},"modified":"2022-04-03T13:48:55","modified_gmt":"2022-04-03T04:48:55","slug":"sgsn-temporary-mccmnc-authentication-hack","status":"publish","type":"post","link":"https:\/\/manatails.net\/blog\/2014\/09\/sgsn-temporary-mccmnc-authentication-hack\/","title":{"rendered":"SGSN temporary MCC\/MNC authentication hack"},"content":{"rendered":"<p>From gprs_gmm.c<\/p>\n<pre>\r\n\r\n                        char mccmnc[16];\r\n                        snprintf(mccmnc, sizeof(mccmnc), \"%03d%02d\", ra_id.mcc, ra_id.mnc);\r\n                        if (strncmp(mccmnc, mi_string, 5) &&\r\n                            (sgsn->cfg.acl_enabled &&\r\n                             !sgsn_acl_lookup(mi_string))) {\r\n                                LOGP(DMM, LOGL_INFO, \"Rejecting ATTACH REQUESET IMSI=%s\\n\",\r\n                                     mi_string);\r\n                                return gsm48_tx_gmm_att_rej_oldmsg(msg,\r\n                                                                GMM_CAUSE_GPRS_NOTALLOWED);\r\n                        }\r\n\r\n<\/pre>\n<p>It needs to be commented out to allow roaming IMSIs to receive PDP contexts<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From gprs_gmm.c char mccmnc[16]; snprintf(mccmnc, sizeof(mccmnc), &#8220;%03d%02d&#8221;, ra_id.mcc, ra_id.mnc); if (strncmp(mccmnc, mi_string, 5) &#038;&#038; (sgsn->cfg.acl_enabled &#038;&#038; !sgsn_acl_lookup(mi_string))) { LOGP(DMM, LOGL_INFO, &#8220;Rejecting ATTACH REQUESET IMSI=%s\\n&#8221;, mi_string); return gsm48_tx_gmm_att_rej_oldmsg(msg, GMM_CAUSE_GPRS_NOTALLOWED); } It needs to be commented out to allow roaming IMSIs to receive PDP contexts<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[18,17],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-radio","tag-gsm","tag-openbsc"],"_links":{"self":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":2,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}