Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

metapackages kali linux


Skip to content
All gists
Back to GitHub
@Batuhanaydn
@Batuhanaydn
Batuhanaydn/Kali Linux Metapackages
Created 6 months ago

    0

Code
Revisions 1
Kali Linux Metapackages
import os

# Metapackages are used to install many packages at one time, created as a list of dependencies on other packages. Kali Linux uses these in a few ways. One way is allowing users to decide how many packages out of the total Kali list they would like to install. Need just enough to use Linux? Want enough to conduct Pentests? Perhaps nearly every package available in Kali?

# To install a metapackage we first need to update and then install the desired package:

apt = "apt install "
kali_tools = "kali-tools-"
y = " -y"

kali_tools_pack_name = ["information-gathering", "vulnerability", "web", "database", "passwords", "wireless", "reverse-engineering", "exploitation", "social-engineering", "sniffing-spoofing", "post-exploitation", "forensics", "reporting"]
print("1 ) To list Kali tools")
print("2 ) To add Kali mirrors")
print("3) README.md")
select = input("Please choose one of the options. Press q to exit: ")    
if select == "q":
    quit()
if select == "1":    
    for number,tools in  enumerate(kali_tools_pack_name):
        print(f"{number} ) {tools}")
    select_tools = int(input("Which tool package would you like to install: "))
    print(apt+kali_tools+kali_tools_pack_name[select_tools]+y)
    os.system(apt+kali_tools+kali_tools_pack_name[select_tools]+y)

if select == "2":
    print("Add Mirror...")
    mirrors = 'echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" | sudo tee /etc/apt/sources.list'
    os.system(mirrors)
# @Batuhanaydn


 
PREVIOUS NEXT
Tagged: #metapackages #kali #linux
ADD COMMENT
Topic
Name
6+2 =