Node-SMB / marsaud-smb2

SMB2 Client
53 stars 46 forks source link

help with implementing QUERY_INFO #59

Open mogadanez opened 4 years ago

mogadanez commented 4 years ago

trying to make QUERY_INFO command according to https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/d623b2f7-a5cd-4639-8cc9-71fa7d9f9ba9 adding structure file:

request: [
    ['StructureSize', 2, 41],
    ['InfoType', 1,0x1],
    ['FileInfoClass', 1, 0x12], 
    ['OutputBufferLength', 4, 0x00010000],
    ['InputBufferOffset', 2, 0],
    ['Reserved', 2, 0],
    ['InputBufferLength', 4, 0],
    ['AdditionalInformation', 4, 0],
    ['Flags', 1, 0],
    ['FileId', 16],
    ['Buffer', "InputBufferLength"],
  ],

but server respond with STATUS_INVALID_PARAMETER (0xC000000D) : An invalid parameter was passed to a service or function.

where I'm wrong?