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

PlatformUbuntu

Gabriel Iovino edited this page May 26, 2015 · 73 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

Because @giovino is so awesome, the helper script will configure apache2, bind and install CIF to /opt/cif for you, as well as install any required dependencies too!

  1. Bash the EasyButton!(tm)
$ curl -Ls https://raw.githubusercontent.com/csirtgadgets/massive-octo-spice/master/hacking/platforms/easybutton_curl.sh | sudo bash -
$ 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