> sh: unexpected EOF while looking for matching `''
sh: syntax error: unexpected end of file
> sh: unexpected EOF while looking for matching ``'
sh: syntax error: unexpected end of file
If you are passing some shellcode as arguments through a program in a predefined , you might encounter a problem as above. No big deal. This problem can be simulated by opening a /bin/sh and then entering a ` or ' character, then sending an EOF character ( CTRL + D ).
Now :
sh-2.05b# \`
sh: `: command not found
sh-2.05b# \'
sh: ': command not found
sh-2.05b#
Just locate the hexadecimal code for such characters, and escape it ( adding a backslash ). The problem will be solved.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment