Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium-webdriver 3.8.0. Phantomjs folder is missing #81

Open
sampathmende opened this issue Feb 19, 2018 · 30 comments
Open

Selenium-webdriver 3.8.0. Phantomjs folder is missing #81

sampathmende opened this issue Feb 19, 2018 · 30 comments

Comments

@sampathmende
Copy link

I unzipped gem Selenium-webdriver 3.8.0 and checked for phantomjs folder but not found. Thats why its throwing error like can't load such file selenium/webdriver /phantomjs
Its not a path issue.

But i found the folder in github sourcecode of above gem but not in rubygems.org
But in 3.6.0 i found in rubygems. Org website and in github source code also.
I tried changing in Selenium-webdriver version to 3.6.0 Gemfile.lock file. But its not scanning and throwing sidekiq errors. But in scans folder it created 1.log file thats is empty
Pls resolve earliest

@kmadhusudhan
Copy link
Contributor

@sampathmende in previous post i explained you,This is a dependency issue, some how you need to fix it yourself . And we are not facing this issue in our systems

@sampathmende
Copy link
Author

sampathmende commented Feb 20, 2018

@kmadhusudhan Dear how can i fix the contents inside the gem . you got my question correct??
Gem file contents are missing It is not dependency issue any more
the same contents are there selenium-webdriver 3.6.0 but
the same contents are missing selenium-webdriver 3.8.0
that its happening from rubygems.org website.

whole phantomjs folder is missing in selenium-webdriver 3.8.0 gem downloaded from rubygems.org
I added phantomjs folder selenium-webdriver 3.8.0 gem by unzipping it. then archived it.
It is on my windows folder. So tell me how can install it on rails application installed docker vitraulbox

@kmadhusudhan
Copy link
Contributor

kmadhusudhan commented Feb 20, 2018

selenium-webdriver is a gem , any way selenium-webdriver is not included in our gemfile , you can verify from https://github.com/olacabs/jackhammer/blob/master/web/app/Gemfile. We are depending on arachni gem for running web-scans and Arachni depend on selenium-webdriver. Refer https://rubygems.org/gems/arachni/versions/1.4 for Arachni dependencies

@sampathmende
Copy link
Author

sampathmende commented Feb 20, 2018

you almost closed the doors ??
can you verify from your side in about selenium/webdriver/phantomjs folder in gem selenium-webdriver 3.8.0
if it exists why it is missing in my file system since i am using your bundle install only.
if not present how did you make it work??
just tell me alternate way of using it. pls dont tell somehow since i am not ruby developer.

@sampathmende
Copy link
Author

here i have raised issue in arachini forum on github.
Arachni/arachni#951 (comment)
i am copy pasting their response

arachni

@sampathmende
Copy link
Author

sampathmende commented Feb 20, 2018

@kmadhusudhan I am not a ruby developer. As a end user I put my best efforts to run jackhammer on my machine
but pulled into this issue. As a jackhammer owner suggest me alternate but dont say to me like fix it somehow. Jackhammer is production ready product. it should work as is
I tried running Selenium::WebDriver::PhantomJS.path on rails console getting same error.
the command i got it from arachni file only from the path :https://github.com/Arachni/arachni/blob/v1.4/lib/arachni/browser.rb
Line 145 because arachni is executing that line so its throwing error.
command :
[1] pry(main)> Selenium::WebDriver::PhantomJS.path
LoadError: cannot load such file -- selenium/webdriver/phantomjs
from /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activesupport-
webdriver-railsc
4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
attached image

@Zapotek
Copy link

Zapotek commented Feb 21, 2018

I have to side with @sampathmende on this.

Jackhammer has integrated with Arachni in a way that creates a complicated dependency situation, requiring users to have to setup all Arachni dependencies manually, which is very hard to get right and it's why I've provided official self-contained packages.

You should be asking your users for Arachni's REST server address and integrate via the REST API and not pull the gem, as this can also introduce licensing issues.

Users should download the proper Arachni package for their platform on their own to ensure compatibility and license compliance and all will be well.

@sampathmende
Copy link
Author

hey @kmadhusudhan ,
PhantomJS support is stopped in selenium-webdriver 3.8.0 version.But arachni is using that version only .Then how it is working you???? have you done any tweaks in code ?? if so pls tell me??
Since I tried creating shim links for phantomjs but not working.
see the reply in below link
https://github.com/SeleniumHQ/selenium/issues/5516#issuecomment-367333577

@kmadhusudhan
Copy link
Contributor

refer https://github.com/SeleniumHQ/selenium/blob/master/rb/lib/selenium/webdriver.rb , line no: 39 Phantomjs getting auto loaded .

when i do ls -lrt $GEM_HOME/selenium-webdriver-3.8.0/lib/selenium/webdriver , it listed below files
support.rb
safari.rb
remote.rb
ie
firefox
edge
common
chrome
atoms
support
safari
remote
ie.rb
firefox.rb
edge.rb
common.rb
chrome.rb
atoms.rb

i could see Selenium-webdriver 3.8.0 dose not have Phantomjs.

And when i do ln -s /usr/local/bin/phantomjs $GEM_HOME/selenium-webdriver-3.8.0/lib/selenium/webdriver/phantomjs

and do agin ls -lrt $GEM_HOME/selenium-webdriver-3.8.0/lib/selenium/webdriver after building soft link ,it listed below files
support.rb
safari.rb
remote.rb
ie
firefox
edge
common
chrome
atoms
support
safari
remote
ie.rb
firefox.rb
edge.rb
common.rb
chrome.rb
atoms.rb
phantomjs -> /usr/local/bin/phantomjs

please follow these steps to build soft link ,After building soft link you need to restart sidekiq from web docker

@sampathmende
Copy link
Author

sampathmende commented Feb 22, 2018

Thankyou @kmadhusudhan for your reply and solution i will try it out.
By the way sidekiq -C config/sidekiq.yml -d this command is enough to restart the sidekiq??
docker container also needs restart??
what is GEM_HOME path here??? which path should i take ??
when i typed gem enviroment it gives below deatils.

root@f43f32501a38:/home/app/log/scans# gem environment
RubyGems Environment:

  • RUBYGEMS VERSION: 2.5.1
  • RUBY VERSION: 2.3.0 (2015-12-25 patchlevel 0) [x86_64-linux]
  • INSTALLATION DIRECTORY: /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
  • USER INSTALLATION DIRECTORY: /root/.gem/ruby/2.3.0
  • RUBY EXECUTABLE: /root/.rbenv/versions/2.3.0/bin/ruby
  • EXECUTABLE DIRECTORY: /root/.rbenv/versions/2.3.0/bin
  • SPEC CACHE DIRECTORY: /root/.gem/specs
  • SYSTEM CONFIGURATION DIRECTORY: /root/.rbenv/versions/2.3.0/etc
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86_64-linux
  • GEM PATHS:
    • /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
    • /root/.gem/ruby/2.3.0
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:
  • SHELL PATH:
    • /root/.rbenv/versions/2.3.0/bin
    • /root/.rbenv/libexec
    • /root/.rbenv/plugins/ruby-build/bin
    • /root/.rbenv/shims
    • /root/.rbenv/bin
    • /root/.rbenv/shims
    • /usr/local/sbin
    • /usr/local/bin
    • /usr/sbin
    • /usr/bin
    • /sbin
    • /bin

@kmadhusudhan
Copy link
Contributor

kmadhusudhan commented Feb 22, 2018

  1. docker restart is not required and sidekiq restart is required .
  2. kill the sidekiq, run RAILS_ENV=production bundle exec sidekiq -C config/sidekiq.yml -d to start sidekiq .
  3. GEM_HOME = /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/ is the installation directory for all gems.

Some more observations by comparing your docker setup to our docker setup
selenium-webdriver 3.7.0 got installed in our docker .
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.7.0 this is our selenium-webdriver gem installation path

And list file of selenium web-driver contains as below
root@730c2d0057ab:~/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.7.0# ls -rlt lib/selenium/webdriver
total 48
-rw-r--r-- 1 root root 1096 Feb 13 11:52 support.rb
drwxr-xr-x 2 root root 146 Feb 13 11:52 support
-rw-r--r-- 1 root root 1848 Feb 13 11:52 safari.rb
drwxr-xr-x 2 root root 39 Feb 13 11:52 safari
-rw-r--r-- 1 root root 1376 Feb 13 11:52 remote.rb
drwxr-xr-x 5 root root 131 Feb 13 11:52 remote
-rw-r--r-- 1 root root 1280 Feb 13 11:52 phantomjs.rb
drwxr-xr-x 2 root root 39 Feb 13 11:52 phantomjs
-rw-r--r-- 1 root root 1182 Feb 13 11:52 ie.rb
drwxr-xr-x 2 root root 56 Feb 13 11:52 ie
-rw-r--r-- 1 root root 1976 Feb 13 11:52 firefox.rb
drwxr-xr-x 6 root root 4096 Feb 13 11:52 firefox
-rw-r--r-- 1 root root 1227 Feb 13 11:52 edge.rb
drwxr-xr-x 2 root root 55 Feb 13 11:52 edge
-rw-r--r-- 1 root root 3630 Feb 13 11:52 common.rb
drwxr-xr-x 5 root root 4096 Feb 13 11:52 common
-rw-r--r-- 1 root root 1418 Feb 13 11:52 chrome.rb
drwxr-xr-x 2 root root 73 Feb 13 11:52 chrome
-rw-r--r-- 1 root root 416 Feb 13 11:52 atoms.rb
drwxr-xr-x 2 root root 28 Feb 13 11:52 atoms

how Selenium-webdriver 3.8.0 got installed in your system ?

did you modify Gemfile or Gemfile.lock?
did you do gems upgradation?
if selenium-webdriver-3.7.0 will get installed in your system ,then right Phantomjs folder or executable file will be picked automatically .

@sampathmende
Copy link
Author

sampathmende commented Feb 22, 2018

selenium-webdriver-3.8.0 is mentioned Gemfile.lock at line at 485
https://github.com/olacabs/jackhammer/blob/master/web/app/Gemfile.lock
So its loading that version only for (selenium-webdriver-3.8.0 )
How it will load 3.7.0 in your system??? are you using any other gemfile???
or have you not updated correct gemfile and Gemfile.lock on Github?????????

@kmadhusudhan
Copy link
Contributor

As of now you modify version to 3.7.0 and lets verify in your system . we will figure out how the version got upgraded and why we modified .

@sampathmende
Copy link
Author

again sh ./docker-build.sh is required???
I mean do i need to build it again after changing gem version in Gemfile.lock????

@kmadhusudhan
Copy link
Contributor

kmadhusudhan commented Feb 22, 2018

yes running docker-build script is required after changing gem version

@sampathmende
Copy link
Author

I have build it again with selenium-webdriver 3.7.0 (updated in Gemfile.lock)
but it is not showing any log under log/scans/1.log file . file is empty.
in sidekiq.log also i dint observe any error

root@7bd2bcb5e215:/home/app/log# ls
production.log scans sidekiq.log
root@7bd2bcb5e215:/home/app/log# cat sidekiq.log

Logfile created on 2018-02-22 13:34:09 +0000 by logger.rb/53141

/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PROC
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PROC
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-22T13:34:40.106Z 40 TID-gqz3alhd4 INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-22T13:34:40.107Z 40 TID-gqz3alhd4 INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-22T13:34:40.107Z 40 TID-gqz3alhd4 INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-22T13:34:40.107Z 40 TID-gqz3alhd4 INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-22T13:34:40.138Z 40 TID-gqz3alhd4 INFO: Loading Schedule
2018-02-22T13:34:40.138Z 40 TID-gqz3alhd4 INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-22T13:34:40.150Z 40 TID-gqz3alhd4 INFO: Schedules Loaded
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PROC
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PROC
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-22T13:35:59.945Z 331 TID-gt7sx9quc INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-22T13:35:59.946Z 331 TID-gt7sx9quc INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-22T13:35:59.946Z 331 TID-gt7sx9quc INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-22T13:35:59.946Z 331 TID-gt7sx9quc INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-22T13:35:59.957Z 331 TID-gt7sx9quc INFO: Loading Schedule
2018-02-22T13:35:59.957Z 331 TID-gt7sx9quc INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-22T13:35:59.958Z 331 TID-gt7sx9quc INFO: Schedules Loaded
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PROC
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PROC
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-22T13:51:22.948Z 552 TID-gpnsl8kyk INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-22T13:51:23.041Z 552 TID-gpnsl8kyk INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-22T13:51:23.041Z 552 TID-gpnsl8kyk INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-22T13:51:23.041Z 552 TID-gpnsl8kyk INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-22T13:51:23.415Z 552 TID-gpnsl8kyk INFO: Loading Schedule
2018-02-22T13:51:23.415Z 552 TID-gpnsl8kyk INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-22T13:51:23.427Z 552 TID-gpnsl8kyk INFO: Schedules Loaded
2018-02-22T13:52:55.867Z 331 TID-gt7u6k3ig DynamicScanWorker JID-74fed4e68a4e48dc417632e8 INFO: start
Loading scanner...
Mounting https://epramaan.gov.in with #Pipeline::URLMounter:0x007eff78752410
Mounted https://epramaan.gov.in with #Pipeline::URLMounter:0x007eff78752410
Processing target...https://epramaan.gov.in
Running tasks in stage: wait
root@7bd2bcb5e215:/home/app/log# cd scans
root@7bd2bcb5e215:/home/app/log/scans# ls
1.log
root@7bd2bcb5e215:/home/app/log/scans# cat 1.log
root@7bd2bcb5e215:/home/app/log/scans#

@sampathmende
Copy link
Author

Any update

@kmadhusudhan
Copy link
Contributor

kmadhusudhan commented Feb 25, 2018

let me know scan status , if scan status is completed , then scan has finished with no errors. did you verify Arachni has run ? . if not run , check if arachni disabled from Admin settings. finally you need to make sure that arachni running for your scan

@sampathmende
Copy link
Author

sampathmende commented Feb 27, 2018

dear @kmadhusudhan ,
I have not disabled arachni webscanner and it is enabled and attached is image.
I have build it again with selenium-webdriver 3.7.0 (updated in Gemfile.lock) as you suggested
but it is not showing any log under log/scans/1.log file . file is empty.
in sidekiq.log also i dint observe any error

root@7bd2bcb5e215:/home/app/log# ls
production.log scans sidekiq.log
root@7bd2bcb5e215:/home/app/log# cat sidekiq.log

scanner is not started it seems. tell me i have already shared sidekiq.log and no scan logs i have

/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-22T13:34:40.106Z 40 TID-gqz3alhd4 INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-22T13:34:40.107Z 40 TID-gqz3alhd4 INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-22T13:34:40.107Z 40 TID-gqz3alhd4 INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-22T13:34:40.107Z 40 TID-gqz3alhd4 INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-22T13:34:40.138Z 40 TID-gqz3alhd4 INFO: Loading Schedule
2018-02-22T13:34:40.138Z 40 TID-gqz3alhd4 INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-22T13:34:40.150Z 40 TID-gqz3alhd4 INFO: Schedules Loaded
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-22T13:35:59.945Z 331 TID-gt7sx9quc INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-22T13:35:59.946Z 331 TID-gt7sx9quc INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-22T13:35:59.946Z 331 TID-gt7sx9quc INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-22T13:35:59.946Z 331 TID-gt7sx9quc INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-22T13:35:59.957Z 331 TID-gt7sx9quc INFO: Loading Schedule
2018-02-22T13:35:59.957Z 331 TID-gt7sx9quc INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-22T13:35:59.958Z 331 TID-gt7sx9quc INFO: Schedules Loaded
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-22T13:51:22.948Z 552 TID-gpnsl8kyk INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-22T13:51:23.041Z 552 TID-gpnsl8kyk INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-22T13:51:23.041Z 552 TID-gpnsl8kyk INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-22T13:51:23.041Z 552 TID-gpnsl8kyk INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-22T13:51:23.415Z 552 TID-gpnsl8kyk INFO: Loading Schedule
2018-02-22T13:51:23.415Z 552 TID-gpnsl8kyk INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-22T13:51:23.427Z 552 TID-gpnsl8kyk INFO: Schedules Loaded
2018-02-22T13:52:55.867Z 331 TID-gt7u6k3ig DynamicScanWorker JID-74fed4e68a4e48dc417632e8 INFO: start
Loading scanner...
Mounting https://epramaan.gov.in with #Pipeline::URLMounter:0x007eff78752410
Mounted https://epramaan.gov.in with #Pipeline::URLMounter:0x007eff78752410
Processing target...https://epramaan.gov.in
Running tasks in stage: wait
Running tasks in stage: mount
Running tasks in stage: file
Running tasks in stage: code
code - Arachni - #Set:0x007eff943997f8
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-27T04:06:31.840Z 40 TID-gsngvcnis INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-27T04:06:31.840Z 40 TID-gsngvcnis INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-27T04:06:31.840Z 40 TID-gsngvcnis INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-27T04:06:31.840Z 40 TID-gsngvcnis INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-27T04:06:31.940Z 40 TID-gsngvcnis INFO: Loading Schedule
2018-02-27T04:06:31.940Z 40 TID-gsngvcnis INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-27T04:06:31.960Z 40 TID-gsngvcnis INFO: Schedules Loaded
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PRO
/root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
2018-02-27T04:06:41.329Z 169 TID-gp5q2ko4s INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2018-02-27T04:06:41.374Z 169 TID-gp5q2ko4s INFO: See LICENSE and the LGPL-3.0 for licensing details.
2018-02-27T04:06:41.374Z 169 TID-gp5q2ko4s INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2018-02-27T04:06:41.374Z 169 TID-gp5q2ko4s INFO: Booting Sidekiq 4.2.10 with redis options {:url=>"redis://redis:6379"}
2018-02-27T04:06:41.403Z 169 TID-gp5q2ko4s INFO: Loading Schedule
2018-02-27T04:06:41.403Z 169 TID-gp5q2ko4s INFO: Scheduling scanner_scheduler {"every"=>"1d", "class"=>"SchedulerScanner", "queue"=>"default"}
2018-02-27T04:06:41.455Z 169 TID-gp5q2ko4s INFO: Schedules Loaded

arachni1

@kmadhusudhan
Copy link
Contributor

kmadhusudhan commented Feb 28, 2018

Following logs say Arachni has run for the added target. Either it found vulnerabilities or not, You can verify from UI, on the clicking view results link or can check vulnerabilities count on listing page of scans. if there are no results you can Re-verify the vulnerabilities by running Arachni scanner manually.

Mounting https://epramaan.gov.in with #Pipeline::URLMounter:0x007eff78752410 Mounted https://epramaan.gov.in with #Pipeline::URLMounter:0x007eff78752410 Processing target...https://epramaan.gov.in Running tasks in stage: wait Running tasks in stage: mount Running tasks in stage: file Running tasks in stage: code code - Arachni - #Set:0x007eff943997f8

@sampathmende
Copy link
Author

sampathmende commented Feb 28, 2018

1Q : i did not find any vulnerability/issue in the application and file in scans folder also showing empty. It has to show issues in app and log file should not be empty?? rt?? I waited for two days to complete

the scan.
i have clicked on view results and not showing any results and showing empty for scan end time.
2Q : meanwhile did you figure it out why selenium-webdriver 8.0 is there in Gemfile.lock???
pls reply for both quesitons

arachinscan

@sampathmende
Copy link
Author

sampathmende commented Mar 5, 2018

@kmadhusudhan is there any update ????

1Q : i did not find any vulnerability/issue in the application and file in scans folder also showing empty. It has to show issues in app and log file should not be empty?? rt?? I waited for two days to complete the scan.
i have clicked on view results and not showing any results and showing empty for scan end time.
2Q : meanwhile did you figure it out why selenium-webdriver 8.0 is there in Gemfile.lock???
pls reply for both quesitons

Thanks in advance

@kmadhusudhan
Copy link
Contributor

kmadhusudhan commented Mar 5, 2018

we are writing logs only when an application throws error. did you check sidekiq process status while scan running ?

@sampathmende
Copy link
Author

sampathmende commented Mar 5, 2018

sidekiq running without any issues. i have sent entire sidekiq logs in the post above. but scan logs are empty. It means its not scanning. But if i dont change the selenium-webdriver version to 8.0 means if i run with 7.0(default in gemfile.lock) in Gemfile.lock its throwing driver error that you know.
It means if i change only webdriver version to 3.7.0 its not working i suspect other dependency issues there. So pls modify Gemfile.lock from your end and upload to Github.

@sampathmende
Copy link
Author

@kmadhusudhan any update ??

@sampathmende
Copy link
Author

@kmadhusudhan any update ????

@dkogue
Copy link

dkogue commented May 31, 2018

@kmadhusudhan Please helps us solve this issue. It is already a headache to make Jackhammer run. We will appreciate you feedback on no vulnerability after scanning a vulnerable web page.
thanks in advance.

@kmadhusudhan
Copy link
Contributor

@dkogue @sampathmende
please refer the last comment from #77, All steps given if no scan results

@dkogue
Copy link

dkogue commented Jun 1, 2018

@kmadhusudhan
Thanks, I managed to make it work :) . I have some questions:
1: Is the Jira feature working? Tried but not working. what does it expect in the Host?
2: Regarding the scheduling is it possible to give a particular date and time through command line for example.

Thanks in advance for your support.

@kmadhusudhan
Copy link
Contributor

@dkogue

  1. you can go through documentation for jira configurations . it excepts host, username and password . host url ex : https://jira.abc.com/
    2)Scheduling tasks from command line => As of now there is no such feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants