authfinder 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- authfinder/__init__.py +1 -1
- authfinder/authfinder.py +8 -4
- {authfinder-1.0.0.dist-info → authfinder-1.0.1.dist-info}/METADATA +4 -3
- authfinder-1.0.1.dist-info/RECORD +8 -0
- {authfinder-1.0.0.dist-info → authfinder-1.0.1.dist-info}/WHEEL +1 -1
- authfinder-1.0.0.dist-info/RECORD +0 -8
- {authfinder-1.0.0.dist-info → authfinder-1.0.1.dist-info}/entry_points.txt +0 -0
- {authfinder-1.0.0.dist-info → authfinder-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {authfinder-1.0.0.dist-info → authfinder-1.0.1.dist-info}/top_level.txt +0 -0
authfinder/__init__.py
CHANGED
authfinder/authfinder.py
CHANGED
|
@@ -335,9 +335,13 @@ def run_chain(user, ip, credential, command, tool_list=None):
|
|
|
335
335
|
safe_print(f" [-] For {ip}: {tool} failed.")
|
|
336
336
|
continue
|
|
337
337
|
|
|
338
|
-
if tool == "mssql"
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
if tool == "mssql":
|
|
339
|
+
if "The EXECUTE permission was denied" in out:
|
|
340
|
+
safe_print(f" \033[33m[!]\033[0m For {ip}: {tool} AUTHENTICATION succeeded as {user} with {credential}, but seemingly failed to run command. Does the user have the necessary permissions?")
|
|
341
|
+
continue
|
|
342
|
+
if "ERROR" in out:
|
|
343
|
+
safe_print(f" [-] For {ip}: {tool} failed.")
|
|
344
|
+
continue
|
|
341
345
|
|
|
342
346
|
# one-shotting using evil-winrm results in a return code of 1
|
|
343
347
|
if rc == 0 or (tool in ("winrm", "winrm-ssl") and rc == 1 and "NoMethodError" in out):
|
|
@@ -417,7 +421,7 @@ def parse_args():
|
|
|
417
421
|
parser.error("Cannot specify username/password when using -f")
|
|
418
422
|
|
|
419
423
|
if not args.file and (not args.username or not args.credential):
|
|
420
|
-
parser.error("Must supply either -f FILE or username
|
|
424
|
+
parser.error("Must supply either -f FILE or username and credential")
|
|
421
425
|
|
|
422
426
|
return args
|
|
423
427
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: authfinder
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Execute commands across Windows systems using multiple RCE methods (WinRM, SMB, WMI, RDP, SSH, MSSQL)
|
|
5
5
|
Author: Khael
|
|
6
6
|
Project-URL: Homepage, https://github.com/KhaelK138/authfinder
|
|
@@ -78,7 +78,7 @@ authfinder 192.168.1.10 administrator Password123 whoami
|
|
|
78
78
|
# Execute across IP range of 192.168.1.1 to 192.168.1.50
|
|
79
79
|
authfinder 192.168.1.1-50 admin Pass123 "net user"
|
|
80
80
|
|
|
81
|
-
# Use
|
|
81
|
+
# Use nthash instead of password
|
|
82
82
|
authfinder 10.0.0.1-10 admin :{32-bit-hash} whoami
|
|
83
83
|
```
|
|
84
84
|
|
|
@@ -86,6 +86,7 @@ authfinder 10.0.0.1-10 admin :{32-bit-hash} whoami
|
|
|
86
86
|
|
|
87
87
|
Supports various formats:
|
|
88
88
|
- Single IP: `192.168.1.10`
|
|
89
|
+
- Multi-IP: `192.168.1.15,17,29,153`
|
|
89
90
|
- Range: `192.168.1.1-254`
|
|
90
91
|
- Multiple ranges: `10.0.1-5.10-20` (expands to all combinations)
|
|
91
92
|
- File with IP ranges: `targets.txt`
|
|
@@ -100,7 +101,7 @@ Password123!
|
|
|
100
101
|
admin
|
|
101
102
|
Pass123
|
|
102
103
|
backup_admin
|
|
103
|
-
:
|
|
104
|
+
:12345678123456781234567812345678
|
|
104
105
|
```
|
|
105
106
|
|
|
106
107
|
Lines starting with `#` are treated as comments. For NT hashes, use them directly as the password.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
authfinder/__init__.py,sha256=c8p5Dp-gq4c7FFrY7J2y5z8safxiJeQxfYyRfhd0XOY,111
|
|
2
|
+
authfinder/authfinder.py,sha256=7AiltrKyYMLdubdWfxtjthFQviIHhAnDWGA11nb5J9M,21471
|
|
3
|
+
authfinder-1.0.1.dist-info/licenses/LICENSE,sha256=Kw_kDNp7vsEauRb1Al1Urf1pe0EZWYB0HGK8PvT4FV0,1060
|
|
4
|
+
authfinder-1.0.1.dist-info/METADATA,sha256=iOuuyHEJLno_yhPIDkfezHQwpNmR-UYT9lph24P0RCY,4408
|
|
5
|
+
authfinder-1.0.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
6
|
+
authfinder-1.0.1.dist-info/entry_points.txt,sha256=9ChuQL6PNJlPHW_hSXvoFffcHCbpE0M8RHk8cz7yaIo,58
|
|
7
|
+
authfinder-1.0.1.dist-info/top_level.txt,sha256=tBEVwAMMMn0YcpoXt_lO1xiT-uznaCGrp7184swWocg,11
|
|
8
|
+
authfinder-1.0.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
authfinder/__init__.py,sha256=b2jBb6R4cuiX1PxJY3rYvF_ur_hCDqsYnC326whCgFA,111
|
|
2
|
-
authfinder/authfinder.py,sha256=kd1cB3oxBDK_XzftviRwOMBAlNV8R52OLLxK5TWxyig,21155
|
|
3
|
-
authfinder-1.0.0.dist-info/licenses/LICENSE,sha256=Kw_kDNp7vsEauRb1Al1Urf1pe0EZWYB0HGK8PvT4FV0,1060
|
|
4
|
-
authfinder-1.0.0.dist-info/METADATA,sha256=KdyyXzqJNunFBs5aX6SMb3RzeOLo4b0LAuOxI4TVRB4,4367
|
|
5
|
-
authfinder-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
-
authfinder-1.0.0.dist-info/entry_points.txt,sha256=9ChuQL6PNJlPHW_hSXvoFffcHCbpE0M8RHk8cz7yaIo,58
|
|
7
|
-
authfinder-1.0.0.dist-info/top_level.txt,sha256=tBEVwAMMMn0YcpoXt_lO1xiT-uznaCGrp7184swWocg,11
|
|
8
|
-
authfinder-1.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|