• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java packet crafter

 
Andrei Antonescu
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using a Linux Cent OS box & I would like to ask you if it is possible to create a program in Java that can set TCP/IP header fields in a packet and the send it on the network. For example i would like to make a SYN scanner. Or I may need to set TOS or IHL or TTL fields in a IPv4 packet.
I haven't found method in Datagram that can do that.

Thanks in advance
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to resort to native code through JNI or JNA - it's not possible using pure Java code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic