mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-10 21:26:37 +01:00
593 lines
40 KiB
HTML
Executable File
593 lines
40 KiB
HTML
Executable File
<!-- htmlmin:ignore --><!--
|
||
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.
|
||
-->
|
||
<!-- htmlmin:ignore -->
|
||
<!DOCTYPE html>
|
||
<html lang="en" class="classic">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>CyberChef</title>
|
||
|
||
<meta name="copyright" content="Crown Copyright 2016" />
|
||
<meta name="description" content="The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis" />
|
||
<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/ico" href="<%- require('../static/images/favicon.ico') %>" />
|
||
|
||
<script type="application/javascript">
|
||
"use strict";
|
||
|
||
// Load theme before the preloader is shown
|
||
try {
|
||
document.querySelector(":root").className = (JSON.parse(localStorage.getItem("options")) || {}).theme;
|
||
} catch (err) {
|
||
// LocalStorage access is denied by security settings
|
||
}
|
||
|
||
// Define loading messages
|
||
const loadingMsgs = [
|
||
"Proving P = NP...",
|
||
"Computing 6 x 9...",
|
||
"Mining bitcoin...",
|
||
"Dividing by 0...",
|
||
"Initialising Skynet...",
|
||
"[REDACTED]",
|
||
"Downloading more RAM...",
|
||
"Ordering 1s and 0s...",
|
||
"Navigating neural network...",
|
||
"Importing machine learning...",
|
||
"Issuing Alice and Bob one-time pads...",
|
||
"Mining bitcoin cash...",
|
||
"Generating key material by trying to escape vim...",
|
||
"for i in range(additional): Pylon()",
|
||
"(creating unresolved tension...",
|
||
"Symlinking emacs and vim to ed...",
|
||
];
|
||
|
||
// Shuffle array using Durstenfeld algorithm
|
||
for (let i = loadingMsgs.length - 1; i > 0; --i) {
|
||
const j = Math.floor(Math.random() * (i + 1));
|
||
const temp = loadingMsgs[i];
|
||
loadingMsgs[i] = loadingMsgs[j];
|
||
loadingMsgs[j] = temp;
|
||
}
|
||
|
||
// Show next loading message and move it to the end of the array
|
||
function changeLoadingMsg() {
|
||
const msg = loadingMsgs.shift();
|
||
loadingMsgs.push(msg);
|
||
try {
|
||
const el = document.getElementById("preloader-msg");
|
||
if (!el.classList.contains("loading"))
|
||
el.classList.add("loading"); // Causes CSS transition on first message
|
||
el.innerHTML = msg;
|
||
} catch (err) {} // Ignore errors if DOM not yet ready
|
||
}
|
||
|
||
changeLoadingMsg();
|
||
window.loadingMsgsInt = setInterval(changeLoadingMsg, (Math.random() * 2000) + 1500);
|
||
</script>
|
||
<% if (!htmlWebpackPlugin.options.inline) { %>
|
||
<script type="application/ld+json">
|
||
<% print(JSON.stringify(require("../static/structuredData.json"))); %>
|
||
</script>
|
||
<% } %>
|
||
</head>
|
||
<body>
|
||
<!-- Preloader overlay -->
|
||
<div id="loader-wrapper">
|
||
<div id="preloader" class="loader"></div>
|
||
<div id="preloader-msg" class="loading-msg"></div>
|
||
</div>
|
||
<!-- End preloader overlay -->
|
||
<span id="edit-favourites" class="btn btn-default btn-sm"><img aria-hidden="true" src="<%- require('../static/images/favourite-16x16.png') %>" alt="Star Icon"/> 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">
|
||
<div class="col-md-4" style="text-align: left; padding-left: 10px;">
|
||
<% if (htmlWebpackPlugin.options.inline) { %>
|
||
<span>Version <%= htmlWebpackPlugin.options.version %></span>
|
||
<% } else { %>
|
||
<a href="cyberchef.htm" download>Download CyberChef<img aria-hidden="true" src="<%- require('../static/images/download-24x24.png') %>" alt="Download Icon"/></a>
|
||
<% } %>
|
||
</div>
|
||
<div class="col-md-4" style="text-align: center;">
|
||
<span id="notice">
|
||
<script type="text/javascript">
|
||
// Must be text/javascript rather than application/javascript otherwise IE won't recognise it...
|
||
if (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>
|
||
</div>
|
||
<div class="col-md-4" style="text-align: right; padding-right: 0;">
|
||
<a href="#" id="options">Options<img aria-hidden="true" src="<%- require('../static/images/settings-22x22.png') %>" alt="Settings Icon"/></a>
|
||
<a href="#" id="support" data-toggle="modal" data-target="#support-modal">About / Support<img aria-hidden="true" src="<%- require('../static/images/help-22x22.png') %>" alt="Question Mark Icon"/></a>
|
||
</div>
|
||
</div>
|
||
<div id="workspace-wrapper">
|
||
<div id="operations" class="split split-horizontal no-select">
|
||
<div class="title no-select">Operations</div>
|
||
<input id="search" type="search" class="form-control" placeholder="Search..." autocomplete="off">
|
||
<ul id="search-results" class="op-list"></ul>
|
||
<div id="categories" class="panel-group no-select"></div>
|
||
</div>
|
||
|
||
<div id="recipe" class="split split-horizontal no-select">
|
||
<div class="title no-select">Recipe</div>
|
||
<ul id="rec-list" class="list-area 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 aria-hidden="true" src="<%- require('../static/images/cook_male-32x32.png') %>" alt="Chef Icon"/>
|
||
<span>Bake!</span>
|
||
</button>
|
||
<label class="btn btn-success btn-lg" id="auto-bake-label" for="auto-bake">
|
||
<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 aria-hidden="true" src="<%- require('../static/images/step-16x16.png') %>" alt="Footstep Icon"/> Step through</button>
|
||
<button type="button" class="btn btn-default" id="clr-breaks"><img aria-hidden="true" src="<%- require('../static/images/erase-16x16.png') %>" alt="Eraser Icon"/> Clear breakpoints</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="btn-group-vertical" id="extra-controls">
|
||
<button type="button" class="btn btn-default" id="save"><img aria-hidden="true" src="<%- require('../static/images/save-16x16.png') %>" alt="Save Icon"/> Save recipe</button>
|
||
<button type="button" class="btn btn-default" id="load"><img aria-hidden="true" src="<%- require('../static/images/open_yellow-16x16.png') %>" alt="Open Icon"/> Load recipe</button>
|
||
<button type="button" class="btn btn-default" id="clr-recipe"><img aria-hidden="true" src="<%- require('../static/images/clean-16x16.png') %>" alt="Broom Icon"/> 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">
|
||
<label for="input-text">Input</label>
|
||
<div class="btn-group io-btn-group">
|
||
<button type="button" class="btn btn-default btn-sm" id="clr-io"><img aria-hidden="true" src="<%- require('../static/images/recycle-16x16.png') %>" alt="Recycle Icon"/> Clear I/O</button>
|
||
<button type="button" class="btn btn-default btn-sm" id="reset-layout"><img aria-hidden="true" src="<%- require('../static/images/layout-16x16.png') %>" alt="Grid Icon"/> 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">
|
||
<label for="output-text">Output</label>
|
||
<div class="btn-group io-btn-group">
|
||
<button type="button" class="btn btn-default btn-sm" id="save-to-file" title="Save to file"><img aria-hidden="true" src="<%- require('../static/images/save_as-16x16.png') %>" alt="Save Icon"/> Save to file</button>
|
||
<button type="button" class="btn btn-default btn-sm" id="switch" title="Move output to input"><img aria-hidden="true" src="<%- require('../static/images/switch-16x16.png') %>" alt="Switch Icon"/> Move output to input</button>
|
||
<button type="button" class="btn btn-default btn-sm" id="undo-switch" title="Undo move" disabled="disabled"><img aria-hidden="true" src="<%- require('../static/images/undo-16x16.png') %>" alt="Undo Icon"/> Undo</button>
|
||
<button type="button" class="btn btn-default btn-sm" id="maximise-output" title="Maximise"><img aria-hidden="true" src="<%- require('../static/images/maximise-16x16.png') %>" alt="Maximise Icon"/> Max</button>
|
||
</div>
|
||
<div class="io-info" id="output-info"></div>
|
||
<div class="io-info" id="output-selection-info"></div>
|
||
<span id="stale-indicator" title="The output is stale. The input or recipe has changed since this output was generated. Bake again to get the new value.">🕑</span>
|
||
</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 id="output-loader">
|
||
<div class="loader"></div>
|
||
<div class="loading-msg"></div>
|
||
</div>
|
||
</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 aria-hidden="true" class="pull-right" src="<%- require('../static/images/save-22x22.png') %>" alt="Save Icon"/>
|
||
<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>
|
||
<ul class="nav nav-tabs" role="tablist">
|
||
<li role="presentation" class="active"><a href="#chef-format" role="tab" data-toggle="tab">Chef format</a></li>
|
||
<li role="presentation"><a href="#clean-json" role="tab" data-toggle="tab">Clean JSON</a></li>
|
||
<li role="presentation"><a href="#compact-json" role="tab" data-toggle="tab">Compact JSON</a></li>
|
||
</ul>
|
||
<div class="tab-content" id="save-texts">
|
||
<div role="tabpanel" class="tab-pane active" id="chef-format">
|
||
<textarea class="form-control" id="save-text-chef" rows="5"></textarea>
|
||
</div>
|
||
<div role="tabpanel" class="tab-pane" id="clean-json">
|
||
<textarea class="form-control" id="save-text-clean" rows="5"></textarea>
|
||
</div>
|
||
<div role="tabpanel" class="tab-pane" id="compact-json">
|
||
<textarea class="form-control" id="save-text-compact" rows="5"></textarea>
|
||
</div>
|
||
</div>
|
||
</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> <label for="save-link-recipe-checkbox"> Include recipe </label>
|
||
<input type="checkbox" id="save-link-input-checkbox" checked> <label for="save-link-input-checkbox"> Include input </label>
|
||
</div>
|
||
<br>
|
||
<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 aria-hidden="true" class="pull-right" src="<%- require('../static/images/open_yellow-24x24.png') %>" alt="Open Icon"/>
|
||
<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 by selecting its name from the drop-down</label>
|
||
<select class="form-control" id="load-name"></select>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="load-text">Load your recipe by pasting it in the box below</label>
|
||
<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 aria-hidden="true" class="pull-right" src="<%- require('../static/images/settings-22x22.png') %>" alt="Settings Icon"/>
|
||
<h4 class="modal-title">Options</h4>
|
||
</div>
|
||
<div class="modal-body" id="options-body">
|
||
<p style="font-weight: bold">Please note that these options will persist between sessions.</p>
|
||
<div class="option-item">
|
||
<select option="theme" id="theme">
|
||
<option value="classic">Classic</option>
|
||
<option value="dark">Dark</option>
|
||
<option value="geocities">GeoCities</option>
|
||
</select>
|
||
<label for="theme"> Theme (only supported in modern browsers)</label>
|
||
</div>
|
||
<div class="option-item">
|
||
<input type="checkbox" option="updateUrl" id="updateUrl" checked />
|
||
<label for="updateUrl"> Update the URL when the input or recipe changes </label>
|
||
</div>
|
||
<div class="option-item">
|
||
<input type="checkbox" option="showHighlighter" id="showHighlighter" checked />
|
||
<label for="showHighlighter"> Highlight selected bytes in output and input (when possible) </label>
|
||
</div>
|
||
<div class="option-item">
|
||
<input type="checkbox" option="treatAsUtf8" id="treatAsUtf8" checked />
|
||
<label for="treatAsUtf8"> Treat output as UTF-8 if possible </label>
|
||
</div>
|
||
<div class="option-item">
|
||
<input type="checkbox" option="wordWrap" id="wordWrap" checked />
|
||
<label for="wordWrap"> Word wrap the input and output </label>
|
||
</div>
|
||
<div class="option-item">
|
||
<input type="checkbox" option="showErrors" id="showErrors" checked />
|
||
<label for="showErrors"> Operation error reporting (recommended) </label>
|
||
</div>
|
||
<div class="option-item">
|
||
<input type="number" option="errorTimeout" id="errorTimeout" />
|
||
<label for="errorTimeout"> Operation error timeout in ms (0 for never) </label>
|
||
</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 aria-hidden="true" class="pull-right" src="<%- require('../static/images/favourite-24x24.png') %>" alt="Star Icon"/>
|
||
<h4 class="modal-title">Edit Favourites</h4>
|
||
</div>
|
||
<div class="modal-body" id="favourites-body">
|
||
<ul>
|
||
<li><span style="font-weight: bold">To add:</span> drag the operation over the favourites category</li>
|
||
<li><span style="font-weight: bold">To reorder:</span> drag up and down in the list below</li>
|
||
<li><span style="font-weight: bold">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 aria-hidden="true" class="pull-right" src="<%- require('../static/images/help-22x22.png') %>" alt="Question Mark Icon"/>
|
||
<h4 class="modal-title">CyberChef - The Cyber Swiss Army Knife</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<img aria-hidden="true" class="about-img-left" src="<%- require('../static/images/cyberchef-128x128.png') %>" alt="CyberChef Logo"/>
|
||
<p class="subtext">
|
||
Version <%= htmlWebpackPlugin.options.version %><br>
|
||
Compile time: <%= htmlWebpackPlugin.options.compileTime %>
|
||
</p>
|
||
<p>© Crown Copyright 2016.</p>
|
||
<p>Released under the Apache Licence, Version 2.0.</p>
|
||
<p>
|
||
<a href="https://gitter.im/gchq/CyberChef">
|
||
<img src="<%- require('../static/images/gitter-badge.svg') %>">
|
||
</a>
|
||
</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 aria-hidden="true" src="<%- require('../static/images/help-16x16.png') %>" alt="Question Mark Icon"/>
|
||
FAQs
|
||
</a></li>
|
||
<li role="presentation"><a href="#report-bug" aria-controls="messages" role="tab" data-toggle="tab">
|
||
<img aria-hidden="true" src="<%- require('../static/images/bug-16x16.png') %>" alt="Bug Icon"/>
|
||
Report a bug
|
||
</a></li>
|
||
<li role="presentation"><a href="#about" aria-controls="messages" role="tab" data-toggle="tab">
|
||
<img aria-hidden="true" src="<%- require('../static/images/speech-16x16.png') %>" alt="Speech Balloon Icon"/>
|
||
About
|
||
</a></li>
|
||
<li role="presentation"><a href="#keybindings" aria-controls="messages" role="tab" data-toggle="tab">
|
||
<!-- Icon is a placeholder -->
|
||
<img aria-hidden="true" src="<%- require('../static/images/code-16x16.png') %>" alt="Code Icon"/>
|
||
Keybindings
|
||
</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 around 200 operations in CyberChef allowing you to carry out simple and complex tasks easily. Here are some examples:</p>
|
||
<ul>
|
||
<li><a href="#recipe=From_Base64('A-Za-z0-9%2B/%3D',true)&input=VTI4Z2JHOXVaeUJoYm1RZ2RHaGhibXR6SUdadmNpQmhiR3dnZEdobElHWnBjMmd1">Decode a Base64-encoded string</a></li>
|
||
<li><a href="#recipe=Translate_DateTime_Format('Standard%20date%20and%20time','DD/MM/YYYY%20HH:mm:ss','UTC','dddd%20Do%20MMMM%20YYYY%20HH:mm:ss%20Z%20z','Australia/Queensland')&input=MTUvMDYvMjAxNSAyMDo0NTowMA">Convert a date and time to a different time zone</a></li>
|
||
<li><a href="#recipe=Parse_IPv6_address()&input=MjAwMTowMDAwOjQxMzY6ZTM3ODo4MDAwOjYzYmY6M2ZmZjpmZGQy">Parse a Teredo IPv6 address</a></li>
|
||
<li><a href="#recipe=From_Hexdump()Gunzip()&input=MDAwMDAwMDAgIDFmIDhiIDA4IDAwIDEyIGJjIGYzIDU3IDAwIGZmIDBkIGM3IGMxIDA5IDAwIDIwICB8Li4uLi6881cu/y7HwS4uIHwKMDAwMDAwMTAgIDA4IDA1IGQwIDU1IGZlIDA0IDJkIGQzIDA0IDFmIGNhIDhjIDQ0IDIxIDViIGZmICB8Li7QVf4uLdMuLsouRCFb/3wKMDAwMDAwMjAgIDYwIGM3IGQ3IDAzIDE2IGJlIDQwIDFmIDc4IDRhIDNmIDA5IDg5IDBiIDlhIDdkICB8YMfXLi6%2BQC54Sj8uLi4ufXwKMDAwMDAwMzAgIDRlIGM4IDRlIDZkIDA1IDFlIDAxIDhiIDRjIDI0IDAwIDAwIDAwICAgICAgICAgICB8TshObS4uLi5MJC4uLnw">Convert data from a hexdump, then decompress</a></li>
|
||
<li><a href="#recipe=RC4(%7B'option':'UTF8','string':'secret'%7D,'Hex','Hex')Disassemble_x86('64','Full%20x86%20architecture',16,0,true,true)&input=MjFkZGQyNTQwMTYwZWU2NWZlMDc3NzEwM2YyYTM5ZmJlNWJjYjZhYTBhYWJkNDE0ZjkwYzZjYWY1MzEyNzU0YWY3NzRiNzZiM2JiY2QxOTNjYjNkZGZkYmM1YTI2NTMzYTY4NmI1OWI4ZmVkNGQzODBkNDc0NDIwMWFlYzIwNDA1MDcxMzhlMmZlMmIzOTUwNDQ2ZGIzMWQyYmM2MjliZTRkM2YyZWIwMDQzYzI5M2Q3YTVkMjk2MmMwMGZlNmRhMzAwNzJkOGM1YTZiNGZlN2Q4NTlhMDQwZWVhZjI5OTczMzYzMDJmNWEwZWMxOQ">Decrypt and disassemble shellcode</a></li>
|
||
<li><a href="#recipe=Fork('%5C%5Cn','%5C%5Cn',false)From_UNIX_Timestamp('Seconds%20(s)')&input=OTc4MzQ2ODAwCjEwMTI2NTEyMDAKMTA0NjY5NjQwMAoxMDgxMDg3MjAwCjExMTUzMDUyMDAKMTE0OTYwOTYwMA">Display multiple timestamps as full dates</a></li>
|
||
<li><a href="#recipe=Fork('%5C%5Cn','%5C%5Cn',false)Conditional_Jump('1',2,10)To_Hex('Space')Return()To_Base64('A-Za-z0-9%2B/%3D')&input=U29tZSBkYXRhIHdpdGggYSAxIGluIGl0ClNvbWUgZGF0YSB3aXRoIGEgMiBpbiBpdA">Carry out different operations on data of different types</a></li>
|
||
<li><a href="#recipe=Register('key%3D(%5B%5C%5Cda-f%5D*)',true,false)Find_/_Replace(%7B'option':'Regex','string':'.*data%3D(.*)'%7D,'$1',true,false,true)RC4(%7B'option':'Hex','string':'$R0'%7D,'Hex','Latin1')&input=aHR0cDovL21hbHdhcmV6LmJpei9iZWFjb24ucGhwP2tleT0wZTkzMmE1YyZkYXRhPThkYjdkNWViZTM4NjYzYTU0ZWNiYjMzNGUzZGIxMQ">Use parts of the input as arguments to operations</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=Fork('%5C%5Cn','%5C%5Cn',false)From_UNIX_Timestamp('Seconds%20(s)')&input=OTc4MzQ2ODAwCjEwMTI2NTEyMDAKMTA0NjY5NjQwMAoxMDgxMDg3MjAwCjExMTUzMDUyMDAKMTE0OTYwOTYwMA">Click here</a> for an example.</p>
|
||
</div>
|
||
</div>
|
||
<div role="tabpanel" class="tab-pane" id="report-bug">
|
||
<br>
|
||
<p>If you find a bug in CyberChef, please raise an issue in our GitHub repository explaining it in as much detail as possible. Copy and include the following information if relevant.</p>
|
||
<br>
|
||
<pre id="report-bug-info"></pre>
|
||
<br>
|
||
<a class="btn btn-primary" href="https://github.com/gchq/CyberChef/issues/new" role="button">Raise issue on GitHub</a>
|
||
</div>
|
||
<div role="tabpanel" class="tab-pane" id="about" style="padding: 20px;">
|
||
<h5><strong>What</strong></h5>
|
||
<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><br>
|
||
|
||
<h5><strong>Why</strong></h5>
|
||
<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><br>
|
||
|
||
|
||
<h5><strong>How</strong></h5>
|
||
<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><br>
|
||
|
||
|
||
<h5><strong>Who</strong></h5>
|
||
<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><br>
|
||
|
||
|
||
<h5><strong>Aim</strong></h5>
|
||
<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>
|
||
|
||
|
||
<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 role="tabpanel" class="tab-pane" id="keybindings" style="padding: 20px;">
|
||
<table class="table table-condensed table-bordered">
|
||
<tr>
|
||
<td><b>Command</b></td>
|
||
<td><b>Shortcut (Win/Linux)</b></td>
|
||
<td><b>Shortcut (Mac)</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Place cursor in search field</td>
|
||
<td>Ctrl+Alt+f</td>
|
||
<td>Ctrl+Opt+f</td>
|
||
<tr>
|
||
<td>Place cursor in input box</td>
|
||
<td>Ctrl+Alt+i</td>
|
||
<td>Ctrl+Opt+i</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Place cursor in output box</td>
|
||
<td>Ctrl+Alt+o</td>
|
||
<td>Ctrl+Opt+o</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Place cursor in first argument field<br>of the next operation in the recipe</td>
|
||
<td>Ctrl+Alt+.</td>
|
||
<td>Ctrl+Opt+.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Place cursor in first argument field<br>of the nth operation in the recipe</td>
|
||
<td>Ctrl+Alt+[1-9]</td>
|
||
<td>Ctrl+Opt+[1-9]</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Disable current operation</td>
|
||
<td>Ctrl+Alt+d</td>
|
||
<td>Ctrl+Opt+d</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Set/clear breakpoint</td>
|
||
<td>Ctrl+Alt+b</td>
|
||
<td>Ctrl+Opt+b</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Bake</td>
|
||
<td>Ctrl+Alt+Space</td>
|
||
<td>Ctrl+Opt+Space</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Step</td>
|
||
<td>Ctrl+Alt+'</td>
|
||
<td>Ctrl+Opt+'</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Clear recipe</td>
|
||
<td>Ctrl+Alt+c</td>
|
||
<td>Ctrl+Opt+c</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Save to file</td>
|
||
<td>Ctrl+Alt+s</td>
|
||
<td>Ctrl+Opt+s</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Load recipe</td>
|
||
<td>Ctrl+Alt+l</td>
|
||
<td>Ctrl+Opt+l</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Move output to input</td>
|
||
<td>Ctrl+Alt+m</td>
|
||
<td>Ctrl+Opt+m</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||
</div>
|
||
<a href="https://github.com/gchq/CyberChef">
|
||
<img aria-hidden="true" style="position: absolute; top: 0; right: 0; border: 0;" src="<%- require('../static/images/fork_me.png') %>" alt="Fork me on GitHub">
|
||
</a>
|
||
</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 aria-hidden="true" src="<%- require('../static/images/thumb_up-16x16.png') %>" alt="Thumbs Up"/>
|
||
Yes
|
||
</button>
|
||
<button type="button" class="btn btn-danger" id="confirm-no" data-dismiss="modal">
|
||
<img aria-hidden="true" src="<%- require('../static/images/thumb_down-16x16.png') %>" alt="Thumbs Down"/>
|
||
No
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|