www.i4info.org

i4info Provides the best hacking Material. Latest hacking tutorials and tools are available here. It is the best place for hackers.

Latest topics

» BitCoin Wallet stealor New
Sun Feb 19, 2017 7:52 pm by jammieban

» The Omega Organisation is looking for members
Sun Feb 19, 2017 5:50 pm by TheOmegaOrg

» Hack any Facebook Account for Free
Thu Feb 16, 2017 2:25 pm by Admin

» Teen Patti Gold Hack & 3 Patti Chips Code Extra Bonus 2016
Sun Feb 12, 2017 12:13 pm by Shan Soomro 51

» Hallmarks of Scientific Research
Fri Feb 10, 2017 4:04 pm by Nomi gee

» Hotspot Shield Elite VPN [Latest]
Sun Jan 29, 2017 11:52 am by Admin

» CCleaner Professional Plus [Latest]
Sun Jan 29, 2017 9:32 am by harry756

» SQL Dumper v.8.0
Fri Jan 13, 2017 10:18 pm by imsopickled

» Infographic Resume/CV Pack
Fri Jan 06, 2017 2:55 pm by Admin

February 2017

MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728     

Calendar Calendar

Affiliates


free forum

Forumotion on Facebook Forumotion on Twitter Forumotion on YouTubeForumotion on Google+

Visitors Counter


Flag Counter


Collect email addresses from database python exploit

Share

Admin
Admin

Posts : 472
Reputation : 7
Join date : 2014-12-10
Age : 24
Location : Pakistan

Collect email addresses from database python exploit

Post by Admin on Wed Mar 04, 2015 1:54 pm




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

import sys, re, sets

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***91;1***93;, "r").read()
except(IOError):
print "\nError: Check your db path\n"
sys.exit(1)

emails =  list(sets.Set(re.findall('***91;\.\w***93;+@***91;a-zA-Z_***93;+?\.***91;a-zA-Z***93;{2,3}', database)))
if len(emails) >= 1:
ofile = open(sys.argv***91;2***93;, "a")
print "\nFound:",len(emails)
print "Writing to file:",sys.argv***91;2***93;,"\n\n"
for e in emails:
print e
ofile.writelines(e+"\n")
ofile.close()
else:
print "\n***91;-***93; No email addresses found\n"
print "\n***91;+***93; Done\n"




 

    Current date/time is Fri Feb 24, 2017 4:52 am