Code Monkey home page Code Monkey logo

vtf's Introduction

VTF

Vulnerability Test Field web-software for my Bachelor's Thesis

Requirements

  • Ruby 1.9.3
  • Bundler
  • PostgreSql

Installation

Using VirtualBox and Vagrant

Just install VirtualBox and Vagrant and run:

vagrant up

Vagrant mounts current folder as a /vagrant folder in quest machine, so ssh to virtual machine with vagrant ssh and move to that directory: cd /vagrant

Manually

Here are instructions how to set up VTF manually:

Copy config/database.yml.config to ~/.vtf/database.yml and edit to have correct data

Add databases (for example setup):

createdb vtf
createdb vtf-test

Install all the dependencies:

bundle install

Initialize databases using rake:

bundle exec rake db:setup

Also let's initialize test environment database:

RAILS_ENV=test bundle exec db:setup

Adding exercises

First, create exercise locally using your favourite development tools.

When the exercise is ready to deployed, do the following:

  1. Create new folder to exercises: mkdir exercises/<my exercise>. Exercise name must match the username rules.
  2. Add folder structure public_html/app to the exercise folder: mkdir -p exercises/<my exercise>/public_html/app
  3. Move exercise files to the app folder.
  4. Convert your setup script to bash script by renaming it to .sh and adding correct shebang
  5. Copy .htaccess and dispatch.fcgi from sample exercise to the exercise and edit to suit the exercise.
  6. Modify your exercise to fit the "production" system: Move static files to static/ folder and serve them from there etc.
  7. Modify exercises:db_data task to contain the exercise

TODO: Explain all the different "magic files"

Running

bundle exec rails server

Testing

bundle exec rspec spec

Deployment

TODO: Figure out

vtf's People

Contributors

osqu avatar

Watchers

James Cloos avatar

Forkers

pombreda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.