<?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 Weichen Gao on Medium]]></title>
        <description><![CDATA[Stories by Weichen Gao on Medium]]></description>
        <link>https://medium.com/@weichengao?source=rss-46bc8cd3e977------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bI4f1VQBZjL6y2JvYbkhgA.png</url>
            <title>Stories by Weichen Gao on Medium</title>
            <link>https://medium.com/@weichengao?source=rss-46bc8cd3e977------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 20:00:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@weichengao/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[How to set static IP in kali linux?]]></title>
            <link>https://weichengao.medium.com/how-to-set-static-ip-in-kali-linux-00381d068e69?source=rss-46bc8cd3e977------2</link>
            <guid isPermaLink="false">https://medium.com/p/00381d068e69</guid>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[Weichen Gao]]></dc:creator>
            <pubDate>Wed, 08 May 2024 09:54:21 GMT</pubDate>
            <atom:updated>2024-05-08T09:54:21.192Z</atom:updated>
            <content:encoded><![CDATA[<p>Step 1: Run as root user</p><pre>┌──(kali㉿kali)-[~]<br>└─# sudo su<br><br>┌──(root㉿kali)-[~]<br>└─# </pre><p>Step 2: Check your current IP configuration</p><pre>┌──(root㉿kali)-[~]<br>└─# ifconfig<br><br>eth0    inet6  fe80::250:xxxx:xxxx:xxxx  ...  ...  ...</pre><p>Step 3: Change eth0’s IP address</p><pre>┌──(root㉿kali)-[~]<br>└─# ifconfig eth0 10.10.10.2<br><br>┌──(root㉿kali)-[~]<br>└─# ifconfig<br><br>eth0    inet  10.10.10.2  netmask 255.0.0.0  broadcast  10.255.255.255</pre><p>OR</p><pre>┌──(root㉿kali)-[~]<br>└─# ifconfig eth0 10.10.10.2 netmask 255.255.255.0 up<br><br>┌──(root㉿kali)-[~]<br>└─# ifconfig<br><br>eth0    inet  10.10.10.2  netmask 255.255.255.0  broadcast  10.255.255.255</pre><p>Step 4: if you need to assign a default gateway</p><pre>┌──(root㉿kali)-[~]<br>└─# route add default gw 10.123.123.1<br><br>┌──(root㉿kali)-[~]<br>└─# ifconfig<br><br>eth0    inet  10.10.10.2  netmask 255.255.255.0  broadcast  10.255.255.255<br><br>┌──(root㉿kali)-[~]<br>└─# route<br><br>Destination  Gateway        Genmask    Flags  ...  IFace<br>default      10.123.123.1    ...        ...   ...  eth0</pre><p>Step 5: if you need to add a DNS server</p><pre>┌──(root㉿kali)-[~]<br>└─# nano /etc/resolv.conf<br><br>┌──(root㉿kali)-[~]<br>└─# cat /etc/resolv.conf<br><br># Generated by NetworkManager<br>search localdomain<br>nameserver  8.8.8.8</pre><p>Step 6: Test Ping with your target IP address</p><pre>┌──(root㉿kali)-[~]<br>└─# ping 10.10.10.3</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00381d068e69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doing API testing with CURL instead of Postman]]></title>
            <link>https://weichengao.medium.com/doing-api-testing-with-curl-instead-of-postman-9b51e5cd1cef?source=rss-46bc8cd3e977------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b51e5cd1cef</guid>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[curl]]></category>
            <dc:creator><![CDATA[Weichen Gao]]></dc:creator>
            <pubDate>Mon, 08 Apr 2024 12:04:39 GMT</pubDate>
            <atom:updated>2024-04-08T12:09:43.785Z</atom:updated>
            <content:encoded><![CDATA[<p>Step 1: test the api endpoint</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t6950K8R_41xSTPAvzi5YQ.png" /></figure><p>Step 2: proxy to burp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIFP03DYEkMyabYpYfjPVg.png" /></figure><p>Step 3: check the burp history</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jHc1OozpYeNsjDP-LY5jtQ.png" /></figure><p>Step 4: continue the API testing via burp</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b51e5cd1cef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[how to root your bluestack emulator (working in 2023)]]></title>
            <link>https://weichengao.medium.com/root-access-for-bluestack-emulator-7639d7604154?source=rss-46bc8cd3e977------2</link>
            <guid isPermaLink="false">https://medium.com/p/7639d7604154</guid>
            <category><![CDATA[bluestacks]]></category>
            <category><![CDATA[android-pentesting]]></category>
            <dc:creator><![CDATA[Weichen Gao]]></dc:creator>
            <pubDate>Wed, 01 Nov 2023 09:50:34 GMT</pubDate>
            <atom:updated>2023-11-01T10:18:26.644Z</atom:updated>
            <content:encoded><![CDATA[<p>Lab environment: Windows host machine</p><p>Step 1: download bluestacks version 5 from <a href="https://www.bluestacks.com/download.html">here</a>.</p><p>Step 2: open Bluestacks Multi-Instance Manager, take note of your emulator name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*VrD3gfv7V0xrV9wkHZWiCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*TqbyMGhGepoP0-7enRdi8Q.png" /></figure><p>Step 3: close the emulator if you open it.</p><p>Step 4: edit the conf file via notepad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*l_KCF7XtPW1ssEUllX38Og.png" /></figure><p>Step 5: search for “bst.feature.rooting=”, change the value from 0 to 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*CxzP2Xb3JM24R0Lr--DOqg.png" /></figure><p>Step 6: search for your emulator name, scroll down to look for “enable_root_access=”, change the value from 0 to 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*b-wMuzp4twGqUTC-caqqiw.png" /></figure><p>Step 6: open emulator, download “root checker basic” from Google Play Store, we can check if we have root access or not via this app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*cVptSBRWB9wj_DHAFenGYA.png" /></figure><ul><li>We obtained root access in bluestacks.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7639d7604154" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Update your Nessus plugins & core components]]></title>
            <link>https://weichengao.medium.com/update-your-nessus-plugins-core-components-fb47d115d219?source=rss-46bc8cd3e977------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb47d115d219</guid>
            <category><![CDATA[nessus]]></category>
            <dc:creator><![CDATA[Weichen Gao]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 10:00:11 GMT</pubDate>
            <atom:updated>2024-02-20T08:28:15.504Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are unable to update your Nessus plugins &amp; core components, this article will help you.</p><h3>My current version</h3><p>Today was 6 Sep 2023, but my last update in Nessus was 26 July 2023:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*rHd9nLDzz-4WmK2bhbEsFQ.png" /></figure><p>Checking my plugin numbers for my current version so i could compare with my updated version:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*biLYRUCeGML_x6UM64IhaQ.png" /></figure><h3>Updating Nessus</h3><p>Step 1: run as root user</p><pre>sudo su</pre><p>Step 2: stop the Nessus service</p><pre>service nessusd stop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*QeDiHIpqu6Mlfm4FQxT9Rg.png" /></figure><p>Step 3: reset the Nessus configuration, they will ask if u want to proceed, type “y”</p><pre>/opt/nessus/sbin/nessuscli fix --reset</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*x_eOL1O8ON23KKdP7MoUgQ.png" /></figure><p>Step 4: start the Nessus service</p><pre>service nessusd start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*w74IV_XMZINeraVWyQnDJw.png" /></figure><p>Step 5: register with your “activation code” again</p><pre>/opt/nessus/sbin/nessuscli fetch --register ABCD-XXXX-YYYY-ZZZZ</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*ZcHi5bOhcg2ls3nAe-7B1A.png" /></figure><p>Step 6: check if our updates are configured properly</p><pre>/opt/nessus/sbin/nessuscli fetch --check</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*yULAuKRGWyUNwvUOBc7DQQ.png" /></figure><p>Step 7: stop the service</p><pre>service nessusd stop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*QeDiHIpqu6Mlfm4FQxT9Rg.png" /></figure><p>Step 8: update the all the nessus core components and plugins</p><pre>/opt/nessus/sbin/nessuscli update --all</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*rgtyXYST5U2S7qR1_W-BjQ.png" /></figure><p>Step 9: open the nessus in browser.</p><p>Navigate to Settings &gt; Overview.</p><p>Under “Plugins” look for the result of “Last Updated”, if it is showing as N/A then it means it is still compiling plugin updates.</p><p>If you mouse over the refresh icon at the top right corner, as shown in the image, you will find the progress of the compiling plugin update.</p><p>Let’s wait for it to finish updating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNldl0NtEBjINKxeWJlF9g.png" /></figure><h3>My updated Nessus</h3><p>My Nessus is updated:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*ZclX_mQr11XZbKmehJKr6Q.png" /></figure><p>Checking the numbers in my plugins, noted there’s new plugins added:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*G4Djfxyxsk2QGChseCRtRA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb47d115d219" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Pentest with Drozer]]></title>
            <link>https://weichengao.medium.com/android-pentest-with-drozer-c9e223653844?source=rss-46bc8cd3e977------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9e223653844</guid>
            <category><![CDATA[mobile-pentesting]]></category>
            <category><![CDATA[android-pentesting]]></category>
            <dc:creator><![CDATA[Weichen Gao]]></dc:creator>
            <pubDate>Sun, 23 Jul 2023 02:26:36 GMT</pubDate>
            <atom:updated>2024-04-08T12:06:53.953Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is Drozer?</strong></h3><p>Drozer is a free and powerful android pentest tool that can be used for dynamic analysis for android application security assessment.</p><h3><strong>[Windows 10] My lab setup</strong></h3><p>I perform my android pentest on my windows 10 host machine, the following are my setups:</p><ol><li>Python v2.7</li><li>Drozer v2.4.4</li><li>Other dependencies</li></ol><pre>pip install protobuf<br>pip install PyOpenssl<br>pip install twisted<br>pip install service_identity</pre><p>4. Drozer agent v2.3.4 apk</p><ul><li>install drozer-agent.apk into android emulator</li></ul><p>5. Nox player (android emulator)</p><p>6. Sieve apk (vulnerable application)</p><h3><strong>[CMD] Start a drozer session</strong></h3><ol><li>open drozer-agent application inside android emulator, toggle it on.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*3py-wqGEKbHXZ9dc00C-jw.png" /></figure><p>2. open CMD inside windows host machine, type the following to establish communication between drozer and drozer-agent.</p><pre>adb forward tcp:31415 tcp:31415</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*7zTKx4KETA1Cda7ExUk0hA.png" /></figure><p>3. open CMD inside windows host machine, type the following to start drozer.</p><pre>drozer console connect</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*h_c2AwIYFbS9gMwdtzCscA.png" /></figure><h3>[Drozer] Find the package name of the vulnerable application</h3><pre>run app.package.list -f &lt;string&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*KNo7zzjtEFoZbRLsB8oq_w.png" /></figure><h3>[Drozer] Show package information</h3><pre>run app.package.info -a &lt;package_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*BYlZsHcwX8if2q0Xt6Uw1Q.png" /></figure><h3>[Drozer] Identify attack surface</h3><pre>run app.package.attacksurface &lt;package_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*xAYfKE-yUsiD3KgfSM7U7g.png" /></figure><h3>[Drozer] Exploit exported activities</h3><h4>List exported activities</h4><pre>run app.activity.info -a &lt;package_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*pUkLgmRW8u_RE-b3tIVmpw.png" /></figure><h4>Invoke exported activities</h4><pre>run app.activity.start -a &lt;package_name&gt; &lt;exported_activity_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*7phS7cOI0C8X6553bT9ApA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*rGEWREfb4IsDe3fPjCzKbQ.png" /></figure><h3>[Drozer] Exploit exported content providers</h3><h4>Find accessible content URIs</h4><pre>run scanner.provider.finduris -a &lt;package_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*5WJEKresvEtiZcAXyc1sQQ.png" /></figure><h4>SQLi vulnerability</h4><p>List accessible SQLi injection points and accessible content URIs.</p><pre>run scanner.provider.injection -a &lt;package_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*7rXM2-R0TjE4le4tHlsWgQ.png" /></figure><p>Display SQL tables for the package name if it is vulnerable to SQLi.</p><pre>run scanner.provider.sqltables -a &lt;package_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*mSBD-Pg9nEddInv-lH3ARA.png" /></figure><p>[CRUD] query the content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8P95C0ya7Vy-DYNIJvGf0g.png" /></figure><p>[CRUD] insert the content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r6tubyf_1NuSVZIZvWAIZA.png" /></figure><p>[CRUD] update the content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6FGxh0A4h--kf7cWdojzfA.png" /></figure><p>[CRUD] delete the content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4wGH8C9MyGjkGQK57VfXA.png" /></figure><h4>Directory traversal vulnerability</h4><p>List accessible content URIs that is vulnerable to directory traversal.</p><pre>run scanner.provider.traversal -a &lt;package_name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*V3EcEvm4IuMr-oeM_hTEsg.png" /></figure><p>Exploit directory traversal vulnerability.</p><pre>run app.provider.read &lt;content_uri&gt;../../etc/hosts<br>run app.provider.read &lt;content_uri&gt;../../proc/cpuinfo</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*20-N3_5l_bgCWFwX-c6TvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*QoeJzaOiN3Tv07eM2kI21w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9e223653844" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>