Commit Graph

36 Commits

Author SHA1 Message Date
Davide Ornaghi b6993a1e41 Added flag to drop SSP from Net-NTLMv1 auth (#1360)
* Added flag to drop SSP from Net-NTLMv1 auth

* Rebased with the latest version

* Removed whitespaces

* Removed duplicated code caused by merge

---------

Co-authored-by: Davide Ornaghi <ornaghi@intre.it>
Co-authored-by: alexisbalbachan <alexisbalbachan@gmail.com>
2025-08-20 18:12:09 -03:00
Jannik Vieten 2e87adefcc smbserver: gracefully exit on KeyboardInterrupt (#1969) 2025-07-01 16:09:36 -03:00
Gabriel Gonzalez ae0ec300f8 Techdebt examples bootstrapping v2 (#1928)
* Standardized examples logger init method

* Fixing missing import

* Standardized examples init_ldap_session function #1

* Calling new shared function _ldap3_kerberos_login from example addcomputer

* Removed considering -debug in each example. Now it's handled in utils.

* Standardized EMPTY_LM_HASH in impacket.examples.utils

* Unify parse_identity function (phase 1)

* Standardized parse_identity

* Renamed "_ldap3_kerberos_login" to "ldap3_kerberos_login" (as it is called from outside)

* Standardize "logger" init in regsecrets.py

* Standardized LDAP login into a single function in utils.py:ldap_login
2025-03-26 22:58:39 -03:00
gabrielg5 27e7e7478d Updating copyright banner... 2024-08-28 17:52:57 -03:00
Gabriel Gonzalez 2a0603a7d2 Adding parameter "-outputfile" to set smbserver log file. (#1784)
* Adding parameter "-outputfile" to set smbserver log file.

* Fixing log object
2024-08-05 15:30:09 -03:00
Gabriel Gonzalez 9b4a139405 Updated Copyright to 2023 2023-07-31 11:48:28 -03:00
Gabriel Gonzalez 8799a1a2c4 Update file banners to reflect Fortra ownership 2022-12-14 17:28:23 -03:00
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
asolino 8d4c91481b Print Library's installation path by default when -debug is specified 2020-02-05 19:52:39 -03:00
exploide 9738405f60 removed old documentation about smbserver not authenticating clients 2019-12-08 15:22:14 +01:00
asolino 7cdc0277b9 Adding -ts switch for this script.
- Adds timestamp to every log line
2019-12-03 16:46:06 -03:00
asolino 553881b9da Merge branch 'master' into python36 2018-12-05 12:16:54 -03:00
asolino c328de8252 Changing Copyright notice 2018-12-05 12:14:55 -03:00
asolino 7eeff437c7 More code cleanup homework
- Optimizing imports
- Removing unused variables
- Still a lot to do.
- Test cases passing OK
2018-12-04 17:07:52 -03:00
asolino 61d4282b5d smbserver.py and smbexec.py Python3 port 2018-10-10 18:24:22 -03:00
asolino 55c165836f Adding -port switch used to specify binding port 2018-09-06 15:11:40 -03:00
Alberto Solino 5c1d9945c1 Merge pull request #374 from arch4ngel/smbserver_interface_specification
patching smbserver.py for ip specification
2018-01-16 10:26:33 -03:00
arch4ngel 3ba1a36e39 patching smbserver.py for ip specification 2018-01-15 20:48:49 -05:00
asolino b579cfc6e1 Adding support for user/password authentication
* Just call using -user <username> -password <password> (optionally just provide the LM:NT hashes)
* Signing will be enabled when needed
* SMBv1/v2 support
2018-01-07 20:39:40 -03:00
Martin Gallo 4152e128b8 Replaced shebang with a virtualenv friendly one
Replaced all instances of `#!/usr/bin/python` with `#!/usr/bin/env python` so impacket's examples and scripts can be run inside a virtualenv without having to call python.
2017-01-11 12:43:54 -03:00
asolino c049506e43 Minor cosmetic changes 2016-09-13 23:54:50 -03:00
asolino 8c04d96979 Updating copyright notice. Welcome 2016 2016-01-06 14:08:30 -03:00
asolino 8c094b7998 Adding eXecute permissions to the scripts, fixing https://github.com/CoreSecurity/impacket/issues/71 2015-06-25 09:50:19 -03:00
asolino 4e32a0d498 Removing some pyCharm's erros/warnings
More scripts/libs changed. Hopefully doesn't break a thing. Test cases are passing
2015-05-25 20:40:17 -03:00
asolino 8b8f8a6947 Pyton imports fixups
1) Removed unnecesary imports, avoid import * whenever possible
2) Copyright updated
3) Minor typos fixed
4) File formats to Unix (LF)
2015-05-23 11:56:59 -03:00
asolino 4c2e64ad3a Second round of logging change.
Now there should be a single logger called 'impacket' the library uses.
By default is has a NullHandler so nothing is printed, but messages are
forwarded to the upstream logger.

If you are a script using the library and want to set the root logger
with a custom formatter, you can import impacket.examples.logger.

After some testing I'll merge it into master
2015-04-25 14:40:42 -03:00
asolino 119e4438dd Changing logging mechanisms everywhere.
Full details coming soon
2015-04-25 14:40:41 -03:00
byt3bl33d3r 3352733f43 added missing ) 2015-04-22 07:38:36 +02:00
byt3bl33d3r 4a54672034 modified comment 2015-04-22 07:37:11 +02:00
byt3bl33d3r 9c7b50e34f corrected a comment 2015-04-21 22:45:51 +02:00
byt3bl33d3r 73fdb533dd added option to set smb challenge in smbserver.py 2015-04-21 22:25:40 +02:00
asolino e96147381b Adding initial support for SMB2 (SMB 2.002) dialect. If not explicitly specified, it should all work still the same (SMB1).
It can be tested running the smbserver.py example with the -smb2support parameter. Looks like it's working from
Windows clients and Samba clients (Samba 4.2.x).
A lot of testing needed!
2015-04-20 20:57:57 -03:00
bethus@gmail.com d5238f0817 Adding small description when calling the scripts w/no arguments 2015-03-20 19:25:53 +00:00
bethus@gmail.com 29d18e8cfd Updated copyright 2015-01-20 22:53:16 +00:00
bethus@gmail.com e07ed49851 Added command line arguments to set up a share. Now it should be really easy to launch an SMB server :) 2014-06-23 18:14:15 +00:00
bethus@gmail.com a3ba4bbff2 1) Removed the smbserver directory
2) Now a single smbserver.py example, that contains everything needed to run a simple SMB server and share files
2014-06-09 16:51:07 +00:00