Skip to content

Latest commit

 

History

History
311 lines (180 loc) · 7.66 KB

mkdir_statistics.md

File metadata and controls

311 lines (180 loc) · 7.66 KB
layout title tags
manual
mkdir - Statistics of command combinations using pipe
statistic

Before

The commands before mkdir: Pipe the result of the given command to mkdir.

Command percentage
ssh 15%
ss 15%
cat 13%
find 13%
id 11%
ls 3%
chmod 3%
host 3%
echo 1%
xargs 1%
mv 1%
mkdir 1%
w 1%
exec 1%
sed 1%
cmp 1%
head 1%

After

The commands after mkdir: Pipe the result of mkdir to the given command.

Command Percentage
w 13%
xargs 10%
name 8%
cp 8%
mv 5%
su 5%
awk 5%
sed 5%
wc 5%
grep 2%
echo 2%
sudo 2%
mount 2%
tar 2%
cd 2%
cpio 2%
mkdir 2%
wget 2%
rm 2%
rsync 2%
nc 2%

Related Scenarios

Below are the scenarios for all command combinations above.

The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.

Pipe ssh to mkdir

  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy public ssh Id to new host withtout bash redirection
  • Replicate a directory structure from a 'basedir' in a remote server.
  • having root on server, add user's public key to his keys (no password required)
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id

Pipe ss to mkdir

  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy public ssh Id to new host withtout bash redirection
  • Replicate a directory structure from a 'basedir' in a remote server.
  • having root on server, add user's public key to his keys (no password required)
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id

Pipe cat to mkdir

  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy public ssh Id to new host withtout bash redirection
  • having root on server, add user's public key to his keys (no password required)
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id

Pipe find to mkdir

  • Replicate a directory structure dropping the files
  • Reorder file with max 100 file per folder
  • Clone /
  • Reorder file with max 100 file per folder
  • Replicate a directory structure from a 'basedir' in a remote server.
  • Replicate a directory structure dropping the files
  • Parallel copy - Faster copy

Pipe id to mkdir

  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy public ssh Id to new host withtout bash redirection
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
  • Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id

Pipe ls to mkdir

  • Organize a TV-Series season
  • Reorder file with max 100 file per folder

Pipe chmod to mkdir

  • find php command backdoor
  • find potentially malicious PHP commands used in backdoors and aliked scripts

Pipe host to mkdir

  • Replicate a directory structure from a 'basedir' in a remote server.
  • having root on server, add user's public key to his keys (no password required)

Pipe echo to mkdir

  • Organize a TV-Series season

Pipe xargs to mkdir

  • Reorder file with max 100 file per folder

Pipe mv to mkdir

  • Reorder file with max 100 file per folder

Pipe mkdir to mkdir

  • Reorder file with max 100 file per folder

Pipe w to mkdir

  • Reorder file with max 100 file per folder

Pipe exec to mkdir

  • Reorder file with max 100 file per folder

Pipe sed to mkdir

  • Replicate a directory structure from a 'basedir' in a remote server.

Pipe cmp to mkdir

  • Send your terminfo to another machine

Pipe head to mkdir

  • Escape potential tarbombs

Pipe mkdir to w

  • Make directories for and mount all iso files in a folder
  • Mount a CD-ROM on Solaris (SPARC)
  • Reorder file with max 100 file per folder
  • Phrack 66 is out, but the .tar.gz is not there yet on phrack.org's website
  • Quick and dirty version control for one file

Pipe mkdir to xargs

  • Collect a lot of icons from /usr/share/icons (may overwrite some, and complain a bit)
  • Create subdirectory and move files into it
  • Phrack 66 is out, but the .tar.gz is not there yet on phrack.org's website
  • decompiler for jar files using jad

Pipe mkdir to name

  • Make directories for and mount all iso files in a folder
  • Mount a CD-ROM on Solaris (SPARC)
  • Parallel copy - Faster copy

Pipe mkdir to cp

  • extract and initrd image
  • Collect a lot of icons from /usr/share/icons (may overwrite some, and complain a bit)
  • Quick and dirty version control for one file

Pipe mkdir to mv

  • Move all epub keyword containing files to Epub folder
  • Create subdirectory and move files into it

Pipe mkdir to su

  • Make directories for and mount all iso files in a folder
  • Quick and dirty version control for one file

Pipe mkdir to awk

  • Make directories for and mount all iso files in a folder
  • Mount a CD-ROM on Solaris (SPARC)

Pipe mkdir to sed

  • replace text in all files in folder, into subfolder
  • journaling directories

Pipe mkdir to wc

  • Reorder file with max 100 file per folder
  • Quick and dirty version control for one file

Pipe mkdir to grep

  • Move all epub keyword containing files to Epub folder

Pipe mkdir to echo

  • Move all epub keyword containing files to Epub folder

Pipe mkdir to sudo

  • Make directories for and mount all iso files in a folder

Pipe mkdir to mount

  • Make directories for and mount all iso files in a folder

Pipe mkdir to tar

  • Extract 2 copies of .tar.gz content

Pipe mkdir to cd

  • Mount a CD-ROM on Solaris (SPARC)

Pipe mkdir to cpio

  • extract and initrd image

Pipe mkdir to mkdir

  • Reorder file with max 100 file per folder

Pipe mkdir to wget

  • Phrack 66 is out, but the .tar.gz is not there yet on phrack.org's website

Pipe mkdir to rm

  • decompiler for jar files using jad

Pipe mkdir to rsync

  • Parallel copy - Faster copy

Pipe mkdir to nc

  • Parallel copy - Faster copy