This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-10-25 06:46:31 +02:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
9d438a06d99615e92418f99e24ddc5b61781044a
GTFOBins.github.io
/
_gtfobins
/
csplit.md
LinuxSploit
508f493cd1
Add csplit file-write
...
Co-authored-by: Andrea Cardaci <
cyrus.and@gmail.com
>
2021-07-31 12:50:05 +02:00
569 B
Raw
Blame
History
functions
functions
file-read
file-write
suid
sudo
code
LFILE=file_to_read csplit $LFILE 1 cat xx01
description
code
Writes the data to `xx0file_to_write`. If needed, a different prefix can be specified with `-f` (instead of `xx`).
TF=$(mktemp) echo "DATA" > $TF LFILE=file_to_write csplit -z -b "%d$LFILE" $TF 1
code
LFILE=file_to_read csplit $LFILE 1 cat xx01
code
LFILE=file_to_read csplit $LFILE 1 cat xx01