[Python Exploit] Collects Email Address From Database [php]

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Assaultz

Member
Dec 11, 2016
431
256
73
[HIDE]
<?php
#!/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[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" [/HIDE]


-Assaultz

Enjoy :p
 
General chit-chat
Help Users
    Chat Bot: henry7 has posted a new reply in the thread "Dragon Ball Z Dokkan Battle -v. 5.18.0- MOD Menu...