Metasploit mailing list archives

Problems after svn update (rev 7109)


From: kvetch at gmail.com (Kvetch)
Date: Thu, 1 Oct 2009 19:40:26 -0400

Hello, am I running rev 7109 and it crashes when I hit the
PageUp/PageDown key.  I just updated to rev 7110 and the crash still
occurs and now I am also getting the following when starting the
console.
[-] RbReadline error parsing inputrc: (eval):1:in `rl_parse_and_bind':
compile error
(eval):1: syntax error, unexpected tIDENTIFIER, expecting $end
$if mode=emacs
        ^ '$if mode=emacs'
[-] RbReadline error parsing inputrc: (eval):1:in `rl_parse_and_bind':
compile error
(eval):1: syntax error, unexpected tIDENTIFIER, expecting $end
$if term=rxvt
        ^ '$if term=rxvt'

My /etc/inputrc is
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on
$if mode=emacs
# for linux console and RH/Debian xterm
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# mappings for "page up" and "page down" to step to the beginning/end
# of the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[5C": forward-word
"\e[5D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# gnome-terminal (escape + arrow key)
"\e[5C": forward-word
"\e[5D": backward-word
# gnome-terminal (control + arrow key)
"\e[1;5C": forward-word
"\e[1;5D": backward-word
# konsole / xterm / rxvt (escape + arrow key)
"\e\e[C": forward-word
"\e\e[D": backward-word
# konsole (alt + arrow key)
"\e[1;3C": forward-word
"\e[1;3D": backward-word
# konsole (control + arrow key)
"\e[1;3C": forward-word
"\e[1;3D": backward-word
# aterm / eterm (control + arrow key)
"\eOc": forward-word
"\eOd": backward-word
$if term=rxvt
"\e[8~": end-of-line
$endif
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif
# fix Home and End for German users
"\e[7~": beginning-of-line
"\e[8~": end-of-line

Thanks,
Nick

On Thu, Oct 1, 2009 at 5:07 PM, HD Moore <hdm at metasploit.com> wrote:
On Thu, 2009-10-01 at 19:31 +0000, la zariguella wrote:
Hi guys, after an svn update (revision 7109):

pentest/exploits/framework3-trunk/trunk/lib/rbreadline.rb:2432:in
`rl_parse_and_bind': (eval):1:in `rl_parse_and_bind': compile error
(SyntaxError)
(eval):1: syntax error, unexpected tIDENTIFIER, expecting $end
$if mode=emacs
? ? ? ? ^

I updated the code to wrap the error and stop crashing at least -- but
my guess is still need to disable .inputrc parsing to avoid annoying
errors. Besides, being able to put ruby code into a .inputrc and have it
executed by metasploit is probably bad behavior anyways :-)

-HD

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework



Current thread: