{"id":494,"date":"2024-10-19T20:15:02","date_gmt":"2024-10-19T19:15:02","guid":{"rendered":"https:\/\/www.sarbyn.com\/blog\/?p=494"},"modified":"2024-10-19T20:15:02","modified_gmt":"2024-10-19T19:15:02","slug":"bypass-certificate-pinning-on-rooted-android-device","status":"publish","type":"post","link":"https:\/\/www.sarbyn.com\/blog\/2024\/10\/19\/bypass-certificate-pinning-on-rooted-android-device\/","title":{"rendered":"Bypass certificate pinning on rooted android device"},"content":{"rendered":"<p>First of all, install Magisk on rooted device and then install TrustUserCertificates plugin:<\/p>\n<ul>\n<li>Magisk download link: <a href=\"https:\/\/github.com\/topjohnwu\/Magisk\/releases\/latest\">link to latest version<\/a><\/li>\n<li>TrustUserCertificates download link: <a href=\"https:\/\/github.com\/lupohan44\/TrustUserCertificates\">Github project page<\/a><\/li>\n<\/ul>\n<p>Now you can install the Charles self-signed certificate on your device, as a standard User Custom Certificate, and then reboot your phone: the magisk plugin will do the magic and copy che Charles SSL certificate in the System Certificate Authorities list.<\/p>\n<p>In this way, now you can intercept all the device apps using Charles, also production builds or APK downloaded from the Google Play Store.<\/p>\n<p>But if an app uses SSL Certificate Pinning, Charles cannot intercept the encrypted traffic, so another step is required:<\/p>\n<ul>\n<li>Download latest FRIDA server for android: <a href=\"https:\/\/github.com\/frida\/frida\/releases\/latest\">link to the latest version. <\/a>Download the android version and copy the executable file to your mobile phone, under \/data\/local\/tmp folder.<\/li>\n<li>Start frida on mobile phone<\/li>\n<li>Install objection from github: link to the <a href=\"https:\/\/github.com\/sensepost\/objection\">Github project<\/a>.<\/li>\n<li>run the following command\n<ul>\n<li>objection -g <em>PACKAGE_NAME<\/em> explore -q<\/li>\n<li>android sslpinning disable<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>First of all, install Magisk on rooted device and then install TrustUserCertificates plugin: Magisk download link: link to latest version TrustUserCertificates download link: Github project page Now you can install the Charles self-signed certificate on your device, as a standard User Custom Certificate, and then reboot your phone: the magisk plugin will do the magic <a class=\"read-more\" href=\"https:\/\/www.sarbyn.com\/blog\/2024\/10\/19\/bypass-certificate-pinning-on-rooted-android-device\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[5],"tags":[97,95,96],"class_list":["post-494","post","type-post","status-publish","format-standard","hentry","category-android","tag-frida","tag-magisk","tag-sslpinning"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3JApm-7Y","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/494"}],"collection":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":3,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/494\/revisions\/497"}],"wp:attachment":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}