ctfs
  • 👋Hello!
  • 🏴Practice
    • 🌐Cryptohack
      • Introduction
      • General
        • Encoding
        • XOR
        • Mathematics
        • Data Formats
      • Symmetric Ciphers
        • How AES Works
        • Symmetric Starter
        • Block Ciphers 1
        • Stream Ciphers
      • Mathematics
        • Modular Math
        • Lattices
      • RSA
        • Starter
        • Primes Part 1
        • Public Exponent
    • 🌐PortSwigger
      • Path Traversal
      • File Upload
      • SSRF Attacks
    • 🌐TryHackMe
      • Basic Skills
      • Linux
      • Penetration Testing
      • Networking
      • OSINT
  • 🚩Competitions
    • 2025
      • 🇮🇩GKSK#9 Osintathon
        • Mudik Lebaran (100 pts)
        • Foto Patung (100 pts)
        • Kolektor Komik (100 pts)
        • Tolong Aku (100 pts)
        • Kencan Pertama (100 pts)
        • Nama Si Pelaku (100 pts)
        • Cekidot (100 pts)
        • Ledakan! (100 pts)
        • 🎹🎶 (100 pts)
        • Batu Besar (100 pts)
        • Komentar (100 pts)
        • Ini dimana? (100 pts)
        • Koordinat Foto Misterius (100 pts)
        • Bianglalaaa (100 pts)
        • Aku Hacker (100 pts)
        • Anjazzz (100 pts)
        • Dikirim Kakakku (129 pts)
        • Ingfo Loker (154 pts)
        • MISSING 00 (100 pts)
        • MISSING 01 (154 pts)
        • Siapa Aku? (154 pts)
      • 🇮🇩IFEST 13
        • Ququerer (250 pts)
        • Silent Trace (370 pts)
        • Nugas (Solved After Event)
        • Free Flag (280 pts)
        • Brute (Solved After Event)
        • Web V1 (Solved After Event)
        • Bypass (Solved After Event)
        • Orbiter (Solved After Event)
      • 🌐OSINT Combine (Wildlife)
        • Getting Started (100 pts)
        • Proper Poppy (100 pts)
        • Legendary Beasts (200 pts)
        • Shadow Fleet (200 pts)
        • Proper Poppy II (200 pts)
        • Not So Smug Smuggler (200 pts)
        • Icy (200 pts)
        • Forest Pals (200 pts)
        • Safari Time II (200 pts)
        • Sneaky! (200 pts)
        • Hello Friend (300 pts)
        • Busy As A (300 pts)
        • Get Rotated! (300 pts)
        • High Seas (300 pts)
        • Nocturnal (300 pts)
        • Safari Time (400 pts)
        • Peak Weather (400 pts)
        • Singsong (400 pts)
        • Falling Fell (500 pts)
        • Kitty Cats (500 pts)
      • 🇮🇩RECURSION
        • let him cook
        • Basic Math
        • Favourite Number
        • Zarrar Cipher (100 pts)
        • paBlue Team (100 pts)
        • [🩸] I wish I was there on December 21, 2024 (100 pts)
        • Small House (200 pts)
        • [🩸] Mission Difference (456 pts)
    • 2024
      • 🌐Santa Claus CTF
        • Complete Picture
        • Day 1 - Big Bang
        • Day 2 - The Summer Job
        • Day 3 - The Visitors
        • Day 4 - Happy Birthday
        • Day 5 - Say My Name
        • Day 6 - Say "Cheese"
        • Day 7 - Revealing Pixels
        • Day 8 - Connecting The Dots
        • Day 9 - 404 Not Found
        • Day 10 - Breaking News
        • Day 11 - Ayrton Santa
        • Day 12 - Lost and Found
        • Day 13 - Planespotting
        • Day 14 - Santa Surveillance
        • Day 15 - Shaken, Not Stirred
        • Day 16 - Status Update
        • Day 17 - Waste ...of Time
        • Day 18 - Lost in Translation
        • Day 19 - Santa's Clones
        • Day 20 - Losing Tracks
        • Day 21 - Sing my Song
        • Day 22 - Eagle Eye
        • Day 23 - Distances Matters
        • Day 24 - Mastermind
      • 🌐Cyber Jawara International
        • Stone Game (100 pts)
        • prepare the tools (176 pts)
        • Persona (484 pts)
      • 🌐OSMOSIS Precon CTF
        • 1 The art of espionage
        • # 2 The Hack
        • # 3 The rabbit hole
        • # 4 The Association
        • # 6 Where is number 5
        • # 5 Who is it
        • Too many Layers
        • The prize
      • 🇮🇩Intechfest
        • Sanity Check (100 pts)
        • Alin (113 pts)
        • GerakSendiri (106 pts)
        • Details (100 pts)
      • 🇮🇩COMPFEST 16
        • Let's Help John! (100 pts)
        • money gone, wallet also gone (100 pts)
        • head’s up! (493 pts)
        • CaRd (304 pts)
        • Sanity Check (100 pts)
      • 🇮🇩Gemastik
        • Baby AES (451 pts)
        • Baby Structured (100 pts)
      • 🇮🇩Technofair 11
        • Kenangan
        • Xorban
        • Marsha
        • Siap Tempur!!
        • eftipi
        • kurang berarti
        • DUMPling
        • Malicious
      • 🌐DIVER OSINT
        • chiban
      • 🇮🇩GKSK#8 Osintathon
        • Sport Location
        • Meklaren lu warna apa boss ?
        • Postcode
        • Rumah Minang
        • Latihan
        • Anak Misterius
        • Travelling Anywhere
        • The Thief
        • Danger Watch
        • Misteri Ruang Angkasa
        • Fun Walk
        • I am Late
        • My Oshi
        • Wellcome to my Youtube Channel
        • Pesan Tersembunyi Wingdings
        • Salah Fokus
        • Apa itu GKSK?
        • Foto Bersejarah
        • Picture
        • Nostalgia Child
        • oldschool
        • Summer Olympic
      • 🇮🇩Techcomfest
        • pemanasan
        • crackable
        • Kuli-ah forensik
    • 2023
      • 🇮🇩Cyber Jawara
        • daruma
      • 🇮🇩NCW
        • Simple (220 pts)
        • wangsaf (320 pts)
        • Sillyville Saga (220 pts)
        • Freminhelp (Solved after event)
      • 🇮🇩Hology 6
      • 🇮🇩SlashRoot 7
        • Summary (441 pts)
        • eeee (480 pts)
        • Zebra Cross (409 pts)
        • Waka Waka eh eh (185 pts)
        • ANABUL (250 pts)
      • 🇮🇩COMPFEST 15
        • not simply corrupted (316 pts)
        • Artificial secret (356 pts)
      • 🇮🇩Gemastik
        • easy AES
        • k-1
        • Gen Z
      • 🇮🇩TechnoFair 10
        • RSA Bwang
        • Marsah
        • rapsodi
        • Pengen Merch JKT 😢
        • space mono
        • file pemberian fans
        • bantu aku mencari sebuah rahasia
    • 2022
      • 🇮🇩NCW
        • sabeb64 (331 pts)
        • cakemath (451 pts)
        • Downloader (244 pts)
        • 199 passcode (Solved after event)
      • 🇮🇩TEDCTF
      • 🇮🇩Gemastik
      • 🇮🇩OSCCTF
      • 🇮🇩ARA
  • 🪦Old Hello
Powered by GitBook
On this page
  • [1/6] What is the device that attacker use to attack victim device? (answer in lowercase e.g. cpu)
  • [2/6] What is the victim bluetooth name? (answer in lowercase e.g. ujang)
  • [3/6] What is the victim device MAC address (e.g. 00:11:22:33:44:55)
  • [4/6] What is the first app that attacker use to open victim whatsapp? (answer in lowercase e.g. twitter)
  • [5/6] What is the message that attacker send to victim whatsapp?
  • [6/6] Attacker trying to open browser again in private mode, there are an attachment that you can see.
  1. Competitions
  2. 2024
  3. Intechfest

GerakSendiri (106 pts)

Author: 53buahapel

Could you analyze this?

Pada soal ini kita diberikan file chall.pcapng dan sebuah instance server yang berisi beberapa pertanyaan. Saya menggunakan kode berikut untuk connect ke server.

import asyncio
import websockets

async def connect_to_websocket(uri):
    async with websockets.connect(uri) as websocket:
        print("Connection opened!")

        while True:
            try:
                # get message from server
                message = await websocket.recv()
                print(f"{message.decode()}")

                # send input
                user_input = input("Enter message: ")

                # input handling
                if user_input.lower() == 'exit':
                    break
                else:
                    await websocket.send(user_input + '\n')

            except websockets.ConnectionClosed:
                print("Connection closed!")
                break
            except Exception as e:
                print(f"Error: {e}")
                break


uri = "wss://ctf.intechfest.cc/api/proxy/079b7720-7140-44ea-82b5-337de9c52dff"
asyncio.get_event_loop().run_until_complete(connect_to_websocket(uri))

Langsung saja jawab pertanyaannya.

[1/6] What is the device that attacker use to attack victim device? (answer in lowercase e.g. cpu)

Jika dilihat di Wireshark, pada file ini semua interaksi-nya menggunakan protokol Bluetooth.

Answer: bluetooth

[2/6] What is the victim bluetooth name? (answer in lowercase e.g. ujang)

Pada salah satu paket (yang berada cukup awal), disebutkan nama device attacker serta victimnya.

Answer: asep

[3/6] What is the victim device MAC address (e.g. 00:11:22:33:44:55)

Jawabannya dapat ditemukan di tempat yang sama dengan jawaban No. 2.

Answer: 10:82:d7:92:50:80

[4/6] What is the first app that attacker use to open victim whatsapp? (answer in lowercase e.g. twitter)

Di sini attacker menggunakan "https://wa.me" untuk mengakses WhatsApp, oleh karena itu attacker menggunakan browser.

Answer: browser

[5/6] What is the message that attacker send to victim whatsapp?

Sebagaimana terlihat pada soal No. 4, pada file capture ini kita bisa melihat key yang “ditekan” attacker pada keyboard. Sebagai contoh, nilai dari key dapat dilihat pada packet seperti berikut.

from scapy.all import *

keymap = {
            '04': 'a', '05': 'b', '06': 'c', '07': 'd', 
            '08': 'e', '09': 'f', '0a': 'g', '0b': 'h', 
            '0c': 'i', '0d': 'j', '0e': 'k', '0f': 'l', 
            '10': 'm', '11': 'n', '12': 'o', '13': 'p', 
            '14': 'q', '15': 'r', '16': 's', '17': 't', 
            '18': 'u', '19': 'v', '1a': 'w', '1b': 'x', 
            '1c': 'y', '1d': 'z', '1e': '1', '1f': '2', 
            '20': '3', '21': '4', '22': '5', '23': '6', 
            '24': '7', '25': '8', '26': '9', '27': '0', 
            '28': '\n', '2b': '\t', '2c': ' ', '2d': '-',
            '2e': '=', '2f': '[', '30': ']', '31': '\\',
            '32': '`', '33': ';', '34': '\'', '35': '`', 
            '36': ',', '37': '.', '38': '/'}
keymap_shift = {
            'a': 'A', 'b': 'B', 'c': 'C', 'd': 'D', 'e': 'E',
            'f': 'F', 'g': 'G', 'h': 'H', 'i': 'I', 'j': 'J',
            'k': 'K', 'l': 'L', 'm': 'M', 'n': 'N', 'o': 'O',
            'p': 'P', 'q': 'Q', 'r': 'R', 's': 'S', 't': 'T',
            'u': 'U', 'v': 'V', 'w': 'W', 'x': 'X', 'y': 'Y',
            'z': 'Z',
            '1': '!', '2': '@', '3': '#', '4': '$', '5': '%',
            '6': '^', '7': '&', '8': '*', '9': '(', '0': ')',
            '-': '_', '=': '+', '[': '{', ']': '}', 
            ';': ':', "'": '"',
            ',': '<', '.': '>', 
            '/': '?',
            '`': '~',
            '\\': '|'
}

# get char from keyboard value
def convert_char(byte_value, shift):
    char = keymap[format(byte_value, '02x')]
    if shift:
        char = keymap_shift[char]
    return char

msg = ''

packets = rdpcap('chall.pcapng')

# iterate all packets, filter those that 
# ...contain keyboard value, length = 24
for i, packet in enumerate(packets):
    shift_on = False
    if len(bytes(packet)) == 24:
        data = bytes(packet)

        # data in this position checks if SHIFT button is pressed
        if data[15] == 2:
            shift_on = True

        # data in this position tells the values
        try:
            char = convert_char(data[17], shift_on)
            msg += char
        except:
            continue
        
print(msg)

Pesan yang dikirim adalah string yang ditulis tepat setelah link whatsapp, yakni l33t1337

Answer: l33t1337

[6/6] Attacker trying to open browser again in private mode, there are an attachment that you can see.

Pertanyaan ini terjawab bersamaan dengan pertanyaan No. 5. Dengan meng-klik link undipmail yang diketikkan oleh attacker, kita akan mendapatkan sebuah video yang memiliki sebuah teks.

Answer: akhirnya aku dapet flag asikkkk

Flag: INTECHFEST{bluetooth_could_be_dangerous_5dff7d}

PreviousAlin (113 pts)NextDetails (100 pts)

Last updated 4 months ago

Di sini, terdapat bagian “02 00 11”. Byte “02” menunjukkan bahwa tombol SHIFT ditekan, dan byte “11” menunjukkan bahwa key yang ditekan adalah huruf “n”. Dengan begitu, karakter yang dihasilkan adalah “N”. Tentu di sini keyboard tidak menggunakan value ascii, tapi menggunakan (Hal. 53). Maka dari itu, saya membuat script berikut untuk membaca packet-packet keyboard ini dan mengekstrak karakternya.

🚩
🇮🇩
standar USB