GithubHelp home page GithubHelp logo

Comments (7)

passbe avatar passbe commented on August 16, 2024

[email protected] on November 11, 2011 01:08:02:

I fixed it by downloading the rb file from:

http://dev.metasploit.com/redmine/projects/framework/repository/revisions/master/changes/lib/windows_console_color_support.rb

and placing it in the beef working dir. There's probably a better way to do it, but this was good enough to get it working.

Google Code Comment: http://code.google.com/p/beef/issues/detail?id=566#c2

from beef.

passbe avatar passbe commented on August 16, 2024

[email protected] on November 11, 2011 16:26:30:

This workaround doesn't work for me. This error comes up:

root@x:~/beef# ruby beef
/usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/netp/beef/windows_console_color_support.rb:1: syntax error, unexpected '<' (SyntaxError)

^
/home/netp/beef/windows_console_color_support.rb:2: syntax error, unexpected tIDENTIFIER, expecting $end

^ from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/text/output/stdio.rb:2:in `' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/text/output.rb:15:in`class:Output' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/text/output.rb:13:in `' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/text/output.rb:5:in`module:Ui' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/text/output.rb:4:in `' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/text/output.rb:3:in`' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/output.rb:18:in `' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/output.rb:12:in`module:Ui' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/output.rb:4:in `' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui/output.rb:3:in`' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require' from /usr/lib/ruby/gems/1.9.1/gems/librex-0.0.63/lib/rex/ui.rb:7:in `' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require' from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/netp/beef/core/loader.rb:35:in`' from internal:lib/rubygems/custom_require:29:in `require' from :29:in`require' from beef:37:in `'

If can help:
root@x:/beef# ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
root@x:
/beef# gem -v
1.8.11

Google Code Comment: http://code.google.com/p/beef/issues/detail?id=566#c3

from beef.

passbe avatar passbe commented on August 16, 2024

[email protected] on November 11, 2011 16:34:56:

Did you use wget? I did the same thing the first time and ended up with an html file instead of the .rb.

There's probably a better way, but I just downloaded with a browser and transferred to the dir.

Google Code Comment: http://code.google.com/p/beef/issues/detail?id=566#c4

from beef.

passbe avatar passbe commented on August 16, 2024

[email protected] on November 11, 2011 16:48:06:

This is actually a problem of librex-0.0.63.

Using librex-0.0.52 is fine, so the issue can be fixed in the following way:

  1. gem uninstall librex

Select gem to uninstall:

  1. librex-0.0.52
  2. librex-0.0.63
  3. All versions

    3
    Successfully uninstalled librex-0.0.52
    Successfully uninstalled librex-0.0.63

  4. gem install librex --version 0.0.52 --no-rdoc --no-ri
  5. gem list

*** LOCAL GEMS ***

addressable (2.2.6)
ansi (1.3.0)
data_objects (0.10.6)
dm-core (1.1.0)
dm-do-adapter (1.1.0)
dm-migrations (1.1.0)
dm-sqlite-adapter (1.1.0)
do_sqlite3 (0.10.6 x86-mingw32)
erubis (2.7.0)
json (1.6.1)
librex (0.0.52)
minitest (1.6.0)
parseconfig (0.5.2)
rake (0.8.7)
rdoc (2.5.8)
sqlite3 (1.3.4 x86-mingw32)
term-ansicolor (1.0.6)
win32console (1.3.0 x86-mingw32)

Please verify it and let me know in a way I can mark it as verified.



Google Code Comment: http://code.google.com/p/beef/issues/detail?id=566#c5

from beef.

passbe avatar passbe commented on August 16, 2024

[email protected] on November 11, 2011 17:08:32:

Everything is working now, the problem was librex. Thanks for the help. :)

Google Code Comment: http://code.google.com/p/beef/issues/detail?id=566#c7

from beef.

passbe avatar passbe commented on August 16, 2024

[email protected] on November 12, 2011 16:30:04:

You're welcome ;)
Got a positive confirmation also from another user (on Ubuntu, there was the same error), so I'm marking the issue as verified.


Google Code Comment: http://code.google.com/p/beef/issues/detail?id=566#c8

from beef.

passbe avatar passbe commented on August 16, 2024

[email protected] on December 02, 2011 08:37:42:

Issue 575 has been merged into this issue.

Google Code Comment: http://code.google.com/p/beef/issues/detail?id=566#c9

from beef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.