EmpireProject / Empire

Empire is a PowerShell and Python post-exploitation agent.
http://www.powershellempire.com/
BSD 3-Clause "New" or "Revised" License
7.43k stars 2.81k forks source link

Install on Ubuntu: select the ps package source by stored version number #1319

Closed UlrichBerntien closed 5 years ago

UlrichBerntien commented 5 years ago

The release number of the installed Ubuntu is stored in the file /etc/lsb-release. This number is used to select the Microsoft powershell package source list. So only one Ubuntu case is needed in the install_powershell function. Now the powershell install works also with Ubuntu 18.04.

Additional the implicit if-elif structure (only one of the if conditions is true) is converted into an explicit if-elif structure.

mr64bit commented 5 years ago

Thanks!