Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

PlatformUbuntuManual

Wes edited this page Oct 24, 2015 · 4 revisions

Overview

This installation generally takes 5-10min on hardware with more than 8 cores. Generally you'd want something with at-least 16GB ram and 8cores.

Setting up the Environment

  1. Setup the Dependencies
$ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y htop build-essential automake autoconf git
  1. Download the latest CIF release
  2. Un-tar the release and smash the EasyButton(tm)
$ wget https://github.com/csirtgadgets/massive-octo-spice/archive/2.00.00-rc.4.tar.gz -O massive-octo-spice-2.00.00-rc.4.tar.gz
$ tar -zxvf massive-octo-spice-2.00.00-rc.4.tar.gz
$ cd massive-octo-spice--2.00.00-rc.4
$ VERSION=2.00.00-rc.4 bash autogen.sh
$ sudo bash ./hacking/platforms/easybutton.sh
$ sudo chown `whoami`:`whoami` ~/.cif.yml

Testing

  1. test connectivity to the router
$ cif -p
roundtrip: 0.518286 ms
roundtrip: 0.487317 ms
roundtrip: 0.47499 ms
roundtrip: 0.518493 ms
  1. perform an initial cif-smrt test run
$ sudo service monit stop
$ sudo service cif-smrt stop
$ sudo -u cif /opt/cif/bin/cif-smrt --testmode
[2014-10-21T15:17:10,668Z][INFO][main:322]: cleaning up tmp: /var/smrt/cache
[2014-10-21T15:17:10,691Z][DEBUG][main:294]: id4.us - ssh
[2014-10-21T15:17:10,691Z][INFO][main:295]: processing: /opt/cif/bin/cif-smrt -d -r /etc/cif/rules/default/1d4_us.yml -f ssh
[2014-10-21T15:17:10,692Z][INFO][CIF::Smrt:92]: starting at: 2014-10-21T00:00:00Z
[2014-10-21T15:17:10,692Z][DEBUG][CIF::Smrt:97]: fetching...
...
  1. re-start cif-smrt

    $ sudo service cif-smrt start
    $ sudo service monit start
  2. test out a query:

$ cif --cc US
$ cif --cc CN
$ cif --tags scanner --cc us
$ cif --otype ipv4 --cc cn
  1. checkout the SDK Guides to setup a client locally.
Clone this wiki locally