NetExec icon indicating copy to clipboard operation
NetExec copied to clipboard

Adding module to retrieve network interfaces info

Open Sant0rryu opened this issue 1 year ago • 5 comments

Useful to find subnets and servers for pivoting

Sant0rryu avatar May 07 '24 15:05 Sant0rryu

@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?

Marshall-Hallenbeck avatar May 07 '24 19:05 Marshall-Hallenbeck

Love that PR, it's gonne be super useful for network pivoting!!

Dfte avatar May 11 '24 13:05 Dfte

@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.

Sant0rryu avatar May 12 '24 14:05 Sant0rryu

Love the idea as well!

Dfte avatar May 13 '24 15:05 Dfte

@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?

Marshall-Hallenbeck avatar May 14 '24 17:05 Marshall-Hallenbeck

Same here: image

Added a bit of logging and it looks like there is a problem with the registry querying: image

NeffIsBack avatar Jun 02 '24 11:06 NeffIsBack

@Sant0rryu you have got news ?

Dfte avatar Jun 06 '24 14:06 Dfte

Reworked the module to a working core functionality: (My desktop is a bit messy due to the thousands of network adapters, vmstuff) image

NeffIsBack avatar Jun 15 '24 00:06 NeffIsBack