<?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 Galih Saputra on Medium]]></title>
        <description><![CDATA[Stories by Galih Saputra on Medium]]></description>
        <link>https://medium.com/@gheeX?source=rss-779152c1de5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s32W7lvVKLC1fIVHsf6TZA.jpeg</url>
            <title>Stories by Galih Saputra on Medium</title>
            <link>https://medium.com/@gheeX?source=rss-779152c1de5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 21:13:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gheeX/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[Discovery of Xss / Html Injection by analyzing target source code]]></title>
            <link>https://medium.com/@gheeX/discovery-of-xss-html-injection-by-analyzing-target-source-code-0bc7a96c3ca4?source=rss-779152c1de5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bc7a96c3ca4</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Galih Saputra]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 11:12:31 GMT</pubDate>
            <atom:updated>2024-11-30T11:12:31.250Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJ96unnOocILnEiF9d8RJA.png" /></figure><p>Have you ever found a vulnerability just by looking at the target source code? If not, let me tell you about my experience.</p><p>This discovery began when I examined my target’s source code for resources that might lead me to a vulnerability.</p><p>At that moment a code caught my attention, the code looked like this:</p><pre>&lt;!-- Custom Meta --&gt;<br>        &lt;meta name=&quot;DeviceType&quot; content=&quot;desktop&quot;&gt;<br>        &lt;meta name=&quot;UserAgent&quot; content=&quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.86 Safari/537.36&quot;&gt;<br>        &lt;meta name=&quot;IpAddress&quot; content=&quot;182.x.xxx.xxx&quot;&gt;<br>        &lt;meta name=&quot;Rating&quot; content=&quot;General&quot;&gt;</pre><p>You can see here that my user agent and IP are reflected in the source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fjlyemtqNVdxAkIDfh9_jA.png" /></figure><p>then I immediately turned on Intercept burp suite to intercept requests and change my user agent valuethen I immediately turned on Intercept burp suite to intercept requests and change my user agent value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*KCWfLdpFfqeHlzlK1A9D9A.png" /></figure><p>But here I get 403 Forbidden when I change the user agent value to any string, for example: test, xxx, testing etc.</p><p>Not giving up at this point, I thought what if I changed my IP address to a payload ?<br>What I’m thinking about here to change the “<strong><em>IpAddress</em></strong>” value is to add an <strong>X-Forwarded-For:</strong> header, because I don’t think it’s possible to change my IpAddress to an Xss / html payload😂.</p><p>The <strong>X-Forwarded-For</strong> header is used to record the original IP address of clients accessing the server through a proxy or load balancer. For example:</p><pre>X-Forwarded-For: 192.168.1.100, 10.0.0.1</pre><p>This helps the server identify genuine clients for logging, security, or analysis. However, this header can be manipulated, so it must be used with caution.</p><p>Let’s try changing the <em>IpAddress</em> value by adding the X-Forwarded-For header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pRx8WNS8A-TFAw6v_vuuw.png" /></figure><p>After seeing that I could change the IpAddress value, of course what I thought was trying the htmli or xss payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*48MJV0l-DgbgFumw9gdIxQ.png" /></figure><p>The payload I use:<br><strong>X-Forwarded-For: evil.com”&gt;&lt;h1&gt;okay&lt;/h1&gt;</strong></p><p>Maybe the developer only validates the userAgent value, not this one.<br>There are no character filters here even though this web application has waf installed (Cloudflare).</p><p>Let’s try Xss🔥</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*JU9f--S3q2bAfPNKJCcr5A.png" /></figure><p>As I said, there are no character filters of any kind here, in stark contrast to the protection of the User-Agent value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XIQls-jPTojCRqnJrNbuxg.png" /></figure><p>After getting all this I thought what if I try to read the internal file with the iframe tag?<br>After trying this idea I got nothing😥.</p><p>Lastly I tried ssrf using the iframe tag, but there’s nothing interesting here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orJGWUVTx8m1ohO0bT1oIw.png" /></figure><p>Payload : X-Forwarded-For: &lt;iframe src=”http://burp-collaborator”&gt;</p><p>After feeling this was enough, I immediately reported my findings to the web owner, and they responded well.</p><p>rewards? still being processed.</p><p>Maybe that’s all I can share this time, hopefully in the future I can share other interesting things.</p><p>X : <a href="https://x.com/ExCape1337">Ghee1337</a><br>Telegram channels : <a href="https://t.me/bugbounty_reference">https://t.me/bugbounty_reference</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bc7a96c3ca4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exposing Open Redirect Vulnerabilities: JavaScript File Analysis in HTTP History Burp Suite]]></title>
            <link>https://medium.com/@gheeX/exposing-open-redirect-vulnerabilities-javascript-file-analysis-in-http-history-burp-suite-c64bd1c93c54?source=rss-779152c1de5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c64bd1c93c54</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Galih Saputra]]></dc:creator>
            <pubDate>Sun, 17 Nov 2024 07:15:53 GMT</pubDate>
            <atom:updated>2024-11-17T07:19:06.646Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1hXU2_YpDJQNSIpSgYtbQ.png" /></figure><p>A few days ago I opened my email, and I saw a message from yeswehack containing an invitation to a bug bounty program (private program).</p><p>I immediately opened my laptop and accepted the invitation.<br>This program has many scopes, and the subdomains here are also included in their scope.</p><p>I chose scopes that accept vulnerabilities on their subdomains.<br>let’s just say the main domain is <em>redacted.com</em> because this is a private program.</p><p>The first step I took was subdomain enumeration, here I used <a href="https://github.com/projectdiscovery/subfinder">subfinder</a> to search.</p><p>After getting several subdomains, I selected several and opened them with a browser in Burp Suite. I did this so I could immediately see requests and responses via HTTP history via Burp Suite.</p><p>From this HTTP history, I started to analyze every request and response that I got, starting from parameters, login pages, and also javascript files.</p><p>This vulnerability started when I analyzed the JavaScript file and saw the <strong><em>?back_url=</em></strong> parameter which was located in the application’s autologout function and I didn’t know about it before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qTOjvuOANRePjz-xumkZcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KohPM2Ot87b7PZBCuC6-ug.png" /></figure><p>I immediately checked it by accessing it directly in my browser with a link like this: <a href="https://subdomain.example.com/users/sign_out?back_url=https://evil.com"><strong>https://subdomain.redacted.com/users/sign_out?back_url=https://evil.com</strong></a></p><p>quite happy when I found out that I was redirected to <a href="https://evil.com/"><strong>https://evil.com</strong></a></p><p>after knowing that it was an <strong>open redirect</strong> vulnerability I tried to open it once again via the browser but this time I intercepted the request via burp suite and sent it to Repeater to check from this <strong>open redirect</strong> whether I can connect it to other vulnerabilities, Xss for example?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQnJ-Gg3eqP6jJiLsPUwrA.png" /></figure><p>But after trying to use several xss payloads, html injection and others I can’t increase the impact because some characters are filtered :)</p><p>What’s even sadder is that after I reported this vulnerability it turned out my report was marked as a duplicate and I only got points :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WzGKRlMkMC2Gbum1qZZZ1A.png" /></figure><p>Maybe that’s all I can share this time, hopefully in the future I can share other interesting things.</p><p>X : <a href="https://x.com/ExCape1337">Ghee1337</a><br>Telegram channels : <a href="https://t.me/bugbounty_reference">https://t.me/bugbounty_reference</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c64bd1c93c54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Found an SQL Injection in coupon code]]></title>
            <link>https://medium.com/@gheeX/how-i-found-an-sql-injection-in-coupon-code-f31d6eb1a720?source=rss-779152c1de5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f31d6eb1a720</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Galih Saputra]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 02:12:15 GMT</pubDate>
            <atom:updated>2024-11-16T13:57:35.298Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJEuwLkoqp-NpFTGxNuEfw.png" /></figure><p>The discovery of this vulnerability began when I visited an e-commerce website.<br>At first I just did normal testing for fun like Idor, XSS, information disclosure etc.</p><p>But I haven’t found Idor or XSS there, maybe I’m not careful enough.</p><p>Then I tried adding any product to my cart just to find out how the purchasing process works, I hoped to find information disclosure or IDOR here but there was nothing interesting.</p><p>When I got to the payment point I saw that we could use a coupon code to get a discount, I didn’t think long and immediately tested it to find something interesting.</p><p>I tried using code “test” for testing and intercepting requests using burp suite.</p><p>More or less like this is the request and response :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ss7WV2xezL1pAtD1r4Hmag.png" /></figure><p>Of course the “test” coupon code is not valid because it is only for my testing.<br>Then I added ‘ to check if it is vulnerable to sql injection.</p><p>I was quite pleased when I saw the coupon code response “test‘’” which told me that the function was vulnerable to SQL injection attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yxPe8enNmEYmKSDizpEqDQ.png" /></figure><p>Because I saw that there was no waf protection on this web application, I copied the request and saved it into the req.txt file for automation using sqlmap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*cs9-fwEiFz645jUfBS3gzQ.png" /></figure><p>After waiting a while for SqlMap to complete its analysis, I was quite satisfied with the results, because I knew that the coupon code function was indeed vulnerable to SQL injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gj7KvnCmHJC9pcaNsl_veA.png" /></figure><p>sqlmap command that I use :</p><pre>python2 sqlmap.py -r req.txt --random-agent --tamper=space2comment --level=5 --risk=3 --no-cast -p coupon --dbs</pre><p>Do I get a bounty for this?<br>I didn’t expect more, because this is not a bug bounty program like the ones from hackerone, yeswehack or bugcrowd.</p><p>But after seeing that this e-commerce website was quite large with thousands of followers on X, Facebook, Instagram and also TikTok, I decided to report it via the email I got on the contact us page.</p><p>Until now there has been no reply from the team regarding my report :)</p><p>Maybe this is the only short story I can share, I still have several drafts of interesting articles that I haven’t published because I’m still waiting for confirmation from the team.</p><p>So don’t forget to follow me.</p><p>X : <a href="https://x.com/ExCape1337">Ghee1337</a><br>Telegram channels : <a href="https://t.me/bugbounty_reference">https://t.me/bugbounty_reference</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f31d6eb1a720" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to complete the OverTheWire Bandit Level 0 to Level 10 Challenge]]></title>
            <link>https://medium.com/@gheeX/how-to-complete-the-overthewire-bandit-level-0-to-level-10-challenge-a9f45f7c1672?source=rss-779152c1de5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9f45f7c1672</guid>
            <dc:creator><![CDATA[Galih Saputra]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 11:41:01 GMT</pubDate>
            <atom:updated>2024-08-21T11:43:25.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*Ooy2gH23dLQ_B2sWgj6jQw.jpeg" /></figure><p>Halo Semua, Senang bisa berbagi dengan kalian semua kembali…<br>Pada sesi kali ini saya akan sharing tentang bagaimana cara menyelesaikan tantangan ctf <strong>OverTheWire Bandit Level 0 to Level 10.</strong></p><blockquote><strong>BANDIT0</strong></blockquote><p>Pertama kalian buka : <a href="https://overthewire.org/wargames/bandit/bandit0.html">https://overthewire.org/wargames/bandit/bandit0.html</a></p><p>Lalu kalian remote ssh dengan credential yang sudah ada pada laman bandit0 di atas ,seperti ini :</p><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit0@bandit.labs.overthewire.org</em></a><em> -p 2220</em></p><p>Username : bandit0<br>Password : bandit0</p><p>Disini saya anggap kalian sudah memahami basic command Linux/Bash</p><p>Jika sudah masuk pada server melalui ssh ,lanjut kalian ketikan saja <em>ls</em> setiap pertama kali kalian selesai masuk ke ssh tersebut.<br>maka kalian akan melihat file bernama “readme”.<br>kalian buka atau lihat file itu dengan command <em>cat</em> :<br><em>$cat readme</em></p><blockquote>bandit0@bandit:~$ ls<br>readme<br>bandit0@bandit:~$ cat readme<br>Congratulations on your first steps into the bandit game!!<br>Please make sure you have read the rules at <a href="https://overthewire.org/rules/">https://overthewire.org/rules/</a><br>If you are following a course, workshop, walthrough or other educational activity,<br>please inform the instructor about the rules as well and encourage them to<br>contribute to the OverTheWire community so we can keep these games free!</blockquote><blockquote>The password you are looking for is: <strong>ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If</strong></blockquote><p>Jadi challenge OverTheWire Bandit dari level 0–10 adalah kalian di haruskan mencari password untuk masuk ke ssh/user berikutnya ,contoh bandit0, bandit1, bandit2 ,bandit3 dan seterusnya.</p><p>Setelah mendapatkan password dari file readme pada user bandit0 ,kalian exit saja dan masuk kembali namun sekarang berganti ke user bandit1 ,untuk username dan password nya adalah bandit1 ( sesuai level ) dan passwordnya adalah tulisan yang saya beri garis tebal :<br>The password you are looking for is: <strong>ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If</strong></p><blockquote><strong>BANDIT1</strong></blockquote><p>Lanjut login ke ssh bandit1 dengan credential yang sudah kalian dapatkan :</p><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit1@bandit.labs.overthewire.org</em></a><em> -p 2220</em></p><p><em>bandit1@bandit:~$ ls<br>-<br>bandit1@bandit:~$ lsattr<br> — — i — — — — -e — — — — ./-<br>bandit1@bandit:~$ cat ./-<br>263JGJPfgU6LtdEvgfWU1XP5yac29mFx</em></p><blockquote><strong>BANDIT2</strong></blockquote><p>lanjut saja ke bandit2 ,karena disini masih basic jadi saya tidak akan menjelaskannya ,agar kalian bisa memperlajarinya lagi:b</p><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit2@bandit.labs.overthewire.org</em></a><em> -p 2220<br>bandit2@bandit:~$ ls<br>spaces in this filename<br>bandit2@bandit:~$ cat “spaces in this filename”<br>MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx</em></p><p>kenapa disini saya menggunakan tanda titik dua untuk melihat file tersebut ? karena jika kita langsung melakukan command cat seperti pada umumnya pasti akan error karena terdapat space pada nama file tersebut : <br>bandit2@bandit:~$ cat spaces in this filename<br><em>cat: spaces: No such file or directory<br>cat: in: No such file or directory<br>cat: this: No such file or directory<br>cat: filename: No such file or directory</em></p><blockquote><strong>BANDIT3</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit3@bandit.labs.overthewire.org</em></a><em> -p 2220</em></p><p><em>bandit3@bandit:~$ ls<br>inhere<br>bandit3@bandit:~$ cd inhere<br>bandit3@bandit:~/inhere$ ls<br>bandit3@bandit:~/inhere$ ls -all<br>total 12<br>drwxr-xr-x 2 root root 4096 Jul 17 15:57 .<br>drwxr-xr-x 3 root root 4096 Jul 17 15:57 ..<br>-rw-r — — — 1 bandit4 bandit3 33 Jul 17 15:57 …Hiding-From-You<br>bandit3@bandit:~/inhere$ cat …Hiding-From-You<br>2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ</em></p><p>Disini masih cukup mudah ,karena hanya hidden file yang masih bisa dibuka dengan basic command [ ls -all ] / ( tanpa proteksi ).</p><blockquote><strong>BANDIT4</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit4@bandit.labs.overthewire.org</em></a><em> -p 2220<br>bandit4@bandit:~$ ls<br>inhere<br>bandit4@bandit:~$ cd inhere<br>bandit4@bandit:~/inhere$ ls<br>-file00 -file01 -file02 -file03 -file04 -file05 -file06 -file07 -file08 -file09<br>bandit4@bandit:~/inhere$ file ./-file0*<br>./-file00: data<br>./-file01: data<br>./-file02: data<br>./-file03: data<br>./-file04: data<br>./-file05: data<br>./-file06: data<br></em><strong><em>./-file07: ASCII text</em></strong><em><br>./-file08: data<br>./-file09: data<br>bandit4@bandit:~/inhere$ cat ./-file07<br>4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw</em></p><p>Disini karena ada banyak file yang mempunyai kemiripan pada nama filenya maka kita menggunakan tanda bintang (*) untuk melihat jenis file tersebut , sebenernya bisa saja kita melihatnya satu persatu ,tapi apakah itu tidak memakan waktu ?</p><blockquote><strong>BANDIT5</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit5@bandit.labs.overthewire.org</em></a><em> -p 2220</em></p><p><em>bandit5@bandit:~$ ls<br>inhere<br>bandit5@bandit:~$ cd inhere<br>bandit5@bandit:~/inhere$ ls<br>maybehere00 maybehere03 maybehere06 maybehere09 maybehere12 maybehere15 maybehere18<br>maybehere01 maybehere04 maybehere07 maybehere10 maybehere13 maybehere16 maybehere19<br>maybehere02 maybehere05 maybehere08 maybehere11 maybehere14 maybehere17<br>bandit5@bandit:~/inhere$ find -type f -size 1033c ! -executable<br>./maybehere07/.file2<br>bandit5@bandit:~/inhere$ cat ./maybehere07/.file2<br>HWasnPhtq9AVKe0dmk45nxy20cvUa6E</em>G</p><p>Disini kalian akan melihat banyak file dan juga directory yang mana jika kalian mencari password untuk masuk ke user bandit6 dengan cara mengecek file dan juga directory” tersebut satu persatu maka akan memakan waktu yang lumayan ,untungnya linux mempunyai command <em>find :</em></p><p>find -type f -size 1033c ! -executable</p><p>find: Perintah ini digunakan untuk mencari file atau direktori dalam sistem file berdasarkan kriteria tertentu.<br>-type f: Flag ini menginstruksikan find untuk mencari file reguler (bukan direktori atau jenis file lain).<br>-size 1033c: Opsi ini digunakan untuk mencari file dengan ukuran tepat 1033 byte (c adalah singkatan dari “characters”, yang merupakan ukuran dalam byte).<br>! -executable: Operator ! membalikkan hasil pencarian, jadi ini akan mencari file yang tidak dapat dieksekusi.<br>Jadi, perintah ini mencari semua file reguler yang ukurannya tepat 1033 byte dan tidak memiliki izin eksekusi.</p><p>./maybehere07/.file2</p><p>Ini merujuk pada file atau direktori dengan path relatif ./maybehere07/.file2. Path ini menunjukkan bahwa .file2 berada dalam direktori maybehere07, yang berada di direktori saat ini (. menunjukkan direktori saat ini).</p><blockquote><strong>BANDIT6</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit6@bandit.labs.overthewire.org</em></a><em> -p 2220</em></p><p><em>bandit6@bandit:~$ ls<br>bandit6@bandit:~$ find / -user bandit7 -group bandit6 -size 33c 2&gt;&amp;1 | grep -F -v Permission | grep -F -v directory<br>/var/lib/dpkg/info/bandit7.password<br>bandit6@bandit:~$ cat /var/lib/dpkg/info/bandit7.password<br>morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj</em></p><p>Kenapa kita menggunakan command find lagi pada bandit6 ? jawabannya adalah karena directory utama kita tidak terdapat file apapun kecuali file bawaan dari linux ,seperti .bashrc .profile dll ,maka dari itu kita menggunakan command find kembali untuk mencari file / password user bandit 7 ,berikut penjelasannya :</p><p>find / -user bandit7 -group bandit6 -size 33c</p><p>find: Perintah ini digunakan untuk mencari file atau direktori dalam sistem file.<br>Direktori root (/) digunakan sebagai lokasi awal pencarian, yang berarti pencarian akan dilakukan di seluruh sistem file.<br>-user bandit7: Menyaring pencarian untuk file yang dimiliki oleh pengguna bandit7.<br>-group bandit6: Menyaring pencarian untuk file yang grup pemiliknya adalah bandit6.<br>-size 33c: Menyaring pencarian untuk file yang ukurannya tepat 33 byte (c adalah singkatan dari “characters”, yang berarti ukuran dalam byte).<br>Perintah ini mencari file di seluruh sistem yang dimiliki oleh pengguna bandit7, dengan grup pemilik bandit6, dan berukuran tepat 33 byte.</p><p>2&gt;&amp;1</p><p>Ini adalah pengalihan output. 2 mewakili aliran error standar (stderr), dan 1 mewakili aliran output standar (stdout).<br>2&gt;&amp;1 mengalihkan stderr ke stdout, yang berarti error yang muncul selama proses pencarian akan digabungkan dengan output normal (stdout).<br>grep -F -v Permission</p><p>Ini adalah pipe yang mengarahkan output dari perintah sebelumnya (find) ke perintah berikutnya (grep).<br>grep: Perintah ini digunakan untuk mencari teks dalam output.<br>-F: Menginstruksikan grep untuk mencari teks secara literal, bukan sebagai pola regex.<br>-v: Menginstruksikan grep untuk membalikkan pencarian, yang berarti akan menampilkan semua baris kecuali yang cocok dengan pola.<br>Permission: Kata ini adalah pola yang dicari oleh grep.<br>Bagian ini menyaring hasil pencarian dengan menghilangkan baris yang mengandung kata “Permission”. Ini biasanya digunakan untuk mengabaikan pesan error terkait masalah izin (permission denied).</p><p>grep -F -v directory</p><p>Pipe ini mengarahkan output dari perintah sebelumnya (grep -F -v Permission) ke perintah berikutnya (grep).<br>grep -F -v directory: Ini menyaring hasil pencarian lebih lanjut dengan menghilangkan baris yang mengandung kata “directory”. Ini berguna untuk mengabaikan direktori dari hasil pencarian.</p><blockquote><strong>BANDIT7</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit7@bandit.labs.overthewire.org</em></a><em> -p 2220</em></p><p><em>bandit7@bandit:~$ ls<br>data.txt<br>bandit7@bandit:~$ cat data.txt | grep millionth<br>millionth dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc</em></p><p>Di user bandit7 kita diberi file data.txt yang isinya banyak sekali ,tidak mungkin kita menebak-nebaknya ,karena itu kita menggunakan command grep di belakanya untuk memfilter mana password yang benar.<br>lalu dari mana saya mendapatkan keyword / kata “<em>millionth”.</em></p><p>Sebenarnya Semua penjelasan saya tadi sudah ada pada setiap halaman website <a href="https://overthewire.org/wargames/bandit/bandit8.html">https://overthewire.org/wargames/bandit/bandit(*).html</a></p><p>mulai dari command apa saja yang dibutuhkan apa clue nya dll.</p><blockquote><strong>BANDIT8</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit8@bandit.labs.overthewire.org</em></a><em> -p 2220</em></p><p><em>bandit8@bandit:~$ ls<br>data.txt<br>bandit8@bandit:~$ cat data.txt | sort | uniq -c -u<br> 1 4CKMh1JI91bUIZZPXDqGanal4xvAg0JM</em></p><p>Tidak perlu ditanyakan lagi mengapa saya menggunakan command sort dan juga uniq ,karena saya sudah mendapatkan clue dari laman challenge bandit8 ,disitu dijelaskan command” apa saja kah yang bisa saya gunakan untuk mendapatkan flag/passwordnya ,dalam kasus ini saya menggunakan command sort dan juga uniq ,berikut daftar perintah yang bisa kalian gunakan sesuai pada laman bandit8 :</p><p>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd</p><blockquote><strong>BANDIT9</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit9@bandit.labs.overthewire.org</em></a><em> -p 2220<br>bandit9@bandit:~$ ls<br>data.txt<br>bandit9@bandit:~$ strings data.txt | grep ====<br>\a!;========== the<br>========== passwordf<br>========== isc<br>========== FGUW5ilLVJrxX9kMYMmlN4MgbpfMiqey</em></p><p>disini kalian bisa menggunakan command selain strings ,contoh :</p><p><em>grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd</em></p><p>kalian hanya perlu menyesuaikan commandnya sesuai kebutuhan kalian:b</p><blockquote><strong>BANDIT10</strong></blockquote><p><em>ssh </em><a href="/service/mailto:bandit0@bandit.labs.overthewire.org"><em>bandit10@bandit.labs.overthewire.org</em></a><em> -p 2220<br>bandit10@bandit:~$ ls<br>data.txt<br>bandit10@bandit:~$ cat data.txt<br>VGhlIHBhc3N3b3JkIGlzIGR0UjE3M2ZaS2IwUlJzREZTR3NnMlJXbnBOVmozcVJyCg==</em></p><p>Pada clue bandit10 ini justru malah mudah ,karena terlihat jelas bahwa isi dari file data.txt adalah base64 ,kalian hanya perlu men decode kannya ,disini saya men decodekannya menggunakan tools dari situs web : <a href="https://www.base64decode.org/">https://www.base64decode.org/</a></p><p>dan ini dia hasilnya : <br><em>The password is dtR173fZKb0RRsDFSGsg2RWnpNVj3qRr</em></p><p>Selesai sudah OverTheWire Bandit Level 0 to Level 10 Challenge.</p><p>Thanks you for reading my simple article:)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9f45f7c1672" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Linux in VirtualBox]]></title>
            <link>https://medium.com/@gheeX/how-to-install-linux-in-virtualbox-a7f500aa1f0c?source=rss-779152c1de5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7f500aa1f0c</guid>
            <dc:creator><![CDATA[Galih Saputra]]></dc:creator>
            <pubDate>Thu, 15 Aug 2024 12:03:08 GMT</pubDate>
            <atom:updated>2024-08-15T12:03:08.699Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everybody…<br>This is my first article on medium.<br>In my first article, I will provide simple basic material on how to install Linux on Virtual Box.</p><p>The first thing you need to know before installing Linux on Virtual Box is the minimum specifications required for installation :</p><p>Ram Minimum : 4 Gb <br>Hard Disk : Minimal 30 GB<br>System Operation Host : Windows, macOS, Linux, atau Solaris</p><p>Here I will not explain what Kali Linux is and what virtual box is, because by opening or reading this article I hope you already know it.</p><p>The first thing you need to prepare is the Kali Linux ISO file which you can get on the official Kali Linux website : <a href="https://www.kali.org/get-kali/#kali-platforms">https://www.kali.org/get-kali/#kali-platforms</a></p><p>Because here we are installing it in a virtual box (not dual boot) so you can choose the Kali Linux installer file, and adjust it to the operating system you are using, here I am using 64 bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5IqFWhSlccf4s5gJ9nGjg.png" /></figure><p>If you have finished downloading the Kali Linux ISO file, continue downloading Virtual Box at the following address : <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a><br>Adapt it to the operating system you are using, and don’t forget to download the latest version so you don’t get bugs/differences with the one I use.</p><p>If you have downloaded the Kali Linux and Virtual Box ISO files, follow my steps below.</p><ol><li>Open Virtual Box and click the New button in the top left corner.</li></ol><blockquote>-In the Name section you can name it freely, for example here I named Kali Linux.<br>-Folder You can select the drive you want to use for installing Kali Linux.<br>-Now in the ISO Image section, you select the .iso file that you downloaded earlier.<br>-For the type, you can choose Linux, and the version here I choose Debian (64-bit)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*tlCo7AxPRhpm6FpCCFfMTw.png" /></figure><ul><li>You can just skip the Unattended Install section.<br>-Then in the Hardware Menu you can drag a line from left to right until the green color is complete, whether it is on the base memory or processors,<br>And on Enable EFI you can just uncheck it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*-aqeg36EVOlmOcXmDeWvlA.png" /></figure><ul><li>After that, in the Hard Disk section, you can adjust the capacity of your hard disk, because here the laptop I use has quite a high capacity, so I use 80GB of my hard disk, just adjust it okay.<br>-For the type and variant, you can choose VDI.<br>-Then click Finish</li></ul><p>-Next, you just need to click Start (top right green button)<br>And wait until Bios Mode appears.<br>-When it appears, select Graphical Install and click Enter.<br>-Select the language you want (here I chose English) <br>-For the location and so on, you can adjust it yourself according to your wishes, I won’t explain it in detail here because it will take up a lot of space in this article, after all, you have already chosen the language you can, right?</p><p>After that, click continue and when you are on the “Configure The Network” menu:<br>In the hostname section, just enter the hostname you want, for example (Kali-Linux).<br>For domains, fullnames, usernames are also the same as hostnames (just adjust according to your wishes.</p><p>Now, when you arrive at the setup users and passwords menu, you can enter the password you want to use to log into your Kali Linux account with the username you created earlier.<br>For your time zone, just choose according to the area where you are, it’s free, no problem.</p><p>When you reach the Partition Disks menu, just select the top one (<strong>Guide — Use entire disk</strong>) then click continue again.<br>Next you will be asked to select a disk partition, just select <strong>All files in one partition (Recommended For New Users)</strong> click continue again.<br>If the yes or no option appears, just select yes and continue again.</p><p>So, for the default software here, you are actually free to choose which one you want, but here, because I prefer the <strong>GNOME</strong> appearance, I checked the GNOME section too.<br><strong>GRUB Boot loader</strong>, just select yes and continue again. If you are asked to select the GRUB boot loader device, just click continue again.<br>Wait a few moments until the installation process is complete.<br>If the installation process is complete, it will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qTgZTGUCcP_heqzJ6Fn19g.png" /></figure><p>You just click on the username you created earlier and enter the password you created earlier, then enter…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mGLL3DJeTdNINMl6KvNTlQ.png" /></figure><p>And Finish..<br>That’s enough from me, I hope it helps a little for all of you, if you have any questions, don’t hesitate to comment🥱…</p><p><a href="http://twitter.com/merdekasiberacademy">@merdekasiberacademy</a><br>#cara #merdekasiberacademy #ethicalhacking #hacking #bugbounty #blackhat<br>#whitehat</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7f500aa1f0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>