guzel Aslında hepimiz eksiğiz biraz Leylası olmayan mecnunlarız Ne sıcacık bir ismail abimiz var. Nede ktü zamanda Yanımızda olan İskender babamız Ne mahellemizi mahalle yapan Erdal bakkalımız ne her kapıyı açan yavuz abimiz nede bize doğru yolu gsteren dedemiz.

linux sistemde ki logları temzilemek için python ile yazılmış güzel bir araç #!/usr/bin/env python # - - coding: latin-1 - - # _ # # / / / / # # / _ \/ // / / / // / / / / // / # # /_//_/\_, _/_/_/ /\ /\ /\_, _/_/ /_/\ /\_, / # # / / team # # # # Ropeadope. py -- RopeADope v1.1 # # # # DATE # # 04/20/2012 # # # # DESCRIPTION # # A linux log cleaner # # # # AUTHOR # # pr1me highhacksociety com # # http://www.nullsecurity.net/ - http://www. highhacksociety # # # # import sys import os import re import random import time import StringIO import commands import mmap def banner : print """ 888888ba. d888888 888888ba 88 8b d8' 88 88 8b a88aaaa8P' . d8888b. 88d888b. . d8888b. 88aaaaa88a 88 88. d8888b. 88d888b. . d8888b. 88 8b. 88' 88 88' 88 88ooood8 88 88 88 88 88' 88 88' 88 88ooood8 88 88 88. .88 88. .88 88. ... 88 88 88.8P 88. .88 88. .88 88. ... dP dP 88888P' 88Y888P' 88888P' 88 88 8888888P 88888P' 88Y888P' 88888P' oooooooooooooooooooo 88 ooooooooooooooooooooooooooooooooooooooooooooo 88 ooooooooooooooo dP dP v1.1 RopeADope v1.1 - Linux Log Cleaner Written By: pr1me http://www.nullsecurity.net """ def IPChk : pattern = r"\b(25 |2 | ? ?)\.(25 |2 | ? ?)\.(25 |2 | ? ?)\.(25 |2 | ? ?)\b" if re. match : return True else: return False def randomIP : global randIP randIP = '.'. join( ) def randomHost : global randhost beginning = ''. join(random. choice("abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789") for x in range(8)) end = randend = random. choice randhost = beginning + randend def searchanddestroy : if hitme 1: randomIP for log in goodLogs: datafile = file for line in datafile: if ipaddr in line: print "\n Found IP in", log f = open size = os. path. getsize dizz = mmap. mmap(f. fileno , size) place = dizz. find if place -1: dizz. close else: print "\tEditing IP" dizz. seek dizz. write dizz. close print "\n This House Is Clean.\n" elif hitme 2: randomHost for log in goodLogs: datafile = file for line in datafile: if host in line: print "\n Found Host in", log f = open size = os. path. getsize dizz = mmap. mmap(f. fileno , size) place = dizz. find if place -1: dizz. close else: print "\tEditing Host" dizz. seek dizz. write dizz. close print "\n This House Is Clean.\n" else: sys. exit def searchanddestroy2 : if hitme 1: randomIP for log2 in mlogz: datafile = file(log2) for line in datafile: if ipaddr in line: print "\n Found IP in", log2 f = open(log2, "rb+") size = os. path. getsize(log2) dizz = mmap. mmap(f. fileno , size) place = dizz. find if place -1: dizz. close else: print "\tEditing IP" dizz. seek dizz. write dizz. close print "\n This House Is Clean.\n" elif hitme 2: randomHost for log2 in mlogz: datafile = file(log2) for line in datafile: if host in line: print "\n Found Host in", log2 f = open(log2, "rb+") size = os. path. getsize(log2) dizz = mmap. mmap(f. fileno , size) place = dizz. find if place -1: dizz. close else: print "\tEditing Host" dizz. seek dizz. write dizz. close print "\n This House Is Clean.\n" else: sys. exit def validlogs : global logfilez #List of log files - Add your own or use the custom field option logfilez = global goodLogs goodLogs = print " Checking for active log files\n" for a in logfilez: if os. path. isfile True: goodLogs. append if len >0: print " Active logs files found:", len for b in goodLogs: print "\t"+b else: print " No active log files found" sys. exit def morelogz : global mlogz mlogz = mlogzcheck = os. chdir print " Looking for more log files..." logfilez2 = StringIO. StringIO(commands. getstatusoutput ). readlines if len(logfilez2)>0: for a in logfilez2: foo = a. strip mlogzcheck. append for b in mlogzcheck: if os. path. isfile True: mlogz. append print "\t Found:", len ,"extra logfiles" return mlogz def main : banner print "" if os. geteuid != 0: print "\nNot running as root. Only logz accessible by non privileged users will be edited." raw_input validlogs choice = raw_input if choice "yes" or choice "YES" or choice "Yes": hollaback = 1 morelogz elif choice "no" or choice "NO" or choice "No": hollaback = 2 pass else: sys. exit global hitme global ipaddr global host choice1 = raw_input if choice1 "IP" or choice1 "ip": hitme = 1 ipaddr = raw_input while IPChk != True: print "\n\tInvalid IP! Try again!" ipaddr = raw_input else: if hollaback 1: searchanddestroy searchanddestroy2 else: searchanddestroy elif choice1 "HOSTNAME" or choice1 "hostname": hitme = 2 host = raw_input if hollaback 1: searchanddestroy searchanddestroy2 else: searchanddestroy else: sys. exit if os. geteuid 0: w = open w. write w. close else: user = os. getenv w = open w. write w. close if name " main ": try: main except KeyboardInterrupt: print "\n" sys. exit Emekçiler ekmeklerini, emeklerinin karşılığı olarak ve nlenemez tarihi sürecin sonucu olarak mutlaka kazanacaklardır. Şüphesiz bu, zorlu bir dnemdir kısa vadeli ve greceli yenilgilerden geçer.