Adding module to retrieve network interfaces info
Useful to find subnets and servers for pivoting
@Sant0rryu thanks for the PR! Can you review the Ruff linting output by running poetry run python -m ruff check . --preview (you can add --fix to automatically fix those that it can do).
This also might be better as a default part of NXC, under the mapping/enumeration section - thoughts?
Love that PR, it's gonne be super useful for network pivoting!!
@Marshall-Hallenbeck I ran ruff on interface.py and fixed two warnings.
Yes, it might actually be nice to have the option --interface as a default part of NXC under the mapping/enumeration section.
Love the idea as well!
@Sant0rryu so this seems to overlap with the get_netconnections, but also as I just tried to test this, it doesn't seem to output anything. Can you confirm it's working as intended? Which Windows versions did you test against?
Same here:
Added a bit of logging and it looks like there is a problem with the registry querying:
@Sant0rryu you have got news ?
Reworked the module to a working core functionality:
(My desktop is a bit messy due to the thousands of network adapters, vmstuff)