mirror of
https://github.com/maxDcb/C2Implant
synced 2026-06-08 15:48:22 +00:00
Arch from beacon
This commit is contained in:
+1
-1
Submodule core updated: 9d23fef49a...e4e885adc1
Vendored
+1
-1
Submodule thirdParty/donut updated: 8dc4f3139e...cddbff4ce2
@@ -0,0 +1,35 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$repositories = @(
|
||||
"core",
|
||||
"libs/libDns",
|
||||
"libs/libSocketHandler",
|
||||
"libs/libSocks5",
|
||||
"thirdParty/donut"
|
||||
)
|
||||
|
||||
$root = $PSScriptRoot
|
||||
if ([string]::IsNullOrWhiteSpace($root)) {
|
||||
$root = (Get-Location).Path
|
||||
}
|
||||
|
||||
foreach ($repository in $repositories) {
|
||||
$path = Join-Path $root $repository
|
||||
if (-not (Test-Path -Path $path -PathType Container)) {
|
||||
throw "Repository path not found: $path"
|
||||
}
|
||||
|
||||
Write-Host "[*] Updating $repository"
|
||||
Push-Location $path
|
||||
try {
|
||||
$safeDirectory = (Get-Location).Path
|
||||
git config --global --add safe.directory $safeDirectory
|
||||
git fetch
|
||||
git rebase origin/master
|
||||
}
|
||||
finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "[+] Done"
|
||||
Reference in New Issue
Block a user