1. The best canding and hacking forum
    Dismiss Notice

Collects Email Addrs From Database Python Exploit

Discussion in 'Python & Delphi' started by joeroot, Mar 15, 2014.

  1. joeroot

    joeroot CARDER Member

    PHP:
    #!/usr/bin/python
    #Collects email addr from database
    #and writes them to a file.

    import sysresets

    if len(sys.argv) != 3:
        print 
    "\nUsage: ./dumpemail.py <database> <save file>"
        
    print "Example:"
        
    print "\t ./dumpemail.py db.sql emails.txt\n"
        
    sys.exit(1)

    try:
      
    database open(sys.argv[1], "r").read()
    except(IOError): 
      print 
    "\nError: Check your db path\n"
      
    sys.exit(1)
      
    emails =  list(sets.Set(re.findall('[\.\w]+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}'database)))
    if 
    len(emails) >= 1:
        
    ofile open(sys.argv[2], "a")
        print 
    "\nFound:",len(emails)
        print 
    "Writing to file:",sys.argv[2],"\n\n"
        
    for e in emails:
            print 
    e
            ofile
    .writelines(e+"\n")
        
    ofile.close()
    else:
        print 
    "\n[-] No email addresses found\n"
    print "\n[+] Done\n"
        
     
  2. ???.? PRINCE ?.???

    ???.? PRINCE ?.??? Super Moderator

    Good job....Keep it up.....
     
  3. joeroot

    joeroot CARDER Member

    thanks price :) :51:
     
  4. swine

    swine Member Member

    damn joe you're a coding machine

    many thanks
     
  5. joeroot

    joeroot CARDER Member

    thanks Swine and enjoy hacking :)
     
  6. Byrle

    Byrle Member Member

    Good share. Thank bro
     
  7. joeroot

    joeroot CARDER Member

    thanks man enjoy hacking :)
     
  8. elly

    elly HACKER Member

    Nice job but i do not know how 2 use this.
     
  9. joeroot

    joeroot CARDER Member

    elly its easy to use search on google how to use perl exploits in windows and linux
    thanks and enjoy hacking
     
  10. joeroot

    joeroot CARDER Member

    elly its easy to use search on google how to use perl exploits in windows and linux
    thanks and enjoy hacking
     
  11. dnscode

    dnscode HACKER Member

    good job ...
     

Share This Page