Skip to content

Update KaliLinux #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,16 @@
# Licensed under the MIT License.
#
# Docker image file that describes an Kali Rolling image with PowerShell
# installed from Debian9 PowerShell package
# installed from Debian11 PowerShell package

# Define arg(s) needed for the From statement
ARG fromTag=kali-rolling
ARG imageRepo=kalilinux/kali-linux-docker

FROM ${imageRepo}:${fromTag} AS installer-env
FROM kalilinux/kali-rolling:latest AS installer-env

# Define Args for the needed to add the package
ARG PS_VERSION=6.2.3
ARG PS_PACKAGE=powershell_${PS_VERSION}-1.debian.9_amd64.deb
ARG PS_VERSION=7.0.1
ARG PS_PACKAGE=powershell_${PS_VERSION}-1.debian.11_amd64.deb
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE}
ARG PS_INSTALL_VERSION=7

# Define Args for the needed to add the package
ARG KALI_REPO_KEY_PACKAGE_URL=https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.2_all.deb

# Define Args for the needed to add the package
ARG DEBIAN_PACKAGE_URL=http://ftp.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u3_amd64.deb

# Define Args and Env needed to create links
ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
\
Expand All @@ -40,20 +30,8 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \

# Installation
RUN \
# Download the Kali repository package and save it
wget -O /tmp/kali-archive-keyring_2018.2_all.deb --no-check-certificate ${KALI_REPO_KEY_PACKAGE_URL} \
# install kali package to renew kali repository expired certificate in container image
&& apt-get install --no-install-recommends /tmp/kali-archive-keyring_2018.2_all.deb \
# remove kali package
&& rm -f /tmp/kali-archive-keyring_2018.2_all.deb \
# Download the libicu57 Debian package and save it
&& wget -O /tmp/libicu57_57.1-6+deb9u3_amd64.deb --no-check-certificate ${DEBIAN_PACKAGE_URL} \
# install required libicu57 package
&& dpkg -i /tmp/libicu57_57.1-6+deb9u3_amd64.deb \
# remove libicu57 package
&& rm -f /tmp/libicu57_57.1-6+deb9u3_amd64.deb \
# update package list
&& apt-get update \
apt-get update \
# install dependencies
&& apt-get install --no-install-recommends -y \
# required for HttpClientHandler
Expand All @@ -66,6 +44,8 @@ RUN \
locales \
# required to support NTLM for PSRemoting
gss-ntlmssp \
wget \
libicu63 \
# enable en_US.UTF-8 locale
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
# generate locale
Expand Down Expand Up @@ -95,7 +75,7 @@ RUN \
&& rm -rf /var/lib/apt/lists/*

# Define args needed only for the labels
ARG IMAGE_NAME=pshorg/powershellcommunity:kali-kali-rolling
ARG IMAGE_NAME=pshorg/powershellcommunity:kalilinux
ARG VCS_REF="none"

# Add label last as it's just metadata and uses a lot of parameters
Expand Down
12 changes: 12 additions & 0 deletions release/community-stable/kalilinux/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"IsLinux" : true,
"PackageFormat": "powershell_${PS_VERSION}-1.debian.11_amd64.deb",
"SkipGssNtlmSspTests": false,
"shortTags": [
{"Tag": "latest"}
],
"tagTemplates": [
"#psversion#-kalilinux-#tag#",
"kalilinux"
]
}
14 changes: 0 additions & 14 deletions release/unstable/kali-rolling/getLatestTag.ps1

This file was deleted.

10 changes: 0 additions & 10 deletions release/unstable/kali-rolling/meta.json

This file was deleted.