import sys

def process_line(email, password):
    domain = email.split('@')[1]
    new_line = f"https://{domain}/wp-admin/user-new.php:{email}:{password}"
    return new_line

def main(input_file, output_file):
    wroted = 0
    with open(output_file, "w", encoding="utf-8", errors="ignore") as outfile:
        with open(input_file, "r", encoding="utf-8", errors="ignore") as infile:
            for line in infile:
                if not ":" in line or not "@" in line:
                    continue
                parts = line.split(":", 1)
                if len(parts) != 2:
                    continue

                email, password = parts
                try:
                    processed_line = process_line(email, password)
                    outfile.write(processed_line + '')
                    wroted += 1
                    sys.stderr.write(f"\rProcessed Lines: {wroted}")
                except Exception as e:
                    sys.stderr.write(f"\rError processing line: {line.strip()} - {e}")

input_file = input("Input file name: ")
output_file = input("Output File Name: ")
main(input_file, output_file)