Skip to content

Commit

Permalink
Merge branch 'main' of github.com:calebstewart/pwncat-testing-images
Browse files Browse the repository at this point in the history
  • Loading branch information
calebstewart committed May 30, 2021
2 parents dc81357 + 1050c2d commit 75fc442
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions windows/Dockerfile
@@ -1 +1,14 @@
FROM mcr.microsoft.com/windows/servercore:ltsc2019

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $verbosePreference='Continue';"]
ADD https://aka.ms/vs/16/release/vc_redist.x64.exe C:/temp/vcredist_x64.exe
ADD https://nmap.org/dist/nmap-7.91-win32.zip nmap.zip

RUN Start-Process -filepath C:/temp/vcredist_x64.exe -ArgumentList "/install", "/passive", "/norestart", "'/log c:/temp/a.txt'" -PassThru | wait-process
RUN Expand-Archive -DestinationPath . -Path nmap.zip
RUN Start-Process -filepath C:/nmap-7.91/vcredist_x86.exe -ArgumentList "/install", "/passive", "/norestart" -PassThru | Wait-Process

# Copy the startup script
COPY start.ps1 start.ps1

ENTRYPOINT ["powershell.exe", "C:\\start.ps1"]
4 changes: 4 additions & 0 deletions windows/start.ps1
@@ -0,0 +1,4 @@
cd nmap-7.91
while( $true ) {
.\ncat.exe -lnvp 4444 -e powershell.exe
}

0 comments on commit 75fc442

Please sign in to comment.