> For the complete documentation index, see [llms.txt](https://akuma-s.gitbook.io/akuma/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://akuma-s.gitbook.io/akuma/writeups-or-ctfs-and-labs/ctfs/deadsec-ctf-2024/mic_check-misc.md).

# Mic\_check (misc)

After connecting via `nc`, there are 100 rounds where you have to succeed in the mic check, if you’re not fast enough to type the words out, it returns `mic check fail :(`

<table data-header-hidden><thead><tr><th></th></tr></thead><tbody><tr><td><pre><code>$ nc 34.132.190.59 31991
mic test >  o [1/100]
submit test words > o
mic test >  zh [2/100]
submit test words > zh
mic test >  odk [3/100]
submit test words > odk
mic test >  rdhm [4/100]
submit test words > rdhm
mic check fail :(
</code></pre></td></tr></tbody></table>

I wrote the following script to automate this:

<table data-header-hidden><thead><tr><th></th></tr></thead><tbody><tr><td><pre class="language-py"><code class="lang-py">from pwn import *

target = remote("34.44.175.226", 31617)

# Function to process and send data

def process\_and\_send(data):
print(data)
data = data.decode("utf-8")
new = data.split("mic test >  ")\[-1].split(" \[")\[0]
target.sendline(new\.encode())

# Loop for subsequent rounds

for i in range(100):
data = target.recvuntil(b"]")
process\_and\_send(data)

target.interactive() </code></pre></td></tr></tbody></table>
