Source Sniffer

01/07/2010 14:22 nokia999#1
Source of packet sniffer (send/recv) - still working on int, added to source from SyronX ( only for testing some things no need for sniffng so u can cut it off).
Use Visual C++ 2008 to compile it.

For all who need it xD

Thx go to SyronX and BakaBug /all except hook send/recv are made by them/
01/07/2010 21:50 meak1#2
? search function are better ;D
01/07/2010 21:56 katze123#3
wasnt this released already? ...?
01/08/2010 10:45 nokia999#4
all i find here about sniffing was : learn to write own one :S
01/08/2010 11:17 ILikeItEasy#5
Quote:
Originally Posted by nokia999 View Post
all i find here about sniffing was : learn to write own one :S
that's the basic reply you seem to get indeed

btw.. I tried to compile your source but I get some errors

Code:
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(154) : error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [50]' to 'LPWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(353) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(355) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(356) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(357) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
btw, check PM Nokia ;)
01/08/2010 11:21 BorSti#6
Quote:
Originally Posted by ILikeItEasy View Post
that's the basic reply you seem to get indeed

btw.. I tried to compile your source but I get some errors

Code:
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(103) : warning C4309: 'initializing' : truncation of constant value
1>c:\...\sniffer\syron x\syron x.cpp(154) : error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [50]' to 'LPWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(353) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(355) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(356) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\...\sniffer\syron x\syron x.cpp(357) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
btw, check PM Nokia ;)
change project options
01/08/2010 11:35 ILikeItEasy#7
pffff.. I am such a noob :P

thanks Borsti :)