A forum for reverse engineering, OS internals and malware analysis 

Forum for discussion about kernel-mode development.
 #3433  by zhouws
 Fri Nov 12, 2010 2:44 am
hi guys
can anyone show me how to send irp to tcpip driver to get network connection???

so complecated,i can't get it... thanks in adv!!! :P
 #3448  by GamingMasteR
 Fri Nov 12, 2010 2:18 pm
Hi,

What do you mean by "get network connection" ?
Do you mean network status ? Or do you mean send/recv network packets ?
 #3485  by zhouws
 Mon Nov 15, 2010 1:24 am
@GamingMasteR
that would be network status,like ip port,and corresponding process.

@alex.
as i know ,the TDI layer had been removed under win7.

that's why i want to know how to implement without sending irp to TDI in ring0
 #3486  by EP_X0FF
 Mon Nov 15, 2010 2:26 am
TDI replaced by NPI since Windows Vista.
You can try Winsock Kernel.
 #3487  by zhouws
 Mon Nov 15, 2010 5:52 am
well ,in fact ,all i wanna do is to try hide the connection i specified.

to some extend .i alread achieved it by hook NSI deviceobject,but it does not work for some ark.
 #3511  by zhouws
 Tue Nov 16, 2010 5:05 am
GamingMasteR wrote:You need to RE the ARK to know the mechanism it uses to detect the connections .
- -,
sounds like bad news........
 #3513  by zhouws
 Tue Nov 16, 2010 8:46 am
- -,in early befor vista. i hook ZwDeviceIoControlFile and filter IOCTL_TCP_QUERY_INFORMATION_EX,
later in vistat ,i hook the nis deviceobject,'s ,(nsiproxy driver) dispatcher routing .and also filter IOCTL_TCP_QUERY_INFORMATION_EX,

that's how i do, it works greate ."netstat -an" just blind.

so i assume maybe the ark sends irp to tcpip driver directly....but i do not know the parameter struct exactly

can u help me out?