-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple fixes and query_service_status example script #162
Multiple fixes and query_service_status example script #162
Conversation
- Add the missing Credit Charge logic to SMB2 - Fix NBSS header - Add missing SMB1 process ID - Refactor #send_recv to avoid code duplication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, just left a few comments. I'll take a look at testing this now.
I successfully ran through the |
Great! Thanks for testing! I just pushed some updates and I believe it addresses your comments. |
Changes look great, all my comments have been addressed and I just wrapped successful testing of the XP case. I'll merge these changes in, thanks @cdelafuente-r7 ! |
This PR add the following fixes and improvements:
send_recv
to avoid code duplicationIt also updates the specs accordingly.
Verification
ruby examples/read_file.rb <host ip> <username> <password> <share> <file name>
ruby examples/query_service_status.rb <host ip> <username> <password> RemoteRegistry
Scenarios
Credit Charge fix
First, check the file size:
1lzbtVcI.tmp
size is 258048 bytes (>64KB).Then try to read it:
The read returns an
STATUS_INVALID_PARAMETER
status. this is due to a wrong Credit Charge value in the request.Missing SMB1 Process ID fix
Tested against Windows XP and the example script provided in this PR (
examples/query_service_status.rb
)