Filename | A simple program to erase your log, written in batch script |
Permission | rw-r--r-- |
Author | Unknown |
Date and Time | 10/11/2013 |
Label | Cyber News |
Action |
Ethical Hacking Institute in Pune
./Arizona Team
Hello everyone we are here with a small script that will help you to erase the event logs. I have already given the same logical code that was written in C, now its in batch scripting. Hope you will love it.
There are many ways to do this job, many of the stuffs are already covered in our CEH class.
Just go through the logical flow and create your own. If you find any difficulty in understanding the logical flow you can shoot your doubts to us at instructor@arizonainfotech.com
Here is the small pretty code save it with .bat extension:
@echo off
color A
title Log Remover
echo welcome to log cleaner :)
pause
FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto admin
for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :clear "%%G")
echo.
echo Logs cleard :)
goto Arizona
:clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:madAdmin
echo Please run me with admin privileges
:Arizona
pause
echo arizonainfotech.com
pause
www.arizonainfotech.com
CEH CHFI ECSA ENSA CCNA CCNA SECURITY MCITP RHCE CLOUD ANDROID IPHONE NETWORKING HARDWARE TRAINING INSTITUTE IN PUNE, Certified Ethical Hacking, IT Security Training Information Security Traning Courses in Pune, ceh certification in pune, Ethical Hacking Course in Pune
./Arizona Team
Hello everyone we are here with a small script that will help you to erase the event logs. I have already given the same logical code that was written in C, now its in batch scripting. Hope you will love it.
There are many ways to do this job, many of the stuffs are already covered in our CEH class.
Just go through the logical flow and create your own. If you find any difficulty in understanding the logical flow you can shoot your doubts to us at instructor@arizonainfotech.com
Here is the small pretty code save it with .bat extension:
@echo off
color A
title Log Remover
echo welcome to log cleaner :)
pause
FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto admin
for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :clear "%%G")
echo.
echo Logs cleard :)
goto Arizona
:clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:madAdmin
echo Please run me with admin privileges
:Arizona
pause
echo arizonainfotech.com
pause
www.arizonainfotech.com
CEH CHFI ECSA ENSA CCNA CCNA SECURITY MCITP RHCE CLOUD ANDROID IPHONE NETWORKING HARDWARE TRAINING INSTITUTE IN PUNE, Certified Ethical Hacking, IT Security Training Information Security Traning Courses in Pune, ceh certification in pune, Ethical Hacking Course in Pune