Skip to content
Permalink
Browse files

Add xortool

  • Loading branch information...
rastating committed May 19, 2019
1 parent 6bc659c commit 59d22ca8880b02bde966cd2d9e3891a05357d7b6
Showing with 52 additions and 0 deletions.
  1. +1 −0 playbook.yml
  2. +4 −0 roles/crypto/files/xortool.sh
  3. +2 −0 roles/crypto/tasks/main.yml
  4. +45 −0 roles/crypto/tasks/xortool.yml
@@ -5,6 +5,7 @@
roles:
- common
- cracking
- crypto
- services
- exploitation
- password-attacks
@@ -0,0 +1,4 @@
#!/usr/bin/zsh
source /opt/xortool/.venv/bin/activate
/opt/xortool/.venv/bin/xortool "$@"
deactivate
@@ -0,0 +1,2 @@
---
- include: xortool.yml tags=crypto,xortool
@@ -0,0 +1,45 @@
---
- block:

- name: 'xortool : clone repository'
git:
accept_hostkey: yes
clone: yes
depth: 1
dest: /opt/xortool
force: yes
repo: https://github.com/hellman/xortool.git

- name: 'xortool : remove existing venv'
file:
path: /opt/xortool/.venv
state: absent

- name: 'xortool : create venv directory'
file:
path: /opt/xortool.venv
state: directory

- name: 'xortool : initialise venv'
shell: 'bash -lc "virtualenv -p python2 /opt/xortool/.venv"'

- name: 'xortool : install docopt'
pip:
name: docopt
state: present
virtualenv: /opt/xortool/.venv

- name: 'xortool : run setup'
shell: 'bash -lc "source .venv/bin/activate && python setup.py install"'
args:
chdir: /opt/xortool

- name: 'xortool : install launcher'
copy:
dest: /usr/local/bin/xortool
mode: 0755
src: ../files/xortool.sh

tags:
- crypto
- xortool

0 comments on commit 59d22ca

Please sign in to comment.
You can’t perform that action at this time.