<?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 Sabirul Islam π on Medium]]></title>
        <description><![CDATA[Stories by Sabirul Islam π on Medium]]></description>
        <link>https://medium.com/@itujnes?source=rss-5654bbcb9c40------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Lu1jYPg-NF1M_nSqzX7M5w.jpeg</url>
            <title>Stories by Sabirul Islam π on Medium</title>
            <link>https://medium.com/@itujnes?source=rss-5654bbcb9c40------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 03:00:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itujnes/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[Lord of SQL Injection]]></title>
            <link>https://itujnes.medium.com/lord-of-sql-injection-edea064d910a?source=rss-5654bbcb9c40------2</link>
            <guid isPermaLink="false">https://medium.com/p/edea064d910a</guid>
            <dc:creator><![CDATA[Sabirul Islam π]]></dc:creator>
            <pubDate>Sat, 02 Nov 2024 09:03:03 GMT</pubDate>
            <atom:updated>2024-11-02T09:03:03.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>№1 — Gremlin</h3><p>&lt;?php<br> include “./config.php”;<br> login_chk();<br> dbconnect();<br> if(preg_match(‘/prob|_|\.|\(\)/i’, $_GET[id])) exit(“No Hack ~_~”); // do not try to attack another table, database!<br> if(preg_match(‘/prob|_|\.|\(\)/i’, $_GET[pw])) exit(“No Hack ~_~”);<br> $query = “select id from prob_gremlin where id=’{$_GET[id]}’ and pw=’{$_GET[pw]}’”;<br> echo “&lt;hr&gt;query : &lt;strong&gt;{$query}&lt;/strong&gt;&lt;hr&gt;&lt;br&gt;”;<br> $result = <a href="http://twitter.com/mysql_fetch_array">@mysql_fetch_array</a>(mysql_query($query));<br> if($result[‘id’]) solve(“gremlin”);<br> highlight_file(__FILE__);<br>?&gt;</p><p>solution : <a href="http://los.eagle-jump.org/gremlin_***.php?id=&#39;">http://los.eagle-jump.org/gremlin_***.php?id=&#39;</a> or 1=1 — ;</p><h3>№2 Cobolt</h3><p>&lt;?php<br> include “./config.php”; <br> login_chk();<br> dbconnect();<br> if(preg_match(‘/prob|_|\.|\(\)/i’, $_GET[id])) exit(“No Hack ~_~”); <br> if(preg_match(‘/prob|_|\.|\(\)/i’, $_GET[pw])) exit(“No Hack ~_~”); <br> $query = “select id from prob_cobolt where id=’{$_GET[id]}’ and pw=md5(‘{$_GET[pw]}’)”; <br> echo “&lt;hr&gt;query : &lt;strong&gt;{$query}&lt;/strong&gt;&lt;hr&gt;&lt;br&gt;”; <br> $result = <a href="http://twitter.com/mysql_fetch_array">@mysql_fetch_array</a>(mysql_query($query)); <br> if($result[‘id’] == ‘admin’) solve(“cobolt”);<br> elseif($result[‘id’]) echo “&lt;h2&gt;Hello {$result[‘id’]}&lt;br&gt;You are not admin :(&lt;/h2&gt;”; <br> highlight_file(__FILE__); <br>?&gt;</p><p>solution : <a href="http://los.eagle-jump.org/cobolt_***.php?id=admin&#39;">http://los.eagle-jump.org/cobolt_***.php?id=admin&#39;</a> — ;</p><h3>№3 Goblin</h3><p>&lt;?php <br> include “./config.php”; <br> login_chk(); <br> dbconnect(); <br> if(preg_match(‘/prob|_|\.|\(\)/i’, $_GET[no])) exit(“No Hack ~_~”); <br> if(preg_match(‘/\’|\”|\`/i’, $_GET[no])) exit(“No Quotes ~_~”); <br> $query = “select id from prob_goblin where id=’guest’ and no={$_GET[no]}”; <br> echo “&lt;hr&gt;query : &lt;strong&gt;{$query}&lt;/strong&gt;&lt;hr&gt;&lt;br&gt;”; <br> $result = <a href="http://twitter.com/mysql_fetch_array">@mysql_fetch_array</a>(mysql_query($query)); <br> if($result[‘id’]) echo “&lt;h2&gt;Hello {$result[id]}&lt;/h2&gt;”; <br> if($result[‘id’] == ‘admin’) solve(“goblin”);<br> highlight_file(__FILE__); <br>?&gt;</p><p>solution : <a href="http://los.eagle-jump.org/goblin_***.php?no=-1">http://los.eagle-jump.org/goblin_***.php?no=-1</a> or id=0x61646d696e — ;</p><h3>№4 Orc</h3><p>&lt;?php <br> include “./config.php”; <br> login_chk(); <br> dbconnect(); <br> if(preg_match(‘/prob|_|\.|\(\)/i’, $_GET[pw])) exit(“No Hack ~_~”); <br> $query = “select id from prob_orc where id=’admin’ and pw=’{$_GET[pw]}’”; <br> echo “&lt;hr&gt;query : &lt;strong&gt;{$query}&lt;/strong&gt;&lt;hr&gt;&lt;br&gt;”; <br> $result = <a href="http://twitter.com/mysql_fetch_array">@mysql_fetch_array</a>(mysql_query($query)); <br> if($result[‘id’]) echo “&lt;h2&gt;Hello admin&lt;/h2&gt;”; <br> $_GET[pw] = addslashes($_GET[pw]); <br> $query = “select pw from prob_orc where id=’admin’ and pw=’{$_GET[pw]}’”; <br> $result = <a href="http://twitter.com/mysql_fetch_array">@mysql_fetch_array</a>(mysql_query($query)); <br> if(($result[‘pw’]) &amp;&amp; ($result[‘pw’] == $_GET[‘pw’])) solve(“orc”); <br> highlight_file(__FILE__); <br>?&gt;</p><p>solution : <a href="http://los.eagle-jump.org/orc_***.php?pw=295d5844">http://los.eagle-jump.org/orc_***.php?pw=295d5844</a></p><h3>№5 Wolfman</h3><p>&lt;?php <br> include “./config.php”; <br> login_chk(); <br> dbconnect(); <br> if(preg_match(‘/prob|_|\.|\(\)/i’, $_GET[pw])) exit(“No Hack ~_~”); <br> if(preg_match(‘/ /i’, $_GET[pw])) exit(“No whitespace ~_~”); <br> $query = “select id from prob_wolfman where id=’guest’ and pw=’{$_GET[pw]}’”; <br> echo “&lt;hr&gt;query : &lt;strong&gt;{$query}&lt;/strong&gt;&lt;hr&gt;&lt;br&gt;”; <br> $result = <a href="http://twitter.com/mysql_fetch_array">@mysql_fetch_array</a>(mysql_query($query)); <br> if($result[‘id’]) echo “&lt;h2&gt;Hello {$result[id]}&lt;/h2&gt;”; <br> if($result[‘id’] == ‘admin’) solve(“wolfman”); <br> highlight_file(__FILE__); <br>?&gt;</p><p>solution : <a href="http://los.eagle-jump.org/wolfman_***.php?pw=%27%09or%09id=%27admin%27%09%23">http://los.eagle-jump.org/wolfman_***.php?pw=%27%09or%09id=%27admin%27%09%23</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edea064d910a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Command CHALLENGE]]></title>
            <link>https://itujnes.medium.com/command-challenge-42ccb976145f?source=rss-5654bbcb9c40------2</link>
            <guid isPermaLink="false">https://medium.com/p/42ccb976145f</guid>
            <dc:creator><![CDATA[Sabirul Islam π]]></dc:creator>
            <pubDate>Wed, 30 Oct 2024 11:06:22 GMT</pubDate>
            <atom:updated>2024-10-30T11:06:22.782Z</atom:updated>
            <content:encoded><![CDATA[<p>Command CHALLENGE</p><p>The files in this challenge contain spaces. List all of the files (filenames only) in the current directory but replace all spaces with a ‘.’ character.</p><p>ans : ls | tr ‘ ‘ ‘.’</p><p>In this challenge there are some directories containing files with different extensions. Print all directories, one per line without duplicates that contain one or more files with a “.tf” extension.</p><p>ans : dirname **/*.tf | uniq</p><p>here are a mix of files in this directory that start with letters and numbers. Print the filenames (just the filenames) of all files that start with a number recursively in the current directory.</p><p>ans : basename -s **/[0–9]*</p><p>Print the 25th line of the file faces.txt</p><p>ans: cat faces.txt | awk ‘NR==25’</p><p>Print the lines of the file reverse-me.txt in this directory in reverse line order so that the last line is printed first and the first line is printed last.</p><pre>~~~~~~~~~~~~~~~~~~~~~<br>In the future<br>Environmental destruction will be the norm<br>No longer can it be said that<br>My peers and I care about this earth<br>It will be evident that<br>My generation is apathetic and lethargic<br>It is foolish to presume that<br>There is hope<br>~~~~~~~~~~~~~~~~~~~~~<br>-Jonathan Reed &quot;The Lost Generation&quot;</pre><p>ans : tac *</p><p>Print the file faces.txt, but only print the first instance of each duplicate line, even if the duplicates don’t appear next to each other.</p><p>ans: awk ‘!c[$0]++’ faces.txt</p><p>The file random-numbers.txt contains a list of 100 random integers. Print the number of unique prime numbers contained in the file.</p><p>ans : cat random-numbers.txt | sort|uniq | factor | awk ‘NF==2’| wc -l</p><p>access.log.1 and access.log.2 are http server logs.</p><p>Print the IP addresses common to both files, one per line.</p><p>ans : awk ‘s[$1]++{print $1}’ a*</p><p>Print all matching lines (without the filename or the file path) in all files under the current directory that start with “access.log”, where the next line contains the string “404”.</p><p>ans : awk ‘/404/ {print x}{x=$0}’ **/a*</p><p>Print all files with a .bin extension in the current directory that are different than the file named base.bin.</p><p>ans : for f in t*; do cmp -s bas* $f || echo $f; done</p><p>There is a file: ./.../ /. .the flag.txt</p><p>ans : cat ‘./…/ /. .the flag.txt’</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42ccb976145f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum algorithms]]></title>
            <link>https://itujnes.medium.com/quantum-algorithms-6d7157d63787?source=rss-5654bbcb9c40------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d7157d63787</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Sabirul Islam π]]></dc:creator>
            <pubDate>Wed, 28 Aug 2024 19:37:55 GMT</pubDate>
            <atom:updated>2024-08-28T19:37:55.260Z</atom:updated>
            <content:encoded><![CDATA[<p>Quantum algorithms are specialized</p><p>algorithms that run on quantum computers, leveraging the principles of quantum mechanics to perform computations that would be infeasible or significantly slower on classical computers. They are designed to solve specific problems more efficiently by exploiting quantum phenomena such as superposition, entanglement, and interference.</p><p>### Key Concepts in Quantum Algorithms</p><p>1. **Qubits**: The basic unit of quantum information, a qubit, unlike a classical bit, can exist in a superposition of states, representing both 0 and 1 simultaneously. This allows quantum computers to process a vast amount of data in parallel.</p><p>2. **Superposition**: This principle allows quantum systems to be in multiple states at once. For quantum algorithms, this means they can explore many possibilities simultaneously, which can drastically reduce the time needed to solve certain problems.</p><p>3. **Entanglement**: A quantum phenomenon where qubits become interconnected such that the state of one qubit directly affects the state of another, regardless of the distance between them. This property is crucial for quantum algorithms, as it enables the coordination of qubits in complex computations.</p><p>4. **Quantum Gates**: Similar to classical logic gates but operating on qubits, quantum gates manipulate qubits through unitary transformations. Quantum algorithms are built by applying a series of quantum gates to perform operations on qubits.</p><p>5. **Quantum Interference**: Quantum algorithms often use interference to amplify the probability of correct answers while canceling out incorrect ones. This is key to the efficiency of quantum algorithms.</p><p>### Notable Quantum Algorithms</p><p>1. **Shor&#39;s Algorithm**: This algorithm factors large integers exponentially faster than the best-known classical algorithms, which has significant implications for cryptography, particularly for breaking widely used encryption schemes like RSA.</p><p>2. **Grover&#39;s Algorithm**: Grover&#39;s algorithm provides a quadratic speedup for unstructured search problems, allowing a quantum computer to find a specific item in an unsorted database faster than any classical counterpart.</p><p>3. **Quantum Fourier Transform (QFT)**: An essential component of many quantum algorithms, including Shor&#39;s algorithm, QFT is a quantum analogue of the discrete Fourier transform. It is used for problems involving periodicity and phase estimation.</p><p>4. **Quantum Annealing and Optimization Algorithms**: Quantum annealing is used for solving optimization problems by finding the minimum of a given function. Quantum algorithms for optimization often outperform classical methods in specific cases, such as certain types of combinatorial optimization problems.</p><p>5. **Variational Quantum Algorithms (VQAs)**: These hybrid quantum-classical algorithms use quantum circuits to prepare parameterized quantum states, which are then optimized using classical methods. VQAs are promising for applications like quantum chemistry and machine learning.</p><p>### Challenges and Future Directions</p><p>Quantum algorithms hold tremendous potential, but their development and implementation are still in the early stages. Challenges include error rates in quantum gates, decoherence (loss of quantum state), and the need for better quantum error correction techniques. As quantum hardware improves, the range and efficiency of quantum algorithms are expected to expand, potentially revolutionizing fields like cryptography, material science, and complex system modeling.</p><p>Overall, quantum algorithms represent a new frontier in computing, offering solutions to problems that were previously thought to be unsolvable or impractical with classical computing methods.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d7157d63787" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[### Cross-Site Scripting (XSS) Vulnerability Details]]></title>
            <link>https://itujnes.medium.com/cross-site-scripting-xss-vulnerability-details-c665cbef1713?source=rss-5654bbcb9c40------2</link>
            <guid isPermaLink="false">https://medium.com/p/c665cbef1713</guid>
            <dc:creator><![CDATA[Sabirul Islam π]]></dc:creator>
            <pubDate>Wed, 28 Aug 2024 18:40:47 GMT</pubDate>
            <atom:updated>2024-08-28T19:39:40.508Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cross-Site Scripting (XSS) Vulnerability Details</h3><p>**1. What is XSS?**<br>Cross-Site Scripting (XSS) is a security vulnerability typically found in web applications. It allows attackers to inject malicious scripts into content delivered to users. This can lead to unauthorized actions, data theft, session hijacking, or even full control of the user&#39;s browser.</p><p>**2. Types of XSS:**<br>There are three main types of XSS vulnerabilities:</p><p>- **Stored XSS (Persistent):** Malicious scripts are permanently stored on the target server (e.g., in a database) and are served to users whenever the stored data is requested. This is especially dangerous as it affects all users who access the data.</p><p>- **Reflected XSS (Non-Persistent):** The malicious script is reflected off a web server and is typically executed in the browser via a crafted link. The attack is non-persistent and targets individual users who click on the link.</p><p>- **DOM-Based XSS:** This occurs when the client-side script modifies the DOM in an unsafe manner, leading to script execution. Unlike other XSS types, the server is not directly involved in this attack.</p><p>**3. How XSS Works:**<br>XSS attacks typically exploit vulnerabilities in web applications by injecting malicious code (usually JavaScript) into a webpage. This code is then executed in the context of the user&#39;s browser, allowing the attacker to steal cookies, session tokens, or perform actions on behalf of the user.</p><p>**4. Impact of XSS:**<br>- **Data Theft:** Attackers can steal sensitive information like login credentials, cookies, or personal data.<br>- **Session Hijacking:** An attacker can take over a user&#39;s session by stealing session cookies.<br>- **Defacement:** Attackers can alter the appearance of the website, displaying unwanted content or phishing forms.<br>- **Malware Distribution:** XSS can be used to deliver malware to users by redirecting them to malicious sites or injecting malicious downloads.</p><p>**5. Common XSS Attack Vectors:**<br>- **Input Fields:** Attackers inject scripts into input fields (e.g., comment boxes, search bars) that are not properly sanitized.<br>- **URL Parameters:** Attackers craft URLs with malicious scripts embedded in parameters, which are then reflected back in the response.<br>- **Third-Party Content:** Vulnerabilities can arise from including third-party scripts or content that are not securely integrated.</p><p>**6. Prevention Techniques:**<br>- **Input Validation and Sanitization:** Ensure that all user inputs are validated and sanitized to remove potentially harmful characters.<br>- **Output Encoding:** Properly encode outputs to neutralize any potentially dangerous content before it is rendered in the browser.<br>- **Use Security Headers:** Implement Content Security Policy (CSP) headers to restrict which scripts can be executed.<br>- **Escape User Input:** Ensure that user inputs are escaped before they are rendered on the page, preventing scripts from being executed.</p><p>**7. Example of XSS Exploit:**<br>```html<br>&lt;script&gt;alert(&#39;XSS Vulnerability&#39;);&lt;/script&gt;<br>```<br>If a web application renders this script without sanitization, the alert will pop up in the user&#39;s browser, demonstrating the XSS vulnerability.</p><p>**8. Mitigation and Best Practices:**<br>- **Regularly Update and Patch:** Keep your web application and its dependencies up-to-date to mitigate known vulnerabilities.<br>- **Use Frameworks with Built-In Protections:** Leverage web frameworks that have built-in XSS protection mechanisms.<br>- **Content Security Policy (CSP):** Use CSP to control which resources are allowed to be loaded, reducing the risk of XSS.</p><p>Understanding and addressing XSS vulnerabilities is crucial for maintaining the security and integrity of web applications. Regular security testing and adherence to best practices can significantly reduce the risk of XSS attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c665cbef1713" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>