#!/usr/bin/env python
import sys
import os
import win32crypt
import sqlite3
from datetime import datetime
PY2 = sys.version_info[0] == 2
if PY2:
    raise Exception("Please use finally Python3.x version :)")

'''==================== DESCRIPTION ===================='''

'''==================== DESCRIPTION-END =================='''    


'''==================== USAGE ===================='''
# 1. pip install pypiwin32 or download the package from https://sourceforge.net/projects/pywin32/
# look at the main method
'''====================  USAGE-END =================='''

'''==================== GLOBAL SETTINGS ===================='''

'''==================== GLOBAL SETTINGS-END =================='''
        

def main():
    import ftplib
    def anonLogin(hostname):
        try:
            ftp = ftplib.FTP(hostname)
            ftp.login('admin', 'admin')
            print('\n[*] ' + str(hostname) +' FTP Anonymous Logon Succeeded.')
            ftp.quit()
            return True
        except Exception as e:
            print('\n[-] ' + str(hostname) +' FTP Anonymous Logon Failed.')
            return False
    host = 'stasbranger.com'
    anonLogin(host)

            
if __name__ == '__main__':
    try:
        main()
    except Exception as e:
        print("[ERROR]: %s"%e)
        
