Closed hpriergaard closed 4 years ago
Hi Version 4.1 works ok
The lasted lines from 878 to 886
$originalnessusoutput = Get-Content $outputdir\adaudit.nessus $nessusoutput = $originalnessusoutput -Replace "&", "&" $nessusoutput = $nessusoutput -Replace "`“", """ $nessusoutput = $nessusoutput -Replace "ü", "u" $nessusoutput | Out-File $outputdir\adaudit-replaced.nessus
$endtime = get-date Write-Both "[*] Script end time $endtime"
Version 4.2 didn't works
The lasted lines from 879 to 888
$originalnessusoutput = Get-Content $outputdir\adaudit.nessus $nessusoutput = $originalnessusoutput -Replace "&", "&" $nessusoutput = $nessusoutput -Replace "`“", """ $nessusoutput = $nessusoutput -Replace "ü", "u" $nessusoutput | Out-File $outputdir\adaudit-replaced.nessus ~ $endtime = get-date Write-Both "[*] Script end time $endtime" ~
I run this commando PS C:\Users\Administrator\Downloads\ADaudit-master> .\AdAudit.ps1 -all
Error At C:\Users\Administrator\Downloads\ADaudit-master\AdAudit.ps1:882 char:48
Unexpected token 'ü", "u" $nessusoutput | Out-File $outputdir\adaudit-replaced.nessus $endtime = get-date Write-Both "[*]' in expression or statement. At C:\Users\Administrator\Downloads\ADaudit-master\AdAudit.ps1:887 char:41
Best regards Henrik
This is now resolved
Hi Version 4.1 works ok
The lasted lines from 878 to 886
Dirty fix for .nessus characters (will do this properly or as a function later. Will need more characters adding here...)
$originalnessusoutput = Get-Content $outputdir\adaudit.nessus $nessusoutput = $originalnessusoutput -Replace "&", "&" $nessusoutput = $nessusoutput -Replace "`“", """ $nessusoutput = $nessusoutput -Replace "ü", "u" $nessusoutput | Out-File $outputdir\adaudit-replaced.nessus
$endtime = get-date Write-Both "[*] Script end time $endtime"
Version 4.2 didn't works
The lasted lines from 879 to 888
Dirty fix for .nessus characters (will do this properly or as a function later. Will need more characters adding here...)
$originalnessusoutput = Get-Content $outputdir\adaudit.nessus $nessusoutput = $originalnessusoutput -Replace "&", "&" $nessusoutput = $nessusoutput -Replace "`“", """ $nessusoutput = $nessusoutput -Replace "ü", "u" $nessusoutput | Out-File $outputdir\adaudit-replaced.nessus ~ $endtime = get-date Write-Both "[*] Script end time $endtime" ~
I run this commando PS C:\Users\Administrator\Downloads\ADaudit-master> .\AdAudit.ps1 -all
Error At C:\Users\Administrator\Downloads\ADaudit-master\AdAudit.ps1:882 char:48
Best regards Henrik