-
Greetings, would you have an example of calling lsarpc.OpenPolicy2 via SMB2 over RPC? I'm trying to call it, but in the trace in SMB2 it gives Write instead of Ioctl. In the screenshot on the left is my attempt, on the right is the windows attempt. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hello, @krasnovu ! AFAIK there is no difference between calling Write and Read on named pipe and Transcieve (Ioctl). Do you see any error in calling Write? |
Beta Was this translation helpful? Give feedback.
-
The actual problem (or problems) with provided code are following: you use WithConnect() which is for most of security features (and especially when used within named pipe) will not allow you to establish communication. Use WithSeal() for named pipes which will ensure that your request will establish. you don't specify parameter for QueryInformation. So, the working code looks like following:
|
Beta Was this translation helpful? Give feedback.
-
"Dear Diary, I can't find the words to describe the pain I experienced today." 😁 Can you please tell me if you have any plans to implement a server side? Or maybe describe briefly (suspect it won't be short) how to implement it, e.g. how to respond to a
Anyway I would like to express my thanks for your project, it is very useful! |
Beta Was this translation helpful? Give feedback.
The actual problem (or problems) with provided code are following:
you use WithConnect() which is for most of security features (and especially when used within named pipe) will not allow you to establish communication. Use WithSeal() for named pipes which will ensure that your request will establish.
you don't specify parameter for QueryInformation.
So, the working code looks like following: