Arachni / arachni

Web Application Security Scanner Framework
http://www.arachni-scanner.com
Other
3.77k stars 761 forks source link

not working at all #728

Closed mosidze closed 8 years ago

mosidze commented 8 years ago

One week as I'm truing to run Arachni on my Ubuntu 16, however in both cases (CLI and WebUI) im getting such error messages Is this a bug?

2016-06-06 13:22:27 +0300 --------------------------------------------------------------------------------
ENV:

---
CPLUS_INCLUDE_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/include"
LC_PAPER: et_EE.UTF-8
XDG_VTNR: '7'
XDG_SESSION_ID: c1
LC_ADDRESS: et_EE.UTF-8
CLUTTER_IM_MODULE: xim
LC_MONETARY: et_EE.UTF-8
XDG_GREETER_DATA_DIR: "/var/lib/lightdm-data/vakhtang"
GEM_HOME: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems"
GPG_AGENT_INFO: "/home/vakhtang/.gnupg/S.gpg-agent:0:1"
SHELL: "/bin/bash"
VTE_VERSION: '4205'
TERM: xterm-256color
IRBRC: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib/ruby/.irbrc"
LIBRARY_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib:/usr/lib:/usr/local/lib"
QT_LINUX_ACCESSIBILITY_ALWAYS_ON: '1'
LC_NUMERIC: et_EE.UTF-8
WINDOWID: '79691786'
GNOME_KEYRING_CONTROL: ''
UPSTART_SESSION: unix:abstract=/com/ubuntu/upstart-session/1000/1064
MY_RUBY_HOME: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib/ruby"
GTK_MODULES: gail:atk-bridge:unity-gtk-module
USER: vakhtang
LD_LIBRARY_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib:/usr/lib:/usr/local/lib"
QT_ACCESSIBILITY: '1'
LC_TELEPHONE: et_EE.UTF-8
LS_COLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
XDG_SESSION_PATH: "/org/freedesktop/DisplayManager/Session0"
XDG_SEAT_PATH: "/org/freedesktop/DisplayManager/Seat0"
SSH_AUTH_SOCK: "/run/user/1000/keyring/ssh"
DEFAULTS_PATH: "/usr/share/gconf/ubuntu.default.path"
LIBVIRT_DEFAULT_URI: qemu:///system
XDG_CONFIG_DIRS: "/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg"
PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/bin:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/../bin:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/bin:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
DESKTOP_SESSION: ubuntu
QT_QPA_PLATFORMTHEME: appmenu-qt5
QT_IM_MODULE: ibus
C_INCLUDE_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/include"
LC_IDENTIFICATION: et_EE.UTF-8
JOB: gnome-session
PWD: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin"
XDG_SESSION_TYPE: x11
XMODIFIERS: "@im=ibus"
ARACHNI_WEBUI_LOGDIR: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/logs/webui"
LANG: en_US.UTF-8
GNOME_KEYRING_PID: ''
MANDATORY_PATH: "/usr/share/gconf/ubuntu.mandatory.path"
GDM_LANG: en_US
LC_MEASUREMENT: et_EE.UTF-8
ARACHNI_FRAMEWORK_LOGDIR: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/logs/framework"
IM_CONFIG_PHASE: '1'
COMPIZ_CONFIG_PROFILE: ubuntu
GDMSESSION: ubuntu
GTK2_MODULES: overlay-scrollbar
SESSIONTYPE: gnome-session
XDG_SEAT: seat0
HOME: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/home/arachni"
SHLVL: '1'
LANGUAGE: en_US
RAILS_ENV: production
GNOME_DESKTOP_SESSION_ID: this-is-deprecated
DYLD_LIBRARY_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib:/usr/lib:/usr/local/lib"
UPSTART_INSTANCE: ''
LOGNAME: vakhtang
XDG_SESSION_DESKTOP: ubuntu
UPSTART_EVENTS: started starting
GEM_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/gems"
QT4_IM_MODULE: xim
XDG_DATA_DIRS: "/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop"
DBUS_SESSION_BUS_ADDRESS: unix:abstract=/tmp/dbus-2Py0Q6frhz
LESSOPEN: "| /usr/bin/lesspipe %s"
UPSTART_JOB: unity-settings-daemon
INSTANCE: Unity
DISPLAY: ":0"
XDG_RUNTIME_DIR: "/run/user/1000"
GTK_IM_MODULE: ibus
XDG_CURRENT_DESKTOP: Unity
RUBYLIB: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/bundler-1.11.2/lib:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib/ruby:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib/ruby/site_ruby/2.2.0:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib/ruby/2.2.0:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib/ruby/2.2.0/x86_64-linux:/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/usr/lib/ruby/site_ruby/2.2.0/x86_64-linux"
RUBY_VERSION: ruby-2.2.3
LC_TIME: et_EE.UTF-8
LESSCLOSE: "/usr/bin/lesspipe %s %s"
XAUTHORITY: "/home/vakhtang/.Xauthority"
LC_NAME: et_EE.UTF-8
RACK_ENV: development
BUNDLE_GEMFILE: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/arachni-ui-web/Gemfile"
_ORIGINAL_GEM_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/bin/../system/gems"
BUNDLE_BIN_PATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/bundler-1.11.2/exe/bundle"
RUBYOPT: "-rbundler/setup"
MANPATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/kramdown-1.4.1/man"
BUNDLE_ORIG_MANPATH: "/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/kramdown-1.4.1/man"
--------------------------------------------------------------------------------
OPTIONS:

---
datastore:
  token: 0273455f37d285ffdb145ddbabc64612
session: {}
audit:
  parameter_values: true
  exclude_vector_patterns: []
  include_vector_patterns: []
  link_templates: []
  links: true
  forms: true
  cookies: true
  jsons: true
  xmls: true
  ui_forms: true
  ui_inputs: true
input:
  values:
    name: arachni_name
    user: arachni_user
    usr: arachni_user
    pass: 5543!%arachni_secret
    txt: arachni_text
    num: '132'
    amount: '100'
    mail: arachni@email.gr
    account: '12'
    id: '1'
  default_values:
    name: arachni_name
    user: arachni_user
    usr: arachni_user
    pass: 5543!%arachni_secret
    txt: arachni_text
    num: '132'
    amount: '100'
    mail: arachni@email.gr
    account: '12'
    id: '1'
  without_defaults: true
  force: false
scope:
  redundant_path_patterns: {}
  dom_depth_limit: 5
  exclude_file_extensions: []
  exclude_path_patterns: []
  exclude_content_patterns: []
  include_path_patterns: []
  restrict_paths: []
  extend_paths: []
  url_rewrites: {}
browser_cluster:
  local_storage: {}
  wait_for_elements: {}
  pool_size: 6
  job_timeout: 25
  worker_time_to_live: 100
  ignore_images: false
  screen_width: 1600
  screen_height: 1200
http:
  user_agent: Arachni/v1.4
  request_timeout: 10000
  request_redirect_limit: 5
  request_concurrency: 20
  request_queue_size: 100
  request_headers: {}
  response_max_size: 500000
  cookies: {}
checks:
- sql_injection
- sql_injection_differential
- sql_injection_timing
platforms: []
plugins:
  autothrottle: {}
  discovery: {}
  healthmap: {}
  timing_attacks: {}
  uniformity: {}
no_fingerprinting: false
authorized_by: 
url: http://iss.com.ge/
--------------------------------------------------------------------------------
[2016-06-06 13:22:27 +0300] Could not spawn browser process.
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/bin in PATH, mode 040777
1203: Started
PID: 1208
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working
1203: Working

[2016-06-06 13:22:27 +0300] [Arachni::Browser::Error::Spawn] Could not start the browser process.
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser.rb:1268:in `spawn_browser'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser.rb:1164:in `selenium'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser.rb:197:in `initialize'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster/worker.rb:52:in `initialize'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:477:in `new'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:477:in `block in initialize_workers'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:476:in `times'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:476:in `initialize_workers'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:119:in `initialize'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/browser.rb:33:in `new'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/browser.rb:33:in `block in browser_cluster'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/usr/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/browser.rb:28:in `browser_cluster'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/audit.rb:173:in `audit'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117:in `block in run'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/utilities.rb:425:in `call'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/utilities.rb:425:in `exception_jail'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117:in `run'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/rpc/server/framework.rb:156:in `block in run'
[2016-06-06 13:22:27 +0300] 
[2016-06-06 13:22:27 +0300] Parent:
[2016-06-06 13:22:27 +0300] Arachni::RPC::Server::Framework
[2016-06-06 13:22:27 +0300] 
[2016-06-06 13:22:27 +0300] Block:
[2016-06-06 13:22:27 +0300] #<Proc:0x00000005134bd8@/home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117>
[2016-06-06 13:22:27 +0300] 
[2016-06-06 13:22:27 +0300] Caller:
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/utilities.rb:425:in `exception_jail'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117:in `run'
[2016-06-06 13:22:27 +0300] /home/vakhtang/Desktop/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/rpc/server/framework.rb:156:in `block in run'
[2016-06-06 13:22:27 +0300] --------------------------------------------------------------------------------
Zapotek commented 8 years ago

Can you please try the nightlies and let me know if they fix the issue?

mosidze commented 8 years ago

sure.

mosidze commented 8 years ago

same

2016-06-06 14:02:27 +0300 --------------------------------------------------------------------------------

ENV:

CPLUS_INCLUDE_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/include" LC_PAPER: et_EE.UTF-8 XDG_VTNR: '7' XDG_SESSION_ID: c1 LC_ADDRESS: et_EE.UTF-8 CLUTTER_IM_MODULE: xim LC_MONETARY: et_EE.UTF-8 XDG_GREETER_DATA_DIR: "/var/lib/lightdm-data/vakhtang" GEM_HOME: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems" GPG_AGENT_INFO: "/home/vakhtang/.gnupg/S.gpg-agent:0:1" SHELL: "/bin/bash" VTE_VERSION: '4205' TERM: xterm-256color IRBRC: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib/ruby/.irbrc" LIBRARY_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib:/usr/lib:/usr/local/lib" QT_LINUX_ACCESSIBILITY_ALWAYS_ON: '1' LC_NUMERIC: et_EE.UTF-8 WINDOWID: '79691786' GNOME_KEYRING_CONTROL: '' UPSTART_SESSION: unix:abstract=/com/ubuntu/upstart-session/1000/1064 MY_RUBY_HOME: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib/ruby" GTK_MODULES: gail:atk-bridge:unity-gtk-module USER: vakhtang LD_LIBRARY_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib:/usr/lib:/usr/local/lib" QT_ACCESSIBILITY: '1' LC_TELEPHONE: et_EE.UTF-8 LSCOLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:_.xspf=00;36:' XDG_SESSION_PATH: "/org/freedesktop/DisplayManager/Session0" XDG_SEAT_PATH: "/org/freedesktop/DisplayManager/Seat0" SSH_AUTH_SOCK: "/run/user/1000/keyring/ssh" DEFAULTS_PATH: "/usr/share/gconf/ubuntu.default.path" LIBVIRT_DEFAULT_URI: qemu:///system XDG_CONFIG_DIRS: "/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg" PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bin:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/../bin:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/bin:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" DESKTOP_SESSION: ubuntu QT_QPA_PLATFORMTHEME: appmenu-qt5 QT_IM_MODULE: ibus C_INCLUDE_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/include" LC_IDENTIFICATION: et_EE.UTF-8 JOB: gnome-session PWD: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin" XDG_SESSION_TYPE: x11 XMODIFIERS: "@im=ibus" ARACHNI_WEBUI_LOGDIR: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/logs/webui" LANG: en_US.UTF-8 GNOME_KEYRING_PID: '' MANDATORY_PATH: "/usr/share/gconf/ubuntu.mandatory.path" GDM_LANG: en_US LC_MEASUREMENT: et_EE.UTF-8 ARACHNI_FRAMEWORK_LOGDIR: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/logs/framework" IM_CONFIG_PHASE: '1' COMPIZ_CONFIG_PROFILE: ubuntu GDMSESSION: ubuntu GTK2_MODULES: overlay-scrollbar SESSIONTYPE: gnome-session XDG_SEAT: seat0 HOME: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/home/arachni" SHLVL: '1' LANGUAGE: en_US RAILS_ENV: production GNOME_DESKTOP_SESSION_ID: this-is-deprecated DYLD_LIBRARY_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib:/usr/lib:/usr/local/lib" UPSTART_INSTANCE: '' LOGNAME: vakhtang XDG_SESSION_DESKTOP: ubuntu UPSTART_EVENTS: started starting GEM_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/gems" QT4_IM_MODULE: xim XDG_DATA_DIRS: "/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop" DBUS_SESSION_BUS_ADDRESS: unix:abstract=/tmp/dbus-2Py0Q6frhz LESSOPEN: "| /usr/bin/lesspipe %s" UPSTART_JOB: unity-settings-daemon INSTANCE: Unity DISPLAY: ":0" XDG_RUNTIME_DIR: "/run/user/1000" GTK_IM_MODULE: ibus XDG_CURRENT_DESKTOP: Unity RUBYLIB: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/gems/bundler-1.12.5/lib:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib/ruby:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib/ruby/site_ruby/2.2.0:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib/ruby/2.2.0:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib/ruby/2.2.0/x86_64-linux:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/lib/ruby/site_ruby/2.2.0/x86_64-linux" RUBY_VERSION: ruby-2.2.3 LC_TIME: et_EE.UTF-8 LESSCLOSE: "/usr/bin/lesspipe %s %s" XAUTHORITY: "/home/vakhtang/.Xauthority" LC_NAME: et_EE.UTF-8 RACK_ENV: development BUNDLE_GEMFILE: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/arachni-ui-web/Gemfile" BUNDLE_ORIG_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/../bin:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/usr/bin:/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" BUNDLE_ORIG_GEM_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/bin/../system/gems" BUNDLE_BIN_PATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/gems/bundler-1.12.5/exe/bundle" RUBYOPT: "-rbundler/setup" MANPATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/gems/kramdown-1.4.1/man"

BUNDLE_ORIG_MANPATH: "/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/gems/kramdown-1.4.1/man"

OPTIONS:

datastore: token: 239426d126a66baa1c4d1245e6fb018e session: {} audit: parameter_values: true exclude_vector_patterns: [] include_vector_patterns: [] link_templates: [] links: true forms: true cookies: true jsons: true xmls: true ui_forms: true ui_inputs: true input: values: name: arachni_name user: arachni_user usr: arachni_user pass: 5543!%arachni_secret txt: arachni_text num: '132' amount: '100' mail: arachni@email.gr account: '12' id: '1' default_values: name: arachni_name user: arachni_user usr: arachni_user pass: 5543!%arachni_secret txt: arachni_text num: '132' amount: '100' mail: arachni@email.gr account: '12' id: '1' without_defaults: true force: false scope: redundant_path_patterns: {} dom_depth_limit: 5 exclude_file_extensions:

  • "[]" exclude_path_patterns: [] exclude_content_patterns: [] include_path_patterns: [] restrict_paths: [] extend_paths: [] url_rewrites: {} browser_cluster: local_storage: {} wait_for_elements: {} pool_size: 6 job_timeout: 25 worker_time_to_live: 100 ignore_images: false screen_width: 1600 screen_height: 1200 http: user_agent: Arachni/v2.0dev request_timeout: 10000 request_redirect_limit: 5 request_concurrency: 20 request_queue_size: 100 request_headers: {} response_max_size: 500000 cookies: {} authentication_type: auto checks:
    • allowed_methods
    • backdoors
    • backup_directories
    • backup_files
    • captcha
    • code_injection
    • code_injection_php_input_wrapper
    • code_injection_timing
    • common_admin_interfaces
    • common_directories
    • common_files
    • cookie_set_for_parent_domain
    • credit_card
    • csrf
    • cvs_svn_users
    • directory_listing
    • emails
    • file_inclusion
    • form_upload
    • hsts
    • htaccess_limit
    • html_objects
    • http_only_cookies
    • http_put
    • insecure_client_access_policy
    • insecure_cookies
    • insecure_cors_policy
    • insecure_cross_domain_policy_access
    • insecure_cross_domain_policy_headers
    • interesting_responses
    • ldap_injection
    • localstart_asp
    • mixed_resource
    • no_sql_injection
    • no_sql_injection_differential
    • origin_spoof_access_restriction_bypass
    • os_cmd_injection
    • os_cmd_injection_timing
    • password_autocomplete
    • path_traversal
    • private_ip
    • response_splitting
    • rfi
    • session_fixation
    • source_code_disclosure
    • sql_injection
    • sql_injection_differential
    • sql_injection_timing
    • ssn
    • trainer
    • unencrypted_password_forms
    • unvalidated_redirect
    • unvalidated_redirect_dom
    • webdav
    • x_frame_options
    • xpath_injection
    • xss
    • xss_dom
    • xss_dom_script_context
    • xss_event
    • xss_path
    • xss_script_context
    • xss_tag
    • xst
    • xxe platforms: [] plugins: autothrottle: {} discovery: {} healthmap: {} timing_attacks: {} uniformity: {} no_fingerprinting: false authorized_by: url: http://iss.com.ge/

      [2016-06-06 14:02:27 +0300] Could not spawn browser process. [2016-06-06 14:02:27 +0300] 3554: Started PID: 3557

[2016-06-06 14:02:27 +0300] [Arachni::Browser::Error::Spawn] Could not start the browser process. [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser.rb:1209:in spawn_browser' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser.rb:1105:inselenium' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser.rb:196:in initialize' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser_cluster/worker.rb:52:ininitialize' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser_cluster.rb:503:in new' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser_cluster.rb:503:inblock in initialize_workers' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser_cluster.rb:502:in times' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser_cluster.rb:502:ininitialize_workers' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/browser_cluster.rb:120:in initialize' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework/parts/browser.rb:33:innew' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework/parts/browser.rb:33:in block in browser_cluster' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/usr/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework/parts/browser.rb:28:in browser_cluster' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework/parts/audit.rb:173:inaudit' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework.rb:117:in block in run' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/utilities.rb:425:incall' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/utilities.rb:425:in exception_jail' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework.rb:117:inrun' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/rpc/server/framework.rb:156:in block in run' [2016-06-06 14:02:27 +0300] [2016-06-06 14:02:27 +0300] Parent: [2016-06-06 14:02:27 +0300] Arachni::RPC::Server::Framework [2016-06-06 14:02:27 +0300] [2016-06-06 14:02:27 +0300] Block: [2016-06-06 14:02:27 +0300] #<Proc:0x00000003d420a8@/home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework.rb:117> [2016-06-06 14:02:27 +0300] [2016-06-06 14:02:27 +0300] Caller: [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/utilities.rb:425:inexception_jail' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/framework.rb:117:in run' [2016-06-06 14:02:27 +0300] /home/vakhtang/Desktop/arachni-2.0dev-1.0dev/system/gems/bundler/gems/arachni-bbf0715dd0a5/lib/arachni/rpc/server/framework.rb:156:inblock in run' [2016-06-06 14:02:27 +0300] --------------------------------------------------------------------------------

Zapotek commented 8 years ago

Can you run the following please?

./bin/arachni_shell -c 'phantomjs --webdriver=9999'

Also, please time how long it takes for the string running on port 9999 to appear.

mosidze commented 8 years ago

Fontconfig error: Cannot load default config file

Zapotek commented 8 years ago

Don't worry about that one, just look for the string I mentioned.

mosidze commented 8 years ago

about 31 sec

Zapotek commented 8 years ago

That's a lot, what resources does your machine have? CPU, RAM, etc.

mosidze commented 8 years ago

i5-5200U CPU @ 2.20GHz × 4 /8gb RAM...

Zapotek commented 8 years ago

That's plenty, the process should start immediately. Anyhow, I'll increase the time out and that should sort out the issue. I'll let you know once I've got some new nightlies for you to test.

Thanks for the feedback.

mosidze commented 8 years ago

ok. but what is the problem, can you give me some explanation? Im digging forum's....

Zapotek commented 8 years ago

I don't know, must be environmental, if you run the same command again does is go any faster?

mosidze commented 8 years ago

ha... new error

[ERROR - 2016-06-06T11:19:59.598Z] GhostDriver - Main - Could not start Ghost Driver => { "message": "Could not start Ghost Driver", "line": 82, "sourceId": 140707932433984, "sourceURL": ":/ghostdriver/main.js", "stack": "Error: Could not start Ghost Driver\n at :/ghostdriver/main.js:82", "stackArray": [ { "sourceURL": ":/ghostdriver/main.js", "line": 82 } ] }

Zapotek commented 8 years ago

The port you chose was in use or was missing privs. Was the previous process still running or chose a low port?

mosidze commented 8 years ago

aww, my fall, i just run command again without killing the process Should i try some other OS? what is you recommendation, except windows? 16.04 is raw for now, and has lot of problem with Ruby for now.

Zapotek commented 8 years ago

Arachni bundles everything (Ruby and all other dependencies) so the OS shouldn't be an issue unless something really radical is going on. 16.04 should be fine.

mosidze commented 8 years ago

ok. waiting for your new builds

jvoisin commented 8 years ago

I can reproduce the issue here.

Zapotek commented 8 years ago

@jvoisin How long does it take on your system and what are the spec?

Zapotek commented 8 years ago

Nightlies are up btw and the timeout has been increased to 60s.

jvoisin commented 8 years ago

8Gb of RAM, a super-recent core i7, and it takes a bit less than one minute I would say.

lxj616 commented 8 years ago

Hi , I've encountered same issue for days

Here's more details about my digging:

  1. On Ubuntu 16.04 Desktop, bug exists on fresh install
  2. On Ubuntu 16.04 server , no bug at all (Why?)
  3. Can not build dev env automatically using build.sh, some error about ncurses (gcc version related towards ncurses 6.0)
  4. I have i7 cpu and 8g ram, too
Zapotek commented 8 years ago

@lxj616 I'm on Kubuntu 16.04 and don't get that issue. Do the nightlies help? About the build scripts, I'm aware of the situation, there's a bug with building the dependencies with a recent GCC release although that's out of my control.

mosidze commented 8 years ago

it's works, but you need to create new scanning profile (even if you check all boxes). may something wrong in default profile?

lxj616 commented 8 years ago
time arachni_shell -c 'phantomjs --webdriver=9999'
Fontconfig error: Cannot load default config file
PhantomJS is launching GhostDriver...
[INFO  - 2016-06-07T07:27:45.291Z] GhostDriver - Main - running on port 9999
^C

real    1m5.304s
user    0m51.800s
sys 0m1.008s

It took almost 1 minute to boot up ...

On i7 cpu, 8g ram, desktop computer

lxj616 commented 8 years ago

Wow !!! after I tried bin/arachni_shell -c 'phantomjs --webdriver=9999' , It worked ever since !!!

IT SEEMS ARACHNI NEEDS TO WARM UP

but still find following strange issues:

  1. add arachni/bin to PATH, and warm up with arachni_shell -c 'phantomjs --webdriver=9999' does not help at all
  2. switch to arachni folder and run bin/arachni_shell -c 'phantomjs --webdriver=9999' once, then everything worked like a charm
  3. Only on my Xubuntu 16.04 desktop needs "WARM UP", not ubuntu server
Zapotek commented 8 years ago

It's an env issue, for some reason it takes a long time to get the browser into RAM the first time around, not sure what I can do about that.

When I was asking if the nightlies work I didn't mean if the browser starts up faster, I wanted to know if the scan works, the browser will still take the same amount of time to boot up.

lxj616 commented 8 years ago

Yes, it works, all scan runs perfect and the result is correct, thanks

Since I can warm up arachni during my installation myself, this issue does not affect me any more

cheers

Zapotek commented 8 years ago

OK, closing this for now then, let me know if you run into any more problems.

icedingo commented 8 years ago

I've seen a few reports of this issue, and while increasing the timeout would make it work, it's not actually fixing the issue. In my exploring it seems to be something to do with the environment loaded by arachni that prevents fontconfig from running correctly. It's not just phantomjs that is affected.

For example, I can run fc-match 'sans' inside the arachni shell and it takes a long time to run (about 50s in the test I just did, which is the same time for phantomjs --version). Using strace it looks like this is because fontconfig goes and tries to open every font on the system. Maybe it's unable to access the cache or something?? The strace I got is attached, with the relevant parts starting near line 203:

write(2, "Fontconfig error: ", 18Fontconfig error: )      = 18
write(2, "Cannot load default config file", 31Cannot load default config file) = 31
write(2, "\n", 1
)                       = 1

And looking like:

access("/home/zapotek/arachni-build-dir/arachni/system/usr/var/cache/fontconfig", W_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system/usr/var/cache/fontconfig", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system/usr/var/cache", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system/usr/var/cache", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system/usr/var", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system/usr/var", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system/usr", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system/usr", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni/system", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir/arachni", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek/arachni-build-dir", F_OK) = -1 ENOENT (No such file or directory)
access("/home/zapotek", F_OK)           = -1 ENOENT (No such file or directory)
access("/home/zapotek", F_OK)           = -1 ENOENT (No such file or directory)
access("/home", F_OK)                   = 0
mkdir("/home/zapotek", 0755)            = -1 EACCES (Permission denied)
stat("/usr/share/fonts/100dpi", {st_mode=S_IFDIR|0755, st_size=90112, ...}) = 0
open("/usr/share/fonts/100dpi", O_RDONLY|O_CLOEXEC) = 7

And I haven't looked at many other programs in this way, so I'm not sure if the constant references to /home/zapotek/arachni-build-dir/ should be there or not.

Outside the arachni shell, both fc-match and phantomjs (even the arachni bundled version) run straight away. I can get them to run properly if I use LD_PRELOAD like so:

$ LD_PRELOAD=/usr/lib/libfontconfig.so.1 bin/arachni_shell

And this works for running arachni_web as well.

I don't know how the arachni environment is set up, but hopefully this can point you in the right direction the next time you look at it.

phantomjs.strace.txt

Zapotek commented 8 years ago

@icedingo Thanks for looking into it. I haven't found the lack of fontconfig problematic in the past and it's not for a lot of people, but I can take another look.

Zapotek commented 8 years ago

Nightlies with an upgraded PhantomJS are up, please give them a try and let me know how they do.

icedingo commented 8 years ago

Sorry about the delay. I checked the nightlies from September 1 and it looks like this is fixed. It takes a while for fontconfig programs to build the cache the first time, but then they can access it properly after that since they're not looking in directories that don't exist.

Essentially the first scan will take a while to start (about a minute for me) while the cache is built but after that it works smoothly. I no longer get the Fontconfig error: Cannot load default config file message either.

All looks good to me, thanks!

Zapotek commented 8 years ago

Thanks for letting me know. I guess it depends on how many fonts you've got installed as well as drive speed.

Closing then.

icedingo commented 8 years ago

I don't think it's quite that simple.

I'd say it depends on fontconfig looking for the cache in the right directory (where arachni is located) instead of in the /home/zapotek directory it was looking for before. I don't know if that's something caused by the build environment or the environment set up inside arachni_shell etc. (you'd know much better than I) but only the first initial cache rebuild should cause any program to take anything longer than an instant to start. (And of course that rebuild depends on font count and drive speed.)

Thanks for looking into it.