Skip to content

Instantly share code, notes, and snippets.

@2xyo
Last active December 17, 2015 00:49
Show Gist options
  • Select an option

  • Save 2xyo/5524300 to your computer and use it in GitHub Desktop.

Select an option

Save 2xyo/5524300 to your computer and use it in GitHub Desktop.
Play with cybox, maex and stix
# create a virtualenv
# http://virtualenvwrapper.readthedocs.org/en/latest/
sudo pip -v install --upgrade https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz#md5=07e09df0adfca0b2d487e39a4bf2270a
sudo pip -v install --upgrade https://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-4.0.tar.gz#md5=78df3b40735e959479d9de34e4b8ba15
###############################################
# STABLE
mkvirtualenv --no-site-packages --use-distribute playground
workon playground
# lxml 3.2
pip -v install https://pypi.python.org/packages/source/l/lxml/lxml-3.2.0.tar.gz#md5=0faadce886cf868975358de53aff2bbb
# cybox 1.0
pip -v install -e git+https://github.com/CybOXProject/python-cybox.git@cybox1.0#egg=python-cybox
# maec 4.0
pip -v install -e git+https://github.com/MAECProject/python-maec.git@maec4.0#egg=python-maec
#stix 1.0.0a2
pip -v install -e git+https://github.com/STIXProject/python-stix.git@v1.0.0a2#egg=python-stix
###############################################
# DEV with Cybox 1.0 (for Stix..)
deactivate
mkvirtualenv --no-site-packages --use-distribute playground-dev-cybox1
workon playground-dev
# lxml 3.2
pip -v install https://pypi.python.org/packages/source/l/lxml/lxml-3.2.0.tar.gz#md5=0faadce886cf868975358de53aff2bbb
# cybox 1.0
pip -v install -e git+https://github.com/CybOXProject/python-cybox.git@cybox1.0#egg=python-cybox
# maec
pip -v install -e git+https://github.com/MAECProject/python-maec.git#egg=python-maec
#stix devdev
pip -v install -e git+https://github.com/STIXProject/python-stix.git#egg=python-stix
###############################################
# DEV
deactivate
mkvirtualenv --no-site-packages --use-distribute playground-dev
workon playground-dev
# lxml 3.2
pip -v install https://pypi.python.org/packages/source/l/lxml/lxml-3.2.0.tar.gz#md5=0faadce886cf868975358de53aff2bbb
# cybox dev
pip -v install --upgrade -e git+https://github.com/CybOXProject/python-cybox.git@#egg=python-cybox
# maec dev
pip -v install --upgrade -e git+https://github.com/MAECProject/python-maec.git#egg=python-maec
#stix dev
pip -v install --upgrade -e git+https://github.com/STIXProject/python-stix.git#egg=python-stix
#taxii dev
pip -v install --upgrade -e git+https://github.com/TAXIIProject/libtaxii.git#egg=libtaxii
# Optionnal
# ipython
pip -v install --upgrade scapy-real
pip -v install --upgrade ipython
pip -v install --upgrade tornado
sudo aptitude install libzmq-dev
pip -v install --upgrade pyzmq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment