Add Windows Install Script
parent
8c85abda2b
commit
56ed8c6ee1
|
@ -0,0 +1 @@
|
||||||
|
python3 /usr/bin/fpc.py $@
|
|
@ -0,0 +1,55 @@
|
||||||
|
# Install PoshC2
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host @'
|
||||||
|
__________ .__. _________ ________
|
||||||
|
\_______ \____ _____| |__ \_ ___ \ \_____ \\
|
||||||
|
| ___/ _ \/ ___/ | \ / \ \/ / ____/
|
||||||
|
| | ( <_>)___ \| Y \ \ \____/ \\
|
||||||
|
|____| \____/____ >___| / \______ /\_______ \\
|
||||||
|
\/ \/ \/ \/
|
||||||
|
================= www.PoshC2.co.uk ================
|
||||||
|
'@
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "[+] Installing PoshC2"
|
||||||
|
Write-Host ""
|
||||||
|
|
||||||
|
# Install PoshC2_Python
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "[+] Cloning PoshC2_Python into ~/PoshC2_Python"
|
||||||
|
git clone https://github.com/nettitude/PoshC2_Python $HOME/PoshC2_Python/
|
||||||
|
|
||||||
|
# Check if PIP is installed, if not install it
|
||||||
|
get-command pip >$null 2>$null
|
||||||
|
if($?)
|
||||||
|
{
|
||||||
|
Write-Host "[+] Installing pip as it was not found"
|
||||||
|
wget https://bootstrap.pypa.io/get-pip.py -outfile $env:temp\get-pip.py
|
||||||
|
python $env:temp\get-pip.py
|
||||||
|
}
|
||||||
|
|
||||||
|
# Run pip with requirements file
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "[+] Installing requirements using pip"
|
||||||
|
Write-Host "[+] python -m pip install -r ~/PoshC2_Python/requirements.txt"
|
||||||
|
Write-Host ""
|
||||||
|
pip install --upgrade pip
|
||||||
|
python -m pip install -r $HOME/PoshC2_Python/requirements.txt
|
||||||
|
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "[+] Setup complete"
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host @"
|
||||||
|
__________ .__. _________ ________
|
||||||
|
\_______ \____ _____| |__ \_ ___ \ \_____ \\
|
||||||
|
| ___/ _ \/ ___/ | \ / \ \/ / ____/
|
||||||
|
| | ( <_>)___ \| Y \ \ \____/ \\
|
||||||
|
|____| \____/____ >___| / \______ /\_______ \\
|
||||||
|
\/ \/ \/ \/
|
||||||
|
================= www.PoshC2.co.uk ================
|
||||||
|
"@
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "EDIT the config file: '~/PoshC2_Python/Config.py'"
|
||||||
|
Write-Host ""
|
||||||
|
Write-Host "python ~/PoshC2_Python/C2Server.py"
|
||||||
|
Write-Host "python ~/PoshC2_Python/ImplantHandler.py"
|
|
@ -6,7 +6,7 @@ In addition to the Powershell implant, PoshC2 also has a basic dropper written p
|
||||||
|
|
||||||
The server-side component is written in Python for cross-platform portability and speed, a Powershell server component still exists and can be installed using the 'Windows Install' as shown below but will not be maintained with future updates and releases.
|
The server-side component is written in Python for cross-platform portability and speed, a Powershell server component still exists and can be installed using the 'Windows Install' as shown below but will not be maintained with future updates and releases.
|
||||||
|
|
||||||
## Linux Install of [PoshC2_Python](https://github.com/nettitude/PoshC2_Python/)
|
## Linux Install
|
||||||
|
|
||||||
Install using curl & bash
|
Install using curl & bash
|
||||||
|
|
||||||
|
@ -22,10 +22,12 @@ chmod +x ./Install.sh
|
||||||
./Install.sh
|
./Install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Windows Install of [PoshC2](https://github.com/nettitude/PoshC2/)
|
## Windows Install
|
||||||
|
|
||||||
|
Install Git and Python (and ensure Python is in the PATH), then run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
powershell -exec bypass -c "IEX (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/nettitude/PoshC2/master/C2-Installer.ps1')"
|
powershell -exec bypass -c "IEX (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/nettitude/PoshC2_Python/master/Install.ps1')"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Viewing the logs
|
## Viewing the logs
|
||||||
|
|
Loading…
Reference in New Issue