Click here to Skip to main content
15,887,267 members
Articles / Programming Languages / C#

TCP Session Reconstruction Tool

Rate me:
Please Sign up or sign in to vote.
4.65/5 (17 votes)
21 Sep 2007CPOL6 min read 166K   8.2K   74  
A TCP session reconstruction tool for C#.
��<html>

<head>

<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16">

</head>

<body>

<pre>

<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>

Build Log

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>

<h3>Rebuild started: Project: sniff, Configuration: Debug|Win32</h3>

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Command Lines

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Creating temporary file "c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Libnids-1.19\WIN32-PRJ\sniff___Win32_Debug\RSP00000229601492.rsp" with contents

[

/Od /I &quot;..&quot; /I &quot;..\WIN32-Includes&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_VC80_UPGRADE=0x0600&quot; /D &quot;_MBCS&quot; /Gm /EHsc /RTC1 /MTd /Fp&quot;.\sniff___Win32_Debug/sniff.pch&quot; /Fo&quot;.\sniff___Win32_Debug/&quot; /Fd&quot;.\sniff___Win32_Debug/&quot; /W3 /c /ZI /TC &quot;..\samples\sniff.c&quot;

]

Creating command line "cl.exe @"c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Libnids-1.19\WIN32-PRJ\sniff___Win32_Debug\RSP00000229601492.rsp" /nologo /errorReport:prompt"

Creating temporary file "c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Libnids-1.19\WIN32-PRJ\sniff___Win32_Debug\TMP00000329601492.tmp" with contents

[

1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ &quot;.\\sniff___Win32_Debug\\sniff.exe.embed.manifest&quot;

]

Creating command line "rc.exe /fo".\sniff___Win32_Debug\sniff.exe.embed.manifest.res" "c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Libnids-1.19\WIN32-PRJ\sniff___Win32_Debug\TMP00000329601492.tmp""

Creating temporary file "c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Libnids-1.19\WIN32-PRJ\sniff___Win32_Debug\RSP00000429601492.rsp" with contents

[

/OUT:&quot;.\sniff___Win32_Debug/sniff.exe&quot; /INCREMENTAL /LIBPATH:&quot;..\WIN32-Libraries&quot; /LIBPATH:&quot;C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Winpcap\WpdPack\Lib&quot; /MANIFEST /MANIFESTFILE:&quot;.\sniff___Win32_Debug\sniff.exe.intermediate.manifest&quot; /DEBUG /PDB:&quot;.\sniff___Win32_Debug/sniff.pdb&quot; /SUBSYSTEM:CONSOLE /MACHINE:X86 wsock32.lib libpcap.lib libnids.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib


&quot;.\sniff___Win32_Debug\sniff.obj&quot;


&quot;.\sniff___Win32_Debug\sniff.exe.embed.manifest.res&quot;

]

Creating command line "link.exe @"c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Libnids-1.19\WIN32-PRJ\sniff___Win32_Debug\RSP00000429601492.rsp" /NOLOGO /ERRORREPORT:PROMPT"

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Output Window

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling...

sniff.c

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(28) : warning C4996: 'strcpy' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'

        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(29) : warning C4996: 'sprintf' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'

        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(30) : warning C4996: 'strcat' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\string.h(78) : see declaration of 'strcat'

        Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(31) : warning C4996: 'sprintf' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'

        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(39) : warning C4996: 'write' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\io.h(334) : see declaration of 'write'

        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.'

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(40) : warning C4996: 'write' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\io.h(334) : see declaration of 'write'

        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.'

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(41) : warning C4996: 'write' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\io.h(334) : see declaration of 'write'

        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.'

c:\documents and settings\owner\my documents\visual studio 2005\projects\libnids-1.19\samples\sniff.c(83) : warning C4996: 'open' was declared deprecated

        c:\program files\microsoft visual studio 8\vc\include\io.h(328) : see declaration of 'open'

        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.'

Compiling manifest to resources...

Linking...

LINK : fatal error LNK1104: cannot open file 'libpcap.lib'

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Results

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Libnids-1.19\WIN32-PRJ\sniff___Win32_Debug\BuildLog.htm"

sniff - 1 error(s), 8 warning(s)

</pre></table><table   width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>

</font></table></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Microsoft
Israel Israel
Saar, has been programing since 1997. He enjoys taking things a part and designing simple solutions to complex problems. Currently, works for Microsoft writing in a variety of languages and flavors. During the last year he is taking a closer look into mobile and web development.

Comments and Discussions