redcanaryco / invoke-atomicredteam

Invoke-AtomicRedTeam is a PowerShell module to execute tests as defined in the [atomics folder](https://github.com/redcanaryco/atomic-red-team/tree/master/atomics) of Red Canary's Atomic Red Team project.
MIT License
805 stars 190 forks source link

Problem: centos installation atomic red team error #131

Closed muguangzhuri closed 1 year ago

muguangzhuri commented 1 year ago

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

cyberbuff commented 1 year ago

Thanks for reporting this error. I will check this and get back to you within EOD.

Maker434 commented 1 year ago

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.

cyberbuff commented 1 year ago

132 is merged now. This should fix the issues with *nix installations. Sorry for the delay.