<?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 Steve on Medium]]></title>
        <description><![CDATA[Stories by Steve on Medium]]></description>
        <link>https://medium.com/@H4cker?source=rss-a50855e8d9e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tnDrjSqsV59WsYuhcY18-Q.jpeg</url>
            <title>Stories by Steve on Medium</title>
            <link>https://medium.com/@H4cker?source=rss-a50855e8d9e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 01:18:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@H4cker/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[iOS App performance Series Part — 1]]></title>
            <link>https://medium.com/@H4cker/ios-app-performance-series-part-1-2dc304ba41fd?source=rss-a50855e8d9e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dc304ba41fd</guid>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[ios-developer]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[Steve]]></dc:creator>
            <pubDate>Sat, 12 Jul 2025 06:33:55 GMT</pubDate>
            <atom:updated>2025-07-12T07:13:20.118Z</atom:updated>
            <content:encoded><![CDATA[<h3>iOS App performance Series — Part 1</h3><h3>🚀 Swift Optimization techniques</h3><p>Swift uses different ways to call methods based on how they’re declared. Understanding these dispatch types can help you write faster, more optimized code.</p><h3>🔎 What is Method Dispatch?</h3><blockquote><em>Method dispatch is </em>how Swift decides which function to call<em> when you write something like:</em></blockquote><pre>object.doSomething()</pre><p>Depending on how your method is defined, Swift uses different strategies to resolve the call. Some are faster than others.</p><h3>⚖️ Types of Dispatch in Swift</h3><ol><li>Static Dispatch</li><li>Dynamic Dispatch</li><li>Objective-C Dispatch</li></ol><h3>📊 Dynamic Dispatch (via vtable)</h3><ul><li>Used for regular class methods (not marked final/private)</li><li>Swift uses a vtable (virtual table) to find the method at runtime</li><li>Slower, because methods can be overridden</li></ul><pre>class Animal {<br>    func sound() {<br>        print(&quot;Animal sound&quot;)<br>    }<br>}<br><br>let pet = Animal()<br>pet.sound() // ❌ Dynamic dispatch</pre><h3>✅ Static Dispatch (Direct Call)</h3><ul><li>Compiler knows at compile time exactly which method to call</li><li>Enables optimizations like inlining and skipping lookups</li></ul><p>Occurs when:</p><ul><li>Method is final, private, or static</li><li>Type is struct or enum</li></ul><pre>final class Dog {<br>    func bark() {<br>        print(&quot;Bark!&quot;)<br>    }<br>}<br><br>let d = Dog()<br>d.bark() // ✅ Static dispatch</pre><h3>🔮 Why Does final Help Performance?</h3><p>The final keyword tells the compiler:</p><blockquote><em>“This method/class can’t be overridden.”</em></blockquote><p>This guarantees:</p><ul><li>No dynamic dispatch needed</li><li>Compiler can directly call the function</li><li>Enables aggressive inlining and optimizations</li></ul><h3>✅ When Should You Use final?</h3><p>Use final when:</p><ul><li>✅ You don’t need inheritance</li><li>✅ You want better performance</li><li>✅ You want to lock down class behavior</li></ul><p>Avoid final if:</p><ul><li>❌ You need to subclass or override methods</li></ul><h3>💡 How to Encourage Static Dispatch</h3><p>To help the compiler optimize your code:</p><ul><li>Use final on classes and methods</li><li>Use private for internal methods</li><li>Use static when instance state isn’t required</li><li>Prefer struct and enum over class</li><li>Avoid @objc, dynamic, and open</li><li>Enable Whole Module Optimization in Xcode</li></ul><h3>🔹 Code Example</h3><p>I have created a two classes one marked with final and another without final, then compared both using XCT performance test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-ZXTj705ganQX1cpL3DZw.png" /></figure><ul><li>DispatchA.doJob() → ❌ Dynamic Dispatch</li><li>DispatchB.doJob() → ✅ Static Dispatch</li></ul><h3>🤖 TL;DR</h3><p>Keyword / Type Enables Static Dispatch?</p><ul><li>✅ final</li><li>✅ private</li><li>✅ static</li><li>✅ struct / enum</li><li>❌ @objc, dynamic, open</li></ul><p>Mastering method dispatch and using final strategically leads to:</p><ul><li>🚀 Faster apps</li><li>🧡 More predictable behavior</li><li>📊 Better optimized Swift code</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dc304ba41fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uber Hack in Three Minutes!]]></title>
            <link>https://medium.com/@H4cker/uber-hack-in-one-minute-e88f7ad615c5?source=rss-a50855e8d9e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88f7ad615c5</guid>
            <category><![CDATA[uber-hack]]></category>
            <category><![CDATA[socialengineeringattack]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[uber]]></category>
            <dc:creator><![CDATA[Steve]]></dc:creator>
            <pubDate>Sun, 30 Oct 2022 08:07:29 GMT</pubDate>
            <atom:updated>2022-10-30T08:39:12.023Z</atom:updated>
            <content:encoded><![CDATA[<p>How an Eighteen takes down the Uber!</p><p>Before, getting to know what happened, how he taken down the Uber and what did Uber lost.</p><p>You may skip this…</p><p>(I want you to know Hacking is not an offensive job, it is just like other jobs such Doctors, Engineers. You won’t call doctors as ethical doctors, organ traffic can be done only by doctors so that you won’t abuse every doctors or fear for doctors.</p><p>But, in our case Hackers were abused or judged like they do only offensive things. It is not really happening most of hackers are trying to make the internet secure.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXGY3MDB2T0UVRxGs93p7Q.png" /></figure><blockquote><strong>Announcement</strong></blockquote><p>The Hacker appears made themselves known to Ubers employees by posting a message on company’s internal slack system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ofDPjVJzvkg_xz_RDN-fpQ.png" /></figure><p>Hackers claimed to have gained access to Uber’s systems through login credentials obtained from an employee via social engineering, which allowed them to access an internal company VPN.</p><p>From there, they found PowerShell scripts on Uber’s intranet containing access management credentials that allowed them to breach Uber’s AWS and G Suite</p><blockquote><strong>What is PowerShell scripting used for?</strong></blockquote><p>PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting<br>language.</p><p>What is PowerShell scripting used for?<br>As a scripting language, PowerShell is commonly used for automating the management of systems. It is also used to build, test, and deploy solutions, often in CI/CD environments.</p><blockquote><strong>Attack</strong></blockquote><p>Firstly, Hacker Social Engineered an Uber Employee and got the access to <a href="https://www.geeksforgeeks.org/what-is-intranet/"><em>Intranet</em></a><em>.</em></p><p>On scanning the intranet they found Uber had a network share contained some PowerShell scripts. one of the those scripts had the username and password for an admin user.</p><p>Now, they got credentials but the page had MFA (Multi-Factor Authentication).</p><p>For Bypassing MFA they used <a href="https://www.imperva.com/learn/application-security/social-engineering-attack/">Social Engineering</a> specifically Spoofing.</p><p>He flooded the victim with MFA requests to make him annoyed, then he spoofed text message like an employee of Uber, saying him <em>“there is an issue in MFA. If you feel disturbed, you can turn off until it gets fixed”</em> as its worked victim just turned off MFA.</p><p>Now, he got Domain admin access.</p><blockquote><strong>What he got?</strong></blockquote><p>Customer/Driver credentials (including emails, passwords, credit card details)<br>Security Software<br>Source Code<br>Mail server<br>AWS and G suite<br>Slack server<br>VMware ESXi <br>HackerOne (Other Reported Bugs) and more.</p><blockquote><strong>Why should you know this?</strong></blockquote><p>Before that have you think about the person who allowed this attack possible in Uber. What really happened to him, <em>“He would lose his job, might be screwed up badly by the company. Almost like losing career!”</em></p><p>Never give a chance to happen to you in future.</p><p>Enjoy your work!</p><p>If you want to know “How to be safe in Internet”, follow this page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88f7ad615c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>