Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Comments
Bookmark
Share
Add to Playlist
Report
Just the Tip - Powershell Invoke-WebRequest Curl Wget PortableApps Expand-Archive
Cyber Secrets
Follow
7/31/2017
Cyber Secrets Quick Tip
# 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
Category
🤖
Tech
Recommended
0:56
|
Up next
The OSINT Cyber WAR in Review January 11, 2021
Cyber Secrets
1/11/2021
0:12
A Pentest that is Fast, Good, Cheap, and we own you afterwards
Cyber Secrets
1/10/2021
0:57
WhatsApp removes privacy and Signal Messenger is an option to keep it
Cyber Secrets
1/10/2021
1:00
Do you want to get into Cybersecurity?
Cyber Secrets
1/8/2021
1:30
The Cyber Secrets "Secrets"... Publications and Social Media groups
Cyber Secrets
1/6/2021
8:50
iPhone/iPad Forensic Logical Copy with CSI Linux
Cyber Secrets
12/21/2020
10:30
Forensic image booting in VirtualBox with FTK Imager
Cyber Secrets
12/13/2020
5:29
Recon-ng, the OSINT tool for your
Cyber Secrets
12/2/2020
5:29
Simple Ducky, a fun hacking tool
Cyber Secrets
12/2/2020
7:42
Shodan.io Demo - Find the cools stuff with recon
Cyber Secrets
12/2/2020
3:09
IWC-Lab: Powershell port scanner
Cyber Secrets
8/17/2017
2:00
IWC-JtT-009-Powershell-smb-password-cracker-hydra-user-group-adsi-SchemaClassName-loop
Cyber Secrets
8/17/2017
2:00
IWC-JtT-012-Powershell-Youtube-Downloader-FFMpeg-Cyber-Secrets-Archiver
Cyber Secrets
8/17/2017
2:00
IWC-JtT-010-Powershell-Export-CSV-ASCII-UTF8-Array
Cyber Secrets
8/17/2017
2:00
IWC-JtT-008-Powershell-user-group-adsi-SchemaClassName-loop
Cyber Secrets
8/17/2017
2:00
Just the Tip: Port Scanner - Banner Grabber - PowerShell script with report
Cyber Secrets
7/31/2017
6:31
After Effects Removing Backgrounds are replacing with Transparency
Cyber Secrets
7/28/2017
5:27
Green Screen Removal in Premiere Pro
Cyber Secrets
7/28/2017
7:01
Tor Hidden Services
Cyber Secrets
7/28/2017
5:08
Tor ProxyChains Torsocks
Cyber Secrets
7/28/2017
6:47
Tor through ProxyChains and more
Cyber Secrets
7/28/2017
5:27
Meterpreter 101
Cyber Secrets
7/26/2017
7:52
PenTesting 101 - Footprinting a target - Ethical Hacking
Cyber Secrets
7/26/2017
10:24
Social Engineering Toolkit (SET)
Cyber Secrets
7/26/2017
0:51
Former Aide Claims She Was Asked to Make a ‘Hit List’ For Trump
Veuer
9/27/2023