Skip to content

Commit

Permalink
add splashlogo and output logo flag option #41
Browse files Browse the repository at this point in the history
add splashlogo: splashlogos.ps1
add output option help: en/ja.ps1
add option and execute splashlogos.ps1: WELA.ps1
  • Loading branch information
hitenkoku committed Sep 12, 2021
1 parent 8ac05dd commit 29a9c9e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Config/Language/en.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ function Show-Help {
Write-Host " -ShowContributors" -NoNewline -ForegroundColor Green
Write-Host " : Show the contributors"

Write-Host " -QuietLogo" -NoNewline -ForegroundColor Green
Write-Host " : Hide Execute WELA Logo"

Write-Host

}
4 changes: 4 additions & 0 deletions Config/Language/ja.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ function Show-Help {
Write-Host " -ShowContributors" -NoNewline -ForegroundColor Green
Write-Host " : コントリビューターの一覧表示"

Write-Host " -QuietLogo" -NoNewline -ForegroundColor Green
Write-Host " : ロゴを表示させずに実行する"


Write-Host

}
26 changes: 26 additions & 0 deletions Config/splashlogos.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

$logo = @"
██╗ ██╗███████╗██╗ █████╗
██║ ██║██╔════╝██║ ██╔══██╗
██║ █╗ ██║█████╗ ██║ ███████║
██║███╗██║██╔══╝ ██║ ██╔══██║
╚███╔███╔╝███████╗███████╗██║ ██║
╚══╝╚══╝ ╚══════╝╚══════╝╚═╝ ╚═╝
"@
function output-splash() {
foreach ($line in $logo -split "`n") {
foreach ($char in $line.tochararray()) {
if ($([int]$char) -le 9580 -and $([int]$char) -ge 9552) {
Write-host -ForegroundColor Red $char -NoNewline
}
else {
write-host -ForegroundColor blue $char -NoNewline
}
}
Write-Host ""
}
Write-host "New Era of Windows Event Log Analyzer!"
write-host " by " -NoNewline
write-host "Yamato Security" -ForegroundColor Yellow
}
output-splash
7 changes: 6 additions & 1 deletion WELA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,16 @@ param (
[switch]$OutputGUI,
[switch]$OutputCSV,
[switch]$UTC,
[switch]$HideTimezone
[switch]$HideTimezone,
[switch]$QuietLogo
)

$DisplayTimezone = !($HideTimezone);

if (!$QuietLogo) {
Invoke-Expression './Config/splashlogos.ps1'
}

$ProgramStartTime = Get-Date


Expand Down

0 comments on commit 29a9c9e

Please sign in to comment.