Closed muguangzhuri closed 1 year ago
Thanks for reporting this error. I will check this and get back to you within EOD.
I have same error. (Using Ubuntu 20.04 and powershell 7.3.4) Also tried powershell version 7.2.11 but same error. Windows works fine.
What did you do?
[root@localhost ~]# pwsh PowerShell 7.3.4 PS /root> IEX (IWR 'https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1' -UseBasicParsing); PS /root> Install-AtomicRedTeam -getAtomics -Force
Installation of AtomicRedTeam Failed. The SSL connection could not be established, see inner exception.
PS /root> Install-AtomicRedTeam -getAtomics -Force Installation of AtomicRedTeam Failed. Connection timed out (github.com:443)
PS /root> Install-AtomicRedTeam -getAtomics -Force Add-Type:
Line |
166 | Add-Type -TypeDefinition $Source -Language CSharp
|
~~~~~~~~~~~~~| (14,5): error SYSLIB0014: “WebClient.WebClient()”已过时:“WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.” public ExtendedWebClient() {
^
Installation of AtomicRedTeam Failed.
Cannot add type. Compilation errors occurred.
What did you expect to happen?
Successfully installed AtomicRedTeam and can execute test cases
What happened instead?
centos installation atomic red team error
PS /root> Install-AtomicRedTeam -getAtomics -Force Add-Type:
Line |
166 | Add-Type -TypeDefinition $Source -Language CSharp
|
~~~~~~~~~~~~~| (14,5): error SYSLIB0014: “WebClient.WebClient()”已过时:“WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.” public ExtendedWebClient() {
^
Installation of AtomicRedTeam Failed.
Cannot add type. Compilation errors occurred.
Your Environment