Skip to content

Latest commit

 

History

History
 
 

dharma

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

dharma

https://hub.docker.com/r/zjuchenyuan/dharma

Source: https://github.com/MozillaSecurity/dharma

Current Version: 1.2.0
More Versions: Ubuntu 16.04, Python 3.5.2
Last Update: 2019/07
Language: Python
Type: Generator
File Formats: JS(canvas), JSON, SVG, URL, XSS

Guidance

Take a look at available grammars at https://github.com/MozillaSecurity/dharma/tree/master/dharma/grammars .

# generate three js files:
docker run -it -v `pwd`/output/dharma:/output zjuchenyuan/dharma \
    dharma -grammars dharma/grammars/canvas2d.dg -storage /output -count 3 -format js

# generate one 1000-line json file
docker run -it -v `pwd`/output/dharma:/output zjuchenyuan/dharma \
    sh -c "dharma -grammars dharma/grammars/json.dg -count 1000 > /output/output.json"

# generate a xss testing file
docker run -it -v `pwd`/output/dharma:/output zjuchenyuan/dharma \
    sh -c "dharma -grammars dharma/grammars/xss.dg -count 1000 > /output/xss.txt"

You can view output files here.

Official Documentation

https://mozillasecurity.github.io/dharma/