25.12.2014 Views

Analysis and Evaluation of the Windows Event Log - Bill Buchanan

Analysis and Evaluation of the Windows Event Log - Bill Buchanan

Analysis and Evaluation of the Windows Event Log - Bill Buchanan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C:\Documents <strong>and</strong> Settings\Barrie\My ...-aes\simpletcpclient2-aes\Program.cs<br />

// Specify what is done when a file is renamed.<br />

string message = "" + DateTime.Now + "" +<br />

GlobalClass.user + "" + e.ChangeType + "" + e<br />

.FullPath + "";<br />

sendmsg(message);<br />

}<br />

private static string getFileExt(string filePath)<br />

{<br />

if (filePath == null) return "";<br />

if (filePath.Length == 0) return "";<br />

if (filePath.LastIndexOf(".") == -1) return "";<br />

return filePath.Substring(filePath.LastIndexOf("."));<br />

}<br />

static class AES<br />

{<br />

private static string m_passPhrase;<br />

public static string passPhrase<br />

{<br />

get { return m_passPhrase; }<br />

set { m_passPhrase = value; }<br />

}<br />

private static string m_saltValue;<br />

public static string saltValue<br />

{<br />

get { return m_saltValue; }<br />

set { m_saltValue = value; }<br />

}<br />

private static string m_hashAlgorithm;<br />

public static string hashAlgorithm<br />

{<br />

get { return m_hashAlgorithm; }<br />

set { m_hashAlgorithm = value; }<br />

}<br />

private static int m_passwordIterations;<br />

public static int passwordIterations<br />

{<br />

get { return m_passwordIterations; }<br />

set { m_passwordIterations = value; }<br />

}<br />

private static string m_initVector;<br />

public static string initVector<br />

{<br />

get { return m_initVector; }<br />

set { m_initVector = value; }<br />

}<br />

private static int m_keySize;<br />

4<br />

}<br />

public static int keySize<br />

{<br />

get { return m_keySize; }<br />

set { m_keySize = value; }<br />

}<br />

static class GlobalClass<br />

{<br />

private static string m_key = "";<br />

public static string key<br />

{<br />

get { return m_key; }<br />

set { m_key = value; }

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!