GithubHelp home page GithubHelp logo

mulval-to-pddl's Introduction

MULVALTOPDDL

This is a small tool I develop to convert a logic attack graph to PDDL files describing the attacking procedure.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

MulVAL

Python 3.x

PDDL

Visit http://editor.planning.domains/ to solve the problem. Once you have domain.pddl and problem.pddl

Installing

The following Python packages are required:

  1. pandas

You can run the following command to install the package.

pip install pandas

You can download the tool using the following command.

git clone https://github.com/leelening/MulVALTOPDDL.git

Running the example

We provide a running example in the package. You can find AttackGraph.dot, ARCS.CSV, and VERTICES.CSV in the package. These files are generated by the MulVAL.

You can create a domain file domain.pddl by running the following command.

python create_domain.py ./example/VERTICES.CSV ./example/ARCS.CSV

Then you can create a problem file problem.pddl by running the following command.

python create_prob.py ./example/VERTICES.CSV

Once you get these two files: domain.pddl and problem.pddl. You can go to PDDL Editor to solve your planning problem. This online editor has many good features.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

mulval-to-pddl's People

Contributors

leelening avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.