<?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 Sathish Shan on Medium]]></title>
        <description><![CDATA[Stories by Sathish Shan on Medium]]></description>
        <link>https://medium.com/@_sathishshan?source=rss-fadc4c726fa8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MAzSSOPSz2Ajj7-C</url>
            <title>Stories by Sathish Shan on Medium</title>
            <link>https://medium.com/@_sathishshan?source=rss-fadc4c726fa8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:51:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@_sathishshan/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[Zscaler blocking the burp suite interactions]]></title>
            <link>https://medium.com/@_sathishshan/zscaler-blocking-the-burp-suite-interactions-62a9be2f50cb?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/62a9be2f50cb</guid>
            <category><![CDATA[keytool]]></category>
            <category><![CDATA[zscaler]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[blocking]]></category>
            <category><![CDATA[burp]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 07:05:26 GMT</pubDate>
            <atom:updated>2024-04-23T03:48:56.334Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Zscaler blocking the burp suite interactions, like being unable to add extensions and use collaborators. On troubleshooting this issue we observe this seems to be an SSL issue, Burp is not trusting the Zscaler certificate as trustworthy. As a temporary solution we tried checking by disabling the SSL verification on Zscaler and it’s working, but it’s no longer secure communication. We will see the permanent solution in the blog.</p><h3>Requirements</h3><p>Would need to import the Zscaler Root CA cert into the Java cert store that Burp uses.</p><ul><li>To get the certificate reach out to the Zsclaer Admin or IT team, it can be downloaded or exported from the Zscaler managing portal.</li><li>If key-tool not available in your system, install the Java JDK to get it, the path is C:\Program Files\Java\jdk-17\bin\keytool.exe</li></ul><h3>Solution</h3><p>To import the Zsclaer Root CA certificate into the Java Keystore. Find the path for your JDK by going to “Help &gt; Diagnostics” within Burp and looking at the path specified by “java.home”. From there, you would need to use keytool to import the certificate into the trust-store contained in the “lib/security/” folder.</p><p>Use the following command (do appropriate changes in the command)</p><blockquote>keytool -trustcacerts -keystore &lt;Path_to_Java_cacerts_file_used_by_Burp_Pro&gt;/cacerts -storepass changeit -alias Root -import -file &lt;path_and_filename_for_your_ZScaler Root CA_certificate&gt;</blockquote><p>Once it got imported into the keystore, validate that certificate is updated into the cacerts file. Run the below command, you will see some fingerprints of Zscaler, then it’s updated.</p><blockquote>keytool -keystore &lt;Path_to_Java_cacerts_file_used_by_Burp_Pro&gt;/cacerts -list -v | findstr “zscaler”</blockquote><p>Now close and open the BurpSuite to reflect the changes, the interactions will work now. Can able to add Extensions and use the Collaborator.</p><p>Note: `When burp gets updated, the installation directories get replaced so that need to replace the cacert file again before starting a burp, since burp as multiple release in a month I suggest to turn off the Auto Update on Burp and can be update manually when ever required and replace the cacert file again after the update to get it worked.`</p><h3>Conclusion</h3><p>Hope this helps</p><h3>Disclaimer:</h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62a9be2f50cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Covering our Tracks]]></title>
            <link>https://medium.com/@_sathishshan/covering-our-tracks-9c4de48c55a0?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c4de48c55a0</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[logs]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[tracks]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Sat, 12 Dec 2020 06:15:36 GMT</pubDate>
            <atom:updated>2020-12-12T06:17:42.634Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, Today we going to see about “Covering our Tracks” on Linux after pen-test.</p><p>This is very basic of covering our tracks. The final stages of penetration testing involve setting up persistence and covering our tracks. For today’s material, we’ll detail the later as this is not mentioned nearly enough.</p><p>During a pentesting engagement, you will want to try to avoid detection from the administrators &amp; engineers of your client wherever within the permitted scope of the pentesting engagement. Activities such as logging in, authentication and uploading/downloading files are logged by services and the system itself.</p><p>On Debian and Ubuntu, the majority of these are left within the “<strong>/var/log</strong> directory and often require administrative privileges to read and modify. Some log files of interest:</p><ul><li><strong>“/var/log/auth.log</strong>” (Attempted logins for SSH, changes too or logging in as system users:)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1QwFlJy5yEvfzZyV.png" /></figure><ul><li><strong>“/var/log/syslog</strong>” (System events such as firewall alerts:)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V28ZVtPZCTFDgVRF.png" /></figure><ul><li><strong>“/var/log/&lt;service/”</strong></li><li>For example, the access logs of apache2</li><li><strong>/var/log/apache2/access.log”</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-3WE3b7AzemlwLhz.png" /></figure><p><strong>Disclaimer:</strong></p><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c4de48c55a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Process Command ps aux | TTY and STAT Explained]]></title>
            <link>https://medium.com/@_sathishshan/process-command-ps-aux-tty-and-stat-explained-cafcc216bf9f?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cafcc216bf9f</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[process]]></category>
            <category><![CDATA[tty]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Fri, 11 Dec 2020 12:44:02 GMT</pubDate>
            <atom:updated>2020-12-11T12:44:02.776Z</atom:updated>
            <content:encoded><![CDATA[<p>What does ‘?’ represent under TTY under process ps command?</p><p>It shows ? since there is no TTY (terminal interface) to which this process is attached. This is fortunate since sshd is a system daemon and should not be dependent on a client session.</p><p>As mentioned in the comments, closing a session will terminate all related processes for that TTY, which is not desired for system wide processes.</p><pre>USER PID %CPU %MEM  VSZ RSS TTY STAT  START  TIME COMMAND<br>root 0.0  0.0 22552 0  9144 ?    Ss   10:36   0:02 /sbin/init splash<br>root  2   0.0  0.0  0     0 ?    S    10:36   0:00 [kthreadd]<br>root  4   0.0  0.0  0     0 ?   I&lt;    10:36   0:00 [kworker/0:0H]<br>root  6   0.0  0.0  0     0 ?    &lt;    10:36   0:00 [mm_percpu_wq]</pre><p>What do the STAT column values in ps mean?<br>man ps has all the answers, under the “PROCESS STATE CODES” heading:</p><p>PROCESS STATE CODES<br>Here are the different values that the s, stat and state output specifiers (header “STAT” or “S”) will display to describe the state of a process:</p><pre>D Uninterruptible sleep (usually IO)<br>R Running or runnable (on run queue)<br>S Interruptible sleep (waiting for an event to complete)<br>T Stopped, either by a job control signal or because it is being traced.<br>W paging (not valid since the 2.6.xx kernel)<br>X dead (should never be seen)<br>Z Defunct (&quot;zombie&quot;) process, terminated but not reaped by its parent.</pre><p>For BSD formats and when the stat keyword is used, additional characters may be displayed:</p><pre>&lt; high-priority (not nice to other users)<br>N low-priority (nice to other users)<br>L has pages locked into memory (for real-time and custom IO)<br>s is a session leader<br>l is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)<br>+ is in the foreground process group</pre><p><strong>Disclaimer:</strong></p><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cafcc216bf9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Passwd for Linux]]></title>
            <link>https://medium.com/@_sathishshan/make-passwd-for-linux-18392fd42530?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/18392fd42530</guid>
            <category><![CDATA[openssl]]></category>
            <category><![CDATA[linux-priv-esc]]></category>
            <category><![CDATA[hash]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Fri, 11 Dec 2020 04:35:35 GMT</pubDate>
            <atom:updated>2020-12-11T04:54:46.882Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lHgU8LQVm2IZmDiB.jpg" /></figure><p>Followed by the <a href="https://medium.com/@_sathishshan/how-to-crack-linux-password-hash-9728f00567e">previous article</a>.</p><p>Hi, We talk about the hashes in <a href="https://medium.com/@_sathishshan/how-to-crack-linux-password-hash-9728f00567e">previous article</a>.</p><p>$1$e7NfNpNi$A6nCwOTqrNR2oDuIKirRZ</p><ul><li>$1 = MD5 hashing algorithm.</li><li>$2 =Blowfish Algorithm is in use.</li><li>$2a=eksblowfish Algorithm</li><li>$5 =SHA-256 Algorithm</li><li>$6 =SHA-512 Algorithm</li></ul><p>Now we going to see about how to generate these type of hashes by own using tool (i.e not by the system)</p><h3>mkpasswd — Overfeatured front end to crypt</h3><blockquote><strong>Available methods:</strong><br>sha512crypt SHA-512<br>sha256crypt SHA-256<br>md5crypt MD5<br>descrypt standard 56 bit DES-based crypt(3)</blockquote><p><strong>Example:</strong> mkpasswd -m {algo} {password}</p><pre>mkpasswd -m md5crypt linux</pre><pre>$1$.RDau/ZZ$Bkh4OXLZ6/mk6x2szP.x1/</pre><h3>openssl — OpenSSL command line tool</h3><p>With the openssl we can do more things that generating hashes.</p><p>There are lots of Available methods in openssl, the few are</p><blockquote>-6 SHA512-based password algorithm</blockquote><blockquote>-5 SHA256-based password algorithm</blockquote><blockquote>-salt val — Use provided salt</blockquote><p><strong>Example:</strong> openssl passwd {algo} {password}</p><pre>$ openssl passwd -6 linux</pre><pre>$6$ChN4Ck8AXlU4cMXk$Fe6P0eyeMBzogusGm9BySEzIEYUzuYoxr370fLqMXvL2Jbe6Ft.EungNPeuTiWmN8swKnGhuv/cNVFYhHWvvg0</pre><p>You can use your own salt also like:</p><pre>openssl passwd -6 -salt {YOUR_SALT} {password}</pre><p>The use of generating the hashes by own is very useful in Linux Privilege Esc.</p><p>Thank You,</p><h3>Disclaimer:</h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18392fd42530" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Crack Linux Password Hash]]></title>
            <link>https://medium.com/@_sathishshan/how-to-crack-linux-password-hash-9728f00567e?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9728f00567e</guid>
            <category><![CDATA[passwd]]></category>
            <category><![CDATA[shadow]]></category>
            <category><![CDATA[unix]]></category>
            <category><![CDATA[crack]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Tue, 14 Apr 2020 05:10:04 GMT</pubDate>
            <atom:updated>2020-04-14T05:33:39.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*zkIkTQz1P66EJbtKqV9-Og.png" /></figure><p><strong>Example of Linux Password Hash:</strong> $1$e7NfNpNi$A6nCwOTqrNR2oDuIKirRZ</p><ul><li>$1 = MD5 hashing algorithm.</li><li>$2 =Blowfish Algorithm is in use.</li><li>$2a=eksblowfish Algorithm</li><li>$5 =SHA-256 Algorithm</li><li>$6 =SHA-512 Algorithm</li></ul><p>So this is MD5 hash <br>The second field is salt value so <strong>e7NfNpNi </strong>is the salt<br>The last field is the hash value of salt+user password i.e <strong>A6nCwOTqrNR2oDuIKirRZ</strong></p><p>Now comes the cracking part. But unless this is a common hash which it isn’t you can’t decrypt it.</p><p>You can use Johntheripper to crack the password. This might take a long time if you are keyspace bruteforcing. If you want you can use a dictionary based attack to crack it. To do this first you need to setup the hash file.</p><ul><li><strong>cp /etc/passwd ./</strong></li><li><strong>cp /etc/shadow ./</strong></li><li><strong>unshadow passwd shadow &gt; hashes</strong></li></ul><p>After this you can do one of the following</p><h3><strong>Dictionary Based Cracking</strong></h3><ul><li><strong>john -w /path/to/wordlist — format=md5crypt hashes</strong></li></ul><h3><strong>Key-space Brute-forcing</strong></h3><ul><li><strong>john — show hashes</strong></li></ul><h3><strong>Other Methods</strong></h3><p>If you have access to a GPU, you can harness its power for your cracking process. For this you can use hash-cat.</p><ul><li>hashcat -m 1800 -a 0 [Path-to-Hashes] [Path-to-Word-list] -o [Path-to-Output-Cracked-Hashes]</li></ul><p>you can set m to either 500 or 1800, depending on your setup.</p><p><strong>To solve this Common Password problems use a Complex Password:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ubFZIPzHnEc8ufoSPrwoRA.png" /></figure><h3><strong>Disclaimer:</strong></h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9728f00567e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decompile and Recompile Android APK]]></title>
            <link>https://medium.com/@_sathishshan/decompile-and-recompile-android-apk-7d375e1bca83?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d375e1bca83</guid>
            <category><![CDATA[andoid]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[apk]]></category>
            <category><![CDATA[apk-mod]]></category>
            <category><![CDATA[decompile]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 06:48:02 GMT</pubDate>
            <atom:updated>2020-01-22T06:48:02.274Z</atom:updated>
            <content:encoded><![CDATA[<p>I had the need to take an existing <a href="https://en.wikipedia.org/wiki/Android_application_package">Android APK</a>, tweak it, and rebuild. This is not too difficult, but I did have to download the tools from a few different sites, and find a full list of instructions. Thus to make this easier, here is a quick recap of what’s needed.</p><p>Download the following:</p><ul><li><a href="https://ibotpeaches.github.io/Apktool/">apktool</a> — tool for reverse engineering Android apk files. In this case can extract and rebuild.</li><li><a href="https://docs.oracle.com/javase/8/docs/technotes/tools/unix/keytool.html">keytool</a> — Java tool for creating keys/certs. Comes with the JDK.</li><li><a href="https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jarsigner.html">jarsigner</a> Java tool for signing JAR/APK files. Comes with the JDK.</li><li><a href="https://developer.android.com/tools/help/zipalign.html">zipalign</a> — archive alignment tool, that comes with the Android SDK.</li></ul><p>Some extras:</p><ul><li><a href="http://jd.benow.ca/">JD-GUI</a> — Java Decompiler</li><li><a href="https://github.com/pxb1988/dex2jar">dex2jar</a> — Converts Android dex files to class/jar files.</li></ul><h3>Instructions:</h3><p>We assume you are on a Linux or Mac, but this will work (with some tweaking) on Windows. Install a recent Java JDK, then the <a href="https://developer.android.com/sdk/installing/index.html?pkg=tools">Stand-alone Android SDK</a>, and finally <a href="https://ibotpeaches.github.io/Apktool/">apktool</a>.</p><p>Optionally setup some alias:</p><pre>alias apktool=&#39;java -jar ~/bin/apktool_2.0.1.jar&#39;<br>alias dex2jar=&#39;~/bin/dex2jar-2.0/d2j-dex2jar.sh&#39;<br>alias jd-gui=&#39;java -jar ~/bin/jd-gui-1.3.0.jar&#39;</pre><p>First, unpack the application.apk file. This will create a “application” directory with assets, resources, compiled code, etc.</p><pre>apktool d -r -s application.apk</pre><p>Now poke around, and edit any of the files in the application directory. If you wish to decompile any java you can do the following:</p><pre># Convert the Dex files into standard class files<br>dex2jar application/classes.dex</pre><pre># Now use the JD (Java Decompiler) to inspect the source<br>jd-gui classes-dex2jar.jar</pre><p>Once you have made your changes, you need to repack the APK. This will create a my_application.apk file:</p><pre>apktool b -f -d application<br>mv application/dist/application.apk my_application.apk</pre><p>The APK must be signed before it will run on a device. Create a key if you don’t have an existing one. If prompted for a password, enter anything (but remember it).</p><pre>keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000</pre><p>Now sign the APK with the key:</p><pre># Sign the apk<br>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name</pre><pre># Verify apk<br>jarsigner -verify -verbose -certs my_application.apk</pre><p>Finally, the apk must be aligned for optimal loading:</p><pre>zipalign -v 4 my_application.apk my_application-aligned.apk<br></pre><p>Voila, now you have a my_application-aligned.apk file, which you can side load onto your device.</p><p>The Source credit for this post goes to my friend Blog<br><a href="https://blog.bramp.net/post/2015/08/01/decompile-and-recompile-android-apk/">https://blog.bramp.net/post/2015/08/01/decompile-and-recompile-android-apk/</a></p><h3>Disclaimer:</h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d375e1bca83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Burp intruder attack types]]></title>
            <link>https://medium.com/@_sathishshan/burp-intruder-attack-types-637b7f8ce5e2?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/637b7f8ce5e2</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[attack]]></category>
            <category><![CDATA[burp]]></category>
            <category><![CDATA[cluster]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Sat, 04 Jan 2020 15:09:06 GMT</pubDate>
            <atom:updated>2020-01-04T15:09:06.133Z</atom:updated>
            <content:encoded><![CDATA[<p>Burp is an intercepting proxy that can be used to test web sites. It has a fuzzing feature called <em>intruder</em> that can replace parameters in a request with values from one or more payload lists. It has several attack types that determine how the payloads are used in the request parameters. This post explains how the different attack types work.</p><h3>Intruder introduction</h3><p>Burp Intruder makes it possible to perform a number of automatically modified requests. For example, you can perform a brute-force attack by configuring the intruder with a login request and lists with usernames and passwords. There are several ways to configure an intruder attack:</p><ul><li>the base request, as shown on the Positions tab. This is the template for the request.</li><li>the attack type, on the Positions tab, determines the way payloads are put in positions and is the subject of this post.</li><li>the positions within the requests, also shown on the Positions tab. The positions are marked using § characters. Anything between two § characters is replaced by a payload.</li><li>the payload sets on the Payload tab contain the data that is inserted into the positions. Each payload set has some way to generate payloads, which are strings to use in the request.</li></ul><p>After clicking the “Start attack” button, the intruder will perform a number of requests, replacing the marked positions with payloads in each request. Exactly which payloads it puts in which position depends on the attack type. This also determines how many requests it will perform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/0*d4aKeykbCLjwBuY0.png" /></figure><h3>Sniper</h3><p>The sniper attack uses only one payload set, and it replaces only one position at a time. It loops through the payload set, first replacing only the first marked position with the payload and leaving all other positions to their original value. After its done with the first position, it continues with the second position.</p><p>This attack type is most useful when fuzzing, for example to find XSS or SQL injection. The payload is tried in each position while leaving the other parameters intact, making a successful request more likely.</p><p>The sniper attack</p><ul><li>replaces one position at a time,</li><li>uses one payload set, regardless of the number of positions,</li><li>uses the original values for all positions that have no payload,</li><li>does <em>positions</em> × <em>payloads</em> requests.</li></ul><p>For example, consider a URL with two positions. First, the first position is replaced by values from the payload set and the second position is left alone. After all values are exhausted, the second position is used and the first position is left alone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*B2xgf4uroSZ-pi51.png" /></figure><h3>Battering ram</h3><p>The battering ram attack type places the same payload value in all positions. It uses only one payload set. It loops through the payload set and replaces all positions with the payload value.</p><p>The battering ram</p><ul><li>uses one payload set, regardless of the number of positions,</li><li>replaces all positions with the same payload,</li><li>does as many requests as there are payloads in the payload set.</li></ul><p>Using the same example URL with the two positions, you can see that the same payload is put in all positions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*WA3dmY-em578hY6D.png" /></figure><h3>Pitchfork</h3><p>The pitchfork attack type uses one payload set for each position. It places the first payload in the first position, the second payload in the second position, and so on.</p><p>It then loops through all payload sets at the same time. The first request uses the first payload from each payload set, the second request uses the second payload from each payload set, and so on.</p><p>This attack type is useful if you have data items that belong together. For example, you have usernames with corresponding passwords and want to know whether they work with this web application. In this case you want to replace both the username and the password in the login request. Load the usernames in the first payload set, and the corresponding passwords in the second payload set. Now only one request for each username/password combination is done.</p><p>The pitchfork attack</p><ul><li>uses as many payload sets as there are positions,</li><li>replaces each position with its respective payload,</li><li>does as many requests as the maximum payload set size,</li><li>first payload set goes into first position, etc.</li></ul><p>In this example you can see that it uses the first payload from each set in the first request, and the second payload from each set in the second request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*GdzUgVeNnTX3K1V8.png" /></figure><h3>Cluster bomb</h3><p>The cluster bomb attack tries all different combinations of payloads. It still puts the first payload in the first position, and the second payload in the second position. But when it loops through the payload sets, it tries all combinations.</p><p>This attack type is useful for a brute-force attack. Load a list of commonly used usernames in the first payload set, and a list of commonly used passwords in the second payload set. The cluster bomb attack will then try all combinations.</p><p>Note that the number of requests can grow very quickly. If you have 100 usernames and 100 passwords, this attack will perform 10,000 requests. This becomes exponentially worse when using more positions, so this attack is only feasible with a relatively small number of payloads and positions.</p><p>The cluster bomb attack</p><ul><li>makes combinations with all payload sets,</li><li>does <em>payloads positions</em> requests,</li><li>first payload set goes into first position, etc.</li></ul><p>The cluster bomb tries all possible combinations, while still keeping the first payload set in the first position and the second payload set in the second position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*aNtpmRVn2LfQqrkl.png" /></figure><h3>Conclusion</h3><p>The Burp intruder has a couple of attack types which differ in how they loop over positions and payloads. Hopefully this post helps you to use the right tool for the right job.</p><h4><strong>Source:</strong><br>Credit<a href="https://www.sjoerdlangkemper.nl/2017/08/02/burp-intruder-attack-types/">s : https://www.sjoerdlangkemper.nl/2017/08/02/burp-intruder-attack-types/</a></h4><h3>Disclaimer:</h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=637b7f8ce5e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How many types of SQL injections are there?]]></title>
            <link>https://medium.com/@_sathishshan/how-many-types-of-sql-injections-are-there-6e05f19dca85?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e05f19dca85</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[sqli]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 06:10:31 GMT</pubDate>
            <atom:updated>2021-09-14T05:08:16.375Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Types of SQL Injection</strong></p><p>SQL Injection can be used in a range of ways to cause serious problems. By levering SQL Injection, an attacker could bypass authentication, access, modify and delete data within a database.</p><p>SQL Injection can be classified into three major categories</p><p><strong>In-band SQLi, Inferential SQLi and Out-of-band SQLi.</strong></p><ol><li><strong>In-band SQLi (Classic SQLi)</strong></li></ol><p>In-band SQL Injection is the most common and easy-to-exploit of SQL Injection attacks. In-band SQL Injection occurs when an attacker is able to use the same communication channel to both launch the attack and gather results.</p><p><em>The two most common types of in-band SQL Injection are Error-based SQLi and Union-based SQLi.</em></p><ul><li><strong>Error-based SQLi</strong></li></ul><p>Error-based SQLi is an in-band SQL Injection technique that relies on error messages thrown by the database server to obtain information about the structure of the database. In some cases, error-based SQL injection alone is enough for an attacker to enumerate an entire database.</p><ul><li><strong>Union-based SQLi</strong></li></ul><p>Union-based SQLi is an in-band SQL injection technique that leverages the UNION SQL operator to combine the results of two or more SELECT statements into a single result which is then returned as part of the HTTP response.</p><p><strong>2. Inferential SQLi (Blind SQLi)</strong></p><p>Inferential SQL Injection, unlike in-band SQLi, may take longer for an attacker to exploit, however, it is just as dangerous as any other form of SQL Injection. In an inferential SQLi attack, no data is actually transferred via the web application and the attacker would not be able to see the result of an attack in-band (which is why such attacks are commonly referred to as “blind SQL Injection attacks”). Instead, an attacker is able to reconstruct the database structure by sending payloads, observing the web application’s response and the resulting behavior of the database server.</p><p><em>The two types of inferential SQL Injection are Blind-Boolean-based SQLi and Blind-time-based SQLi.</em></p><ul><li><strong>Boolean-based (content-based) Blind SQLi</strong></li></ul><p>Boolean-based SQL Injection is an inferential SQL Injection technique that relies on sending an SQL query to the database which forces the application to return a different result depending on whether the query returns a TRUE or FALSE result.</p><p>Depending on the result, the content within the HTTP response will change, or remain the same. This allows an attacker to infer if the payload used returned true or false, even though no data from the database is returned.</p><ul><li><strong>Time-based Blind SQLi</strong></li></ul><p>Time-based SQL Injection is an inferential SQL Injection technique that relies on sending an SQL query to the database which forces the database to wait for a specified amount of time (in seconds) before responding. The response time will indicate to the attacker whether the result of the query is TRUE or FALSE.</p><p>Depending on the result, an HTTP response will be returned with a delay, or returned immediately. This allows an attacker to infer if the payload used returned true or false, even though no data from the database is returned.</p><p><strong>3. Out-of-band SQLi</strong></p><p>Out-of-band SQL Injection is not very common, mostly because it depends on features being enabled on the database server being used by the web application. Out-of-band SQL Injection occurs when an attacker is unable to use the same channel to launch the attack and gather results.</p><p>Out-of-band techniques, offer an attacker an alternative to inferential time-based techniques, especially if the server responses are not very stable (making an inferential time-based attack unreliable).</p><p><a href="https://www.quora.com/How-many-types-of-SQL-injections-are-there">Source: https://www.quora.com/How-many-types-of-SQL-injections-are-there</a></p><h3>Disclaimer:</h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e05f19dca85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessing Remote Database Server from Local MYSQL Client]]></title>
            <link>https://medium.com/@_sathishshan/accessing-remote-database-server-from-local-mysql-client-6853ebfb2f81?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6853ebfb2f81</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[remote]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Wed, 02 Oct 2019 04:39:34 GMT</pubDate>
            <atom:updated>2019-10-02T04:39:34.103Z</atom:updated>
            <content:encoded><![CDATA[<p>In my Previous article about accessing remote database server from local PhpMyAdmin. <a href="https://medium.com/@sathish_shan/accessing-remote-database-server-from-local-phpmyadmin-client-97d4bee5242e">here it is.</a></p><p>It is very simple in CLI</p><p>$mysql -u username -p -h hostname</p><p>mysql command</p><ul><li>-u — username</li><li>-p — Password (It is will prompt for password)</li><li>-h — Host-name (You can specify Remote host)</li><li>-D — Database name (You can also specify dbname directly like following)</li></ul><p>$mysql -u username -p -h hostname -D dbname</p><h3>Disclaimer:</h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6853ebfb2f81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Gentle Linux Reboot]]></title>
            <link>https://medium.com/@_sathishshan/the-gentle-linux-reboot-1c708bd614f2?source=rss-fadc4c726fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c708bd614f2</guid>
            <category><![CDATA[frozen]]></category>
            <category><![CDATA[restart]]></category>
            <category><![CDATA[magic]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[reboot]]></category>
            <dc:creator><![CDATA[Sathish Shan]]></dc:creator>
            <pubDate>Wed, 02 Oct 2019 03:20:11 GMT</pubDate>
            <atom:updated>2019-10-02T04:29:19.603Z</atom:updated>
            <content:encoded><![CDATA[<p>Frozen Linux System is used to recover from Freezes, or to Reboot a computer without corrupting the Filesystem. It is restarted more safely than by pushing the power button.</p><p>Holding down Ctrl + Alt +SysRq (Mostly a Print Screen key) while slowly typing REISUB will get you safely restarted. REISUO will do a shutdown rather than a restart. <strong>Note: </strong>For older Linux systems it uses Alt + SysRq</p><p>Wikipedia comes to the rescue with an in-depth <a href="http://en.wikipedia.org/wiki/Magic_SysRq_key">listing of all the SysRq keys</a>.</p><ul><li>R: Switch the keyboard from raw mode to XLATE mode</li><li>E: Send the SIGTERM signal to all processes except init</li><li>I: Send the SIGKILL signal to all processes except init</li><li>S: Sync all mounted filesystems</li><li>U: Remount all mounted filesystems in read-only mode</li><li>B: Immediately reboot the system, without unmounting partitions or syncing</li></ul><p>The above are technical details, but just to remember the correct order is, This is how I remember it.</p><p>R — Reboot<br>E — Even<br>i — If<br>S — System<br>U — Utterly<br>B — Broken</p><p>or Even you can remember this way too <strong>REISUB</strong> — <strong>BUSIER</strong> backwards</p><p><strong>SSH:<br></strong>It can be used even over ssh (CLI) `echo “reisub” &gt; /proc/sysrq-trigger`</p><p><strong>Magic SysRq:</strong></p><p>We will not discuss exact description of the actions you can perform by Magic SysRq. I will mention only two of them that make sense to use over remote console: <br><strong>b</strong> — immediate reboot the system without syncing or unmounting disks <br><strong>o</strong> — system shutdown <br> <br>For authorization to use Magic SysRq:</p><p>echo 1&gt; /proc/sys/kernel/sysrq</p><p>to send the actual command:</p><p>echo &lt;action-key&gt; &gt;/proc/sysrq-trigger</p><p>this will behave as you directly sit at keyboard of the server and press Alt+SysRqKey+&lt;action key&gt;</p><p><strong>USE with caution</strong></p><h3>Disclaimer:</h3><p>The information published in this article is only for educational purposes. The content of this article is based on my personal learning and experience. Any misuse of information will not be the responsibility of the author.</p><p>Feel free to point out any mistakes or let me know if there is anything I should add!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c708bd614f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>