forked from nickvourd/Mini-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PS-Cisco-Downloader.ps1
53 lines (39 loc) · 2 KB
/
PS-Cisco-Downloader.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
$global:version = "1.1.0"
function Get-AbsolutePath {
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[string]$FileName
)
if (-not (Test-Path $FileName)) {
Write-Host "File not found: $FileName"
return
}
$absolutePath = (Get-Item $FileName).FullName
return $absolutePath
}
$ascii = @"
_________ .___ __________________ ________ _________ .____ .______________ __________________
\_ ___ \| |/ _____/\_ ___ \ \_____ \ \_ ___ \| | | \_ _____/ \ \__ ___/
/ \ \/| |\_____ \ / \ \/ / | \ / \ \/| | | || __)_ / | \| |
\ \___| |/ \\ \____/ | \ \ \___| |___| || \/ | \ |
\______ /___/_______ / \______ /\_______ / \______ /_______ \___/_______ /\____|__ /____|
\/ \/ \/ \/ \/ \/ \/ \/
~ Created with <3 by @nickvourd
~ Version: $global:version
"@
Write-Host $ascii`n
function Get-Windows{
Write-Host "[+] Download Cisco Anyconnect Client for Windows (MSI)`n"
Invoke-WebRequest -Uri https://olemiss.edu/helpdesk/vpn/_files/anyconnect-win-4.10.00093-core-vpn-predeploy-k9.msi -OutFile anyconnect-win-4.10.00093-core-vpn-predeploy-k9.msi
$fileName = "anyconnect-win-4.10.00093-core-vpn-predeploy-k9.msi"
$absolutePath = Get-AbsolutePath -FileName $fileName
Write-Host "[+] Your file has been saved here: $absolutePath`n"
}
function Get-Macos{
Write-Host "[+] Download Cisco Anyconnect Client for Macos (DMG)`n"
Invoke-WebRequest -Uri https://olemiss.edu/helpdesk/vpn/_files/anyconnect-macos-4.10.00093-predeploy-k9.dmg -OutFile anyconnect-macos-4.10.00093-predeploy-k9.dmg
$fileName = "anyconnect-macos-4.10.00093-predeploy-k9.dmg"
$absolutePath = Get-AbsolutePath -FileName $fileName
Write-Host "[+] Your file has been saved here: $absolutePath`n"
}