Comments on: Turkiye’den Spam Istatistikleri http://blog.lifeoverip.net/2009/04/23/turkiyeden-spam-istatistikleri/ Life (Over) IP, Sun, 13 Sep 2009 15:14:53 +0000 hourly 1 By: Complexity is the enemy of Security | Nisan Ayı Spam Analizi http://blog.lifeoverip.net/2009/04/23/turkiyeden-spam-istatistikleri/comment-page-1/#comment-1017 Sun, 13 Sep 2009 15:14:53 +0000 http://blog.lifeoverip.net/?p=1058#comment-1017 […] önce burada Türkiye’ye hizmet veren çeşitli mail sunucularda yaptığım spam analizlerinden […]

]]>
By: salih http://blog.lifeoverip.net/2009/04/23/turkiyeden-spam-istatistikleri/comment-page-1/#comment-497 Thu, 30 Apr 2009 16:08:33 +0000 http://blog.lifeoverip.net/?p=1058#comment-497 en kötülerde hep üst sıraları zorluyoruz

]]>
By: Can HANHAN http://blog.lifeoverip.net/2009/04/23/turkiyeden-spam-istatistikleri/comment-page-1/#comment-494 Wed, 29 Apr 2009 08:31:01 +0000 http://blog.lifeoverip.net/?p=1058#comment-494 Türk Telekom 25’i blokladıktan sonraki halini de analiz edebilirsiniz. Bu verileri saklamanız güzel olmuş.

]]>
By: Cagri Ersen http://blog.lifeoverip.net/2009/04/23/turkiyeden-spam-istatistikleri/comment-page-1/#comment-478 Fri, 24 Apr 2009 18:08:25 +0000 http://blog.lifeoverip.net/?p=1058#comment-478 Merhaba,

Ben de zaten qsheff için düzenlemeyi düşünüyordum 🙂
Çok teşekkür ederim.

]]>
By: admin http://blog.lifeoverip.net/2009/04/23/turkiyeden-spam-istatistikleri/comment-page-1/#comment-475 Fri, 24 Apr 2009 15:21:30 +0000 http://blog.lifeoverip.net/?p=1058#comment-475 Gokhan’in yazdigi script qsheff.log icindi ben sadece ip adreslerini bir dosyadan alip isleyecek sekilde duzenledim.

#!/usr/bin/python

import sys,re,GeoIP,sets

if not len(sys.argv) == 2:
print “usage zpam.py log_file”
sys.exit(37)

log_file=sys.argv[1]
gi = GeoIP.new(GeoIP.GEOIP_MEMORY_CACHE)

IP_ADDR=[]
COUNTRY=[]

for line in open(log_file,”r”):
IP_ADDR.append(line)

sa = set(IP_ADDR)
for ip_address in sa:
country=gi.country_name_by_name(“%s”% ip_address)
COUNTRY.append(country)

sa1= set(COUNTRY)
for country in sa1:
print country,”:”,COUNTRY.count(country)

scriptin Orjinali:
#!/usr/bin/python

import sys,re,GeoIP,sets

if not len(sys.argv) == 2:
print “usage zpam.py log_file”
sys.exit(37)

log_file=sys.argv[1]
regexp=re.compile(“[0-9]{,2}\/[0-9]{,2}\/[0-9]{,4} [0-9]{,2}\:[0-9]{,2}\:[0-9]{,2}\: \[qSheff\] SPAM\,.*recvfrom\=([0-9\.]+)\,”)
gi = GeoIP.new(GeoIP.GEOIP_MEMORY_CACHE)

IP_ADDR=[]
COUNTRY=[]

for line in open(log_file,”r”):
if re.match(regexp,line):
IP_ADDR.append(re.match(regexp,line).group(1))

sa = set(IP_ADDR)
for ip_address in sa:
country=gi.country_name_by_name(“%s”% ip_address)
COUNTRY.append(country)

sa1= set(COUNTRY)
for country in sa1:
print country,”:”,COUNTRY.count(country)
[root@mail ~]#

]]>
By: Cagri Ersen http://blog.lifeoverip.net/2009/04/23/turkiyeden-spam-istatistikleri/comment-page-1/#comment-473 Fri, 24 Apr 2009 02:03:49 +0000 http://blog.lifeoverip.net/?p=1058#comment-473 Selamlar,

Scripti paylaşmanız mümkün mü ?

]]>