SMB Authentication Error

nexscience

Honorable
Jun 4, 2012
3
0
10,510
I have been working on implementing the SMB for connecting my PC(client) to Windows7(server) in C language.

First i send request Negotiate Protocol Request packet, and recieve correct response from server.

Then i send NTLMSSP type 1 message (Session_Negotiate) to windows7 machine so that it respond with challenge (type2 message). But the error i am getting is that the windows7 server doesn't respond with challenge and its showing error(ERROR: Non specific error code).

Here is the screen shot of SessionNegotiate request packet http://i.stack.imgur.com/5Pft6.png

And here is the screen shot of SessionNegotiate response packet: http://i.stack.imgur.com/q4CEt.png

Question is, am i forming the Session Negotiate Request packet correctly? If not, can you tell me how can i form the SessionNegotiation Packet, or is there any other way to establish SMB/CIFS session with Windows7?