|
105 | 105 |
|
106 | 106 | .NOTES |
107 | 107 |
|
108 | | -**Version: 7.9** |
| 108 | +**Version: 8.0** |
109 | 109 |
|
110 | | -**12 September, 2023** |
| 110 | +**11 April, 2025** |
111 | 111 |
|
112 | | -**New Features** |
113 | | -* Show security descriptor in SDDL format |
| 112 | +**Fixed issues** |
| 113 | +* Adjusted the DownloadFile function to include a User Agent string |
114 | 114 |
|
115 | 115 |
|
116 | 116 | #> |
@@ -502,7 +502,7 @@ Param |
502 | 502 |
|
503 | 503 | ) |
504 | 504 |
|
505 | | -[string]$ADACLScanVersion = "-------`nAD ACL Scanner 7.9 , Author: Robin Granberg, @ipcdollar1, Github: github.com/canix1 `n-------" |
| 505 | +[string]$ADACLScanVersion = "-------`nAD ACL Scanner 8.0 , Author: Robin Granberg, @ipcdollar1, Github: github.com/canix1 `n-------" |
506 | 506 | [string]$global:SessionID = [GUID]::NewGuid().Guid |
507 | 507 | [string]$global:ACLHTMLFileName = "ACLHTML-$SessionID" |
508 | 508 | [string]$global:SPNHTMLFileName = "SPNHTML-$SessionID" |
@@ -786,7 +786,7 @@ $xamlBase = @" |
786 | 786 | <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> |
787 | 787 | <StackPanel Orientation="Vertical" > |
788 | 788 | <StackPanel Orientation="Horizontal" > |
789 | | - <Label x:Name="lblStyleVersion1" Content="AD ACL Scanner 7.9" HorizontalAlignment="Left" Height="25" Margin="0,0,0,0" VerticalAlignment="Top" Width="140" Foreground="White" Background="{x:Null}" FontWeight="Bold" FontSize="14"/> |
| 789 | + <Label x:Name="lblStyleVersion1" Content="AD ACL Scanner 8.0" HorizontalAlignment="Left" Height="25" Margin="0,0,0,0" VerticalAlignment="Top" Width="140" Foreground="White" Background="{x:Null}" FontWeight="Bold" FontSize="14"/> |
790 | 790 | </StackPanel> |
791 | 791 | <StackPanel Orientation="Horizontal" > |
792 | 792 | <Label x:Name="lblStyleVersion2" Content="written by Robin Granberg " HorizontalAlignment="Left" Height="27" Margin="0,0,0,0" VerticalAlignment="Top" Width="150" Foreground="White" Background="{x:Null}" FontSize="12"/> |
@@ -4992,7 +4992,8 @@ param([string]$URL) |
4992 | 4992 | $TemporaryDestination = $(join-path -Path $CurrentFSPath -ChildPath $TempFileName) |
4993 | 4993 | try |
4994 | 4994 | { |
4995 | | - $WebReq = Invoke-WebRequest -Uri $URL -OutFile $TemporaryDestination -PassThru |
| 4995 | + $UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" |
| 4996 | + $WebReq = Invoke-WebRequest -Uri $URL -OutFile $TemporaryDestination -UserAgent $UserAgent -PassThru |
4996 | 4997 | } |
4997 | 4998 | catch |
4998 | 4999 | { |
|
0 commit comments