Creating a cheat proxy with winpcap

This is a discussion on Creating a cheat proxy with winpcap within the Networking/Device Communication forums, part of the General Programming Boards category; Hi, i have no networking experience, so this is probably just a noob post which will annoy some people but ...

  1. #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

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Though implementation problem
    By Elysia in forum C++ Programming
    Replies: 296
    Last Post: 05-31-2008, 01:02 PM
  3. Simple Proxy
    By Lina in forum C Programming
    Replies: 0
    Last Post: 04-01-2007, 12:36 PM

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