-
Notifications
You must be signed in to change notification settings - Fork 397
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
Add module to lookup hostname of Hyper-V host - 'hyperv-host.py' #374
Conversation
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.
Thanks for the PR!
nxc/modules/hyperv-host.py
Outdated
remote_ops = RemoteOperations(connection.conn, False) | ||
remote_ops.enableRegistry() |
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.
Sorry, missed it in the first review, but this should be wrapped inside the try...except
block as well.
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.
Gonna test the module on my next assessment, then we should be good to merge |
Could i take your picture for a twitter post? |
Sure! I am ok with that. My twitter handle is the same @joaovarelas Thank you |
Hello, I created a simple module based on "reg-query.py" to query a hardcoded key and lookup the hostname of the Hyper-V Host for a target VM. It uses impacket's RRP.
Reference: https://techcommunity.microsoft.com/t5/itops-talk-blog/find-the-hostname-of-a-hyper-v-vm/ba-p/2074171