Skip to content

Instantly share code, notes, and snippets.

@xaitax
Created July 17, 2013 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xaitax/6020896 to your computer and use it in GitHub Desktop.
Save xaitax/6020896 to your computer and use it in GitHub Desktop.
BackTrack 5 R3 Patch for Metasploit to work again
root@bt:/opt/metasploit/ruby/lib/ruby/1.9.1/i686-linux# diff -Nur rbconfig.rb_old rbconfig.rb
--- rbconfig.rb_old 2013-04-14 19:58:02.394668232 +0400
+++ rbconfig.rb 2013-04-14 19:52:59.742676593 +0400
@@ -53,7 +53,7 @@
CONFIG["DLDLIBS"] = " -lc"
CONFIG["SOLIBS"] = ""
CONFIG["LIBRUBYARG_SHARED"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) "
- CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static"
+ CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) "
CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_STATIC)"
CONFIG["LIBRUBY"] = "$(LIBRUBY_A)"
CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_SO_NAME).so"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment