mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Added cpio
This commit is contained in:
parent
2db67eefb9
commit
6f2c001687
38
_gtfobins/cpio.yml
Normal file
38
_gtfobins/cpio.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
description: This reads the contents of file or overwrite to or from the subjected place.
|
||||||
|
functions:
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read_or_to_save
|
||||||
|
LFOLDER=folder_location_to_read_or_to_save
|
||||||
|
touch file.txt
|
||||||
|
FOLDER=folder_where_file.txt_is_saved
|
||||||
|
echo $LFILE > /$FOLDER/file.txt
|
||||||
|
cd /$LFOLDER && cpio -o < /$FOLDER/file.txt
|
||||||
|
suid:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read_or_to_save
|
||||||
|
LFOLDER=folder_location_to_read_or_to_save
|
||||||
|
touch file.txt
|
||||||
|
FOLDER=folder_where_file.txt_is_saved
|
||||||
|
echo $LFILE > /$FOLDER/file.txt
|
||||||
|
cd /$LFOLDER && cpio -o < /$FOLDER/file.txt
|
||||||
|
|
||||||
|
# FILE to overwrite
|
||||||
|
cpio -p /$DFOLDER/ < /$FOLDER/file.txt
|
||||||
|
sudo:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read_or_to_save
|
||||||
|
LFOLDER=folder_location_to_read_or_to_save
|
||||||
|
touch file.txt
|
||||||
|
FOLDER=folder_where_file.txt_is_saved
|
||||||
|
echo $LFILE > /$FOLDER/file.txt
|
||||||
|
cd /$LFOLDER && cpio -o < /$FOLDER/file.txt
|
||||||
|
|
||||||
|
# FILE to overwrite
|
||||||
|
cpio -p /$DFOLDER/ < /$FOLDER/file.txt
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user