]> git.parisson.com Git - deefuzzer.git/commitdiff
add a little converter from XML to YAML
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 26 May 2014 01:33:08 +0000 (03:33 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 26 May 2014 01:33:08 +0000 (03:33 +0200)
deefuzzer/tools/xml2yaml.py [new file with mode: 0644]

diff --git a/deefuzzer/tools/xml2yaml.py b/deefuzzer/tools/xml2yaml.py
new file mode 100644 (file)
index 0000000..ef78068
--- /dev/null
@@ -0,0 +1,10 @@
+
+import os, sys, yaml
+from deefuzzer.core import DeeFuzzer
+
+path = sys.argv[-1]
+d = DeeFuzzer(path)
+name, ext = os.path.splitext(path)
+y = open(name + '.yaml', 'w')
+yaml.dump(d.conf, y)
+y.close()