wpscanteam / wpscan

WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites. Contact us via contact@wpscan.com
https://wpscan.com/wordpress-cli-scanner
Other
8.6k stars 1.27k forks source link

Seg fault struct_layout_builder.rb:207 (abort trap 6) #273

Closed vinnytroia closed 11 years ago

vinnytroia commented 11 years ago

I haven't used WPSCAN in a few months. Not sure which part of my config changed, but it no longer works for me. I am getting a seg fault when I try to run the app. Here is the full log:


.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct_layout_builder.rb:207: [BUG] Segmentation fault ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]

-- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports the more detail of.

-- Control frame information ----------------------------------------------- c:0030 p:---- s:0126 e:000125 CFUNC :initialize c:0029 p:---- s:0124 e:000123 CFUNC :new c:0028 p:0384 s:0118 e:000117 METHOD /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct_layout_builder.rb:207 c:0027 p:0098 s:0111 e:000110 METHOD /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct_layout_builder.rb:116 c:0026 p:0102 s:0104 e:000103 METHOD /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct.rb:351 c:0025 p:0130 s:0095 e:000094 METHOD /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct.rb:261 c:0024 p:0015 s:0089 e:000088 CLASS /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:5 c:0023 p:0022 s:0087 e:000086 CLASS /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:4 c:0022 p:0011 s:0085 e:000084 CLASS /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:2 c:0021 p:0009 s:0083 e:000082 TOP /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:1 [FINISH] c:0020 p:---- s:0081 e:000080 CFUNC :require c:0019 p:0140 s:0077 e:000076 CLASS /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curl.rb:28 c:0018 p:0011 s:0075 e:000074 CLASS /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curl.rb:13 c:0017 p:0057 s:0073 e:000072 TOP /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curl.rb:8 [FINISH] c:0016 p:---- s:0071 e:000070 CFUNC :require c:0015 p:0055 s:0067 e:000066 TOP /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon.rb:8 [FINISH] c:0014 p:---- s:0065 e:000064 CFUNC :require c:0013 p:0015 s:0061 e:000060 TOP /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/typhoeus-0.6.5/lib/typhoeus.rb:2 [FINISH] c:0012 p:---- s:0059 e:000058 CFUNC :require c:0011 p:0214 s:0055 e:000054 TOP /Users/vinny/pentest/web/wpscan/lib/environment.rb:30 [FINISH] c:0010 p:---- s:0050 e:000049 CFUNC :require c:0009 p:0073 s:0046 e:000045 METHOD /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45 c:0008 p:0551 s:0036 e:000035 TOP /Users/vinny/pentest/web/wpscan/lib/common/common_helper.rb:46 [FINISH] c:0007 p:---- s:0034 e:000033 CFUNC :require c:0006 p:0073 s:0030 e:000029 METHOD /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45 c:0005 p:0029 s:0020 e:000019 TOP /Users/vinny/pentest/web/wpscan/lib/wpscan/wpscan_helper.rb:3 [FINISH] c:0004 p:---- s:0018 e:000017 CFUNC :require c:0003 p:0073 s:0014 e:000013 METHOD /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45 c:0002 p:0029 s:0004 E:0002c8 EVAL wpscan.rb:5 [FINISH] c:0001 p:0000 s:0002 E:000b48 TOP [FINISH]

wpscan.rb:5:in <main>' /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' /Users/vinny/pentest/web/wpscan/lib/wpscan/wpscan_helper.rb:3:in<top (required)>' /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' /Users/vinny/pentest/web/wpscan/lib/common/common_helper.rb:46:in <top (required)>' /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' /Users/vinny/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' /Users/vinny/pentest/web/wpscan/lib/environment.rb:30:in<top (required)>' /Users/vinny/pentest/web/wpscan/lib/environment.rb:30:in require' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/typhoeus-0.6.5/lib/typhoeus.rb:2:in<top (required)>' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/typhoeus-0.6.5/lib/typhoeus.rb:2:in require' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon.rb:8:in<top (required)>' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon.rb:8:in require' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curl.rb:8:in<top (required)>' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curl.rb:13:in <module:Ethon>' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curl.rb:28:inmodule:Curl' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curl.rb:28:in require' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:1:in<top (required)>' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:2:in <module:Ethon>' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:4:inmodule:Curl' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ethon-0.6.1/lib/ethon/curls/classes.rb:5:in <class:MsgData>' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct.rb:261:inlayout' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct.rb:351:in array_layout' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct_layout_builder.rb:116:inadd' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct_layout_builder.rb:207:in field_for_type' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct_layout_builder.rb:207:innew' /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/ffi-1.9.0/lib/ffi/struct_layout_builder.rb:207:in `initialize'

-- C level backtrace information -------------------------------------------

-- Other runtime information -----------------------------------------------

[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html

firefart commented 11 years ago

hm seems your ffi gem is causing some errors. Can you please try a bundle update from within your wpscan folder?

vinnytroia commented 11 years ago

Good try, but no go. It looks like a number of things updated, but the error remains.

Regards,

Vinny Troia CURVVE MEDIA Web Development, E-Commerce, Secure PCI Compliant Web Hosting

M: 314.443.3968 | www.curvve.com

On Sep 2, 2013, at 3:00 AM, Christian Mehlmauer notifications@github.com wrote:

hm seems your ffi gem is causing some errors. Can you please try a bundle update from within your wpscan folder?

— Reply to this email directly or view it on GitHub.

ethicalhack3r commented 11 years ago

Could maybe try Ruby 1.9.3 instead of 2.0.0.

What OS are you running WPScan on?

erwanlr commented 11 years ago

Mac OSX :p (written in the first post)

What version of rubygems do you have ? (gem --version) if it's not the 2.0.7, try to update it ;)

And what command did you used ?

vinnytroia commented 11 years ago

I'm using MacPorts .. I also have RVM installed.

I'm running ruby gems v 2.03. That might be the issue. Upgrading it is turning into a hassle though. I can't just update ruby gems. go figure. I will let you know once i have it upgraded.

Regards,

Vinny Troia CURVVE MEDIA Web Development, E-Commerce, Secure PCI Compliant Web Hosting

M: 314.443.3968 | www.curvve.com

On Sep 3, 2013, at 2:44 AM, Ryan Dewhurst notifications@github.com wrote:

Could maybe try Ruby 1.9.3 instead of 2.0.0.

What OS are you running WPScan on?

— Reply to this email directly or view it on GitHub.

vinnytroia commented 11 years ago

I have gems updated (kind of). The update actually causes a segfault.

sudo gem update --system Updating rubygems-update Successfully installed rubygems-update-2.0.7 /Users/vinny/.rvm/gems/ruby-2.0.0-p0/gems/json-1.8.0/lib/json/common.rb:67: [BUG] Segmentation fault ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]

-- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports the more detail of.

Might be time to nuke the system..

Regards,

Vinny Troia CURVVE MEDIA Web Development, E-Commerce, Secure PCI Compliant Web Hosting

M: 314.443.3968 | www.curvve.com

On Sep 3, 2013, at 3:03 AM, erwanlr notifications@github.com wrote:

Mac OSX :p (written in the first post)

What version of rubygems do you have ? (gem --version) if it's not the 2.0.7, try to update it ;)

And what command did you used ?

— Reply to this email directly or view it on GitHub.

erwanlr commented 11 years ago

That's really strange because I have the same OSX version, ruby version, gems versions & etc and no problem :/

However, as you have a seg fault with the rubygems update, the whole ruby installation might be corrupted :/

I would recommend to uninstall & re-install ruby or install the 19.3 with rvm

vinnytroia commented 11 years ago

yeah. all good. thanks for your help. I'm just going to wait until i install mavericks soon and jus start over.

thanks again

Vinny Troia Night Lion Security T (314) 669-6569 F (314) 985-0609 www.nightlionsecurity.com

Certified Ethical Hacker (CEH) Computer Hacking Forensic Investigator (CHFI) ISO-27001 Certified Specialist (GIAC) Disaster Recovery Specialist (EDRP)

This electronic communication is intended only for the person or entity to which it is addressed and may contain confidential, proprietary or privileged material. Any review, re-transmission, dissemination or other use of this information by persons or entities other than the intended recipient is prohibited. No confidentiality or privilege is waived by any accidental or unintentional transmission. If you received this electronic communication in error, please contact the sender immediately and delete the material from your computer. M&O Systems, Inc. cannot guarantee the confidentiality of the material transmitted and reserves the right to monitor all e-mail communications through its networks.

On Sep 3, 2013, at 10:09 AM, erwanlr notifications@github.com wrote:

That's really strange because I have the same OSX version, ruby version, gems versions & etc and no problem :/

However, as you have a seg fault with the rubygems update, the whole ruby installation might be corrupted :/

I would recommend to uninstall & re-install ruby or install the 19.3 with rvm

— Reply to this email directly or view it on GitHub.