9 Commits

Author SHA1 Message Date
Martin Gallo cd4fe47cfc Arrange tagline, copyright and license notes across all source files
This was a pending change to:
- Use the same tagline, copyright and license notice across files.
- Remove authors' contacts that are no longer valid (due to affiliation changes).
- Update repository location.
- Update license file with missing licenses (althought those were already in source files).

This doesn't include any change on the source code, nor any change on current copyright or licenses. Just formatting and phrasing to make our and distro's maintainers life easier.
2021-07-20 10:04:27 -03:00
Martin Gallo a45f331360 Refactored the credentials parsing functions (#1058)
Similar to and on top of #1053, this moves the credentials/account parsing regex to an utils module and reduces duplicated code in example scripts.

The expected credential format is:
`<DOMAIN></USERNAME><:PASSWORD>`

Note that the regular expression used in `exchanger.py` was different (excluded ':' from the hostname) but I didn't found any reason to keep it different from all other scripts.

This PR:
- Moved credentials parsing routine to an utils module.
- Added unit tests for the new function.
- Using the new function across example scripts that accept a credential/account.
2021-04-22 10:02:29 -03:00
Arseniy Sharoglazov 84d579d4b9 Added missing import to rpcmap.py 2020-07-12 23:29:43 +03:00
Arseniy Sharoglazov c8a3be3d72 Changing -auth-rpcproxy function to -auth-transport in rpcmap.py and modifying the code to suit the new MS-RPCH impl
+ Now it's possible to specify different credentials for SMB and RPC
+ RPC Proxy errors are handled by constants from its implementation

The downside of this commit is it removes Kerberos support.

Current SMB and RPC libraries depend too much on each other,
we need to make some changes for them to get an ability to use different credentials and
different security providers on both levels, and add a support to make reconenctions with
proper socket handeling, and saving security configuration.

Probably removing Kerberos is not a big deal, as rpcmap.py is usually used in research purposes.
2020-07-12 22:30:02 +03:00
Arseniy Sharoglazov c930648390 Added important TODO to rpcmap.py
For now rpcmap.py leaves a lot of socket after itself, and
to get it work the correct way without stupid workarounds it
will require change some code in the library
2020-07-12 20:57:21 +03:00
Arseniy Sharoglazov 1eabde7b67 Added -brute-versions function to rpcmap.py 2020-07-12 20:51:37 +03:00
Arseniy Sharoglazov dca83b487b Fixing a bug in rpcmap.py
There was no way to bruteforce UUIDs on ncacn_ip_tcp endpoints with empty credentials because of the lockout protection
2020-07-12 20:32:17 +03:00
Arseniy Sharoglazov 3506a60736 Fixing Travis CI tests after adding RPC over HTTP v2 realization 2020-04-02 08:58:17 +03:00
Arseniy Sharoglazov 96b522884f Rewriting opdump.py and ifmap.py to rpcmap.py 2020-04-02 07:19:20 +03:00