C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 06-01-2007, 03:41 AM   #1
Registered User
 
Join Date: Jul 2006
Posts: 63
Creating a cheat proxy with winpcap

Hi, i have no networking experience, so this is probably just a noob post which will annoy some people but if anyones willing to help id appreciate it.

Theres plenty of guides on the net on how to send and receive packets, so i wont go there, but what i do need help on is figuring out where to send the packets.

http://www.winpcap.org/docs/docs_40/...cap__tut8.html
thats the tutorial if anyone cares.

Code:
pcap_t* pcap_open  	(	const char *   	 source,
		int  	snaplen,
		int  	flags,
		int  	read_timeout,
		struct pcap_rmtauth *  	auth,
		char *  	errbuf	 
	)
Im not entirely sure what the source is or how networking really works, but the pcap_t* struct is needed for
Code:
int pcap_sendpacket  	(  	pcap_t *   	 p,
		u_char *  	buf,
		int  	size	 
	)
which i want to send.
Looking at another program which does essentially what i want to do, its "send packet" dialog has an option for "socket ID".
What exactly is a socket ID, and how would i determine what socket an application is using (mem reading i guess, i can do that).
Or does winpcap work differently. Basically, if someone could in a nutshell explain to me whats needed to create a proxy which would allow me to capture and send packets (even block packets if its possible) with winpcap id be much appreciative. Thanks
*DEAD* is offline   Reply With Quote
Old 06-01-2007, 05:32 AM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
http://cboard.cprogramming.com/annou....php?f=28&a=51
Far too close to rule 6 IMO.

I don't want to help someone who wants to ruin an online game by cheating.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 06-01-2007, 07:34 AM   #3
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,139
There's tonnes of tutorials on the 'interzweb'. Look at a few 'packet sniffer' scanner examples, that should get you somewhere. But as Salem outlined you could possibly be asking for malicious purposes, and I don't want to be involved with that.
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Profiler Valgrind afflictedd2 C++ Programming 4 07-18-2008 09:38 AM
Though implementation problem Elysia C++ Programming 296 05-31-2008 01:02 PM
Simple Proxy Lina C Programming 0 04-01-2007 12:36 PM


All times are GMT -6. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22