<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sachin Khard on Medium]]></title>
        <description><![CDATA[Stories by Sachin Khard on Medium]]></description>
        <link>https://medium.com/@sachinkhard?source=rss-e92cc1340876------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*JSbb94B9aQw9GQO5wM-ZLQ.jpeg</url>
            <title>Stories by Sachin Khard on Medium</title>
            <link>https://medium.com/@sachinkhard?source=rss-e92cc1340876------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:18:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sachinkhard/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Penetration/Pen Testing — iOS Jailbreak]]></title>
            <link>https://sachinkhard.medium.com/ios-has-always-been-considered-a-safe-haven-when-it-comes-to-mobile-application-security-6bd502b69db1?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bd502b69db1</guid>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 07:17:38 GMT</pubDate>
            <atom:updated>2024-09-24T11:07:28.553Z</atom:updated>
            <content:encoded><![CDATA[<p>iOS has always been considered a safe haven when it comes to mobile application security. Every year this operating system tries to come up with more and more efficient updates to make life easy for its users and the respective application and security service providers. However, for tech-savvy users, these timely improvements may not sound enough, and there are always people who consider that there is room for more improvement. And hence comes the term ‘Jailbreaking’.</p><h3><strong>What does jailbreaking an iPhone mean?</strong></h3><p>‘Jailbreaking’ is the process by which a user can gain access to the administrative commands and functions of the iOS operating system. It gives the ability (or permission) to alter or replace system applications, files, and settings, remove pre-installed applications, and run specialized applications (“apps”) that require administrator-level permissions. In a 2020 research on 425 million devices, Wandera highlighted that there had been a 50% increase in the number of jailbroken devices from the previous year, a quite formidable jump! With jailbreaking, one can actually remove almost all the restrictions from their iOS device and open up gateways to make unimaginable modifications. While this may sound pretty fascinating at first, it also opens up innumerable avenues for security vulnerabilities and threat actors to creep inside your device. So, let’s take a look at how application developers can take specific steps to ensure that their applications stay secure in the context of jailbroken devices.</p><h3><strong>What is jailbreak detection?</strong></h3><p>Jailbreak Detection means that the application is detecting whether the application is running on a jailbroken device. The goal of jailbreak detection is to prevent the attacker from gaining more privileges by running the app on a non-jailbroken device. This, in turn, blocks some tools and techniques, such as reverse engineers, and helps an application prevent many vulnerabilities.</p><h3><strong>Difference between one-time and run-time jailbreak detection bypass</strong></h3><h4><strong>One-time jailbreak detection bypass</strong></h4><p>One-time jailbreak detection bypass helps the pentester permanently bypass the jailbreak detection for the respective application. This means the pentester has to bypass the jailbreak detection only once. For example, the pen tester can use the Liberty application to bypass the jailbreak detection permanently. Once you bypass jailbreak detection with the liberty application, it permanently bypasses the jailbreak detection for respective applications. You don’t need to bypass the jailbreak detection again and again.</p><h4>Run-time jailbreak detection bypass</h4><p>Run-time jailbreak detection bypass helps the pentester bypass the jailbreak detection at runtime. This means you can manipulate the value at run time, and then you have to bypass the jailbreak detection again and again; it’s not permanent. For example, we can use <strong>Frida</strong> and <strong>Objection</strong> to bypass jailbreak detection at runtime. Once you bypass jailbreak detection with <strong>Frida</strong> and <strong>Objection</strong>, it only works until you run Frida or Objection. As you stop Frida or Objection, the respective applications start detecting that the device is jailbroken again.</p><h3><strong>How to bypass jailbreak detection</strong> ?</h3><p>There are different ways to bypass iPhone jailbreak detection. Let’s discuss each in detail.</p><h4>[1]. Jailbreak detection bypass via hooking</h4><h4>- Installing Frida server</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*JUY22XA2ig1VctKp.jpeg" /></figure><p>By default the Frida server is running up on the iDevice, you don’t need to start a Frida server every time.</p><h4>- Installing objection</h4><p>sudo pip3 install objection</p><p><strong>Note:</strong> When using an objection, make sure the application is opened on the device; otherwise, the objection will not work.</p><p><strong>A) Let’s bypass jailbreak detection via hooking</strong></p><p><strong>1). </strong>Connect your device via USB and trust the device.</p><p><strong>2).</strong> Run the below command to connect the application to objection and explore the application..</p><p>objection — gadget package_name explore</p><p>Or</p><p>objection -g package_name explore</p><p>Run the below command to find the package name of the application</p><p>Frida-ps -Ua</p><ul><li>Ua=&gt; show currently running application</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*H_w2AKkdSY_GfHsh.png" /></figure><p><strong>3</strong>). Run the below command to search for the specific class</p><p>ios hooking search classes jailbreak</p><p>Search classes=&gt; It is used to search for the classes related to the given word.</p><p>Jailbreak =&gt; Here we are looking for classes related to jailbreak. That’s why we search for “jailbreak” so that we can get all the classes related to jailbreak. And if you are looking for other classes like login related etc, you can type login there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/0*AphdwE4ut0LVnH4F.png" /></figure><p><strong>4)</strong>. Run the below commands to watch methods available for the given class</p><p>ios hooking watch class JailbreakDetection</p><p>watch=&gt; To watch the methods available for the given class JailbreakDetection=&gt; It’s the name of the class and you can use any class which you think may be related to the function which you are looking for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Jvba6P-_q-c2Pucz.png" /></figure><p><strong>5)</strong>. Run the below commands to dump the value of the given method</p><p>ios hooking watch method “+[JailbreakDetection isJailbroken]” --dump return</p><ul><li>-dump return =&gt; It will return the value, when we call the particular method, it can be 0,1, true, false, etc.</li><li>“+” =&gt; here “+” symbol we write based on the method we called. When we call all methods of a particular class, it shows the symbol which is used by that particular method as highlighted in the above screenshot. Depending on the method, symbols can be “+” or “-”.</li><li>JailbreakDetection is the name of the class.</li><li>isJailbroken is the method of the class.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*4CvSm7hXuspM1UEI.png" /></figure><ul><li>6) Run the below commands to set the return value of the given method.</li></ul><p>ios hooking set return_valued “+[JailbreakDetection isJailbroken]” 1</p><p>set return_valued =&gt; It will set the returned value of the given class.</p><p>1 =&gt; Here we set the return value to “1” because when we open the application it’s giving the error as the device is jailbroken and returns the value to 0, so we change it’s value at run time to “1”. So that application will understand that the device is not jailbroken and we can run the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*fSGjuEAH0WpNBT6q.png" /></figure><h4>[2]. Jailbreak bypass via liberty application</h4><h4>- Installing liberty</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*CYi2Vf7NYAsxUBFB.jpeg" /></figure><p><strong>Bypass jailbreak detection using Liberty</strong></p><p>1) Go to Settings, and you will see the liberty application at the end.</p><p>2) Enable the application for which you want to bypass jailbreak detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*ZomMbBXe6z_YRKbD.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*yIQNG0P873-dbRWD.png" /></figure><p>Many tools are used to bypass jailbreak detection, such as FlyJB, Shadow, etc.</p><h4>[3]. Jailbreak detection bypass via objection</h4><p>Run the below command to connect the application to the objection and explore the application.</p><p>objection — gadget package_name explore</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*QxhBF8Q0oApN2WXS.png" /></figure><p>Run the below command to bypass the jailbreak detection</p><p>ios jailbreak disable</p><h4>[4]. Jailbreak detection bypass via Frida</h4><h4>Bypassing jailbreak detection using Frida</h4><p>Frida -U -f package_name -l jailbreak.js --no-pause</p><p>U =&gt; To use a connected USB device as a target</p><p>F =&gt; To indicates the package name</p><p>L =&gt; To load the script</p><p>Jailbreak.js =&gt; <a href="https://codeshare.frida.re/@liangxiaoyi1024/ios-jailbreak-detection-bypass/">https://codeshare.frida.re/@liangxiaoyi1024/ios-jailbreak-detection-bypass/</a> (Download the script from codeshare according to your iOS version)</p><p>-- no-pause =&gt; To force the Frida to “not to pause” app execution after injecting the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/0*51r_QQrcvHVQHlk8.png" /></figure><h3>Mitigating jailbreak detection bypass</h3><p>The application should check for the presence of the following things. If any of them are present, the application should detect that the device is jailbroken and should not allow it to run the application.</p><p><strong>1). </strong>Check the presence of any of the following file paths:</p><blockquote>“/Applications/Cydia.app”</blockquote><blockquote>“/Applications/blackra1n.app”</blockquote><blockquote>“/Applications/FakeCarrier.app”</blockquote><blockquote>“/Applications/Icy.app”</blockquote><blockquote>“/Applications/IntelliScreenx.app” “</blockquote><blockquote>/Applications/MxTube.app”</blockquote><blockquote>“/Applications/RockApp.app”</blockquote><blockquote>“/Applications/SBSettings.app”</blockquote><blockquote>“/Applications/WinterBoard.app”</blockquote><blockquote>“/Library/MobileSubstrate/DynamicLibraries/LiveClock.plist”</blockquote><blockquote>“/Library/MobileSubstrate/DynamicLibraries/Veency.plist”</blockquote><blockquote>“/private/var/lib/apt”</blockquote><blockquote>“/private/var/lib/cydia”</blockquote><blockquote>“/private/var/mobile/Library/SBSettings/Themes”</blockquote><blockquote>“/private/var/stash”</blockquote><blockquote>“/private/var/tmp/cydia.log”</blockquote><blockquote>“/System/Library/LaunchDaemons/com.ikey.bbot.plist”</blockquote><blockquote>“/System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist”</blockquote><blockquote>“/usr/sbin/sshd”</blockquote><blockquote>“/usr/libexec/sftp-server”</blockquote><blockquote>“/usr/sbin/sshd”</blockquote><p><strong>2).</strong> Check the presence of shell access Since non-jailbroken iOS devices do not have shell access, the presence of shell access indicates a jailbroken device.</p><p><strong>3).</strong> Check the Non-existence of a standard framework at the expected file path If the standard Foundation framework does not exist at the expected file path “/System/Library/Frameworks/Foundation.framework/Foundation”</p><p><strong>4).</strong> Check for the existence of the Frida server.</p><p>Final thoughts Once a device is jailbroken, it becomes an easy target for threat actors, who can flush volumes of malicious elements into the device and sniff sensitive user information. This also poses risks for the other genuine apps running on jailbroken devices. Taking the required jailbreak detection bypass steps protects the app, the device, and user data from being compromised by threat actors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bd502b69db1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Penetration/Pen Testing — How to side-load the unc0ver jailbreak with Xcode on macOS]]></title>
            <link>https://sachinkhard.medium.com/penetration-pen-testing-how-to-side-load-the-unc0ver-jailbreak-with-xcode-on-macos-0fd0ae815cfe?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fd0ae815cfe</guid>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 06:48:44 GMT</pubDate>
            <atom:updated>2024-09-24T06:48:44.788Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://sachinkhard.medium.com/static-analysis-of-ios-source-code-using-mobsf-92eed1cf3da0">Penetration/Pen Testing</a> — <a href="https://www.idownloadblog.com/2020/03/12/how-to-install-jailbreak-with-xcode/">How to side-load the unc0ver jailbreak with Xcode on macOS</a></h3><p>If you rely side-loadable jailbreak tools such as <a href="https://www.idownloadblog.com/tag/chimera/">Chimera</a>, <a href="https://www.idownloadblog.com/tag/electra/">Electra</a>, or <a href="https://www.idownloadblog.com/tag/unc0ver/">unc0ver</a>, then it’s important to understand the plethora of ways you can install them on your iPhone or iPad. While methods such as <a href="https://www.idownloadblog.com/tag/altstore/">AltStore</a>, <a href="https://www.idownloadblog.com/tag/cydia-impactor/">Cydia Impactor</a>, and third-party signing services like <a href="https://www.idownloadblog.com/2018/10/24/how-to-install-the-unc0ver-jailbreak-without-a-computer/">Ignition</a> and <a href="https://www.idownloadblog.com/2020/01/23/how-to-unc0ver-ios-ninja/">iOS Ninja</a> are some of the most popular, many tend to forget that you can use Apple’s own Xcode development platform on the Mac to accomplish this task.</p><p>The <a href="https://www.idownloadblog.com/tag/xcode/">Xcode</a> method came in clutch for me countless times <a href="https://www.idownloadblog.com/2019/11/19/saurik-cydia-impactor-xcode-7-3-error/">when Cydia Impactor stopped working for an extended period</a> and when all the best signing services had been revoked; to make matters worse, my handset’s iOS version was too old to run AltStore. With that in mind, we’ll be sharing the Xcode method in this tutorial for fellow jailbreakers that find themselves in similar predicaments down the road.</p><h3>What you’ll need</h3><p>Using Xcode to side-load your jailbreak can be a great deal more convoluted and time-consuming than using the easier methods above, but it also tends to be a lot more reliable. To make this work, you’ll need the following things:</p><ul><li>A Mac</li><li>A <a href="https://www.idownloadblog.com/jailbreak">jailbreakable</a> iOS device</li><li>An MFi-certified Lightning to USB cable</li><li>A free Apple developer account</li><li>The <a href="https://apps.apple.com/us/app/xcode/id497799835?mt=12">latest version of Xcode</a></li><li>The <a href="https://dantheman827.github.io/ios-app-signer/">latest version of iOS app signer</a></li><li>The latest version of the side-loadable jailbreak app you intend to use</li></ul><p>We’ll be using the unc0ver jailbreak throughout this tutorial because it’s the newest jailbreak available, but if you prefer, you can also use this method to side-load Chimera for iOS 12 or Electra for iOS 11.</p><p>After you’ve gathered what you need, you can move on to the next section of this tutorial to begin installing your jailbreak. Please be advised, there are a lot of steps.</p><h3>Installing a side-loadable jailbreak app with Xcode</h3><p>When you’re ready to install your side-loadable jailbreak app with Xcode, then follow these steps:</p><p><strong>1) </strong>Launch Xcode and click the <strong>Create a new Xcode project</strong> button in the startup window:</p><p><strong>2) </strong>Make sure <strong>Single View App</strong> is selected in the next window, then click on the blue <strong>Next</strong> button:</p><p><strong>3) Enter a Product Name, Organization Name, and Organization Identifier</strong> of your choosing, then click on the blue <strong>Next</strong> button. In our example, we call the project “unc0ver” and use “medium” as the Organization and Identifier, but you should use something more original:</p><p><strong>4) </strong>In the next Window, choose your <strong>Desktop</strong> as the place to save files to, then click on the blue <strong>Create</strong> button:</p><p><strong>5) </strong>Plug your jailbreakable iPhone or iPad into your Mac with a MFi-certified <a href="https://www.idownloadblog.com/tag/lightning/">Lightning</a>to USB cable and Trust it from both the device and your Mac if prompted.</p><p><strong>6) </strong>At the top-left of the Xcode window, <strong>click on the drop-down menu</strong> and <strong>select your connected device</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*61IZpI3y7wuoR2em.jpg" /></figure><p><strong>7) </strong>Next, <strong>click on the item at the top of the project tree</strong> with the blue development icon (ours is called unc0ver), then click <strong>Signing &amp; Capabilities</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_sWA4bCL1nV7yPNn.jpg" /></figure><p><strong>8) </strong>Click in the <strong>Teams</strong> drop-down menu and <strong>add a new team or choose an existing team</strong>. In our case, we picked an existing one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UQJzV7F9-_GAdysW.jpg" /></figure><p><em>Note: If you don’t have a team yet, then Xcode may prompt you to sign in with an </em><a href="https://www.idownloadblog.com/tag/apple-id/"><em>Apple ID</em></a><em> associated with a free developer account. Follow the prompts to do so, then select it from the Team drop-down menu and move on to the next step.</em></p><p><strong>9) </strong>Next, you’ll need to do a quick check to make sure you have all the tools you need. Launch <strong>Terminal</strong> and <strong>enter the following command</strong>:</p><pre>xcode-select --install</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fNCNDjLTYLGCirmG.jpg" /></figure><p><em>Note: If you get the error stating “error: command line tools are already installed, use “Software Update” to install updates,” then you’re good to go and can move on to the next step. Otherwise, follow the instructions and save any certificates you’re prompted to save before moving on.</em></p><p><strong>10)</strong> <strong>Launch the iOS App Signer app</strong> that you downloaded earlier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>11) </strong>Click the <strong>Browse</strong> button and <strong>select the jailbreak app .IPA file you downloaded</strong>. In this case, we’re using the unc0ver app we downloaded from <em>unc0ver.dev</em>.</p><p><strong>12)</strong> <strong>Set</strong> your Apple ID as the Signing Certificate, select your app identifier for the Provisioning Profile, and enter an App Display Name and App Version. Once finished, click on the <strong>Start</strong> button.</p><p><em>Note: Do not leave the Provisioning Profile field on Re-Sign. This does nothing and it won’t work.</em></p><p><strong>13) </strong>You will now be prompted to save your signed .IPA file somewhere. Choose your <strong>Desktop</strong> and click the blue <strong>Save</strong> button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*3X-aeu7HLIYUeTdo.jpg" /></figure><p><em>Note: A signed .IPA file will be saved to your Desktop. We will now use Xcode to side-load this app to your iPhone or iPad for jailbreak deployment.</em></p><p><strong>14) </strong>Now, go back to Xcode and navigate to <strong><em>Window -&gt; Devices and Simulators</em></strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>15) </strong>In the new window, make sure that your iPhone is selected in the sidebar on the left, and then click on the <strong>+</strong> button near the bottom of the window:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>16) </strong>A new window appears, go to your <strong>Desktop</strong> and <strong>select the signed .IPA file</strong> you created earlier, then click on the blue <strong>Open</strong> button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><em>Note: Xcode will now install the custom .IPA on your iPhone or iPad. When complete, the app should appear in the Installed Apps list, like so:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rmriQNix0CDI6rSr.jpg" /></figure><p><strong>17) </strong>Once installed, go to <strong><em>Settings → General → Device Management</em></strong> on your iPhone or iPad and tap on the Apple Development Apple ID option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p><strong>18) </strong>Next, tap on the <em>blue</em> <strong>Trust</strong> button, and then tap on the <em>red</em> <strong>Trust</strong> button inside the popup that appears:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k2bf7rLM67Ci65UR.jpg" /></figure><p><em>Note: The jailbreak app is now installed and trusted, and you’re now free to launch and use it.</em></p><p><strong>19) </strong>Return to the Home screen and <strong>launch</strong> the newly-installed jailbreak app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*3I17lvm7YffNQVC8.jpg" /></figure><p><strong>20) </strong>Tap on the <strong>Jailbreak</strong> button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Once finished, you are officially jailbroken and can install add-ons and <a href="https://www.idownloadblog.com/tag/jailbreak-apps-tweaks/">jailbreak tweaks</a> from the pre-installed package manager.</p><h3>Conclusion</h3><p>The Xcode method isn’t as fast or convenient as the other methods for installing side-loadable jailbreaks, but it hasn’t let me down yet. In the event that Cydia Impactor stops working again, or any of the signing services stop working, it’s a great backup method to get you up and running again. It can also help familiarize you with the Xcode interface if you’ve never used Apple’s development tools before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fd0ae815cfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Penetration/Pen Testing — Exploring Frida & Objection on Non-Jailbroken Devices without…]]></title>
            <link>https://sachinkhard.medium.com/penetration-pen-testing-exploring-frida-objection-on-non-jailbroken-devices-without-b34b35edcb26?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/b34b35edcb26</guid>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 06:36:03 GMT</pubDate>
            <atom:updated>2024-09-24T10:47:40.966Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://sachinkhard.medium.com/static-analysis-of-ios-source-code-using-mobsf-92eed1cf3da0">Penetration/Pen Testing</a> — Exploring Frida &amp; Objection on Non-Jailbroken Devices without Application Patching</h3><p>To perform fingerprint bypasses, SSL Pinning bypasses, dumping keychain data, running custom Frida script, or perform runtime manipulation in multiple cases, Can we run Frida &amp; objection on the non-jailbroken iDevice? Can we perform Frida tracing? Can we inject our own Frida scripts? and many more things that we do on our jailbroken iDevices. The answer is Yes, and the Solution for it is “libimobiledevice”. So in this Part 2, we will see How we can <strong>Run Frida &amp; Objection on the Non-Jailbroken Device without patching the Application</strong>!</p><blockquote><strong><em>What is libimobiledevice?</em></strong></blockquote><p>A cross-platform protocol library to communicate with iOS devices using native protocols.</p><blockquote><strong><em>There are 2 methods to use Frida on the Non-Jailbroken Device:</em></strong></blockquote><ul><li><strong>Without Patching the Application: (Windows/Linux/MacBook)</strong></li><li><strong>Patching the Application: (Windows/Linux/MacBook): </strong>This method is the common method and many security experts have already explained it in different articles so not covering it in this article.</li></ul><blockquote><strong><em>What is Frida?</em></strong></blockquote><p>Frida is a Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers.</p><blockquote><strong><em>What can we do with Frida?</em></strong></blockquote><ul><li>Can Inject our own scripts into black box processes.</li><li>Can hook into any function, spy on crypto APIs, or trace private application code, no source code is needed.</li><li>Can edit, hit save, and instantly see the results. All without compilation steps or program restarts.</li></ul><p>Note: This method can be applied to all the applications which are debuggable.</p><blockquote><strong><em>Without Patching the Application: (Windows/Linux/MacBook):</em></strong></blockquote><p><strong>Pre-Requisite:</strong></p><ul><li>The iOS device should have iOS 13 or 13+ iOS version.</li><li>The Developer Disk Image must be mounted. Xcode will mount it automatically as soon as it discovers the iOS USB device, but you can also do it manually by using ideviceimagemounter.</li><li>Download the latest Gadget and it should be kept in the user’s cache directory.</li><li><strong>User’s cache directory Windows:</strong></li></ul><p>C:\Users\{yourusername}\AppData\Local\Microsoft\Windows\INetCache\frida\gadget-ios.dylib</p><ul><li><strong>User’s cache directory Linux:</strong></li></ul><p>/root/.cache/frida/gadget-android-arm64.so</p><ul><li><strong>User’s cache directory macOS:</strong></li></ul><p>~/.cache/frida/gadget-ios.dylib</p><ul><li>Lightning cable (for connecting the device to your computer).</li></ul><blockquote><strong><em>Steps to Install Frida on Windows/Linux/Mac machine:</em></strong></blockquote><p>Install the latest Frida and objection in your system by using the below-mentioned command:</p><p>While writing this article the latest version for Frida is 16.1.3</p><pre>pip3 install frida<br>pip3 install frida-tools<br>pip3 install objection</pre><blockquote><strong><em>Download libimobiledevice:</em></strong></blockquote><p><strong>A. For Windows machines</strong> —</p><p>Navigate to the below-mentioned URL and download libimobiledevice (libimobiledevice.1.2.1-r1122-win-x64.zip):</p><pre>https://github.com/libimobiledevice-win32/imobiledevice-net/releases/</pre><p>Extract the “libimobiledevice.1.2.1-r1122-win-x64.zip” file contents and open the command prompt in the same directory. (If you want to access this tool from any location in the machine you can set the “libimobiledevice.1.2.1-r1122-win-x64” path to Windows Environment Variables).</p><p><strong>B. For Linux Machines —</strong></p><p>Navigate to below-mentioned URL and follow the steps to install libimobiledevice:</p><p><strong>Install Dependencies:</strong></p><p>Open the terminal and enter the below-mentioned commands:</p><pre>$ sudo apt-get install \<br>    build-essential \<br>    checkinstall \<br>    git \<br>    autoconf \<br>    automake \<br>    libtool-bin \<br>    libplist-dev \<br>    libimobiledevice-glue-dev \<br>    libusbmuxd-dev \<br>    libssl-dev \<br>    usbmuxd</pre><p><strong>Build:</strong></p><p>Enter the below-mentioned commands to build:</p><pre>$ ./autogen.sh \<br>    --prefix=/opt/local \<br>    --enable-debug<br>$ make</pre><p><strong>Install:</strong></p><p>Enter the below-mentioned commands to install:</p><pre>$ sudo make install</pre><p><strong>C. For a Mac machine —</strong></p><p>Enter the below-mentioned command to install libimobiledevice:</p><pre>brew install libimobiledevice</pre><blockquote><strong><em>Download the Developer Disk Image:</em></strong></blockquote><p>Navigate to the below-mentioned GitHub repository and download the developer disk images according to your iPhone’s iOS version. Here I am downloading 16.1.zip.</p><pre>https://github.com/mspvirajpatel/Xcode_Developer_Disk_Images/releases/</pre><p>or</p><pre>https://github.com/haikieu/xcode-developer-disk-image-all-platforms/tree/master/DiskImages/iPhoneOS.platform/DeviceSupport</pre><p>Note: If your iOS version does not have a developer disk image available, you should select the version immediately preceding it for downloading or any relevant purposes.</p><p>Extract the content of the downloaded 16.1 zip file.</p><p><strong>Let’s confirm if the tool is functioning properly or not:</strong></p><p>Connect your iOS device to your Windows machine.</p><p>Observe that the connected iDevice is non-jailbroken.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1MMnGE1PKK0SFE3C.png" /></figure><p>Open the command prompt and enter the below-mentioned command:</p><pre>idevicepair pair</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B5ucfuUj84TuDRBr.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*0LAYlww-r6XTjtYb.png" /></figure><p>Check your iDevice it will be prompted you with a popup window to “Trust This Computer” Click on the “Trust” button.</p><p>Run the same command again and observe the output on the command prompt, it will show that the iDevice is connected properly now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RJZmmnCLSIy-0cst.png" /></figure><blockquote><strong><em>Mounting the Developer Disk Image on the Non-Jailbroken iDevice:</em></strong></blockquote><p>Navigate to the extracted folder of Developer Disk Image and open the command prompt in the same folder.</p><p>Enter the below-mentioned command to mount the developer disk image:</p><pre>For help: ideviceimagemounter -h<br>Usage: ideviceimagemounter [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE<br>Example: ideviceimagemounter.exe -t Developer DeveloperDiskImage.dmg DeveloperDiskImage.dmg.signature</pre><p>Once the developer disk image is properly mounted command prompt will look like as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wX_yCBhqDlcqyXjj.png" /></figure><p>Or</p><p>Enter the below-mentioned command to List mount information:</p><pre>ideviceimagemounter -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Nv-hANTkhLuSiksP.png" /></figure><blockquote><strong><em>Running Frida on the Non-Jailbroken iDevice:</em></strong></blockquote><p>For demonstration purposes, I am using the DVIA v2.0 iOS application. You can navigate to the below-mentioned repository and install the application into your non-jailbroken iDevice using Sideloadly.</p><p>DVIA v2: -</p><pre>https://github.com/prateek147/DVIA-v2/releases/tag/v2.0</pre><p>Sideloadly:</p><pre>https://sideloadly.io/#download</pre><p>Setup fingerprint/faceid on your iDevice.</p><p>Launch the DVIA v2 application and navigate to the “Touch/Face ID Bypass” module.</p><p>Click on the “Swift Implementation” button and try to provide the wrong fingerprint/faceid and then click on the cancel button.</p><p>Observe that application responded with an error “Authentication Failed”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*iOTqA8wRLP3UUkrR.png" /></figure><p>Open the command prompt and run the below-mentioned command to list all the running processes with the application package name.</p><pre>frida-ps -Ua</pre><p>Once you get the application package name as the output of the previous command, issue the following command to bypass fingerprint/faceid authentication.</p><pre>frida -U -f com.highaltitudehacks.DVIAswiftv2 -l bio3.js</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T6LVaL2SEVNlcD5y.png" /></figure><p>Repeat step 2.</p><p>Observe on the command prompt that Frida changed the result value to true, which indicates that the fingerprint/faceid authentication has been bypassed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*oqBOeuHYznBZ2A15.png" /></figure><p>Similarly, we can inject our own scripts to perform testing.</p><blockquote><strong><em>Running Objection on the Non-Jailbroken iDevice:</em></strong></blockquote><p>Navigate to the below-mentioned URL and download the (frida-gadget-16.1.3-ios-universal.dylib.xz) file.</p><pre>https://github.com/frida/frida/releases</pre><p>Extract the contents of the “frida-gadget-16.1.3-ios-universal.dylib.xz” file and rename “frida-gadget-16.1.3-ios-universal.dylib” to “gadget-ios.dylib” and move this file to a below-mentioned folder. If Frida folder is not created you can create it manually.</p><pre>C:\Users\AkashKatare\AppData\Local\Microsoft\Windows\INetCache\frida\</pre><p>For demonstration purposes, I am using the DVIA v2.0 iOS application.</p><p>Launch the DVIA v2 application and follow the below-mentioned functional path:</p><p>Local Data Storage -&gt; Keychain</p><p>Enter some value and click on the “Save in Keychain” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*_AHoI5FZF2w7vHIG.png" /></figure><p>Enter the below-mentioned command to inject Frida Gadget into the process and start the objection:</p><pre>objection -g com.highaltitudehacks.DVIAswiftv2 explore</pre><p>Enter the below-mentioned command to Dump the keychain Data:</p><pre># ios keychain dump --json dvikeychain.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wHz1LbcIwS21no3r.png" /></figure><p>Open the dumped JSON file in any text editor and observe that the sensitive data is being got stored in the keychain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3IwbGf7NBaL_bEEb.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b34b35edcb26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Penetration/Pen Testing — Assessing Security Risks of Local Storage in Non-Jailbroken iOS Devices]]></title>
            <link>https://sachinkhard.medium.com/penetration-pen-testing-assessing-security-risks-of-local-storage-in-non-jailbroken-ios-devices-c539375d9b49?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/c539375d9b49</guid>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 06:31:40 GMT</pubDate>
            <atom:updated>2024-09-24T06:31:40.523Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/@sachinkhard/static-analysis-of-ios-source-code-using-mobsf-92eed1cf3da0?source=your_stories_page-------------------------------------">Penetration/Pen Testing</a> — Assessing Security Risks of Local Storage in Non-Jailbroken iOS Devices</h3><p>Hi everyone, while doing iOS application penetration testing you may have come across a situation where you don’t have the jailbroken iDevice. In such cases, a question always arises in the mind that How can we check <strong>Local Storage</strong> related vulnerabilities on the non-jailbroken iDevice? The solution is <strong>FilzaEscaped</strong>. In this article, I’ll explain how can we access the iDevice’s root filesystem <strong>without jailbreaking the iDevice </strong>and check for the Local Storage related vulnerabilities.</p><blockquote><strong><em>What is FilzaEscaped?:</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*soCK0PqjU-pVwd57.jpeg" /></figure><ul><li><strong>FizaEscaped </strong>is an iOS <strong>File Manager with Root Access</strong>. With the help of the FilzaEscaped iOS application, you can access the device’s root filesystem <strong>without jailbreaking the iDevice</strong>. Also, <strong>utilizing it does not violate your warranty.</strong> <strong>Without jailbreaking the phone or iPad, you can still make the changes in the iPhone or iPad root filesystem you need to.</strong></li><li>FilzaEscaped app is packed with file viewers including a Media player, Hex editor, Text editor, SQLite Editor, IPA Installer, DEB Installer, Web viewer, Terminal, etc. Use the app to compress files to ZIP format, and decompress ZIP, 7, RAR, TAR, TAR.GZ, and GZ archives. FilzaEscaped can also extract DEB/IPA files, view DEB/IPA file information, download a normal file, and copy the HTML link to Pasteboard</li></ul><blockquote><strong><em>By using this FilzaEscaped we can perform the testing against the following vulnerabilities without Jailbreaking the iDevice:</em></strong></blockquote><ol><li>Local Data Storage</li><li>Excessive Permissions</li><li>Binary Protection</li><li>Side Channel Data Leakage</li></ol><blockquote><strong><em>How to install FilzaEscaped on a Non-Jailbroken device: (Currently using FilzaEscaped16): (Perfectly working till iOS version 16.1.1):</em></strong></blockquote><ul><li>Download FilzaEscaped from the below-mentioned link:</li><li><a href="https://basvtdevelopments.com/filzaescaped">https://basvtdevelopments.com/filzaescaped</a> or <a href="https://drive.google.com/file/d/1RbyOw9WdARdIggEqL9lG23RhXLviW8wa/view?usp=sharing">https://drive.google.com/file/d/1RbyOw9WdARdIggEqL9lG23RhXLviW8wa/view?usp=sharing</a></li><li>Download Sideloadly using the below-mentioned link:</li><li><a href="https://sideloadly.io/">https://sideloadly.io/</a></li><li>Launch Sideloadly and install FilzaEscaped16.ipa on your non-jailbroken iDevice.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f35RSRmK1QdX7_Sy.png" /></figure><ul><li>Navigate to Settings -&gt; General -&gt; Device Management and trust the developer of the FILZAESCAPED application.</li><li>Launch the “FilzaEscaped” application.</li><li>Give access to Read Write permission access to FilzaEscaped (“REQUEST_ACCESS_SERVICE_com.apple.app-sandbox.read-write”).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*1-bQEV4cTGVobI61.png" /></figure><ul><li>Now you can access all the iOS directories your required directories to perform above mentioned test cases:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*1V_s967tzFFhHLig.png" /></figure><ul><li>Visit Directories and check if are you able to access it or not:</li><li><strong>App Store Applications are installed in the below-mentioned directory:</strong></li><li>/var/containers/Bundle/Application/&lt;UID&gt;/</li><li><strong>Data Directory:</strong></li><li>/var/mobile/Containers/Data/Application/&lt;UID&gt;/</li><li><strong>Shared Data Directory:</strong></li><li>/var/mobile/Containers/Shared/AppGroup/&lt;UID&gt;/</li></ul><blockquote><strong><em>For Example:</em></strong></blockquote><ul><li>Download the “DVIA-v2” application using the below-mentioned link:</li><li><a href="https://github.com/prateek147/DVIA-v2/releases">https://github.com/prateek147/DVIA-v2/releases</a></li><li>Install it using “Sideloadly”.</li><li>Go to Settings -&gt; General -&gt; Device Management and trust the developer of the “DVIA-v2” application.</li><li>Launch the “DVIA-v2” application.</li><li>Click on the left side “humberburg menu” and select Local Data Storage to add some data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/0*zdC7rSCgzofO7j-Y.png" /></figure><ul><li>Navigate to /var/mobile/Containers/Data/Application/&lt;UID&gt;/Documents/userInfo.plist</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/0*YU-LS3uLNAiIBmG_.png" /></figure><ul><li>Click on the userinfo.plist and you can see the saved data in the file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*UM6QF_Je94Gq4x66.png" /></figure><ul><li>Through this, we can access any files and check for all the local storage information, and files sensitive information.</li></ul><blockquote><strong><em>Pulling Out the application binary using FilzaEscaped in case the application is installed from the AppStore or TestFlight and the client hasn’t provided you the .ipa file:</em></strong></blockquote><ul><li>Navigate to the below-mentioned functional Path:</li><li>/var/containers/Bundle/Application/&lt;APP_UUID&gt;/DVIA-v2.app</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*zoSDKamGxDQZK8Nn.png" /></figure><ul><li>Follow the below-mentioned functional path to login into your OneDrive/google drive account:</li><li>Settings -&gt; Accounts -&gt; Add Accounts -&gt; OneDrive</li><li>Log in using your OneDrive/google drive account.</li><li>Repeat Step 1, select the binary file, and click on the copy button. Or if you want to you can zip the entire folder and transfer it also.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/0*p6Q0r1YQcGeIXmrC.png" /></figure><ul><li>Repeat Step 2, select the account, and click on the Pasteboard button to upload the binary to OneDrive/google drive.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*dD_t9X566C-ANZBU.png" /></figure><ul><li>Observe that the binary file has been uploaded on the drive.</li><li>On your pc log in using OneDrive or google drive and download the uploaded binary.</li><li>Transfer this binary to any jailbroken device into any path or you can create the same path as non-jb in the jailbroken device like below or run can use MacBook to run otool, nm, strings related test cases:</li><li>/var/containers/Bundle/Application/&lt;APP_UUID&gt;/DVIA-v2.app</li><li>Follow this page to get to know how to install DarwinCC Tools on a jailbroken device and run otool, nm, strings related commands without MacBook.</li></ul><p>In this way, you can copy all the contents from <strong>Data Directory </strong>and check that is there any Sensitive Data is getting Stored in an Unencrypted manner in User Defaults Plist files, WebView Cache files, Local Storage, etc. Once the application<strong>’s</strong> binary is pulled out<strong>,</strong> can also check<strong> </strong>whether the binary-related protection has been enabled or not like:</p><ul><li>Application binary compiled without Stack Canaries, stack smashing protection, or not</li><li>Application binary compiled without ARC flag or not</li><li>Application binary compiled without PIE ASLR flag or not</li><li>Use of any weak hashing algorithm in the binary like MD5 and SHA1</li><li>Use of Banned/Deprecated APIs have been used or not</li><li>Application Binary is encrypted or not</li><li>You can run the strings command on the application binary and check for Sensitive Data in Strings</li><li>You can run the nm command on the application binary and check for Symbol Information available or not</li><li>You can also check for any Unnecessary permissions requested by the application</li></ul><p>Can use the Ghidra/hopper/radare2/IDAPro disassembler tools to check for vulnerabilities like:</p><ul><li>Binary Obfuscation is implemented or not</li><li>Pseudo-Random Number Generator Used or not</li></ul><p>can pull out .db, .txt, .pdf, .plist, .js, screenshot, cache, and cookies, and you can open these files using respective tools like the <a href="https://sqlitebrowser.org/">DB Browser for SQLite</a>, notepad, <a href="http://www.icopybot.com/plist-editor.htm">plist editor</a>, to check if any sensitive data getting stored in the application Local Storage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c539375d9b49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Penetration/Pen Testing — Static Analysis of iOS IPA/Source Code Using MobSF]]></title>
            <link>https://sachinkhard.medium.com/static-analysis-of-ios-source-code-using-mobsf-92eed1cf3da0?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/92eed1cf3da0</guid>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Fri, 05 Jan 2024 08:41:58 GMT</pubDate>
            <atom:updated>2024-09-24T06:32:27.032Z</atom:updated>
            <content:encoded><![CDATA[<p>Mobile Security Framework (MobSF) is a security research platform for mobile applications in Android, iOS and Windows Mobile. MobSF can be used for a variety of use cases such as mobile application security, penetration testing, malware analysis, and privacy analysis. The Static Analyzer supports popular mobile app binaries like APK, IPA, APPX and source code. Meanwhile, the Dynamic Analyzer supports both Android and iOS applications and offers a platform for interactive instrumented testing, runtime data and network traffic analysis. MobSF seamlessly integrates with your DevSecOps or CI/CD pipeline, facilitated by REST APIs and CLI tools, enhancing your security workflow with ease.</p><p>Ref — <a href="https://github.com/MobSF/Mobile-Security-Framework-MobSF">https://github.com/MobSF/Mobile-Security-Framework-MobSF</a></p><p>This tutorial covers MobSF installation on macOS systems.</p><h4>Step 1: Download the MobSF installer on the system</h4><p>Open terminal and choose any location and hit below command -</p><pre>git clone https://github.com/MobSF/Mobile-Security-Framework-MobSF.git</pre><h4>Step 2: Change the directory by using the cd command</h4><pre>cd Mobile-Security-Framework-MobSF</pre><h4>Step 3: Run</h4><pre>./setup.sh</pre><p>If Got Error like -</p><blockquote>[ERROR] MobSF dependencies require Python 3.10/3.11. You have Python version 3.9.6 or python3 points to Python 3.9.6.</blockquote><p>Update/install relevant version of Python from — <a href="https://www.python.org/downloads/macos/">https://www.python.org/downloads/macos/</a></p><p>Quit terminal and Open again. Now Check Python version</p><p>python3 — version</p><p>If version match as per above error requirement. Again execute step 3.</p><h4>Step 4: After successful installation. Shoot below command to run MobSF.</h4><pre>./run.sh 127.0.0.1:8000</pre><p>Now, you can access MobSF by browsing <a href="http://localhost:8000/">http://localhost:8000/</a> like below screenshot -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNxt-vycvYRubXoOm-y1KQ.png" /></figure><p>Now you can upload your IPA file or source code zipped file for static analysis.</p><p>The tool will give you a report containing all possible vulnerabilities found in the vulnerable application. Security Analyst needs to verify all vulnerabilities provided by the tool and identify false positives.</p><p>MobSF is a versatile tool and helps in the early start of the analysis of mobile applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92eed1cf3da0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Localize the LaunchScreen in iOS?]]></title>
            <link>https://sachinkhard.medium.com/how-to-localize-the-launchscreen-in-ios-5edd01c9256b?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/5edd01c9256b</guid>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 10:24:10 GMT</pubDate>
            <atom:updated>2023-12-19T10:26:03.007Z</atom:updated>
            <content:encoded><![CDATA[<p>Avoid including text on your launch screen. Because the content in a launch screen doesn’t change, any text you display won’t be localized.</p><p>Referefce — <a href="https://developer-mdn.apple.com/design/human-interface-guidelines/patterns/launching#launch-screens/">https://developer-mdn.apple.com/design/human-interface-guidelines/patterns/launching#launch-screens/</a></p><p><a href="https://developer-mdn.apple.com/localization/">https://developer-mdn.apple.com/localization/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5edd01c9256b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to integrate Sonar (SonarQube) with iOS Project?]]></title>
            <link>https://sachinkhard.medium.com/how-to-integrate-sonar-sonarqube-with-ios-project-3fd51e01d3ad?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fd51e01d3ad</guid>
            <category><![CDATA[sonarqube]]></category>
            <category><![CDATA[sonar]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Thu, 12 Aug 2021 11:56:55 GMT</pubDate>
            <atom:updated>2021-08-12T11:56:55.300Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Step 1: Download and setup SonarQube</strong></p><ol><li>Go to SonarQube website : <a href="https://www.sonarqube.org/downloads/">https://www.sonarqube.org/downloads/</a></li><li>Select Developer Edition and start Free Trial. [Note you need to purchase full license for full integration and check sonar dashboard]</li><li>Click Download and accept T&amp;C.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/152/1*PozYjlHcOGldDFmK6JZCUA.png" /></figure><p>4. Unzip downloaded file.<br>5. Move downloaded file under /Applications/ directory.<br>6. Rename folder to SonarQube.</p><p><strong>Step 2: Download and setup SonarScanner</strong></p><ol><li>Download SonarScanner from: <a href="https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/">https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/</a></li></ol><p>Select <strong>Mac OS X 64 bit </strong>and Download Mac OS X specific SonarScanner</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*icGsckGjj39hY7WuYBu8IA.png" /></figure><p>2. Unzip downloaded file.<br>3. Move downloaded file under /Applications/ directory.<br>4. Rename folder to <strong>SonarScanner</strong>.</p><p><strong>Step 3: Update .bash_profile with new path<br></strong>1. Open Terminal and run following command.<br><em>$ </em><strong><em>cd ~/</em></strong><em><br>$ </em><strong><em>vi .bash_profile<br></em></strong>2. Above commands will open your <strong>bash_profile</strong> in vi editor.<br>3. Use down-arrow key to jump to last line.<br>4. Use left-right arrows to navigate to last character.<br>5. Press <strong>i</strong> to enable insert mode.<br>6. Copy &amp; paste following lines.<br><strong><em># Sonar Setting<br>export PATH=$PATH:/Applications/SonarScanner/bin<br>export PATH=$PATH:/Applications/SonarQube/bin<br></em></strong>7. Press <strong>esc</strong> key and : will appear at bottom-left corner in vi editor. [If : does not appear press <strong>w+q+shift+! </strong>keys at once and remove any character typed after :]<br>8. Type <strong>wq! </strong>keys and press enter to save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*fMkVD8qUFtk76d9lN6LtdA.png" /></figure><p>If you face any issues like below —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*0mYxxBXcl_JDDyglHS85-Q.png" /></figure><p>Type R and press enter multiple times until you see —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*bvmgLYOokka8woxeEheucA.png" /></figure><p>If you see the paths are not correct as mentioned earlier, repeat from step 3.</p><p><strong>Step 4: Starting up SonarQube</strong></p><ol><li>Open Terminal and run following command to start SonarQube server.</li></ol><p><strong><em>sh /Applications/SonarQube/bin/macosx-universal-64/sonar.sh console</em></strong></p><p>2. Your console will look like below if everything goes well -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*VL8C7OA5trcT_tc8uE161Q.png" /></figure><p><strong>Step 5: Open <em>SonarQube Dashboard</em><br></strong>1. Go to browser. Open following URL.<br><a href="http://localhost:9000/about"><strong><em>http://localhost:9000/about</em></strong></a><strong><em><br></em></strong>2. Click on Log in.<br>3. Use <strong>admin</strong> as username, <strong>admin</strong> as password.</p><p>Note — For first time setup it will ask you to change your password after step 3.</p><p>4. Now you have to create a project in Dashboard —</p><p>A). Enter your project display name and click setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*2pyWQRaacqN3w4ZwzRINIQ.png" /></figure><p>B). Select locally, if you want to analyse your local code on your machine —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*suUgecKZtlIxVpTnYgQ8xA.png" /></figure><p>C). Enter any token name to generate token and click continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*3vaFavJjUuw7cl6hkWR0vw.png" /></figure><p>Now <strong><em>SonarQube</em></strong> server setup is done. Now we will integrate this with your XCode project.</p><p><strong>Step 6: Integrate with XCode project</strong></p><ol><li>Hope you already have XCode project [If not, create one]. Open XCode project</li><li>Edit project scheme, Select Test and Check <strong>Gather code coverage for all target</strong>. [Do this if you have test targets]</li><li>Create <strong>sonar-project.properties </strong>file in your project root directory and copy below content and paste in your file -</li></ol><p># Sonar Server details</p><p>sonar.host.url=http://localhost:9000</p><p>sonar.login=admin</p><p>#use your latest password, if you have changed in <strong>Step 5 — Point 3</strong></p><p>sonar.password=admin</p><p># must be unique in a given SonarQube instance</p><p>sonar.projectKey=test</p><p># — — optional properties — -</p><p># defaults to project key</p><p>#sonar.projectName=test</p><p># defaults to ‘not provided’</p><p>#sonar.projectVersion=1.0</p><p># Path is relative to the sonar-project.properties file. Defaults to .</p><p>sonar.sources=.</p><p># Encoding of the source code. Default is default system encoding</p><p>sonar.sourceEncoding=UTF-8</p><p># Xcode project configuration (.xcodeproj)</p><p># and use the later to specify which project(s) to include in the analysis (comma separated list)</p><p># Specify either xcodeproj or xcodeproj + xcworkspace</p><p>sonar.swift.project=test.xcodeproj</p><p>sonar.swift.workspace=test.xcworkspace</p><p># Scheme to build your application</p><p>sonar.swift.appScheme=test</p><p># Destination Simulator to run surefire</p><p># As string expected in destination argument of xcodebuild command</p><p># Example = sonar.swift.simulator=platform=iOS Simulator,name=iPhone 7,OS=12.0</p><p>sonar.swift.simulator=platform=iOS Simulator,name=iPhone 12 Pro Max,OS=14.2</p><p># Exclude directories</p><p># sonar.test.inclusions=**/*Test*/**</p><p># sonar.test.inclusions=*.swift</p><p>sonar.exclusions=**/*.xml,Pods/**/*,Reports/**/*</p><p>sonar.inclusions=*.swift</p><p># Path to test directories (comment if no test)</p><p># sonar.tests=testTests,testUITests</p><p>4. Open Terminal and cd to your project root directory</p><p>5. Run following command to start SonarScanner on your project.</p><p>sh /Applications/SonarScanner/bin/sonar-scanner</p><p>and SonarScanner will perform successful execution like below console —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*FfT3qsP0VNLPphvjWlScLQ.png" /></figure><p>Since this is your non-licensed <strong>SonarQube </strong>so your dashboard will automatically refresh as below —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*fHjArWRxaNEkPGQ0YVheSA.png" /></figure><p>If you have licensed version of <strong>SonarQube</strong>, Your dashboard will have information like —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vd3rqu5NGkvyAfMnHwXxaw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fd51e01d3ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to distribute iOS application via your own server?]]></title>
            <link>https://sachinkhard.medium.com/how-to-distribute-ios-application-via-your-own-server-ba7467657e7f?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba7467657e7f</guid>
            <category><![CDATA[ipa]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[distribute-ios-app]]></category>
            <category><![CDATA[install-ios-app]]></category>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 06:45:42 GMT</pubDate>
            <atom:updated>2021-08-11T09:21:08.761Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Follow below link to create your own server, if you don’t have any -</li></ol><p><a href="https://sachinkhard.medium.com/how-to-host-files-by-creating-your-own-server-4155a00d765b">How to host files by creating your own server?</a></p><p>2. Create the .ipa file from XCode and place it at server path like — https://dce16f5bd1fa.ngrok.io/Application.ipa</p><p>3. Create the manifest.plist file like —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*gABnQfGtFcWkWWhwmOHSYA.png" /></figure><p>Here -</p><p>A). url (https://dce16f5bd1fa.ngrok.io/Application.ipa) should be changed to your Application.ipa file location.</p><p>B). bundle-version should be changed to version of your app</p><p>C). bundle-identifier (com.ss.ss) should be changed to bundle-identifier of your app</p><p>D). title should be changed to name of your application</p><p>E). place it at server path like — https://dce16f5bd1fa.ngrok.io/manifest.plist</p><p>4. Create a sample download.html file like —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*7v_wOMWhQO_JeajZvXSCQw.png" /></figure><p>Here url (https://dce16f5bd1fa.ngrok.io/manifest.plist) should be changed to your manifest.plist file location.</p><p>I have placed all files (Application.ipa, manifest.plist, download.html) in same directory.</p><p>5. Now open the link of download.html file in your iPhone like —</p><p>https://dce16f5bd1fa.ngrok.io/download.html</p><p>and tap on download application and a popup will appear to install the application.</p><p>on tapping install — application will be installed to your iPhone.</p><p>Note — Server should be running on https:// protocol otherwise application will not be downloaded on your iPhone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba7467657e7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to host files by creating your own server?]]></title>
            <link>https://sachinkhard.medium.com/how-to-host-files-by-creating-your-own-server-4155a00d765b?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/4155a00d765b</guid>
            <category><![CDATA[create-server]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 06:13:28 GMT</pubDate>
            <atom:updated>2021-08-11T06:13:28.032Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Create your server using ngrok</li></ol><p>A). Go to ngrok.com and Signup if you don’t have</p><p>B). Download and Install ngrok if you haven’t installed earlier</p><p>C). Open terminal and move to directory where ngrok file is installed [In my case it is in Applications directory]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*G0M4q103qvPM-TvWh-ORQw.png" /></figure><p>D). run - ./ngrok authtoken 1wZ………….66s</p><p>[1wZ………….66s — authtoken received on signup — <a href="https://dashboard.ngrok.com/get-started/setup]">https://dashboard.ngrok.com/get-started/setup]</a>]</p><p>E). run - ./ngrok http file:///Users/macmini/Downloads</p><p>[This will create a server sharing all files in the directory /Users/macmini/Downloads/]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*TxA-M9PNsB89Jx7Pu1U1Zg.png" /></figure><p>2. Now you can put your files like download.html in the directory /Users/macmini/Downloads/download.html</p><p>3. Now you can browse your files like from any machine</p><p><a href="http://dce16f5bd1fa.ngrok.io/download.html">https://dce16f5bd1fa.ngrok.io/download.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4155a00d765b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get an Apple Developer Enterprise License?]]></title>
            <link>https://sachinkhard.medium.com/how-to-get-an-apple-enterprise-app-developer-license-1dc368818c40?source=rss-e92cc1340876------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dc368818c40</guid>
            <category><![CDATA[apple-enterprise]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[apple-developer-program]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[Sachin Khard]]></dc:creator>
            <pubDate>Fri, 06 Aug 2021 07:16:30 GMT</pubDate>
            <atom:updated>2021-08-06T07:21:35.418Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Apple Developer Enterprise Program?</h3><p>The Apple Developer Enterprise Program is a solution that allows large organizations to deploy and develop proprietary and internal-use applications to their employees. The program is for precise use cases that need private distribution directly to employees through secure internal systems or a Mobile Device Management solution.</p><h3>Eligibility</h3><p>Organizations can use this program only for the internal distribution of proprietary apps in some specific cases. These cases should not be effectively addressed with custom apps through Apple Business Manager, public apps on the App Store, or beta testing using TestFlight.</p><p>Here are some major eligibility requirements for the organizations.</p><ul><li>The organization should have 100 or more employees</li><li>The organization should be a legal entity. The program does not accept fictitious business, DBAs, branches, or trade names</li><li>The organization should use the program only to <a href="https://sachinkhard.medium.com/how-to-get-an-apple-enterprise-app-developer-license-1dc368818c40">create in-house apps</a> for internal use and to distribute these apps securely to employees</li><li>The organization should have systems in place to protect membership credentials and assets and to certify only employees download these internal-use apps</li><li>The organization should participate in Apple’s verification interview, evaluation process and pass it</li></ul><p>Now that you know what the eligibility criteria are to apply for Apple Developer Enterprise Program, let us find out how you can start using it.</p><h3>Apple Enterprise Account</h3><p>You need an Apple Enterprise Developer account to distribute internal apps for your company. Here is how you can open an Apple Enterprise Account.</p><ol><li>Visit the Apple Developer Enterprise page and click on ‘Enroll’</li><li>Select ‘Start your Enrollment’</li><li>Log in to your existing Apple Account or else create an Apple ID</li><li>Once you have an Apple ID, verify your contact information</li></ol><p>You have created an Apple Enterprise Account successfully once Apple verifies your Contact Details. It doesn’t take so long to get the Apple Enterprise Account activated. After creating the Apple ID and submitting your Apple Developer Program Enrollment application, this process takes approximately two to four weeks to complete.</p><p><strong>Follow below mentioned steps to get Apple Enterprise App Developer License:</strong></p><ol><li>Go to <a href="https://developer.apple.com/programs/enterprise/">Apple Developer Enterprise </a>, and click on <strong>Enroll</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jl9uLFaJfgXAMJGNt8XP9A.jpeg" /></figure><p>2. Click on <strong>Start your Enrolment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*aSjLYIxMkq31b0iE1G9AcA.jpeg" /></figure><p>3. If you have already created <strong>Apple ID</strong>, <strong>Login</strong>, else <strong>Create Apple ID</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*9F96TNTb3ABEGTVc-PtnXw.jpeg" /></figure><p>4. Fill up the form to create your Apple ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96RdLaN4kCCw5ypLSdun0A.jpeg" /></figure><p>5. Verify your email address</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyXuLVQ7TJ8VfPIRZ-PXkg.jpeg" /></figure><p>6. Go back to the first page <a href="https://developer.apple.com/programs/ios/enterprise/">Apple Developer Enterprise </a>and log in with your new Apple ID. You need to accept Apple’s terms and conditions for becoming a registered apple developer. Review terms and conditions before tick-marking the checkbox to accept Agreement</p><p>7. Review terms and conditions before tick-marking the checkbox to accept Agreement</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*hVOV9muvqcZGqto2aaUe6w.jpeg" /></figure><p>8. You will be redirected to Apple Developer Enterprise Program Enrollment window, select <strong>Entity type</strong> and <strong>Continue</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*TowhWs2laxle6wTIGzGtLg.jpeg" /></figure><p>9. Select <strong>Authority type</strong>, provide mandatory details, and <strong>Continue</strong><br><strong>Note:</strong> You can check your organizationís DUNS number from <a href="https://developer.apple.com/enroll/duns-lookup/#/search">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*UgM5b7xmmzkuyBUVoVR33A.jpeg" /></figure><p>10. Review all details once and <strong>Submit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*VrJicnLNHEt5uUtutq54LA.jpeg" /></figure><p>11. Your enrollment will start processing. Once your authority is verified, Apple will drop you email for further steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*GAASE5s4HJuI0cTeCRSW0g.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dc368818c40" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>