mpgn
5e282156bb
Fix ldap query over 1000 results
2023-10-19 15:30:00 -04:00
Marshall Hallenbeck
dbbffc5952
fix(add-computer): set proper permission on open user request and exit if the computer account is already created
2023-10-18 13:44:01 -04:00
Marshall Hallenbeck
84d55aa264
ruff: add LOG (no fixes) and RUF and auto-fix
2023-10-16 12:54:57 -04:00
Marshall Hallenbeck
b39389f122
ruff: fix E261 - spaces before inline comments
2023-10-16 12:52:45 -04:00
Marshall Hallenbeck
a7b95f2fc8
ruff: add refurb (FURB) and auto-fix
2023-10-16 12:48:15 -04:00
Alexander Neff
052bfa3c1a
Resolve merge conflicts
2023-10-15 20:23:12 +02:00
Marshall Hallenbeck
e77ecd31bd
ruff: add F841 back in and auto-fix
2023-10-15 13:31:51 -04:00
Alexander Neff
e672dce25f
Convert for loops into list comprehensions
2023-10-15 19:21:14 +02:00
Alexander Neff
dbc1feeadd
Replace for loops with list comprehensions
2023-10-15 18:24:09 +02:00
Marshall Hallenbeck
e043e0704e
refactor: list comprehension, better header skip, and update docstring
2023-10-15 07:28:58 -04:00
Marshall Hallenbeck
44b0619f44
refactor: list comprehension
2023-10-15 07:28:37 -04:00
Marshall Hallenbeck
6841537347
refactor(daclread): add additional debug, update docstrings, refactor to use list comprehension
2023-10-15 07:18:21 -04:00
Marshall Hallenbeck
3e056659d8
refactor: use list comprehension for domains retrieved - PERF401
2023-10-14 22:16:59 -04:00
Marshall Hallenbeck
467882a759
refactor: move try except outside forloops - PERF203
2023-10-14 22:15:24 -04:00
Marshall Hallenbeck
bc0254d97e
refactor: clean up parse_perms logic
2023-10-14 22:13:03 -04:00
Marshall Hallenbeck
f1af5b8959
ruff: run previously unincluded PIE790 fixes in ruff 0.0.292
2023-10-14 21:53:46 -04:00
Marshall Hallenbeck
6fae02aee0
ruff: add flynt (FLY) and auto-fix
2023-10-14 18:41:08 -04:00
Marshall Hallenbeck
21a8707e9e
ruff: add Pylint (PL) and auto-run
2023-10-14 18:36:20 -04:00
Marshall Hallenbeck
82e5d78007
ruff: eradicate commented out code
2023-10-14 18:34:09 -04:00
Marshall Hallenbeck
adeddb756e
refactor remaining flake8-simplify (SIM) issues
2023-10-14 18:26:24 -04:00
Marshall Hallenbeck
cd1b4680ab
refactor: simplify logic
2023-10-14 18:13:37 -04:00
Marshall Hallenbeck
c1585a5609
refactor: simplify logic again
2023-10-14 18:11:06 -04:00
Marshall Hallenbeck
53af86a557
refactor: use with open for file writing
2023-10-14 18:08:43 -04:00
Marshall Hallenbeck
e03e3a105d
refactor: use with open for file opening
2023-10-14 17:57:35 -04:00
Marshall Hallenbeck
3a27363c35
refactor: use with for file open
2023-10-14 17:53:01 -04:00
Marshall Hallenbeck
c9b325a80c
refactor: update if logic
2023-10-14 17:48:05 -04:00
Marshall Hallenbeck
7a8756d692
add noqa for SIM115
2023-10-14 17:47:51 -04:00
Marshall Hallenbeck
4d2ab762bd
refactor: simplify logic
2023-10-14 17:44:52 -04:00
Marshall Hallenbeck
d8b29312b7
ruff: add flake8-simplify (SIM) and auto-fix
2023-10-14 15:56:22 -04:00
Marshall Hallenbeck
cdcde5a91b
ruff: add flake8-return (RET) and auto-run
2023-10-14 14:16:28 -04:00
Marshall Hallenbeck
781afc9c65
ruff: add flake8-raise (RSE) and auto-run
2023-10-13 15:27:34 -04:00
Marshall Hallenbeck
ae14929faf
ruff: add flake8-quotes (Q) and auto-run
2023-10-13 15:26:57 -04:00
Marshall Hallenbeck
008b99a28b
ruff: add flake8-pytest-style (PT) and auto-run
2023-10-13 15:25:36 -04:00
Marshall Hallenbeck
916c7390c6
ruff: add flake8-pie (PIE) and auto-run
2023-10-13 14:27:53 -04:00
Marshall Hallenbeck
d9f2db1a30
ruff: manual flake8-implicit-str-concat (ISC) fixes
2023-10-13 14:19:39 -04:00
Marshall Hallenbeck
0f93876b54
ruff: auto-run flake8-implicit-str-concat (ISC)
2023-10-13 11:23:44 -04:00
Marshall Hallenbeck
dcc724118f
ruff: auto-run flake8-comprehensions (C4)
2023-10-13 11:21:20 -04:00
Marshall Hallenbeck
e3d6622dee
remove redundant paranthesis
2023-10-13 11:20:17 -04:00
Marshall Hallenbeck
40f557b8e9
ruff: fix flake8-builtins (A) issues
2023-10-12 17:34:01 -04:00
Marshall Hallenbeck
bfd32f1910
ruff: manually fix flake8-bugbear issues
2023-10-12 17:23:21 -04:00
Marshall Hallenbeck
4045bebd77
ruff: auto flake8-bugbear, see B006 mutable-argument-default for function param changes
2023-10-12 17:17:20 -04:00
sandw1ch
0b7756f3f6
Merge branch 'develop' into main
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-12 16:11:23 -05:00
Marshall Hallenbeck
4f5a89262c
ruff: remove encoding
2023-10-12 17:07:40 -04:00
Marshall Hallenbeck
b24b9210e4
ruff: pyupgrade (UP) ruff changes
2023-10-12 17:06:04 -04:00
Marshall Hallenbeck
adc59ffaaa
Merge remote-tracking branch 'origin/develop' into marshall_cleanup
2023-10-12 17:00:02 -04:00
Marshall Hallenbeck
ba5db57ac9
Merge branch 'develop' into XiaoliChan-nanodump
2023-10-12 16:50:20 -04:00
Marshall Hallenbeck
007d09a390
fix: inform user if msol.ps1 file doesnt exist
2023-10-12 16:04:22 -04:00
Marshall Hallenbeck
d638b17c44
fix: inform user if impersonate file doesnt exist
2023-10-12 16:03:37 -04:00
Marshall Hallenbeck
25e4248ccb
fix: inform user if handlekatz file doesnt exist
2023-10-12 16:01:54 -04:00
Marshall Hallenbeck
b01384d1ec
fix error string
2023-10-12 15:58:31 -04:00
Marshall Hallenbeck
8c51b3722a
fix: dont throw an exception right after catching it
2023-10-12 15:55:28 -04:00
Marshall Hallenbeck
9052470a5b
fix: properly handle connection issue to bolt and let user know
2023-10-12 15:49:57 -04:00
Marshall Hallenbeck
335e6c9755
ruff: manually fixed pydocstyle ruff alerts and add exclusions
2023-10-12 15:41:13 -04:00
Marshall Hallenbeck
b002336680
ruff: fix pydocstyle via ruff
2023-10-12 15:13:16 -04:00
Marshall Hallenbeck
c9112b1c13
ruff: add quote flake8 rules and re-run ruff
2023-10-12 14:50:36 -04:00
Marshall Hallenbeck
f61d068cd2
ruff: remove unnecessary f string
2023-10-12 14:30:26 -04:00
Marshall Hallenbeck
bbc661ba38
Merge branch 'develop' into marshall_cleanup
...
Signed-off-by: Marshall Hallenbeck <Marshall.Hallenbeck@gmail.com>
2023-10-12 11:17:46 -04:00
zblurx
b7da5aa597
Update nanodump.py
2023-10-12 15:39:53 +02:00
zblurx
b7d6a987c9
Merge branch 'nanodump'
2023-10-12 11:37:53 +02:00
zblurx
ac8067bc77
fix nanodump
2023-10-12 11:35:31 +02:00
XiaoliChan
ea8cdcceef
[nanodump] zblurx: review I
...
Signed-off-by: XiaoliChan <2209553467@qq.com>
2023-10-12 17:25:32 +08:00
XiaoliChan
784c42b674
[nanodump] fix error with temporary path
...
Signed-off-by: XiaoliChan <2209553467@qq.com>
2023-10-12 14:48:44 +08:00
sandw1ch
50f2e5d1c1
sed "s/'/\"/g"
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-10 17:23:12 -05:00
sandw1ch
2e0a73c225
Update and rename get_fgpp.py to pso.py
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-10 16:07:27 -05:00
sandw1ch
bab6377101
Delete nxc/modules/pso.py
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-10 16:06:54 -05:00
sandw1ch
9a4594ea40
Update get_fgpp.py
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-10 15:58:00 -05:00
sandw1ch
6f8143136c
Update get_fgpp.py
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-10 15:40:13 -05:00
sandw1ch
2915a54811
Update get_fgpp.py
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-10 14:26:36 -05:00
sandw1ch
e898c25716
Create get_fgpp.py
...
Signed-off-by: sandw1ch <se.brink15@gmail.com>
2023-10-10 13:18:12 -05:00
Alex
444845c7e2
Merge branch 'develop' into main
2023-10-10 06:58:37 -04:00
Alexander Neff
2ef51d642a
Fix indentation and formating
2023-10-08 16:20:30 -04:00
Alexander Neff
ae417e5d3a
Autoformat
2023-10-08 14:52:37 -04:00
Alexander Neff
669e0b45e7
Replace str(e).find with 'string' in str(e)
2023-10-08 14:50:59 -04:00
Alexander Neff
b2c73b05d1
Added fail messages for not existing users and users having no active session, stop printing empty output messages.
2023-10-08 07:56:05 -04:00
Defte
0523208c4e
Update schtask_as.py
...
- Sed "g/atexec/schtask_as/s"
- Better error output (unknown username, task has not run)
- Added the output.decode("cp437") for french caracters
Signed-off-by: Defte <aurelien.chalot@protonmail.com>
2023-10-06 17:05:16 +02:00
bongobongoland
e40d4f2a3d
Update enum_av.py
...
Signed-off-by: bongobongoland <129246896+bongobongoland@users.noreply.github.com>
2023-10-06 10:04:59 +11:00
Defte
429a6a4e18
Update schtask_as.py
...
Fix typo
Signed-off-by: Defte <aurelien.chalot@protonmail.com>
2023-10-05 12:03:26 +02:00
Defte
16cfaec75d
Update schtask_as.py
...
Modify the variable name to schtask_as
Change the description
Signed-off-by: Defte <aurelien.chalot@protonmail.com>
2023-10-05 11:58:58 +02:00
Defte
cba97cd068
Rename schtask.py to schtask_as.py
...
Rename the module to prevent confusion.
Signed-off-by: Defte <aurelien.chalot@protonmail.com>
2023-10-05 11:24:50 +02:00
Defte
116c8f7833
Update schtask.py
...
Add @Shad0wC0ntr0ller snippet to remove hardcoded date.
Signed-off-by: Defte <aurelien.chalot@protonmail.com>
2023-10-05 11:15:10 +02:00
zblurx
1148018394
Update codec management
2023-10-03 18:40:07 +02:00
Defte
bcbfad6a18
Create schtask.py
...
Add the schtask module that can be used to impersonate loggedon users and run commands on their behalf.
Signed-off-by: Defte <aurelien.chalot@protonmail.com>
2023-10-03 17:52:06 +02:00
Marshall Hallenbeck
14be9d5b0e
ruff cleanup
2023-09-24 00:25:08 -04:00
Marshall Hallenbeck
443c363129
Merge branch 'marshall_cleanup' of https://github.com/Pennyw0rth/NetExec into marshall_cleanup
2023-09-24 00:07:00 -04:00
Marshall Hallenbeck
c445d381c5
fix string interpolation
2023-09-24 00:06:51 -04:00
Alex
69514ce356
Remove old NotImplementedError
2023-09-23 12:56:04 +02:00
Marshall Hallenbeck
7b44fcd327
ruff autoformat to clean up all the single quotes and other bad formatting
2023-09-22 21:10:21 -04:00
Marshall Hallenbeck
bda8ecb129
clean up wireless module
2023-09-22 15:37:07 -04:00
Marshall Hallenbeck
efbecca7a7
cleanup winscp_dump module
2023-09-22 15:33:41 -04:00
Marshall Hallenbeck
dae229a378
cleanup wdigest module
2023-09-22 15:27:05 -04:00
Marshall Hallenbeck
bbf1024b37
fix variable naming for file listing
2023-09-22 15:24:22 -04:00
Marshall Hallenbeck
d12c139c9e
cleanup
2023-09-22 15:23:00 -04:00
Marshall Hallenbeck
f554223d75
refactor(wcc): update wcc module quotes and refactor some formatting
2023-09-22 15:22:54 -04:00
Marshall Hallenbeck
3f1d0f4f91
clean up ntdsutil module
2023-09-22 15:07:07 -04:00
Marshall Hallenbeck
a730ed0f22
clean up rdp module
2023-09-22 15:06:58 -04:00
Marshall Hallenbeck
5b6153c2a8
properly use fstring
2023-09-22 14:55:18 -04:00
Marshall Hallenbeck
63ac5c7e77
properly import specific ctypes and update description
2023-09-22 14:55:01 -04:00
Marshall Hallenbeck
7f4ab239f5
More cleanup
2023-09-22 10:51:38 -04:00
Marshall Hallenbeck
85ed0794ee
remove old urllib3 error ignore
2023-09-22 10:40:43 -04:00
Marshall Hallenbeck
da2ec9b274
documentation(mssql_priv): add docstrings and a bit of cleanup
2023-09-22 10:37:10 -04:00
Marshall Hallenbeck
b38e71d8fa
refactor(ms17-010): clean up and add full AI-generated comments to MS17-010 Module, since there's a lot of byte-work
2023-09-22 10:04:36 -04:00
Marshall Hallenbeck
2a5c01d6b6
do some cleanup for hash_spider for #38
2023-09-22 09:56:04 -04:00
Marshall Hallenbeck
76bf3be084
clean up appcmd.py
2023-09-22 09:50:56 -04:00
Marshall Hallenbeck
1c7df154b8
more cleanup
2023-09-21 23:42:54 -04:00
Marshall Hallenbeck
f5439cb43f
clean up find-computer module
2023-09-21 23:12:59 -04:00
Marshall Hallenbeck
fb0d153210
refactor(add_computer): refactor and add docstrings to add_computer module
2023-09-20 12:24:42 -04:00
Marshall Hallenbeck
85335213da
automatic ruff fixing
2023-09-20 11:59:16 -04:00
Marshall Hallenbeck
d57f3af7b1
fix escaping sequence in log
2023-09-20 09:11:20 -04:00
Marshall Hallenbeck
5ee39f1ec7
Merge branch 'main' into windows_build
2023-09-18 18:49:03 -04:00
Jason Hillman
d93c75114d
fix webdav module exception handler
2023-09-18 15:09:32 -07:00
Marshall Hallenbeck
c20b65d8ba
fix(build): update pyinstaller spec and fix pypykatz import/hook to properly reference during build
2023-09-18 15:00:39 -04:00
Marshall Hallenbeck
99bddeda4c
fix(drop-sc): use tempdir function to determine current OS temp directory
2023-09-18 12:13:03 -04:00
Alexander Neff
50c4bb7e97
Rename Module Classname to match python convention
2023-09-17 22:20:40 +02:00
Alexander Neff
c9a0604489
Fix broken links
2023-09-17 22:16:22 +02:00
Marshall Hallenbeck
7886ac1612
rename folders, files, functions, classes, etc to NetExec/nxc
2023-09-14 17:07:15 -04:00