Skip to content

Commit 9677658

Browse files
author
Robin Granberg
committed
8.0 fixed Download function
1 parent 7dafb09 commit 9677658

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

ADACLScan.ps1

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@
105105

106106
.NOTES
107107

108-
**Version: 7.9**
108+
**Version: 8.0**
109109

110-
**12 September, 2023**
110+
**11 April, 2025**
111111

112-
**New Features**
113-
* Show security descriptor in SDDL format
112+
**Fixed issues**
113+
* Adjusted the DownloadFile function to include a User Agent string
114114

115115

116116
#>
@@ -502,7 +502,7 @@ Param
502502

503503
)
504504

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-------"
506506
[string]$global:SessionID = [GUID]::NewGuid().Guid
507507
[string]$global:ACLHTMLFileName = "ACLHTML-$SessionID"
508508
[string]$global:SPNHTMLFileName = "SPNHTML-$SessionID"
@@ -786,7 +786,7 @@ $xamlBase = @"
786786
<StackPanel Orientation="Horizontal" Margin="0,0,0,0">
787787
<StackPanel Orientation="Vertical" >
788788
<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"/>
790790
</StackPanel>
791791
<StackPanel Orientation="Horizontal" >
792792
<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)
49924992
$TemporaryDestination = $(join-path -Path $CurrentFSPath -ChildPath $TempFileName)
49934993
try
49944994
{
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
49964997
}
49974998
catch
49984999
{

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
## Current version
44

5-
**Version: 7.9**
5+
**Version: 8.0**
66

7-
**12 September, 2023**
7+
**11 April, 2025**
88

9-
**SHA256:** 66394A80A432C978A64D6A490D5C155AECDAAC53BAE5024B00BC5517F445B537
9+
**SHA256:** A96A1737301CD29184919A0934A01EA644E319BFC3DF6A4062CC70C52FA2E269
10+
11+
**Fixed issues**
12+
* Adjusted the DownloadFile function to include a User Agent string
1013

11-
**New Features**
12-
* Show security descriptor in SDDL format
1314

14-
*7.0 Features*
15-
* Filter on permissions like "GenericAll" or multiple values like "WriteProperty | ExtendedRight"
1615

1716
![](https://github.com/canix1/ADACLScanner/blob/master/src/ADACLScan7.0_Permission.png)
1817

0 commit comments

Comments
 (0)