mirror of
https://github.com/gchq/CyberChef.git
synced 2024-09-08 20:51:33 +02:00
21 lines
20 KiB
HTML
Executable File
21 lines
20 KiB
HTML
Executable File
<!--
|
||
CyberChef - The Cyber Swiss Army Knife
|
||
|
||
@copyright Crown Copyright 2016
|
||
@license Apache-2.0
|
||
|
||
Copyright 2016 Crown Copyright
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>CyberChef</title><meta name="copyright" content="Crown Copyright 2016"><meta name="description" content="The Cyber Swiss Army Knife"><meta name="keywords" content="base64, hex, decode, encode, encrypt, decrypt, compress, decompress, regex, regular expressions, hash, crypt, hexadecimal, user agent, url, certificate, x.509, parser, JSON, gzip, md5, sha1, aes, des, blowfish, xor"><link rel="icon" type="image/png" href="data:image/x-icon;base64,AAABAAEAEA8AAAEAIAAkBAAAFgAAACgAAAAQAAAAHgAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATExMAAAAAAAAAAAAAAAAAAAAAAAAAAAAcHBwP5CQkE+Ojo5OiIiIS4aGhkt8fHxLe3t7S4GBgU6Hh4dWZWVlMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJaWlrvS0tL/0dHR/9HR0f/Pz8/+qamp/6ysrP+srKz/rKys/3h4eJIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACKioqix8fH/8bGxv/Gxsb/xcXF/pq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cAAP9/AAA="><link href="styles.css" rel="stylesheet"></head><body><span id="edit-favourites" class="btn btn-default btn-sm"><img src="images/favourite-16x16.png"> Edit</span><div id="alert" class="alert alert-danger"><button type="button" class="close" id="alert-close">×</button> <span id="alert-content"></span></div><div id="content-wrapper"><div id="banner" class="green"><a href="cyberchef.htm" style="float:left;margin-left:10px;margin-right:80px" download>Download CyberChef<img src="images/download-24x24.png"></a><span id="notice"><script type="text/javascript">navigator.userAgent&&navigator.userAgent.match(/MSIE \d\d?\./)&&(document.write("Internet Explorer is not supported, please use Firefox or Chrome instead"),alert("Internet Explorer is not supported, please use Firefox or Chrome instead"))</script><noscript>JavaScript is not enabled. Good luck.</noscript></span><a href="#" id="support" class="banner-right" data-toggle="modal" data-target="#support-modal">About / Support<img src="images/help-22x22.png"></a><a href="#" id="options" class="banner-right">Options<img src="images/settings-22x22.png"></a></div><div id="wrapper"><div id="operations" class="split split-horizontal no-select"><div class="title no-select">Operations</div><input type="search" class="form-control" id="search" placeholder="Search..." autocomplete="off"><ul class="op_list" id="search-results"></ul><div class="panel-group no-select" id="categories"></div></div><div id="recipe" class="split split-horizontal no-select"><div class="title no-select">Recipe</div><ul id="rec_list" class="no-select"></ul><div id="controls" class="no-select"><div id="operational-controls"><div id="bake-group"><button type="button" class="btn btn-success btn-lg" id="bake"><img src="images/cook_male-32x32.png"> Bake!</button><label class="btn btn-success btn-lg" id="auto-bake-label"><input type="checkbox" checked="checked" id="auto-bake"><div>Auto Bake</div></label></div><div class="btn-group" style="padding-top:10px"><button type="button" class="btn btn-default" id="step"><img src="images/step-16x16.png"> Step through</button> <button type="button" class="btn btn-default" id="clr-breaks"><img src="images/erase-16x16.png"> Clear breakpoints</button></div></div><div class="btn-group-vertical" id="extra-controls"><button type="button" class="btn btn-default" id="save"><img src="images/save-16x16.png"> Save recipe</button> <button type="button" class="btn btn-default" id="load"><img src="images/open_yellow-16x16.png"> Load recipe</button> <button type="button" class="btn btn-default" id="clr-recipe"><img src="images/clean-16x16.png"> Clear recipe</button></div></div></div><div class="split split-horizontal" id="IO"><div id="input" class="split no-select"><div class="title no-select">Input<div class="btn-group io-btn-group"><button type="button" class="btn btn-default btn-sm" id="clr-io"><img src="images/recycle-16x16.png"> Clear I/O</button> <button type="button" class="btn btn-default btn-sm" id="reset-layout"><img src="images/layout-16x16.png"> Reset layout</button></div><div class="io-info" id="input-info"></div><div class="io-info" id="input-selection-info"></div></div><div class="textarea-wrapper no-select"><div id="input-highlighter" class="no-select"></div><textarea id="input-text"></textarea></div></div><div id="output" class="split"><div class="title no-select">Output<div class="btn-group io-btn-group"><button type="button" class="btn btn-default btn-sm" id="save-to-file"><img src="images/save_as-16x16.png"> Save to file</button> <button type="button" class="btn btn-default btn-sm" id="switch"><img src="images/switch-16x16.png"> Move output to input</button> <button type="button" class="btn btn-default btn-sm" id="undo-switch" disabled="disabled"><img src="images/undo-16x16.png"> Undo</button></div><div class="io-info" id="output-info"></div><div class="io-info" id="output-selection-info"></div></div><div class="textarea-wrapper"><div id="output-highlighter" class="no-select"></div><div id="output-html"></div><textarea id="output-text" readonly="readonly"></textarea></div></div></div></div></div><div class="modal" id="save-modal" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><img class="pull-right" src="images/save-22x22.png"><h4 class="modal-title">Save recipe</h4></div><div class="modal-body"><div class="form-group"><label for="save-text">Save your recipe to local storage or copy the following string to load later</label><textarea class="form-control" id="save-text" rows="5"></textarea></div><div class="form-group"><label for="save-name">Recipe name</label><input type="text" class="form-control" id="save-name" placeholder="Recipe name"></div></div><div class="modal-footer" id="save-footer"><button type="button" class="btn btn-primary" id="save-button" data-dismiss="modal">Save</button> <button type="button" class="btn btn-default" data-dismiss="modal">Done</button></div><div class="modal-body"><div class="form-group" id="save-link-group"><label>Data link</label><div class="save-link-options"><input type="checkbox" id="save-link-recipe-checkbox" checked="checked"> Include recipe <input type="checkbox" id="save-link-input-checkbox" checked="checked"> Include input</div><a id="save-link" style="word-wrap:break-word"></a></div></div></div></div></div><div class="modal" id="load-modal" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><img class="pull-right" src="images/open_yellow-24x24.png"><h4 class="modal-title">Load recipe</h4></div><div class="modal-body"><div class="form-group"><label for="load-name">Load your recipe from local storage or paste it into the box below</label><select class="form-control" id="load-name"></select></div><div class="form-group"><textarea class="form-control" id="load-text" rows="5"></textarea></div></div><div class="modal-footer"><button type="button" class="btn btn-primary" id="load-button" data-dismiss="modal">Load</button> <button type="button" class="btn btn-danger" id="load-delete-button">Delete</button> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button></div></div></div></div><div class="modal" id="options-modal" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><img class="pull-right" src="images/settings-22x22.png"><h4 class="modal-title">Options</h4></div><div class="modal-body" id="options-body"><p style="font-weight:700">Please note that these options will persist between sessions.</p><div class="option-item"><input type="checkbox" option="update_url" checked="checked"> Update the URL when the input or recipe changes</div><div class="option-item"><input type="checkbox" option="show_highlighter" checked="checked"> Highlight selected bytes in output and input (when possible)</div><div class="option-item"><input type="checkbox" option="treat_as_utf8" checked="checked"> Treat output as UTF-8 if possible</div><div class="option-item"><input type="checkbox" option="word_wrap" checked="checked"> Word wrap the input and output</div><div class="option-item"><input type="checkbox" option="show_errors" checked="checked"> Operation error reporting (recommended)</div><div class="option-item"><input type="number" option="error_timeout"> Operation error timeout in ms (0 for never)</div><div class="option-item"><input type="number" option="auto_bake_threshold"> Auto Bake threshold in ms</div></div><div class="modal-footer"><button type="button" class="btn btn-default" id="reset-options">Reset options to default</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button></div></div></div></div><div class="modal" id="favourites-modal" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><img class="pull-right" src="images/favourite-24x24.png"><h4 class="modal-title">Edit Favourites</h4></div><div class="modal-body" id="options-body"><ul><li><span style="font-weight:700">To add:</span> drag the operation over the favourites category</li><li><span style="font-weight:700">To reorder:</span> drag up and down in the list below</li><li><span style="font-weight:700">To remove:</span> hit the red cross or drag out of the list below</li></ul><br><ul id="edit-favourites-list" class="op_list"></ul><div class="option-item"></div></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal" id="reset-favourites">Reset favourites to default</button> <button type="button" class="btn btn-success" data-dismiss="modal" id="save-favourites">Save</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button></div></div></div></div><div class="modal" id="support-modal" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><img class="pull-right" src="images/help-22x22.png"><h4 class="modal-title">CyberChef - The Cyber Swiss Army Knife</h4></div><div class="modal-body"><img class="about-img-left" src="images/cyberchef-128x128.png"><p class="subtext">Compile time: 03/12/2016 01:40:56 UTC</p><p>© Crown Copyright 2016.</p><p>Licenced under the Apache Licence, Version 2.0.</p><br><br><div><ul class="nav nav-tabs" role="tablist"><li role="presentation" class="active"><a href="#faqs" aria-controls="profile" role="tab" data-toggle="tab"><img src="images/help-16x16.png"> FAQs </a></li><li role="presentation"><a href="#stats" aria-controls="messages" role="tab" data-toggle="tab"><img src="images/stats-16x16.png"> Stats </a></li><li role="presentation"><a href="#about" aria-controls="messages" role="tab" data-toggle="tab"><img src="images/speech-16x16.png"> About </a></li></ul><div class="tab-content"><div role="tabpanel" class="tab-pane active" id="faqs"><br><blockquote><a data-toggle="collapse" data-target="#faq-examples">What sort of things can I do with CyberChef?</a></blockquote><div class="collapse" id="faq-examples"><p>There are well over 100 operations in CyberChef allowing you to carry simple and complex tasks easily. Here are some examples:</p><ul><li><a href="?recipe=%5B%7B%22op%22%3A%22From%20Base64%22%2C%22args%22%3A%5B%22A-Za-z0-9%2B%2F%3D%22%2Ctrue%5D%7D%5D&input=VTI4Z2JHOXVaeUJoYm1RZ2RHaGhibXR6SUdadmNpQmhiR3dnZEdobElHWnBjMmd1">Decode a Base64-encoded string</a></li><li><a href="?recipe=%5B%7B%22op%22%3A%22Translate%20DateTime%20Format%22%2C%22args%22%3A%5B%22Standard%20date%20and%20time%22%2C%22DD%2FMM%2FYYYY%20HH%3Amm%3Ass%22%2C%22UTC%22%2C%22dddd%20Do%20MMMM%20YYYY%20HH%3Amm%3Ass%20Z%20z%22%2C%22Australia%2FQueensland%22%5D%7D%5D&input=MTUvMDYvMjAxNSAyMDo0NTowMA">Convert a date and time to a different time zone</a></li><li><a href="?recipe=%5B%7B%22op%22%3A%22Parse%20IPv6%20address%22%2C%22args%22%3A%5B%5D%7D%5D&input=MjAwMTowMDAwOjQxMzY6ZTM3ODo4MDAwOjYzYmY6M2ZmZjpmZGQy">Parse a Teredo IPv6 address</a></li><li><a href="?recipe=%5B%7B%22op%22%3A%22From%20Hexdump%22%2C%22args%22%3A%5B%5D%7D%2C%7B%22op%22%3A%22Gunzip%22%2C%22args%22%3A%5B%5D%7D%5D&input=MDAwMDAwMDAgIDFmIDhiIDA4IDAwIDEyIGJjIGYzIDU3IDAwIGZmIDBkIGM3IGMxIDA5IDAwIDIwICB8Li4uLi6881cu%2Fy7HwS4uIHwKMDAwMDAwMTAgIDA4IDA1IGQwIDU1IGZlIDA0IDJkIGQzIDA0IDFmIGNhIDhjIDQ0IDIxIDViIGZmICB8Li7QVf4uLdMuLsouRCFb%2F3wKMDAwMDAwMjAgIDYwIGM3IGQ3IDAzIDE2IGJlIDQwIDFmIDc4IDRhIDNmIDA5IDg5IDBiIDlhIDdkICB8YMfXLi6%2BQC54Sj8uLi4ufXwKMDAwMDAwMzAgIDRlIGM4IDRlIDZkIDA1IDFlIDAxIDhiIDRjIDI0IDAwIDAwIDAwICAgICAgICAgICB8TshObS4uLi5MJC4uLnw">Convert data from a hexdump, then decompress</a></li><li><a href="?recipe=%5B%7B%22op%22%3A%22Fork%22%2C%22args%22%3A%5B%22%5C%5Cn%22%2C%22%5C%5Cn%22%5D%7D%2C%7B%22op%22%3A%22From%20UNIX%20Timestamp%22%2C%22args%22%3A%5B%22Seconds%20(s)%22%5D%7D%5D&input=OTc4MzQ2ODAwCjEwMTI2NTEyMDAKMTA0NjY5NjQwMAoxMDgxMDg3MjAwCjExMTUzMDUyMDAKMTE0OTYwOTYwMA">Display multiple timestamps as full dates</a></li><li><a href="?recipe=%5B%7B%22op%22%3A%22Fork%22%2C%22args%22%3A%5B%22%5C%5Cn%22%2C%22%5C%5Cn%22%5D%7D%2C%7B%22op%22%3A%22Conditional%20Jump%22%2C%22args%22%3A%5B%221%22%2C%222%22%2C%2210%22%5D%7D%2C%7B%22op%22%3A%22To%20Hex%22%2C%22args%22%3A%5B%22Space%22%5D%7D%2C%7B%22op%22%3A%22Return%22%2C%22args%22%3A%5B%5D%7D%2C%7B%22op%22%3A%22To%20Base64%22%2C%22args%22%3A%5B%22A-Za-z0-9%2B%2F%3D%22%5D%7D%5D&input=U29tZSBkYXRhIHdpdGggYSAxIGluIGl0ClNvbWUgZGF0YSB3aXRoIGEgMiBpbiBpdA">Carry out different operations on data of different types</a></li></ul></div><blockquote><a data-toggle="collapse" data-target="#faq-load-files">Can I load input directly from files?</a></blockquote><div class="collapse" id="faq-load-files"><p>Yes! Just drag your file over the input box and drop it. The contents of the file will be converted into hexadecimal and the 'From Hex' operation will be added to the beginning of the recipe (if it's not already there). This is so that special characters like carriage returns aren't removed by your browser.</p><p>Please note that loading large files is likely to cause a crash. There's not a lot that can be done about this - browsers just aren't very good at handling and displaying large amounts of data.</p></div><blockquote><a data-toggle="collapse" data-target="#faq-fork">How do I run operation X over multiple inputs at once?</a></blockquote><div class="collapse" id="faq-fork"><p>Maybe you have 10 timestamps that you want to parse or 16 encoded strings that all have the same key.</p><p>The 'Fork' operation (found in the 'Flow control' category) splits up the input line by line and runs all subsequent operations on each line separately. Each output is then displayed on a separate line. These delimiters can be changed, so if your inputs are separated by commas, you can change the split delimiter to a comma instead.</p><p><a href='?recipe=%5B%7B"op"%3A"Fork"%2C"args"%3A%5B"%5C%5Cn"%2C"%5C%5Cn"%5D%7D%2C%7B"op"%3A"From%20UNIX%20Timestamp"%2C"args"%3A%5B"Seconds%20(s)"%5D%7D%5D&input=OTc4MzQ2ODAwCjEwMTI2NTEyMDAKMTA0NjY5NjQwMAoxMDgxMDg3MjAwCjExMTUzMDUyMDAKMTE0OTYwOTYwMA%3D%3D'>Click here</a> for an example.</p></div></div><div role="tabpanel" class="tab-pane" id="stats"><br><p>If you're a nerd like me, you might find statistics really fun! Here's some about the CyberChef code base:</p><br><pre>203 source files<br>104211 lines<br>4.0M size<br><br>136 JavaScript source files<br>95121 lines<br>3.4M size<br><br>78 third party JavaScript source files<br>76377 lines<br>2.7M size<br><br>58 first party JavaScript source files<br>18744 lines<br>724K size<br><br>3.1M uncompressed JavaScript size<br>1.7M compressed JavaScript size<br><br>15 categories<br>152 operations<br></pre></div><div role="tabpanel" class="tab-pane" id="about" style="padding:20px"><h4>What</h4><p>A simple, intuitive web app for analysing and decoding data without having to deal with complex tools or programming languages. CyberChef encourages both technical and non-technical people to explore data formats, encryption and compression.</p><h4>Why</h4><p>Digital data comes in all shapes, sizes and formats in the modern world – CyberChef helps to make sense of this data all on one easy-to-use platform.</p><h4>How</h4><p>The interface is designed with simplicity at its heart. Complex techniques are now as trivial as drag-and-drop. Simple functions can be combined to build up a "recipe", potentially resulting in complex analysis, which can be shared with other users and used with their input.</p><p>For those comfortable writing code, CyberChef is a quick and efficient way to prototype solutions to a problem which can then be scripted once proven to work.</p><h4>Who</h4><p>It is expected that CyberChef will be useful for cybersecurity and antivirus companies. It should also appeal to the academic world and any individuals or companies involved in the analysis of digital data, be that software developers, analysts, mathematicians or casual puzzle solvers.</p><h4>Aim</h4><p>It is hoped that by releasing CyberChef through <a href="https://github.com/gchq/cyberchef">GitHub</a>, contributions can be added which can be rolled out into future versions of the tool.</p><br><p>There are around 150 useful operations in CyberChef for anyone working on anything vaguely Internet-related, whether you just want to convert a timestamp to a different format, decompress gzipped data, create a SHA3 hash, or parse an X.509 certificate to find out who issued it.</p><p>It’s the Cyber Swiss Army Knife.</p></div></div></div></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Close</button></div></div></div></div><div class="modal" id="confirm-modal" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><h4 class="modal-title" id="confirm-title"></h4></div><div class="modal-body" id="confirm-body"></div><div class="modal-footer"><button type="button" class="btn btn-success" id="confirm-yes"><img src="images/thumb_up-16x16.png"> Yes</button> <button type="button" class="btn btn-danger" id="confirm-no" data-dismiss="modal"><img src="images/thumb_down-16x16.png"> No</button></div></div></div></div><script type="application/javascript" src="scripts.js"></script></body></html> |