(curl -sL https://api.github.com/repos/PowerShell/PowerShell/releases/latest) package=$(echo $release | jq -r ".assets[].browser_download_url" | grep "linux-arm${bits}.tar.gz") wget $package # Make folder to put
sudo apt-get install -y wget # Download the PowerShell package file wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell_7.4.2-1.deb_amd64.deb ### # Install the PowerShell package sudo dpkg -i powershell_7.4.2-1.deb_amd64.deb # Resolve missing dependencie...
PowerShell is two things: a command-line shell that enables users to execute commands through a command-line prompt equivalent to the traditional command prompt (cmd.exe). Additionally, it is a powerful scripting language capable of developing tools and automating just about everything you can ima...
wget -qO- http://example.com > wget-output.txt 2>&1 (-O- is equivalent to -O /dev/stdout, see this thread https://superuser.com/questions/321240/how-do-you-redirect-wget-to-standard-out/321241) Currently, I am using this kind of approach with Invoke-WebRequest (https://github.co...
wget https://raw.githubusercontent.com/nettitude/PoshC2/master/Install.sh chmod +x ./Install.sh ./Install.sh Windows Install ofPoshC2 powershell -exec bypass -c "IEX (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/nettitude/PoshC2_Old/master/C2-Installer...
I could have used Invoke-RestMethod (help -full irm) instead of Invoke-WebRequest (help -full wget), but using wget makes clear that JSON objects were downloaded and then, converted to psobjects. Example #F: Thanks to CROM technology, all these are "borrowed/used" - YouTube videos API,...