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
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
0xdeaddood
be3d9903a8
Update help section
2021-05-28 19:44:14 -03:00
0xdeaddood
7dd6abb75d
Fix error when -silentcommand is not used
2021-05-27 17:01:24 -03:00
0xdeaddood
d96b838ede
Merge branch 'master' into pr-605-catchup
...
# Conflicts:
# examples/dcomexec.py
# examples/wmiexec.py
2021-05-27 17:01:01 -03:00
Martin Gallo
adb230256d
Refactored the target parsing functions ( #1053 )
...
In reviewing #1051 (and related #347 ) we found out that there's some ugly duplicated code that's better suited for an utils function.
The expected target format is:
`<DOMAIN></USERNAME><:PASSWORD>@HOSTNAME`
This PR:
- Moved target parsing routine to an utils module.
- Added unit tests for the new function.
- Using the new function across example scripts that accept a target.
2021-04-22 09:11:33 -03:00
Aconite33
3c9e17e1ea
Fixed typo.
2020-09-30 15:54:25 -04:00
Eric Missimer
3f80a57a0a
Merge remote-tracking branch 'original/master'
2020-09-30 15:46:21 -04:00
Arseniy Sharoglazov
501859c398
Enforcing RPC_C_AUTHN_LEVEL_PKT_PRIVACY for atexec.py
2020-08-04 20:49:55 +03:00
Roman Maksimov
896f78df18
convert UTF-8 to lowercase
2020-03-08 02:11:41 +03:00
asolino
afe746d2e2
Adding keytab support to secretsdump and remote exec scripts
...
- Added a loadKeysFromKeytab() class method into keytab.py for easier usage from the scripts.
2020-02-25 15:37:00 -03:00
asolino
8d4c91481b
Print Library's installation path by default when -debug is specified
2020-02-05 19:52:39 -03:00
Arseniy Sharoglazov
13885535d7
Added encoding support for dcomexec.py/atexec.py and some improvements for atexec.py
2020-02-05 06:37:41 +03:00
0xdeaddood
0f6713f891
Add the timestamp option to the remote execution scripts
2019-12-18 08:17:41 -03:00
Aconite33
e715bac7b4
Required command for options and removed allowing interactive shells.
2019-04-07 13:36:40 +01:00
Aconite33
9057749df1
Added silent function to allow execution of commands without running cmd.exe
2019-04-07 13:19:15 +01: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
62d85738bd
RPC SASEC, TSCH, ATSVC port for Python3
...
- test_tsch.py passing (PY3 / PY2)
- atexec.py example working
2018-10-03 10:45:47 -03:00
asolino
5671e8467a
If we do Kerberos, it should be set at DCE level as well
...
* Should address https://github.com/CoreSecurity/impacket/issues/461
2018-06-20 12:32:01 -03:00
asolino
9d8638cdf1
Print traceback info if running in DEBUG mode
2018-05-04 18:25:44 -03:00
luz.paz
0e96b60b92
Misc. typos
...
Found via `codespell -q 3 -I ../impacket-word-whitelist.txt` through downstream `curl`
2018-03-16 09:42:21 -04:00
asolino
aa23896d95
If no command is specified we should exit.
...
* There's no interactive shell with this script. Command is needed
2017-05-30 18:00:55 -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
1bdba48374
Adding -dc-ip option to examples
...
* Allows to specifying the IP address for the DC/kdcHost
* Collateral for https://github.com/CoreSecurity/impacket/issues/160
2016-05-31 21:22:54 -03:00
asolino
8c04d96979
Updating copyright notice. Welcome 2016
2016-01-06 14:08:30 -03:00
asolino
5851bd0cb9
Applying @0xsauby fix for password with '@' to the rest of the example scripts
2015-11-26 14:55:19 -03:00
asolino
5adde556af
Commands are now executed using ITaskSchedulerService interface
...
* We were previously using ATSVC Interface
* It now should work with Windows 2012 R2, fixing https://github.com/CoreSecurity/impacket/issues/70 . We should test older Windows versions.
2015-07-16 19:38:54 -03:00
asolino
c2f3ca55d7
Upgraded to DCERPC.v5 runtime and Kerberos support added.
...
Still does not solve https://github.com/CoreSecurity/impacket/issues/70 tho.
Most probably the atsvc interface is deprectated in Windows 2012 R2.
We have to try now using ITaskSchedulerService.
2015-07-15 19:30:48 -03:00
asolino
292621b1e8
Capturing output from stderr as well.
...
Applying patch from @sshock described in https://github.com/CoreSecurity/impacket/issues/73
2015-07-09 16:37:03 -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
bethus@gmail.com
29d18e8cfd
Updated copyright
2015-01-20 22:53:16 +00:00
bethus@gmail.com
bbce63a34a
Clarifying target could be an IP address or targetName
2015-01-14 16:32:03 +00:00
bethus@gmail.com
51208f4ed3
Added get_dce_rpc() method to the DCERPCTransport. Now clients don't need to cast a transport to a DCERPC_v5 or V4. That is handled by this method.
...
I'm changing the examples to reflect this move.
2013-10-29 16:04:19 +00:00
bethus
ef7c685d26
On the first run, it takes a while the remote target to start executing the job so I'm setting this sleep.. I don't like sleeps.. but this is just an example Best way would be to check the task status before attempting to read the file
2013-10-20 21:21:59 +00:00
bethus@gmail.com
a4d54fc344
No need to do JobEnum
2013-10-18 16:37:48 +00:00
bethus@gmail.com
82a8581bb8
This example executes a command on the target machine through the Task Scheduler service. Returns the output of such command
2013-10-17 19:44:40 +00:00