October 2015

Reassemble TCP packets with 1.4 r 1425

How can i reassemble TCP packets? All examples that i found currently outdated. Like with using HttpAnalyzer.
Thanks in advance!

Read ftp conversation between a server and a client

Hi Everyone,

I am new to jnetPcap and trying to get FTP conversation between server and a client. I would need to extract the ftp file content and put them in a file as a readable content. I have the wireshark capture of the ftp transaction.

It would be a great help,if someone can share a code snippet on getting the ftp message through jnetPcap and converting to readable format.

Thanks in advance.

Charanya Natarajan

From the inside out

I just love this hill song. It never fails to inspire me and always keep me in hand. Never in my life have I thought of it. - Green Water Technologies

Love myself

Let us not forget the fact that they actually started the fight themselves. I never want to make it a habit when it started out so simple. - Green Water Technologies

Love me like you

I realized that whatever I do, some people just can't provide the things you need because there is only one person who can give it to you. - Dennis Wong YOR Health

Stone cold

I have lost all cause of loving. I feel like my heart is stone cold. It doesn't even feel anymore. I am trying to be happy for you but I just can't. - Dennis Wong YOR Health

Create raw Arp packet


i want to know how to create a raw arp packet because i cant use a captured arp packet as template

i see this example to create a raw udp packet but i tryed to use the same method to create a arp and didnt work, i cant set the opcode of the arp packet.


Get Dhcp packet type

Hello im Hector

im ding a app to analyze dhcp trafic and i want to know the type of the dhcp packet
dhcp request,ack,offer,discover,etc

maybe someone can help me

i already have done this

if(packet.hasHeader(udp) && packet.hasHeader(ip4) && packet.hasHeader(eth)){

if(udp.source()==67 || udp.destination()==68 || udp.destination()==67 || udp.source()==68){//is dhcp

String macSource=SnifferParser.macToString(eth.source());
String macDestination=SnifferParser.macToString(eth.destination());
String ipSource=SnifferParser.ip4ToString(ip4.source());
String ipDestination=SnifferParser.ip4ToString(ip4.destination());



How to get hostname from HTTP response packet?

OSX Yosemite JNetPcap Build