🔓 Subdomain Takeover via GitHub Pages (2025)
by Nyx6st / 0x6ick

🧠 Apa Itu Subdomain Takeover?
Subdomain takeover adalah teknik untuk mengambil alih subdomain yang sebelumnya terhubung ke layanan pihak ketiga seperti GitHub Pages, tapi sekarang sudah tidak aktif (biasanya menunjukkan status HTTP 404). Jika subdomain tersebut belum diklaim ulang di GitHub, maka bisa kita ambil alih 😈.
🧰 Tools yang Dibutuhkan:
- 🔍 Reverse IP Lookup: hackertarget.com/reverse-ip-lookup
- 📊 HTTP Status Checker: httpstatus.io
- 🧑💻 Akun GitHub aktif
🚀 Step by Step Takeover Subdomain GitHub
1. Siapkan Akun GitHub
Login ke akun GitHub kamu di github.com. Kalau belum punya, daftar dulu ya, brok.
2. Cari Target Lewat Reverse IP
- Buka Reverse IP Lookup
- Masukkan:
grab.github.io
- Copy list domain yang muncul
3. Filter Domain 404
- Masuk ke httpstatus.io
- Paste domain hasil reverse IP tadi
- Cari domain yang statusnya 404 Not Found
4. Buat Repository Baru
- Di GitHub, klik tanda + → New repository
- Isi Repository Name dengan nama domain target (contoh:
example.com
) - Centang “Initialize this repository with a README”
- Klik Create Repository
5. Upload File HTML
- Klik Add file → Create new file
- Isi nama file:
index.html
- Isi kontennya misal:
<center><h1>Hacked by 0x6ick</h1></center>
- Klik tombol hijau Commit changes
6. Setting GitHub Pages
- Masuk ke tab Settings repo
- Scroll ke bawah ke bagian GitHub Pages
- Source: pilih main atau master branch
- Isi Custom Domain dengan nama domain target
- Klik Save
7. Cek Domain Target
Kalau berhasil, akan muncul pesan:
Your site is published at http://example.com
🎉 Anjay heker:v
🧠 Apakah Masih Work di 2025?
Yap, trik ini udah ada sejak dulu (sekitar 2016–2019-an booming), tapi hingga tahun 2025 ini masih work tergantung kondisi berikut:
- ✅ DNS subdomain masih mengarah ke GitHub Pages
- ✅ Belum ada repository GitHub dengan nama domain tersebut
- ✅ Domain owner belum menghapus custom domain-nya
- ✅ GitHub masih mengizinkan pengaturan custom domain manual
Intinya, kalau subdomain-nya masih 404 dan resolve ke GitHub — takeover bisa dieksekusi.
⚠️ DISCLAIMER:
This article is made for educational purposes and legal pentesting only. Any misuse of unauthorized parties is not the responsibility of the author. Don't misuse it, brok.😎
"Where creativity, exploitation, and expression collide."
Posting Komentar