Project

General

Profile

RuntimeError: Illegal character '&' in raw string "

Added by Christopher Lewis over 14 years ago

I got the following error after initial installation.

msf > nexpose_connect rhinokid:
[*] Connecting to NeXpose instance at 127.0.0.1:3780 with username rhinokid...
[-] Error while running command nexpose_connect: #<RuntimeError: Illegal character '&' in raw string "
document.write('\u003ca href="');
document.write(document.nxp.skin.getVendorSite());
document.write('"\u003e');
document.write(document.nxp.skin.getVendorName());
document.write('\u003c/a\u003e, ');
document.write(document.nxp.skin.getVendorAddress());
var supportHelpURL = document.nxp.skin.getSupportHelpURL();
if (supportHelpURL null || supportHelpURL '') {
document.write(' | ');
var sw = document.nxp.skin.getSupportWebsite();
if ((sw != null) && (sw != "")) {
document.write('\u003ca href="');
document.write(htmlEscape(sw));
document.write('" target="_blank"\u003eSupport\u003c/a\u003e');
}
else {
document.write('\u003ca href="mailto:');
document.write(document.nxp.skin.getSupportEmail());
document.write('"\u003eSupport\u003c/a\u003e');
}
}
document.write(' | ');
document.write(document.nxp.skin.getVendorName());
document.write(' ');
document.write(document.nxp.skin.getVendorPhoneNum());
">
/usr/lib/ruby/1.8/rexml/text.rb:91:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:43:in `new'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:43:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:228:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:47:in `new'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:47:in `parse_xml'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:100:in `execute'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:154:in `execute'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:378:in `execute'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:357:in `login'
/opt/metasploit3/msf3/plugins/nexpose.rb:106:in `cmd_nexpose_connect'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `send'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:145:in `run'
./msfconsole:93
...
Illegal character '&' in raw string "
document.write('\u003ca href="');
document.write(document.nxp.skin.getVendorSite());
document.write('"\u003e');
document.write(document.nxp.skin.getVendorName());
document.write('\u003c/a\u003e, ');
document.write(document.nxp.skin.getVendorAddress());
var supportHelpURL = document.nxp.skin.getSupportHelpURL();
if (supportHelpURL null || supportHelpURL '') {
document.write(' | ');
var sw = document.nxp.skin.getSupportWebsite();
if ((sw != null) && (sw != "")) {
document.write('\u003ca href="');
document.write(htmlEscape(sw));
document.write('" target="_blank"\u003eSupport\u003c/a\u003e');
}
else {
document.write('\u003ca href="mailto:');
document.write(document.nxp.skin.getSupportEmail());
document.write('"\u003eSupport\u003c/a\u003e');
}
}
document.write(' | ');
document.write(document.nxp.skin.getVendorName());
document.write(' ');
document.write(document.nxp.skin.getVendorPhoneNum());
"
Line:
Position:
Last 80 unconsumed characters:
</script> </div> </div> <div id="JSLogger" class="logPane" style="di

Call stack:
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:92:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:228:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:47:in `new'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:47:in `parse_xml'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:100:in `execute'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:154:in `execute'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:378:in `execute'
/opt/metasploit3/msf3/lib/rapid7/nexpose.rb:357:in `login'
/opt/metasploit3/msf3/plugins/nexpose.rb:106:in `cmd_nexpose_connect'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `send'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:145:in `run'
./msfconsole:93