Home page logo

pen-test logo Penetration Testing mailing list archives

how to calculate hmac for esp packet?
From: Jun Yin <hansyin () gmail com>
Date: Wed, 4 Apr 2012 02:30:31 -0700

Hi, I'm trying to craft a esp packet for ipsec test, I try to use
python to create the hmac, I tried this:


###this msg string is exactly same as shown in the esp packet(after encryption)

looks like this two hmac calculation are both wrong, after I send the
packet with this hmac value(first 12 byte), wireshark complain the
hmac is wrong:

Authentication Data [incorrect, should be 0x3150EDBE93C020C42F23114E]

Looks like my calculation is wrong, but I don't know where. Anyone
could help? Thanks!!!!

Hans Yin
Web:   http://sourceforge.net/projects/autotestnet/
Email:  hansyin () gmail com
MSN:   hansyin () hotmail com
Skype: hans_yin_vancouver

This list is sponsored by: Information Assurance Certification Review Board

Prove to peers and potential employers without a doubt that you can actually do a proper penetration test. IACRB CPT 
and CEPT certs require a full practical examination in order to become certified.


  By Date           By Thread  

Current thread:
  • how to calculate hmac for esp packet? Jun Yin (Apr 04)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]