Re: Deleting logs under win2000

From: Oliver Karow (oliver.karowat_private)
Date: Mon Sep 17 2001 - 07:49:26 PDT

  • Next message: Oliver Karow: "Re: Problems on the DOS-Prompt"

    yes, there are :)
    
    Deleting logs is very easy. Just have a look on the 
    following code sample:
    
    #include <windows.h>
    
    void main(int argc, char *argv[])
    {
    
    HANDLE myHandle;
    char *logfile;
    
    logfile = argv[1];
    
    myHandle = OpenEventLog(NULL, logfile);
    
    ClearEventLog (myHandle, NULL);
    CloseEventLog (myHandle);
    
    }
    
    This listing is very minimalistic and without error 
    handling. Compile it and run it: 
    progname.exe logname
    
    You can download a more comfortable version of this 
    at: www.greyhat.de/tools/clearlog.zip
    
    bye,
    
    Oliver
    
    > Are there any tools{command line} for deleting logs 
    under win2000 on a 
    > compromised machine
    > 
    > 
    
    ----------------------------------------------------------------------------
    This list is provided by the SecurityFocus Security Intelligence Alert (SIA)
    Service. For more information on SecurityFocus' SIA service which
    automatically alerts you to the latest security vulnerabilities please see:
    https://alerts.securityfocus.com/
    



    This archive was generated by hypermail 2b30 : Mon Sep 17 2001 - 11:21:36 PDT