Metadata-Version: 2.4
Name: BetterSQLi
Version: 1.3.3
Summary: BetterSQL SQL injection testing toolkit
Home-page: https://github.com/ThT0AltayHR/BetterSQL
Author: ThT0AltayHR
License: UKSL-2026
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE_BETTERSQL
Requires-Dist: chardet>=4.0
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 🎯 BetterSQL - Profesyonel SQL Injection Test Aracı

![Logo](https://resmim.net/cdn/2026/08/25/EtP3bM.png)

---

## 📋 İçerik

- [Giriş](#giriş)
- [Nedir BetterSQL?](#nedir-bettersql)
- [Temel Özellikler](#temel-özellikler)
- [Kurulum](#kurulum)
- [Kullanım](#kullanım)
- [Enjeksiyon Türleri](#enjeksiyon-türleri)
- [Veritabanı Desteği](#veritabanı-desteği)
- [WAF Bypass](#waf-bypass)
- [Lisans](#lisans)

---

## 🔍 Giriş

**BetterSQL**, SQLMap'tan esinlenerek geliştirilmiş, **modern**, **zeki** ve **güçlü** bir SQL Injection test aracıdır. 

Sadece bir link girersiniz - gerisi tamamen **otomatiktir**.

![Separator](https://resmim.net/cdn/2026/08/25/EtPbpH.png)

---

## 🎨 Nedir BetterSQL?

BetterSQL, penetration test uzmanları ve güvenlik araştırmacıları için tasarlanmış, aşağıdaki özelliklerle donatılmış **yeni nesil** bir araçtır:

### ✨ **Harika Özellikleri**

- ✅ **Tamamen Otomatik** - Hiçbir parametre ayarlamaya gerek yok
- ✅ **Dinamik Payload Generator** - Her hedef için canlı olarak payload üreir
- ✅ **WAF Learning System** - WAF'ın reddetme nedenleri öğrenilir ve uyarlanır
- ✅ **AI Strategy Engine** - Yapay zeka destekli karar sistemi (Zither Mode)
- ✅ **2FA Bypass** - İki faktörlü kimlik doğrulama engelleme
- ✅ **Checkpoint System** - Kesintiye dayanıklı session save/restore
- ✅ **OOB Exfiltration** - DNS/HTTP Out-of-Band veri çekim

![Blog](https://resmim.net/cdn/2026/08/25/EtPowc.png)

---

## 🚀 Temel Özellikler

### 1. **SQL Injection Türleri**

![Separator](https://resmim.net/cdn/2026/08/25/EtP1mn.png)

#### **Klasik Teknikler**
- ✓ **UNION-based Injection** - Sonuç Döndürücü
- ✓ **Error-based Injection** - Hata Temelli  
- ✓ **Boolean-based Blind** - Boolean Tabanlı
- ✓ **Time-based Blind** - Zaman Tabanlı
- ✓ **Stacked Queries** - Yığınlı Sorgular

#### **Modern Teknikler**
- ✓ **NoSQL Injection** - MongoDB, CouchDB, Redis
- ✓ **GraphQL Injection** - GraphQL Resolver Leakage
- ✓ **LDAP Injection** - Dizin Servisi
- ✓ **XPath Injection** - XML Sorgulama
- ✓ **XSLT Injection** - XML Dönüşüm

#### **API & Modern Uygulamalar**
- ✓ **JWT Token Bypass** - JSON Web Token
- ✓ **OData Injection** - Microsoft OData
- ✓ **SPARQL Injection** - Semantic Web
- ✓ **HQL Injection** - Hibernate
- ✓ **Out-of-Band (OOB)** - DNS/HTTP Exfiltration

---

### 2. **Veritabanı Desteği**

| Veritabanı | Destek | OOB | 2FA |
|------------|--------|-----|-----|
| MySQL | ✅ | ✅ | ✅ |
| PostgreSQL | ✅ | ✅ | ✅ |
| MSSQL | ✅ | ✅ | ✅ |
| Oracle | ✅ | ✅ | ✅ |
| SQLite | ✅ | ⚠️ | ✅ |
| MongoDB | ✅ | ✅ | ✅ |
| Firebird | ✅ | ✅ | ✅ |
| Sybase | ✅ | ✅ | ✅ |
| Vertica | ✅ | ✅ | ✅ |
| Snowflake | ✅ | ✅ | ✅ |

---

### 3. **WAF Bypass & Evasion**

![Separator](https://resmim.net/cdn/2026/08/25/EtP1mn.png)

**Desteklenen WAF'lar:**
- 🛡️ **Cloudflare** - Comment enjeksiyonu, karakter kodlama
- 🛡️ **Akamai** - Polyglot payloads, null byte
- 🛡️ **AWS WAF** - Unicode encoding, space replacement
- 🛡️ **Azure WAF** - Multibyte karakterler, encoding chains
- 🛡️ **F5 BIG-IP** - Advanced evasion, request morphing
- 🛡️ **Google Cloud WAF** - Dynamic mutation
- 🛡️ **ModSecurity** - Pattern bypass, nested comments

**Bypass Stratejileri:**
- Karakter Kodlama (Hex, Unicode, Base64)
- Yorum Enjeksiyonu (`/**/`, `--`, `#`)
- Space Değiştirme (`+`, `%20`, `/**/`)
- Case Variation (Büyük/Küçük Harf)
- Null Byte Enjeksiyonu
- Polyglot Payloads
- Dinamik Mutasyon

---

### 4. **Akıllı Sistem (Zither Mode)**

Hedef sistem zor olduğunda, **Zither Mode** otomatik olarak:

```
🤖 Hedef analiz eder
🧠 En uygun stratejiyi belirler
⚡ Dinamik payload üretir
🔄 Başarısızlıktan öğrenir
🎯 Tam otomatik exploit eder
```

---

## 📥 Kurulum

```bash
# PyPI'den kur
python -m pip install --upgrade BetterSQLi

# Başlat
bettersql -u "http://hedef.com/page.php?id=1"
```

Kaynak kodundan çalıştırmak için:

```bash
git clone https://github.com/ThT0AltayHR/BetterSQL.git
cd BetterSQL
python BetterSQL.py -u "http://hedef.com/page.php?id=1"
```

---

## 🎮 Kullanım

### Basit Kullanım

```bash
# Tek satırda - hiç parametre gerek yok!
python BetterSQL.py -u "http://target.com/page.php?id=1"
```

### İleri Kullanım

```bash
# Cookie ile
python BetterSQL.py -u "http://target.com/page.php?id=1" --cookie="PHPSESSID=xyz"

# Custom header ile
python BetterSQL.py -u "http://target.com/api/user" --header="Authorization: Bearer token"

# POST data ile
python BetterSQL.py -u "http://target.com/login" --data="username=admin&password=test"

# Zither Mode (AI)
python BetterSQL.py -u "http://target.com/page.php?id=1" --zither
```

---

## 📊 Log Formatı

```
[22:30:43](TR) [INFO] BetterSQL hazırlanıyor...
[22:30:45](TR) [SCAN] SQL Injection test başlıyor...
[22:30:46](TR) [UNION] UNION SELECT payload gönderiliyor...
[22:30:48](TR) [✓] Zafiyetli parametreler bulundu: id
[22:30:50](TR) [DATABASE] MySQL 8.0.23 tespit edildi
[22:30:52](TR) [DUMP] Tablo çekimi başlıyor...
  ... users (356 rows)
  ... products (1,024 rows)
  ... sessions (128 rows)
[22:35:12](TR) [✓] Dump tamamlandı! 1,508 kayıt çekildi.
```

---

## 🔐 Lisans

```
╔════════════════════════════════════════════════════════════════╗
║  BetterSQL - Uluslararası Koruma Lisansı (UKSL-2026)         ║
║                                                                ║
║  ⚠️  KOD DEĞİŞTİRİLEMEZ - Non-Modifiable License             ║
║  ⚠️  EĞİTİM AMAÇLI - Educational Use Only                    ║
║  ⚠️  SAHIBININ İZNİ OLMADAN YAYILANAMAZ                       ║
║                                                                ║
║  Bu araç YASAL penetration testing için tasarlanmıştır.      ║
║  İzinsiz sistemlere erişim SUÇTUR.                           ║
║                                                                ║
║  © 2026 BetterSQL Team                                        ║
╚════════════════════════════════════════════════════════════════╝
```

---

## 📞 Destek

- 📧 Email: security@bettersql.dev
- 🐛 Bug Report: issues@bettersql.dev
- 📚 Dokümantasyon: https://docs.bettersql.dev

---

**BetterSQL - Daha İyi Güvenlik Testi İçin** 🚀
