Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Just the Tip - Powershell Invoke-WebRequest Curl Wget PortableApps Expand-Archive
4 Views • Jul 31, 2017
Description
# Problem: I need a script to download files from the internet and if they are programs, run them.
# Solution: Either Powershell's Invoke-WebRequest or Curl
$source = "https://www.informationwarfarecenter.com/images/ATC-Web20-Logo.png"
$source2 = "https://www.informationwarfarecenter.com/images/Jeremy-Martin.jpg"
$destination = "$env:TEMP\ATC-Web20-Logo.png"
$destination2 = "$env:TEMP\Jeremy-Martin.jpg"
#download with invoke-webrequest
Invoke-WebRequest $source -OutFile $destination -ErrorAction Stop
#download a file with curl
curl $source2 -OutFile $destination2
#run the program Invoke-Item
Invoke-Item $destination
#run the program with Start-Process
Start-Process -FilePath $destination2 -PassThru
#Add a registry key
new-itemproperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -name StartMe -value $destination -ErrorAction SilentlyContinue
----
# IWC Custom PortableApps Builder
# Author: Jeremy Martin
# jeremy@informationwarfarecenter.com
# Download PortableApps and install
# Ask for where the PortableApps is installed
clear
$source = "https://portableapps.com/redirect/?a=PAcPlatform&t=http%3A%2F%2Fdownloads.portableapps.com%2Fportableapps%2Fpacplatform%2FPortableApps.com_Platform_Setup_14.4.1.paf.exe"
$destination = "$env:TEMP\installer.exe"
Invoke-WebRequest $source -OutFile $destination
Start-Process -FilePath "$destination" -PassThru
$PA = Read-Host -Prompt "Where did you install PortableApps (Example d:\PortableApps)"
# IWC Extra files
echo "Downloading IWC Extra Apps"
$Source2 = "https://www.informationwarfarecenter.com/files/IWC-Extra-Apps.zip"
$destination2 = "$env:TEMP\IWC-Extras.zip"
curl $Source2 -OutFile $destination2
Expand-Archive –Path $destination2 -DestinationPath "$PA\PortableApps" -Force
Start-Process -FilePath "$PA\Start.exe" -PassThru
Keywords & Tags
More from User
The OSINT Cyber WAR in Review January 11, 2021
Cyber Secrets
A Pentest that is Fast, Good, Cheap, and we own you afterwards
Cyber Secrets
WhatsApp removes privacy and Signal Messenger is an option to keep it
Cyber Secrets
Do you want to get into Cybersecurity?
Cyber Secrets
The Cyber Secrets "Secrets"... Publications and Social Media groups
Cyber Secrets
iPhone/iPad Forensic Logical Copy with CSI Linux
Cyber Secrets
Related Videos
Just the Tip: Port Scanner - Banner Grabber - PowerShell script with report
Cyber Secrets
IWC-JtT-012-Powershell-Youtube-Downloader-FFMpeg-Cyber-Secrets-Archiver
Cyber Secrets
Dota 2 Tips : Auto-invoke Macro Script !! Invoker tutorial
Dota 2
Natural Bodybuilding Tip EZ Curl Bar or Straight Barebell during Curls @hodgetwins
Gym Addiction - Bodybuilding Motivation
Hammer Curls vs. Barbell Curls _ Weightlifting Tips
Ki bong
how to curl hair with bannana Fast HEATLESS curls with a Banana!- - beauty tips for girls
Beauty Tips For Girls