Skip to content

dukunline-cyber/cookie-checker

Repository files navigation

Cookie Checker

Multi-platform cookie validator untuk mengecek validitas cookie dari berbagai platform sosial media.

Fitur

  • Multi-platform support: Google/YouTube, Facebook, Instagram, Twitter/X, TikTok
  • Auto-detection: Deteksi otomatis platform dari cookie
  • Username extraction: Ekstrak username dari cookie yang valid
  • Colorful CLI: Interface terminal dengan warna
  • File support: Baca cookie dari file cookies.txt
  • Error handling: Tangani error dengan baik

Instalasi

# Clone repository
git clone https://github.com/username/cookie-checker.git
cd cookie-checker

# Setup virtual environment
python3 -m venv venv
source venv/bin/activate  # Linux/Mac
# atau venv\Scripts\activate  # Windows

# Install dependencies
pip install -r requirements.txt

Penggunaan

Mode interaktif

python cookie_checker.py

Pilih opsi:

  1. Check single cookie: Paste cookie string langsung
  2. Check from file: Baca dari cookies.txt
  3. Exit: Keluar

Format cookie

Cookie string format:

name1=value1; name2=value2; name3=value3

Contoh file cookies.txt

__Secure-3PSID=xxx; __Secure-3PAPISID=yyy; SID=zzz

API

Bisa juga digunakan sebagai library:

from cookie_checker import CookieChecker

checker = CookieChecker()
result = checker.check_all("your_cookie_string_here")
print(json.dumps(result, indent=2))

Platform yang didukung

Platform Endpoint Status Check
Google/YouTube youtube.com, myaccount.google.com Login state, username
Facebook facebook.com/me Profile access
Instagram instagram.com/accounts/edit Account settings
Twitter/X twitter.com/home Home timeline
TikTok tiktok.com User session

Output

============================================================
Results (5 cookies):
✓ Google: Valid - User: user@example.com
✗ Facebook: Invalid - Not logged in
✓ Instagram: Valid - User: insta_user
✗ Twitter/X: Invalid - Not logged in
✓ TikTok: Valid - User: tiktok_user
============================================================

Kontribusi

  1. Fork repository
  2. Buat branch fitur (git checkout -b feature/awesome-feature)
  3. Commit changes (git commit -m 'Add awesome feature')
  4. Push ke branch (git push origin feature/awesome-feature)
  5. Buat Pull Request

Lisensi

MIT License

About

Multi-platform cookie validator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages