Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created for myself a lab of routers in GNS3 . Routing protocol between routers is OSPF.

Now,by Loki penetration testing, I found that routers are the feature authentication. Using wireshark, I do sniff network traffic. I see only Hello Packet in attacker's system.That is very normal.

Within this package do not see any hash password (MD5) that it would crack, Using crack sites online.

My question is how Loki crack passwords by the list of words?

Loki has access to the password hash value? Where in the packet is the hash value?

share|improve this question
up vote 1 down vote accepted

Hash authentication of protocol packets is not on by default in OSPF, you'll only see hash digests if digest authentication is on with a pre-shared key configured. If you're looking for the encrypted digest packets you'll find the information you're looking for in RFC 2328 section D.3

'Using this authentication type, a shared secret key is configured in all routers attached to a common network/subnet. For each OSPF protocol packet, the key is used to generate/verify a "message digest" that is appended to the end of the OSPF packet. The message digest is a one-way function of the OSPF protocol packet and the secret key. Since the secret key is never sent over the network in the clear, protection is provided against passive attacks. `

Looking forward in section D.3 it looks like the way forward is to look for the key ID, then pull the length of the digest from the auth len section. Then all you have to do is read that length from the back of the packet, minus any footer, and you have the digest. See D.4 as to how it is generated.

share|improve this answer
Thank you so much. Section D.4 was most helpful :D – HamiD Feb 5 '13 at 7:58
@HamiD, glad it was of use. If you think the answer is good why not upvote and accept it? – GdD Feb 5 '13 at 10:06
sorry, for upvote and accept i need 15 reputation, But I do not know, Why did accept!? – HamiD Feb 7 '13 at 10:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.