Skip to content

Commit 2be17e6

Browse files
authored
sitelere ait email arama
1 parent ce4e313 commit 2be17e6

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

Diff for: mail_arama.py

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
"""
2+
emailharvester ile kullanılmakta ve linux için çalışmaktadır.
3+
dolayısıyla emailharvester!ın yüklenmesi ve linux sistem gereklidir
4+
"""
5+
6+
# -*- coding: utf-8 -*-
7+
import os
8+
import re
9+
import string
10+
11+
UYARI = "\nSİTE İSİMLERİNİN OLDUĞU DOSYA PROGRAM İLE AYNI DİZİNDE OLMALI \nEĞER AYNI DİZİNDE DEĞİLSE DOSYA YOLU İLE BERABER GİRİLMELİDİR.\n"
12+
print(UYARI)
13+
14+
dosya = str(input("Site isimlerinin olduğu dosyanın adını giriniz: "))
15+
16+
dosya = open(dosya, "r")
17+
18+
dosya = dosya.readlines()
19+
20+
yenidosya = open("yenisiteler.txt","w")
21+
22+
for i in dosya:
23+
i = i.replace("www.", "")
24+
print(i)
25+
yenidosya.write(i)
26+
27+
yenidosya.close()
28+
okunan_siteler = open("yenisiteler.txt", "r")
29+
okunan_siteler = okunan_siteler.readlines()
30+
for i in okunan_siteler:
31+
a = "emailharvester -d {} -e google >> sonuc.txt".format(i.replace("\n",""))
32+
print(a)
33+
os.system(a)
34+
35+
okunan_siteler.close()
36+
37+
karisik = open("sonuc.txt","r")
38+
karisik = karisik.read()
39+
yeni = open("sonuc.txt","w")
40+
yeni.write(karisik)
41+
yeni.close()
42+
43+
oku = open("sonuc.txt","r")
44+
oku = oku.readlines()
45+
46+
son_sonuc = open("son_sonuc.txt","w")
47+
48+
for i in oku:
49+
if "@" in i:
50+
son_sonuc.write(i)
51+
else:
52+
pass
53+
son_sonuc.close()

0 commit comments

Comments
 (0)