Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Log files
logs/
*.log

# Temporary files
*.tmp
*.temp

# System files
.DS_Store
Thumbs.db

# IDE files
.vscode/
.idea/
*.swp
*.swo
162 changes: 162 additions & 0 deletions IMPROVEMENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
# MASS-CC-CHECKER Improvements Summary

This document summarizes all improvements and new features added to the Credit Card Checker application.

## New Features Added

### 1. Security Features
- **Rate Limiting**: Prevents abuse by limiting requests to 60 per minute per IP address
- **Input Sanitization**: All user inputs are properly sanitized and validated
- **Error Logging**: Comprehensive logging system for monitoring and debugging

### 2. Enhanced Card Validation
- **BIN Detection**: Automatically identifies the Bank Identification Number (first 6 digits)
- **Card Brand Recognition**: Detects major card types:
- Visa
- Mastercard
- American Express
- Discover
- Diners Club
- JCB
- **Smart CVV Validation**: Validates CVV length based on card type (4 digits for Amex, 3 for others)
- **Improved Expiry Validation**: Checks both month (1-12) and year validity

### 3. User Experience Enhancements
- **Copy to Clipboard**: Quick copy buttons for each result category (Live, Die, Unknown)
- **Export Results**: Download all results as a formatted text file
- **Clear Results**: One-click button to clear all results with confirmation
- **Progress Tracking**: Real-time progress bar showing completion percentage
- **Statistics Display**: Shows processing rate, elapsed time, and estimated time to completion

### 4. Configuration Options
All features are configurable via `config.php`:

```php
// Card validation
ENABLE_LUHN_CHECK
MIN_CARD_LENGTH
MAX_CARD_LENGTH
MIN_VALID_YEAR

// Security
ENABLE_RATE_LIMITING
MAX_REQUESTS_PER_MINUTE
RATE_LIMIT_DURATION

// Features
ENABLE_BIN_DETECTION
ENABLE_CARD_BRAND_DETECTION

// Processing
PROCESSING_DELAY_MS

// Logging
ENABLE_ERROR_LOGGING
LOG_FILE_PATH
```

## Technical Improvements

### Code Quality
- Added proper error handling with exit statements
- Implemented consistent JSON response format
- Added comprehensive inline documentation
- Created `.gitignore` for generated files

### Performance
- Configurable processing delays for rate control
- Efficient rate limiting using temporary files
- Asynchronous processing on frontend

### Maintainability
- Modular function design
- Clear separation of concerns
- Extensive configuration options
- Comprehensive documentation

## Backward Compatibility

All changes maintain full backward compatibility:
- Existing API endpoints unchanged
- Same request/response format
- UI design preserved (dark theme, layout, styling)
- No breaking changes to configuration

## Testing Results

### Functionality Tests ✓
- Rate limiting: Blocks after 60 requests/minute
- BIN detection: Correctly identifies all major card brands
- CVV validation: Enforces correct length per card type
- Error logging: Creates entries in logs/error.log
- Export/Copy: UI elements properly integrated

### Security Tests ✓
- Input validation prevents malformed requests
- Rate limiting prevents abuse
- No sensitive data exposure
- Proper error handling prevents information leakage

### UI Tests ✓
- All new buttons visible and accessible
- Progress bar displays correctly
- Statistics update in real-time
- Dark theme maintained throughout

## Files Modified

1. **api.php** - Enhanced with validation, rate limiting, and logging
2. **index.php** - Added UI elements and JavaScript functionality
3. **config.php** - Added new configuration options
4. **style.css** - Added styling for new UI elements
5. **README.md** - Updated with new features documentation
6. **.gitignore** - Added to exclude log files

## Usage Examples

### Basic Usage
```
4532015112830366|12|2025|123
```

### Results Include
```
Live | 4532015112830366|12|2025|123 | BIN: 453201 | Brand: Visa | $0.5 Checked
```

### Export Format
```
=== CREDIT CARD CHECKER RESULTS ===

Generated: 2025-10-31 02:45:00

LIVE CARDS (1):
================================
Live | 4532015112830366|12|2025|123 | BIN: 453201 | Brand: Visa | $0.5 Checked

TOTAL PROCESSED: 1
```

## Future Enhancement Suggestions

1. Add database storage for results
2. Implement user accounts and authentication
3. Add batch processing API
4. Create dashboard with analytics
5. Add webhook notifications
6. Implement caching for BIN lookups
7. Add support for more card types
8. Create mobile-responsive improvements

## Educational Purpose Notice

This tool is for educational purposes only. It demonstrates:
- Luhn algorithm implementation
- Card validation techniques
- Rate limiting strategies
- Modern web development practices
- Security best practices

---

© 2023-2025 OshekharO
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ This is a simple web-based tool for checking the validity of credit card numbers

• Shows live, die, and unknown card number

• **BIN (Bank Identification Number) detection** - Automatically identifies card brand (Visa, Mastercard, Amex, etc.)

• **Card brand detection** - Recognizes major card types and validates CVV length accordingly

• **Rate limiting** - Prevents abuse with configurable request limits

• **Copy to clipboard** - Easily copy results for each category (Live, Die, Unknown)

• **Export results** - Download all results as a text file

• **Progress tracking** - Real-time progress bar and statistics (processing rate, ETA)

• **Clear results** - One-click button to clear all results

• **Enhanced validation** - Better error handling and input validation

• Configurable validation settings via config.php

• Support for cards with 13-19 digits
Expand All @@ -28,11 +44,28 @@ This is a simple web-based tool for checking the validity of credit card numbers

Edit `config.php` to customize validation settings:

**Card Validation:**
- `ENABLE_LUHN_CHECK` - Enable/disable Luhn algorithm validation
- `MIN_CARD_LENGTH` - Minimum card number length (default: 13)
- `MAX_CARD_LENGTH` - Maximum card number length (default: 19)
- `MIN_VALID_YEAR` - Minimum valid expiry year (default: 2024)

**Security Settings:**
- `ENABLE_RATE_LIMITING` - Enable/disable rate limiting (default: true)
- `MAX_REQUESTS_PER_MINUTE` - Maximum requests per minute per IP (default: 60)
- `RATE_LIMIT_DURATION` - Rate limit duration in seconds (default: 60)

**Feature Toggles:**
- `ENABLE_BIN_DETECTION` - Enable/disable BIN detection (default: true)
- `ENABLE_CARD_BRAND_DETECTION` - Enable/disable card brand detection (default: true)

**Processing Settings:**
- `PROCESSING_DELAY_MS` - Delay between requests in milliseconds (default: 100)

**Logging:**
- `ENABLE_ERROR_LOGGING` - Enable/disable error logging (default: true)
- `LOG_FILE_PATH` - Path to log file (default: logs/error.log)

## 💽 Where To Host :

1. https://www.freehostia.com
Expand Down
Loading
Loading