WhitewidowScanner / whitewidow

SQL Vulnerability Scanner
972 stars 235 forks source link

Cant install restclient #73

Closed Ekultek closed 7 years ago

Ekultek commented 7 years ago

Hi @Ekultek I have this error "opt/whitewidow/lib/imports/constants_and_requires.rb:6:in require': cannot load such file -- rest-client (LoadError) from /opt/whitewidow/lib/imports/constants_and_requires.rb:6:in<top (required)>' from whitewidow.rb:2:in require_relative' from whitewidow.rb:2:in

' " And I tried to install again rest-client

"gem install rest-client Successfully installed rest-client-2.0.2 Parsing documentation for rest-client-2.0.2 Done installing documentation for rest-client after 0 seconds 1 gem installed"

Additional ruby --version ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

Any comment?

Thanks

From #55

Ekultek commented 7 years ago

gem install restclient that should do that job

smt1821 commented 7 years ago

I did but

gem install restclient Fetching: paint-1.0.1.gem (100%) Successfully installed paint-1.0.1 Fetching: restclient-0.14.4.gem (100%) restclient's executable "restclient" conflicts with rest-client Overwrite the executable? [yN] y ! The 'restclient' gem has been deprecated and has been replaced by 'restup'. ! See: https://rubygems.org/gems/restup ! And: https://github.com/thoom/restup Successfully installed restclient-0.14.4 Parsing documentation for paint-1.0.1 Installing ri documentation for paint-1.0.1 Parsing documentation for restclient-0.14.4 Installing ri documentation for restclient-0.14.4 Done installing documentation for paint, restclient after 0 seconds 2 gems installed

Still same

ruby whitewidow.rb /opt/whitewidow/lib/imports/constants_and_requires.rb:6:in require': cannot load such file -- rest-client (LoadError) from /opt/whitewidow/lib/imports/constants_and_requires.rb:6:in<top (required)>' from whitewidow.rb:2:in require_relative' from whitewidow.rb:2:in

'

Ekultek commented 7 years ago

Wait a second, did you do bundle install?

smt1821 commented 7 years ago

Yeah,already did it before

bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running gem install bundler. Using addressable 2.4.0 Using safe_yaml 1.0.4 Using diff-lcs 1.2.5 Using unf_ext 0.0.7.2 Using hashdiff 0.3.0 Using mime-types-data 3.2016.0521 Using net-http-digest_auth 1.4 Using net-http-persistent 2.9.4 Using pkg-config 1.1.7 Using ntlm-http 0.1.1 Using webrobots 0.1.2 Using mini_portile2 2.1.0 Using rspec-support 3.5.0 Using vcr 3.0.0 Using bundler 1.12.5 Using crack 0.4.3 Using unf 0.1.4 Using mime-types 3.1 Using nokogiri 1.6.8 Using rspec-core 3.5.4 Using rspec-expectations 3.5.0 Using rspec-mocks 3.5.0 Using webmock 1.24.2 Using domain_name 0.5.20160615 Using rspec 3.5.0 Using http-cookie 1.0.2 Using mechanize 2.7.5 Bundle complete! 6 Gemfile dependencies, 27 gems now installed.

Ekultek commented 7 years ago

Something's wrong with your installation, uninstall rest-client and restclient, along with nokogiri after you've done all that run gem install rest-client -v 2.0 and then run bundle install

Ekultek commented 7 years ago

This seems to be OS specific, here's an example of running on Debian, and on Windows 7, it works on the MS platform but not on the Debian platform. What OS are you running?

whitewidow-issue

smt1821 commented 7 years ago

@Ekultek Kali 2016.1 version

Sent from my ZTE A2017G using FastHub

Ekultek commented 7 years ago

Kali is a Debian distro right?

Ekultek commented 7 years ago

Try one more thing for me, sudo apt-get install ruby-rest-client

Ekultek commented 7 years ago

@noptrix have you experienced this on blackarch?

smt1821 commented 7 years ago

Yes,I think so :)

By the way i also tried with another kali instance but no luck!

image image image

image

Ekultek commented 7 years ago

Alright one more ditch effort, delete the gem.lock file and run bundle install

smt1821 commented 7 years ago

I did this actions image

Result is same image

Anyway thank you for your patience.I will try qith different OS

Ekultek commented 7 years ago

Completely delete the lock file and try again, also try with a different OS like you said and I'll see what I can figure out

Ekultek commented 7 years ago

Also try upgrading bundler, that might be the issue as well

noptrix commented 7 years ago

@Ekultek sorry for the delayed response...too busy atm. no, i didn't have the error like above.

AintCoolSon commented 7 years ago

Duh, I'm having the same issue. Did everything required and still no luck. I'll be online all day. Lets solve this

Ekultek commented 7 years ago

Alright, what operating systems have you tried so far?

AintCoolSon commented 7 years ago

I'm using the latest and greatest version of Parrot OS.

Ekultek commented 7 years ago

Lol that's what's up, alright ima push a test branch to the repo and I want you to clone from that branch and try it, gimme a couple minutes

Ekultek commented 7 years ago

Clone from this branch https://github.com/WhitewidowScanner/whitewidow/tree/test-branch and try it

AintCoolSon commented 7 years ago

Done that. /whitewidow/lib/imports/constants_and_requires.rb:195:in <top (required)>': uninitialized constant RestClient::NotFound (NameError) from whitewidow.rb:2:inrequire_relative' from whitewidow.rb:2:in `

'

Ekultek commented 7 years ago

so you did git clone -b test-branch https://github.com/ekultek/whitewidow.git?

AintCoolSon commented 7 years ago

^Nvm. Works now. /thread

Ekultek commented 7 years ago

Works?

noptrix commented 7 years ago

@Ekultek jfyi, on blackarch no problem.

AintCoolSon commented 7 years ago

Yeah, it works. Running it rn.

Ekultek commented 7 years ago

@noptrix cool, thanks man @AintCoolSon awesome, closing the down with the next push

Ekultek commented 7 years ago

Fixed via f50bd02

@noptrix I'm closing yours down as well