qingxp9 / Intranet-Search-Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Intranet Search Engine

Its goal is to help people to find all webservice in intranet.It likes Shodanhq or Zoomeye but aim at intranet. about_root

about_search


##Installation We make it based on Ruby On Rails.

1.Rails and Ruby

Using rvm to install them:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

curl -sSL https://get.rvm.io | bash -s stable --rails

###2.Mongodb sudo apt-get install mongodb

###3.ElasticSearch Download and install the Public Signing Key

wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Add the repository definition to your /etc/apt/sources.list file:

echo "deb http://packages.elastic.co/elasticsearch/1.5/debian stable main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update && sudo apt-get install elasticsearch

Start it

sudo service elasticsearch start

Configure Elasticsearch to automatically start during bootup:

sudo update-rc.d elasticsearch defaults 95 10

execute:

rake environment elasticsearch:import:all

bundle exec rake environment elasticsearch:import:model CLASS='Intranet' FORCE=y
bundle exec rake environment elasticsearch:import:model CLASS='Host' FORCE=y

###4.ZMap

sudo apt-get install zmap

If you don't want to run ZMap as root, you can give the binary permission to use the raw network with

setcap cap_net_raw=ep /usr/local/sbin/zmap

Run Server

at the root directory,run:

bundle install
rails server

if you don't see any errors,you can view the website at http://127.0.0.1:3000

###Scheduled scans at root directory

$ whenever -iscan
[write] crontab file updated

You can change scan time in config/schedule.rb ,and redo whenever.

About


Languages

Language:Ruby 56.9%Language:HTML 28.7%Language:CSS 10.6%Language:JavaScript 3.2%Language:CoffeeScript 0.7%