• Installing Software with git
  • Chapter 4 Now you can search for the package you’re looking for. Simply click  the Search




    Download 7,3 Mb.
    Pdf ko'rish
    bet58/115
    Sana27.11.2023
    Hajmi7,3 Mb.
    #106243
    1   ...   54   55   56   57   58   59   60   61   ...   115
    Bog'liq
    linuxbasicsforhackers

    46
    Chapter 4
    Now you can search for the package you’re looking for. Simply click 
    the Search tab to open a search window. Because you are looking for Snort 
    again, enter 
    snort
    into the search window and click Search. Scroll down the 
    search results to find the package you’re looking for. Check the box next to 
    snort and then click the Apply tab, as shown in Figure 4-3. Synaptic will now 
    download and install Snort from the repository along with any necessary 
    dependencies.
    Figure 4-3: Downloading Snort from the Synaptic Package Manager
    Installing Software with git
    Sometimes the software you want isn’t available in any of the repositories—
    especially if it’s brand new—but it may be available on github (https://www 
    .github.com/), a site that allows developers to share their software with others 
    to download, use, and provide feedback. For instance, if you want bluediv-
    ing, a Bluetooth hacking and pentesting suite, and can’t find it in the Kali 
    repository, you can search github for the software by entering bluediving 
    into the search bar. If it exists on github, you should see the repository for 
    it in the search results. 
    Once you’ve found the software on github, you can install it from the 
    terminal by entering the 
    git clone
    command followed by its github URL. 
    For instance, bluediving is located at https://www.github.com/balle/bluediving 
    .git. To clone it into your system, enter the command shown in Listing 4-7.
    kali >git clone https://www.github.com/balle/bluediving.git
    Cloning into 'bluediving'...
    remote: Counting objects: 131, Done.
    remote: Total 131 (delta 0), reused 0 (delta 0), pack-reused 131
    Receiving objects: 100% (131/131), 900.81 KiB | 646.00 KiB/s, Done.


    Adding and Removing Software
    47
    Resolving deltas: 100% (9/9), Done.
    Checking connectivity... Done.
    Listing 4-7: Cloning bluediving with git clone
    The 
    git clone
    command copies all the data and files from that location 
    onto your system. You can check to see that they’ve been successfully down-
    loaded by using the long listing command 
    ls –l
    on the target directory, 
    like so:
    kali >ls -l
    If you’ve successfully cloned bluediving to your system, you should see 
    something like the following output:
    total 80
    drwxr-xr-x 7 root root 4096 Jan 10 22:19 bluediving
    drwxr-xr-x 2 root root 4096 Dec 5 11:17 Desktop
    drwxr-xr-x 2 root root 4096 Dec 5 11:17 Documents
    drwxr-xr-x 2 root root 4096 Dec 5 11:17 Downloads
    drwxr-xr-x 2 root root 4096 Dec 5 11:17 Music
    --snip--
    As you can see, bluediving has been successfully cloned to the system
    and a new directory named bluediving has been created for its files.
    Summary
    In this chapter, you learned a few of the many ways to download and install 
    new software on your Linux system. Software package managers (like apt), 
    GUI-based installers, and git clones are the most common and crucial 
    methods for an aspiring hacker to know. You’ll soon find yourself becom-
    ing familiar with each of them.

    Download 7,3 Mb.
    1   ...   54   55   56   57   58   59   60   61   ...   115




    Download 7,3 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Chapter 4 Now you can search for the package you’re looking for. Simply click  the Search

    Download 7,3 Mb.
    Pdf ko'rish