-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kali: A distribution based on Debian: https://www.kali.org/
Kali includes many packages suitable for offensive security tasks. It follows a rolling release model and serves fewer architectures than Debian.
- Loading branch information
Showing
18 changed files
with
197 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Distribution=kali | ||
|
||
[Distribution] | ||
Repositories=non-free-firmware | ||
|
||
[Content] | ||
Packages= | ||
linux-perf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Architecture=arm64 | ||
|
||
[Content] | ||
Packages= | ||
linux-image-cloud-arm64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Architecture=x86-64 | ||
|
||
[Content] | ||
Packages= | ||
linux-image-cloud-amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Architecture=x86 | ||
|
||
[Content] | ||
Packages= | ||
linux-image-686 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
[Match] | ||
Distribution=|debian | ||
Distribution=|kali | ||
Distribution=|ubuntu | ||
|
||
[Content] | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
# Make sure that services are disabled by default (primarily for Debian/Ubuntu). | ||
# Make sure that services are disabled by default (primarily for Debian/Kali/Ubuntu). | ||
disable * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# SPDX-License-Identifier: LGPL-2.1+ | ||
|
||
from collections.abc import Iterable | ||
from pathlib import Path | ||
|
||
from mkosi.config import Architecture | ||
from mkosi.context import Context | ||
from mkosi.distributions import Distribution, debian | ||
from mkosi.installer.apt import AptRepository | ||
from mkosi.log import die | ||
from mkosi.util import listify | ||
|
||
|
||
class Installer(debian.Installer): | ||
@classmethod | ||
def pretty_name(cls) -> str: | ||
return "Kali Linux" | ||
|
||
@classmethod | ||
def default_release(cls) -> str: | ||
return "kali-rolling" | ||
|
||
@classmethod | ||
def default_tools_tree_distribution(cls) -> Distribution: | ||
return Distribution.kali | ||
|
||
@staticmethod | ||
@listify | ||
def repositories(context: Context, local: bool = True) -> Iterable[AptRepository]: | ||
if context.config.local_mirror and local: | ||
yield AptRepository( | ||
types=("deb",), | ||
url=context.config.local_mirror, | ||
suite=context.config.release, | ||
components=("main",), | ||
signedby=None, | ||
) | ||
return | ||
|
||
yield AptRepository( | ||
types=("deb", "deb-src"), | ||
url=context.config.mirror or "http://http.kali.org/kali", | ||
suite=context.config.release, | ||
components=("main", *context.config.repositories), | ||
signedby=Path("/usr/share/keyrings/kali-archive-keyring.gpg"), | ||
) | ||
|
||
@classmethod | ||
def architecture(cls, arch: Architecture) -> str: | ||
a = { | ||
Architecture.arm64: "arm64", | ||
Architecture.arm: "armhf", | ||
Architecture.x86_64: "amd64", | ||
Architecture.x86: "i386", | ||
}.get(arch) | ||
|
||
if not a: | ||
die(f"Architecture {arch} is not supported by {cls.pretty_name()}") | ||
|
||
return a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
[Match] | ||
Distribution=|debian | ||
Distribution=|kali | ||
Distribution=|ubuntu | ||
|
||
[Content] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
[Match] | ||
Distribution=|debian | ||
Distribution=|kali | ||
Distribution=|ubuntu | ||
|
||
[Content] | ||
|
Oops, something went wrong.