Skip to content

Commit

Permalink
parse hostname correctly with dash (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 authored Dec 22, 2023
1 parent 14b7721 commit ef7e951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Public/config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$artConfig = [PSCustomObject]@{

# [optional] These two configs are calculated programatically, you probably don't need to change them
basehostname = $((hostname).split("-")[0])
basehostname = $((hostname | Select-String -Pattern "(.*?)(-[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12})?$").Matches.Groups[1].value)
OS = $( if ($IsLinux) { "linux" } elseif ($IsMacOS) { "macos" } else { "windows" })

# [optional(if using default install paths)] Paths to your Atomic Red Team "atomics" folder and your "invoke-atomicredteam" folder
Expand Down

0 comments on commit ef7e951

Please sign in to comment.