Metasploit mailing list archives

Re: Adding new gem to msf


From: Ty Miller <tyronmiller () gmail com>
Date: Wed, 19 Jan 2011 18:03:03 +1100

Hey guys,

FYI, i have migrated my dev environment to linux and installed the base32
gem ... so problem solved.

Thx for your help,
Ty


On Tue, Jan 18, 2011 at 6:14 PM, Ty Miller <tyronmiller () gmail com> wrote:

Hey Brian,

I originally started developing on Windows because I was writing payloads
for Windows, so it was handy to be able to write them and run them in the
one place, rather than having to fire up VMs and transfer files around.

I have multiple linux VMs on my laptop (including BT4), so thats not a
prob. It just means porting my custom dev environment and scripts across to
linux, which isn't a big deal but was trying to avoid it if I didn't have
to. Would prefer to be developing than doing administrative stuff.

Thx,
Ty



On Tue, Jan 18, 2011 at 11:17 AM, Brian <briaar () gmail com> wrote:

Ty, why use cygwin for devel?

I take it you're on Windows?  Grab a copy of Virtual Box (free) and
download the backtrack 4 r2 distro / use install.sh on the desktop /
msfupdate.

Everything will work out of the box and be nicely laid out for metasploit
devel.

-Brian


On Mon, Jan 17, 2011 at 4:47 PM, Ty Miller <tyronmiller () gmail com> wrote:

Hey guys,

Thanks for the help.

I have searched around for the ruby headers, but I can only find
references to installing ruby-dev or ruby-devel packages on Linux distros.

Any idea where I get the ruby headers that I can use with cygwin?

Thx,
Ty




On Tue, Jan 18, 2011 at 3:37 AM, <egypt () metasploit com> wrote:

The cygwin installer isn't supported anymore.  With the new installer,
all you need to do is open a "System Console" from the Metasploit
start menu and type "gem install ..." which will install native win32
libraries when necessary.  It looks like that particular gem doesn't
have pre-built libraries on the gem server, so it's sort of a pain and
probably requires a compiler.

That being said, cygwin should be able to do it if you download the
ruby headers and put them into the expected path,
/usr/lib/ruby/include

Hope this helped,
egypt

On Sun, Jan 16, 2011 at 11:57 PM, Ty Miller <tyronmiller () gmail com>
wrote:
Hey Jacob,

$ ruby extconf.rb
mkmf.rb can't find header files for ruby at
/usr/lib/ruby/include/ruby.h

Thx,
Ty


On Mon, Jan 17, 2011 at 11:09 AM, Jacob Hammack <
jacob.hammack () hammackj com>
wrote:

Goto /usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2/ext/
And type ruby extconf.rb
If that works type make. Send me the output from that

Sent from my Phone
On Jan 16, 2011, at 5:33 PM, Ty Miller <tyronmiller () gmail com>
wrote:

Hey Jacob,

Thanks for the response ... unfortunatley not much ...

$ cat /usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2/ext/gem_make.out
/usr/bin/ruby.exe extconf.rb install base32

Thx,
Ty


On Mon, Jan 17, 2011 at 9:39 AM, Jacob Hammack
<jacob.hammack () hammackj com> wrote:

What is the content of the gem_make.out file?

Sent from my Phone

On Jan 16, 2011, at 3:50 PM, Ty Miller <tyronmiller () gmail com>
wrote:

Hey guys,

How do I add a new ruby gem to msf? I'm running Win7 64-bit. I ran
a
msf cygwin shell as an administrator, and then ran the following:

$ gem install base32
Building native extensions.  This could take a while...
ERROR:  Error installing base32:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby.exe extconf.rb install base32


Gem files will remain installed in
/usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2 for inspection.
Results logged to
/usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2/ext/gem_make.out
Updating class cache with 0 classes...


Thanks,
Ty


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



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





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




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

Current thread: