Practical Web Penetration Testing
上QQ阅读APP看书,第一时间看更新

Using dpkg commands

The upcoming commands are the most frequent ones that I use, but if you are curious and want to know more about all of the commands, then execute the following commands in your Terminal:

  • To get the help instructions for the dpkg command, use the following:
dpkg --help 

You can use --help to see the instructions of any command you like. Also, you have the option to use the manual command:

man [application name]

  • To list all of the packages installed on Kali, use the following:
dpkg -l

You can use the dpkg -l command in your post-exploitation phase to list all of the applications installed on the compromised Linux box.

  • To find a specific application already installed on the system, use the following:
dpkg -l | grep [application name]
  • To install a newly downloaded .deb application, use the following:
dpkg -i [path\filename.deb]
  • To remove an installed application, use the following:
dpkg -r [application name]