News:

Wieners, Brats, Franks, we've got 'em all.

Main Menu

[JAVA] Datagram Hook

Started by Lance, June 25, 2010, 09:35:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lance

I want to receive the outgoing UDP datagrams from a C++ program, and spoof the sender address of incoming datagrams; nothing more and nothing less. Is this possible with Java, or is the language too limited?

I am using Fedora by the way.

Thanks :)

EDIT: The C++ program is open source so I have full access to it's API.

EDIT 2: Fixed some bad wording.
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Joe

Receiving the outgoing should be possible win WinPcap, but I don't know how to spoof incoming unless you find the address of the receiving function and call it from your program. None of this can be done from Java, as far as I know. Your best bet would probably be C#, since it's pretty similar.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Lance

#2
What about Jpcap? I happened to run into this by chance a few months ago but never knew what it really was. Can this accomplish what I need it to?

EDIT: Jpcap seems to be what I am looking for, I am going to try some of the samples out! :D
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!