Struts2 Exploits common Commands

Source: Internet
Author: User

Lsb_release-a Kernel Version System version
The processor architecture of the Arch Display machine (1)
UNAME-M Display the processor architecture of the machine (2)
Uname-r displaying the kernel version in use
DMIDECODE-Q Display hardware system components-(SMBIOS/DMI)
Hdparm-i/DEV/HDA lists the architecture characteristics of a disk
HDPARM-TT/DEV/SDA performing a test read operation on the disk
Cat/proc/cpuinfo displaying information for CPU info
Cat/proc/interrupts Display Interrupt
Cat/proc/meminfo Verifying memory usage
Cat/proc/swaps shows which swap is used
Cat/proc/version version of the kernel is displayed
Cat/proc/net/dev Display network adapter and statistics
Cat/proc/mounts displaying the loaded file system

SHUTDOWN-H now shut down system (1)
Init 0 Shutdown System (2)
Telinit 0 Shutdown System (3)
Shutdown-h Hours:minutes & Shutdown system at scheduled times
Shutdown-c Cancel the system at a predetermined time
Shutdown-r now restart (1)
Reboot restart (2)
Logout logoff

Cd/home Enter '/home ' directory '
Cd.. Return to the top level directory
Cd.. /.. Return to the top level two directory
CD into the personal home directory
CD ~user1 into the personal home directory
CD-Return to the last directory
PWD Display work path
ls to view the files in the directory
Ls-f viewing files in a directory
Ls-l displaying details of files and directories
Ls-a Show hidden files

LS-LH display permissions
Ls/tmp | Pr-t5-w$columns divides the terminal into 5 columns to display the
chmod ugo+rwx directory1 Settings directory for Everyone (U), Group (g), and others (O) to read (R), write (W ) and execute (x) permissions
chmod go-rwx directory1 Delete Group (g) Read and write execution permissions to the directory with others (O)
Chown user1 file1 Changing the Owner property of a file
Chown-r user1 dire Ctory1 change the Owner property of a directory and change the properties of all files in the directory at the same time
Chgrp group1 file1 Change the group of files
Chown user1:group1 file1 Change the owner and group properties of a file
find /-perm-u+s lists all files in a system that use SUID control
chmod u+s/bin/file1 set the SUID bit of a binary file-the user who runs the file is also given the same permissions as the owner
chmod u-s/bin/f Ile1 disables the suid bit of a binary file
chmod g+s/home/public sets the SGID bit of a directory-similar to suid, but this is a directory-specific
chmod g-s/home/public Disable a directory SGID Bit
chmod o+t/home/public set the STIKY bit of a file-allow only legitimate owners to delete files
chmod o-t/home/public disable STIKY bit of a directory

Special properties of the file-use "+" to set permissions, use "-" to cancel
chattr +a file1 only allow append read and write files
chattr +c file1 allow this file to be automatically compressed/decompressed by the kernel
chattr +d File1 in a file system backup, the DUMP program ignores the file
Chattr +i file1 is set to an immutable file, cannot be deleted, modified, renamed, or linked
Chattr +s file1 allow a file to be safely deleted
Chattr +s File1 Once the application writes to this file, the system immediately writes the result of the modification to disk
Chattr +u file1 If the file is deleted, the system will allow you to restore the deleted file later
Lsattr display Special properties

Bunzip2 file1.bz2 Extract a file called ' file1.bz2 '
bzip2 file1 compress a file called ' file1 '
gunzip file1.gz unzip a file called ' file1.gz '
gzip file1 compress a file called ' file1 '
gzip-9 file1 maximum compression
rar A File1.rar test_file create a package called ' File1.rar '
rar a file1 . rar file1 file2 dir1 simultaneous compression ' file1 ', ' file2 ' and directory ' Dir1 '
rar x file1.rar decompression rar package
Unrar x file1.rar decompression rar package
Tar-c VF Archive.tar file1 Create a non-compressed tarball
TAR-CVF archive.tar file1 file2 dir1 Create an archive file that contains ' file1 ', ' file2 ' and ' Dir1 ' TAR-TF Archive.tar Displays the contents of a package
TAR-XVF Archive.tar release a package
TAR-XVF ARCHIVE.TAR-C/TMP releases the compressed package into the/tmp directory
Tar-c VFJ archive.tar.bz2 Dir1 Create a compressed package in BZIP2 format
TAR-XVFJ archive.tar.bz2 unzip a compressed package in BZIP2 format
TAR-CVFZ archive.tar.gz dir1 Build a zipped package in gzip format
TAR-XVFZ archive.tar.gz unzip a compressed package in gzip format
Zip file1.zip file1 Create a zip-format compression package
Zip-r File1.zip file1 File2 Dir1 to compress several files and directories into a zip-format compressed package
Unzip File1.zip extract a zip-format compression package
Unrar e-p Lanlan.rar Extract the password-coded RAR package

Apt-get install package_name Installing/updating a deb package
Apt-cdrom install package_name Installing/updating a Deb package from CD
Apt-get update packages in the upgrade list
Apt-get Upgrade upgrade all installed software
Apt-get Remove Package_name A deb package from the system
Apt-get Check to verify that the software repositories that are dependent are correct
Apt-get clean the cache from the downloaded package

Dpkg-i package.deb Install/update a deb Package
Dpkg-r package_name Remove a deb package from the system
DPKG-L display all installed Deb packages in the system
Dpkg-l | grep httpd Displays all the Deb packages with the words "httpd" in their names
Dpkg-s Package_name get information on a special package already installed in the system
Dpkg-l Package_name displays a list of files provided by a Deb package that is already installed in the system
Dpkg--contents Package.deb shows a list of files provided by a package that has not yet been installed
Dpkg-s/bin/ping confirm which Deb package the given file is provided by

RPM-IVH package.rpm Installing an RPM package
RPM-IVH--nodeeps package.rpm Install an RPM package and ignore dependency warnings
Rpm-u package.rpm Update a RPM package without changing its configuration file
Rpm-f package.rpm update one to determine which RPM package is installed
Rpm-e package_name.rpm Delete an RPM package
RPM-QA display all installed RPM packages in the system
Rpm-qa | grep httpd shows all RPM packages with the words "httpd" in their names
Rpm-qi Package_name get special information for an installed package
RPM-QG "System environment/daemons" shows the RPM package for a component
RPM-QL Package_name displays a list of files provided by an already installed RPM package
RPM-QC Package_name Displays a list of configuration files provided by an already installed RPM package
Rpm-q package_name--whatrequires shows a list of dependencies that exist with a RPM package
Rpm-q package_name--whatprovides shows the volume of a RPM package
Rpm-q package_name--scripts Show scripts executed during installation/removal L
Rpm-q package_name--changelog shows the revision history of a RPM package
rpm-qf/etc/httpd/conf/httpd.conf confirm which RPM package is provided for the given file
RPM-QP package.rpm-l displays a list of files provided by a RPM package that has not been installed
RPM--import/media/cdrom/rpm-gpg-key Import Public key digital certificate
RPM--checksig package.rpm confirming the integrity of a RPM package
RPM-QA Gpg-pubkey confirm the integrity of all RPM packages that have been installed
Rpm-v package_name Check file size, license, type, owner, group, MD5 check, and last modified time
Rpm-va Check all installed RPM packages in the system-use with care
RPM-VP package.rpm confirm that an RPM package is not installed

Struts2 Exploits common Commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.