Main Menu

CZFXP - FTP Scanner BETA 1.0

Started by CA, May 20, 2025, 03:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CA



   █████████  ███████████     █████████    █████████  ███████████   █████ ███████████  ███████████ ███████████
  ███░░░░░███░█░░░░░░███     ███░░░░░███  ███░░░░░███░░███░░░░░███ ░░███ ░░███░░░░░███░█░░░███░░░█░█░░░░░░███
 ███     ░░░ ░     ███░     ░███    ░░░  ███     ░░░  ░███    ░███  ░███  ░███    ░███░   ░███  ░ ░     ███░ 
░███              ███       ░░█████████ ░███          ░██████████   ░███  ░██████████     ░███         ███   
░███             ███         ░░░░░░░░███░███          ░███░░░░░███  ░███  ░███░░░░░░      ░███        ███    
░░███     ███  ████     █    ███    ░███░░███     ███ ░███    ░███  ░███  ░███            ░███      ████     █
 ░░█████████  ███████████   ░░█████████  ░░█████████  █████   █████ █████ █████           █████    ███████████
  ░░░░░░░░░  ░░░░░░░░░░░     ░░░░░░░░░    ░░░░░░░░░  ░░░░░   ░░░░░ ░░░░░ ░░░░░           ░░░░░    ░░░░░░░░░░░


The beginning, is just happening

CZFXP FTP Scanner Python Script replacing Grims Ping FTP Scanner

import ftplib
import ipaddress

def check_ftp_anonymous(ip):
    try:
        ftp = ftplib.FTP(str(ip), timeout=5)
        ftp.login()  # Attempt to login anonymously
        ftp.quit()
        return True
    except ftplib.error_perm:
        return False
    except Exception as e:
        print(f"Error connecting to {ip}: {e}")
        return False

def scan_ips(start_ip, end_ip):
    successful_logins = []

    # Generate IP addresses in the specified range
    for ip in ipaddress.summarize_address_range(ipaddress.IPv4Address(start_ip), ipaddress.IPv4Address(end_ip)):
        for single_ip in ip:
            if check_ftp_anonymous(single_ip):
                print(f"Anonymous access successful on: {single_ip}")
                successful_logins.append(str(single_ip))

    return successful_logins

def save_successful_logins(successful_logins, output_file):
    with open(output_file, 'w') as file:
        for ip in successful_logins:
            file.write(f"{ip}\n")

if __name__ == "__main__":
    print("WELCOME TO THE CZ FTP SCANNER")
   
    # Set the starting and ending IP addresses
    start_ip = input("Enter the starting IP address (e.g., 192.168.1.1): ")
    end_ip = input("Enter the ending IP address (e.g., 192.168.1.255): ")
   
    output_file = 'success.txt'
   
    successful_logins = scan_ips(start_ip, end_ip)
    save_successful_logins(successful_logins, output_file)

    print(f"Scan complete. Successful logins saved to {output_file}.")

Similar topics (5)