Advertisement
TVT618

Finding Packages for Kali Linux

Apr 28th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. Use apt-cache
  2. Of the various interfaces available to search for packages, apt-cache is the most basic and rudimentary of them all.
  3.  
  4. However, it is also the interface we tend to use most often because it is fast, easy, and efficient. By default, apt-cache searches for a given term in package names as well as their descriptions.
  5.  
  6. Use this command: apt-cache search PACKAGES NAME
  7.  
  8. For example, knowing that all Kali Linux metapackages include ‘aircrack-ng’ in their names, we can easily search for all of them.
  9. Enter this command: apt-cache search aircrack-ng
  10.  
  11. root@GithackTools618:~# apt-cache search aircrack-ng
  12. aircrack-ng - wireless WEP/WPA cracking utilities
  13. airgraph-ng - Tool to graph txt files created by aircrack-ng
  14. forensics-extra - Forensics Environment - extra console components (metapackage)
  15. kismet-plugins - wireless sniffer and monitor - plugins
  16. wifi-honey - Wi-Fi honeypot
  17. wifite - Python script to automate wireless auditing using aircrack-ng tools
  18.  
  19. In many cases, apt-cache returns far too many results because it searches in package descriptions. The searches can be limited to the package names themselves by using the –names-only option.
  20.  
  21. root@kali:~# apt-cache search nmap | wc -l
  22. 37
  23. root@kali:~# apt-cache search nmap --names-only
  24. dnmap - Distributed nmap framework
  25. fruitywifi-module-nmap - nmap module for fruitywifi
  26. nmap-dbgsym - debug symbols for nmap
  27. python-libnmap - Python 2 NMAP library
  28. python-libnmap-doc - Python NMAP Library (common documentation)
  29. python3-libnmap - Python 3 NMAP library
  30. libnmap-parser-perl - parse nmap scan results with perl
  31. nmap - The Network Mapper
  32. nmap-common - Architecture independent files for nmap
  33. zenmap - The Network Mapper Front End
  34. nmapsi4 - graphical interface to nmap, the network scanner
  35. python-nmap - Python interface to the Nmap port scanner
  36. python3-nmap - Python3 interface to the Nmap port scanner
  37.  
  38. Since apt-cache has such wonderfully greppable output, we can keep filtering results until they’re at a manageable number.
  39.  
  40. root@kali:~# apt-cache search nmap --names-only | egrep -v '(python|perl)'
  41. dnmap - Distributed nmap framework
  42. fruitywifi-module-nmap - nmap module for fruitywifi
  43. nmap - The Network Mapper
  44. nmap-common - Architecture independent files for nmap
  45. nmap-dbgsym - debug symbols for nmap
  46. nmapsi4 - graphical interface to nmap, the network scanner
  47. zenmap - The Network Mapper Front End
  48.  
  49. You can further filter down the search results but once you start chaining together a few commands, that’s generally a good indication that it’s time to reach for a different tool.
  50.  
  51. Use aptitude
  52. The aptitude application is a very close cousin of apt and apt-get except it also includes a very useful ncurses interface. It is not included in Kali by default but it can quickly be installed as follows.
  53. root@kali:~# apt update && apt -y install aptitude
  54.  
  55. After installation, running aptitude without any options will launch the ncurses interface. One of the first things you will notice is that you can quickly and easily browse through packages by category, which greatly helps with sorting through the thousands of available packages.
  56.  
  57. To search for a package, either press the / character or select ‘Find’ under the ‘Search’ menu. As you enter your query, the package results will be updated dynamically
  58.  
  59. Once you’ve located a package of interest, you can mark it for installation with the + character or to remove/deselect it, the – character.
  60.  
  61. At this point, you can keep searching for other packages to mark for installation or removal. When you’re ready to install, press the g key to view the summary of the actions to be taken.
  62.  
  63. If you’re satisfied with the proposed changes, press g again and aptitude will complete the package installations as usual.
  64.  
  65. Use search engines
  66. If you want to restrict your searches to tools that are packaged by the Kali team, the easiest way to do so is probably by using the Google site search operator.
  67.  
  68. Using this keyword: site:kali.org PACKAGES NAME
  69.  
  70. Example: site:kali.org lynis
  71.  
  72. Read more
  73. * DEBIAN PACKAGE MANAGEMENT: https://kali.training/lessons/8-debian-package-management/
  74. * What is Kali Linux Metapackages and How to install it?: http://bit.ly/2IGVcub
  75.  
  76. From Kali Linux: https://www.kali.org/tutorials/finding-packages-for-kali-linux/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement