Cherry-tree is a wonderful tool used to take notes. Is is commonly used during Penetration Testing activities. This project is a simple Python API that creates dtd cherry tree files (basically, xml files). It can be useful to use cherrytree in automation steps.
See test
and example
to see how it works:
git clone https://github.com/giper45/python-cherrytree-generator
from cherry import *
from os import path
DIR_EXAMPLE = "examples"
FIRST_EXAMPLE = path.join(DIR_EXAMPLE, "first.ctd")
ct = newdoc("root")
ct = addnode(ct, "root", "192.168.1.1")
ct = addnode(ct, "root", "192.168.1.2")
ct = addnode(ct, "192.168.1.1", "22 dropbear ssh")
ct = addnode(ct, "192.168.1.1", "21 pureFTPd")
link = new_link("https://google.com")
text = newtext("Hello world")
ct = add_ele(ct, "192.168.1.1", text)
ct = add_ele(ct, "192.168.1.2", link)
create(ct, FIRST_EXAMPLE)
Open a ctd element
Create a new cherrytree
Generate a new link node
Generate a new text node
Generate a new image
Create a new node with name
Create a new ctd data document
Add a new element to cherry tree document
Add a new node to parent
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D