Downloads:

4,938

Downloads of v 2018.3:

4,938

Last Update:

9/1/2018

Package Maintainer(s):

Software Author(s):

  • Offensive Security

Tags:

wsl kali gnu linux rolling foss

Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install)

2018.3 | Updated: 9/1/2018

Downloads:

4,938

Downloads of v 2018.3:

4,938

Maintainer(s):

Software Author(s):

  • Offensive Security

Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install) 2018.3

Some Checks Are Exempted or Have Failed

1 Test Failing and 1 Exempted Test


Validation Testing Failed


Verification Testing Exempt:

This package has a dependency on the wsl package which in turn requires an exemption since it's a Windows10/Server2016 only package

To install Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install), run the following command from the command line or from PowerShell:

>

To upgrade Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install), run the following command from the command line or from PowerShell:

>

To uninstall Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade wsl-kalilinux -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade wsl-kalilinux -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure wsl-kalilinux installed
  win_chocolatey:
    name: wsl-kalilinux
    state: present
    version: 2018.3
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'wsl-kalilinux' do
  action    :install
  version  '2018.3'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: wsl-kalilinux,
    Version: 2018.3,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller wsl-kalilinux
{
   Name     = 'wsl-kalilinux'
   Ensure   = 'Present'
   Version  = '2018.3'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'wsl-kalilinux':
  provider => 'chocolatey',
  ensure   => '2018.3',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install wsl-kalilinux version="2018.3" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator gep13 on 9/3/2018.

Description

###This packages installs Kali GNU/Linux Rolling for Windows Subsystem for Linux.

PACKAGE NOTES


Click here to Patreon-ize the package maintainer.



tools\ChocolateyInstall.ps1
$ErrorActionPreference = 'Stop'
$packageName    = 'wsl-kalilinux'
$toolsDir       = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$unzipLocation  = "$toolsDir\unzipped"
$unzipLocation2 = "$toolsDir\unzipped2"
$url            = 'https://aka.ms/wsl-kali-linux'
$checksum       = 'E559A7771BEA595E7468A10DA62DF4DA551A11320487F5DDFCDD5A8284BDAE01'
$url2           = "$unzipLocation\DistroLauncher-Appx_1.1.4.0_x64.appx"
$checksum2      = '61FEB10BE30EB17FB2F1E263E2E61BAA35EBBC7E8AA47D524DC0801325D2C444'

New-Item $unzipLocation -type directory | out-null

$packageArgs = @{
  packageName    = $packageName
  unzipLocation  = $unzipLocation
  fileType       = 'ZIP' 
  url            = $url
  checksum       = $checksum
  checksumType   = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs

$packageArgs = @{
  packageName    = $packageName
  unzipLocation  = $unzipLocation2
  fileType       = 'ZIP' 
  url            = $url2
  checksum       = $checksum2
  checksumType   = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs

Set-Location -Path $unzipLocation2
./kali.exe install --root
wslconfig /list

# There might be more that could be done here.
# https://www.kali.org/tutorials/kali-on-the-windows-subsystem-for-linux/
tools\ChocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'
$packageName    = 'wsl-kalilinux'

wslconfig /unregister MyDistribution
wslconfig /list

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status

    • wsl (≥ 1.0.0)
Discussion for the Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install) Package

Ground Rules:

  • This discussion is only about Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install) and the Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Kali GNU/Linux Rolling for Windows Subsystem for Linux (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus