mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-26 01:36:17 -04:00
add 3rd party libraries to imports
This commit is contained in:
parent
95daa65d7d
commit
661b420103
28 changed files with 301 additions and 220 deletions
|
@ -1,17 +1,17 @@
|
|||
<!-- 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.
|
||||
|
@ -24,23 +24,22 @@
|
|||
<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="images/favicon.ico" />
|
||||
<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>
|
||||
<span id="edit-favourites" class="btn btn-default btn-sm"><img src="<%- require('../static/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>
|
||||
<a href="cyberchef.htm" style="float: left; margin-left: 10px; margin-right: 80px;" download>Download CyberChef<img src="<%- require('../static/images/download-24x24.png') %>" /></a>
|
||||
<span id="notice">
|
||||
<script type="text/javascript">
|
||||
// Must be text/javascript rather than application/javascript otherwise IE won't recognise it...
|
||||
|
@ -51,8 +50,8 @@
|
|||
</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>
|
||||
<a href="#" id="support" class="banner-right" data-toggle="modal" data-target="#support-modal">About / Support<img src="<%- require('../static/images/help-22x22.png') %>" /></a>
|
||||
<a href="#" id="options" class="banner-right">Options<img src="<%- require('../static/images/settings-22x22.png') %>" /></a>
|
||||
</div>
|
||||
<div id="wrapper">
|
||||
<div id="operations" class="split split-horizontal no-select">
|
||||
|
@ -61,16 +60,16 @@
|
|||
<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" />
|
||||
<img src="<%- require('../static/images/cook_male-32x32.png') %>" />
|
||||
Bake!
|
||||
</button>
|
||||
<label class="btn btn-success btn-lg" id="auto-bake-label">
|
||||
|
@ -78,28 +77,28 @@
|
|||
<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>
|
||||
<button type="button" class="btn btn-default" id="step"><img src="<%- require('../static/images/step-16x16.png') %>" /> Step through</button>
|
||||
<button type="button" class="btn btn-default" id="clr-breaks"><img src="<%- require('../static/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>
|
||||
<button type="button" class="btn btn-default" id="save"><img src="<%- require('../static/images/save-16x16.png') %>" /> Save recipe</button>
|
||||
<button type="button" class="btn btn-default" id="load"><img src="<%- require('../static/images/open_yellow-16x16.png') %>" /> Load recipe</button>
|
||||
<button type="button" class="btn btn-default" id="clr-recipe"><img src="<%- require('../static/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>
|
||||
<button type="button" class="btn btn-default btn-sm" id="clr-io"><img src="<%- require('../static/images/recycle-16x16.png') %>" /> Clear I/O</button>
|
||||
<button type="button" class="btn btn-default btn-sm" id="reset-layout"><img src="<%- require('../static/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>
|
||||
|
@ -109,14 +108,14 @@
|
|||
<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>
|
||||
<button type="button" class="btn btn-default btn-sm" id="save-to-file"><img src="<%- require('../static/images/save_as-16x16.png') %>" /> Save to file</button>
|
||||
<button type="button" class="btn btn-default btn-sm" id="switch"><img src="<%- require('../static/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="<%- require('../static/images/undo-16x16.png') %>" /> Undo</button>
|
||||
</div>
|
||||
<div class="io-info" id="output-info"></div>
|
||||
<div class="io-info" id="output-selection-info"></div>
|
||||
|
@ -130,12 +129,12 @@
|
|||
</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" />
|
||||
<img class="pull-right" src="<%- require('../static/images/save-22x22.png') %>" />
|
||||
<h4 class="modal-title">Save recipe</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
@ -165,12 +164,12 @@
|
|||
</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" />
|
||||
<img class="pull-right" src="<%- require('../static/images/open_yellow-24x24.png') %>" />
|
||||
<h4 class="modal-title">Load recipe</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
@ -190,12 +189,12 @@
|
|||
</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" />
|
||||
<img class="pull-right" src="<%- require('../static/images/settings-22x22.png') %>" />
|
||||
<h4 class="modal-title">Options</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="options-body">
|
||||
|
@ -236,12 +235,12 @@
|
|||
</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" />
|
||||
<img class="pull-right" src="<%- require('../static/images/favourite-24x24.png') %>" />
|
||||
<h4 class="modal-title">Edit Favourites</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="options-body">
|
||||
|
@ -263,16 +262,16 @@
|
|||
</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" />
|
||||
<img class="pull-right" src="<%- require('../static/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" />
|
||||
<img class="about-img-left" src="<%- require('../static/images/cyberchef-128x128.png') %>" />
|
||||
<p class="subtext">Compile time: <%- htmlWebpackPlugin.options.compileTime %> UTC</p>
|
||||
<p>© Crown Copyright 2016.</p>
|
||||
<p>Licenced under the Apache Licence, Version 2.0.</p>
|
||||
|
@ -281,11 +280,11 @@
|
|||
<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' />
|
||||
<img src="<%- require('../static/images/help-16x16.png') %>" />
|
||||
FAQs
|
||||
</a></li>
|
||||
<li role='presentation'><a href='#about' aria-controls='messages' role='tab' data-toggle='tab'>
|
||||
<img src='images/speech-16x16.png' />
|
||||
<img src="<%- require('../static/images/speech-16x16.png') %>" />
|
||||
About
|
||||
</a></li>
|
||||
</ul>
|
||||
|
@ -331,17 +330,17 @@
|
|||
<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>
|
||||
|
||||
|
@ -358,7 +357,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal" id="confirm-modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
|
@ -368,11 +367,11 @@
|
|||
<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" />
|
||||
<img src="<%- require('../static/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" />
|
||||
<img src="<%- require('../static/images/thumb_down-16x16.png') %>" />
|
||||
No
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -11,13 +11,13 @@ import Operation from './Operation';
|
|||
* @class
|
||||
* @param {Object} recipe_config
|
||||
*/
|
||||
const Recipe = function (recipe_config) {
|
||||
export default function Recipe(recipe_config) {
|
||||
this.op_list = [];
|
||||
|
||||
if (recipe_config) {
|
||||
this._parse_config(recipe_config);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
|
||||
import CryptoJS from 'crypto-js';
|
||||
import moment from 'moment';
|
||||
|
||||
/**
|
||||
* Utility functions for use in operations, the core framework and the stage.
|
||||
|
|
137
src/js/index.js
137
src/js/index.js
|
@ -1,135 +1,8 @@
|
|||
import './core/Ingredient.js';
|
||||
import './core/Dish.js';
|
||||
import './core/FlowControl.js';
|
||||
import './core/Operation.js';
|
||||
import './core/Recipe.js';
|
||||
import './core/Utils.js';
|
||||
import './core/Chef.js';
|
||||
import './lib/canvas_components.js';
|
||||
import './lib/punycode.js';
|
||||
import './lib/rawinflate.js';
|
||||
import './lib/unzip.js';
|
||||
import './lib/zlib_and_gzip.js';
|
||||
import './lib/split.js';
|
||||
import './lib/rawdeflate.js';
|
||||
import 'moment-timezone';
|
||||
import './lib/diff.js';
|
||||
import './lib/prettify.js';
|
||||
import './lib/bootstrap-3.3.6.js';
|
||||
import './lib/Sortable.js';
|
||||
import './lib/snowfall.jquery.js';
|
||||
import './lib/zip.js';
|
||||
import './lib/escodegen.browser.js';
|
||||
import './lib/bootstrap-switch.js';
|
||||
import './lib/yahoo.js';
|
||||
import './lib/vkbeautify.js';
|
||||
import 'moment';
|
||||
import './lib/bootstrap-colorpicker.js';
|
||||
import './lib/cryptojs/format-hex.js';
|
||||
import './lib/cryptojs/hmac.js';
|
||||
import './lib/cryptojs/pad-iso10126.js';
|
||||
import './lib/cryptojs/sha384.js';
|
||||
import './lib/cryptojs/aes.js';
|
||||
import './lib/cryptojs/pad-nopadding.js';
|
||||
import './lib/cryptojs/core.js';
|
||||
import './lib/cryptojs/pad-zeropadding.js';
|
||||
import './lib/cryptojs/mode-ctr.js';
|
||||
import './lib/cryptojs/sha1.js';
|
||||
import './lib/cryptojs/md5.js';
|
||||
import './lib/cryptojs/evpkdf.js';
|
||||
import './lib/cryptojs/rabbit.js';
|
||||
import './lib/cryptojs/rc4.js';
|
||||
import './lib/cryptojs/lib-typedarrays.js';
|
||||
import './lib/cryptojs/enc-base64.js';
|
||||
import './lib/cryptojs/sha3.js';
|
||||
import './lib/cryptojs/sha224.js';
|
||||
import './lib/cryptojs/mode-ofb.js';
|
||||
import './lib/cryptojs/rabbit-legacy.js';
|
||||
import './lib/cryptojs/ripemd160.js';
|
||||
import './lib/cryptojs/cipher-core.js';
|
||||
import './lib/cryptojs/pbkdf2.js';
|
||||
import './lib/cryptojs/pad-iso97971.js';
|
||||
import './lib/cryptojs/sha256.js';
|
||||
import './lib/cryptojs/x64-core.js';
|
||||
import './lib/cryptojs/mode-ecb.js';
|
||||
import './lib/cryptojs/sha512.js';
|
||||
import './lib/cryptojs/mode-ctr-gladman.js';
|
||||
import './lib/cryptojs/enc-utf16.js';
|
||||
import './lib/cryptojs/tripledes.js';
|
||||
import './lib/cryptojs/mode-cfb.js';
|
||||
import './lib/cryptojs/pad-ansix923.js';
|
||||
import './lib/bzip2.js';
|
||||
import './lib/jsbn/rsa.js';
|
||||
import './lib/jsbn/jsbn2.js';
|
||||
import './lib/jsbn/ec.js';
|
||||
import './lib/jsbn/prng4.js';
|
||||
import './lib/jsbn/jsbn.js';
|
||||
import './lib/jsbn/rng.js';
|
||||
import './lib/jsbn/base64.js';
|
||||
import './lib/jsbn/sec.js';
|
||||
import './lib/esmangle.min.js';
|
||||
import './lib/blowfish.dojo.js';
|
||||
import 'jquery';
|
||||
import 'esprima';
|
||||
import './lib/jsrasign/ecdsa-modified-1.0.js';
|
||||
import './lib/jsrasign/asn1-1.0.js';
|
||||
import './lib/jsrasign/x509-1.1.js';
|
||||
import './lib/jsrasign/asn1hex-1.1.js';
|
||||
import './lib/jsrasign/dsa-modified-1.0.js';
|
||||
import './lib/jsrasign/crypto-1.1.js';
|
||||
import './lib/jsrasign/asn1x509-1.0.js';
|
||||
import './lib/jsrasign/base64x-1.1.js';
|
||||
import './lib/jsrasign/ecparam-1.0.js';
|
||||
import './lib/jsrasign/keyutil-1.0.js';
|
||||
import './lib/uas_parser.js';
|
||||
import './config/OperationConfig.js';
|
||||
import './config/Categories.js';
|
||||
import './views/html/InputWaiter.js';
|
||||
import './views/html/HTMLCategory.js';
|
||||
import './views/html/OperationsWaiter.js';
|
||||
import 'bootstrap-switch';
|
||||
import 'bootstrap/js/collapse';
|
||||
import 'bootstrap/js/modal';
|
||||
import 'bootstrap/js/tooltip';
|
||||
import 'bootstrap/js/popover';
|
||||
import './views/html/main.js';
|
||||
import './views/html/ControlsWaiter.js';
|
||||
import './views/html/HTMLOperation.js';
|
||||
import './views/html/OptionsWaiter.js';
|
||||
import './views/html/OutputWaiter.js';
|
||||
import './views/html/SeasonalWaiter.js';
|
||||
import './views/html/Manager.js';
|
||||
import './views/html/HighlighterWaiter.js';
|
||||
import './views/html/WindowWaiter.js';
|
||||
import './views/html/HTMLApp.js';
|
||||
import './views/html/HTMLIngredient.js';
|
||||
import './views/html/RecipeWaiter.js';
|
||||
import './operations/IP.js';
|
||||
import './operations/MAC.js';
|
||||
import './operations/Code.js';
|
||||
import './operations/Checksum.js';
|
||||
import './operations/CharEnc.js';
|
||||
import './operations/Extract.js';
|
||||
import './operations/URL.js';
|
||||
import './operations/FileType.js';
|
||||
import './operations/Cipher.js';
|
||||
import './operations/PublicKey.js';
|
||||
import './operations/Punycode.js';
|
||||
import './operations/OS.js';
|
||||
import './operations/Convert.js';
|
||||
import './operations/HTTP.js';
|
||||
import './operations/SeqUtils.js';
|
||||
import './operations/Rotate.js';
|
||||
import './operations/Unicode.js';
|
||||
import './operations/Endian.js';
|
||||
import './operations/Tidy.js';
|
||||
import './operations/StrUtils.js';
|
||||
import './operations/Numberwang.js';
|
||||
import './operations/HTML.js';
|
||||
import './operations/QuotedPrintable.js';
|
||||
import './operations/DateTime.js';
|
||||
import './operations/JS.js';
|
||||
import './operations/Base.js';
|
||||
import './operations/Hash.js';
|
||||
import './operations/Entropy.js';
|
||||
import './operations/Hexdump.js';
|
||||
import './operations/BitwiseOp.js';
|
||||
import './operations/ByteRepr.js';
|
||||
import './operations/UUID.js';
|
||||
import './operations/Base64.js';
|
||||
import './operations/Compress.js';
|
||||
|
|
|
@ -1052,4 +1052,4 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
/* }
|
||||
/******/ ])
|
||||
});
|
||||
;
|
||||
;
|
||||
|
|
|
@ -89,11 +89,11 @@ const ByteRepr = {
|
|||
else if (ordinal < 4294967296) padding = 8;
|
||||
else padding = 2;
|
||||
|
||||
if (padding > 2) app.options.attempt_highlight = false;
|
||||
if (padding > 2) window.app.options.attempt_highlight = false;
|
||||
|
||||
output += Utils.hex(ordinal, padding) + delim;
|
||||
} else {
|
||||
app.options.attempt_highlight = false;
|
||||
window.app.options.attempt_highlight = false;
|
||||
output += ordinal.toString(base) + delim;
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ const ByteRepr = {
|
|||
}
|
||||
|
||||
if (base != 16) {
|
||||
app.options.attempt_highlight = false;
|
||||
window.app.options.attempt_highlight = false;
|
||||
}
|
||||
|
||||
// Split into groups of 2 if the whole string is concatenated and
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import CryptoJS from 'crypto-js';
|
||||
import Utils from '../core/Utils';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Character encoding operations.
|
||||
*
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import CryptoJS from 'crypto-js';
|
||||
import blowfish from 'sladex-blowfish';
|
||||
import Utils from '../core/Utils';
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Utils from '../core/Utils';
|
||||
|
||||
|
||||
import { prettyPrintOne } from 'google-code-prettify/src/prettify';
|
||||
import vkbeautify from 'vkbeautify';
|
||||
|
||||
/**
|
||||
* Code operations.
|
||||
|
|
|
@ -1,6 +1,22 @@
|
|||
import Utils from '../core/Utils';
|
||||
import Uint8Array from 'core-js/modules/es6.typed.uint8-array';
|
||||
import rawdeflate from 'zlibjs/bin/rawdeflate.min';
|
||||
import rawinflate from 'zlibjs/bin/rawinflate.min';
|
||||
import zlibAndGzip from 'zlibjs/bin/zlib_and_gzip.min';
|
||||
import zip from 'zlibjs/bin/zip.min';
|
||||
import unzip from 'zlibjs/bin/unzip.min';
|
||||
import bzip2 from '../lib/bzip2';
|
||||
|
||||
const Zlib = {
|
||||
RawDeflate: rawdeflate.Zlib.RawDeflate,
|
||||
RawInflate: rawinflate.Zlib.RawInflate,
|
||||
Deflate: zlibAndGzip.Zlib.Deflate,
|
||||
Inflate: zlibAndGzip.Zlib.Inflate,
|
||||
Gzip: zlibAndGzip.Zlib.Gzip,
|
||||
Gunzip: zlibAndGzip.Zlib.Gunzip,
|
||||
Zip: zip.Zlib.Zip,
|
||||
Unzip: zip.Zlib.Unzip,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
import moment from 'moment';
|
||||
|
||||
/**
|
||||
* Date and time operations.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
import UAS_parser from '../lib/uas_parser';
|
||||
|
||||
/**
|
||||
* HTTP operations.
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import CryptoJS from 'crypto-js';
|
||||
import Utils from '../core/Utils';
|
||||
|
||||
import Checksum from './Checksum';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -94,7 +94,7 @@ const Hexdump = {
|
|||
const w = (width - 13) / 4;
|
||||
// w should be the specified width of the hexdump and therefore a round number
|
||||
if (Math.floor(w) != w || input.indexOf('\r') != -1 || output.indexOf(13) != -1) {
|
||||
app.options.attempt_highlight = false;
|
||||
window.app.options.attempt_highlight = false;
|
||||
}
|
||||
return output;
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { BigInteger } from 'jsrsasign';
|
||||
import Utils from '../core/Utils';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internet Protocol address operations.
|
||||
*
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
import esprima from 'esprima';
|
||||
import escodegen from 'escodegen';
|
||||
import esmangle from 'esmangle';
|
||||
|
||||
/**
|
||||
* JavaScript operations.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Utils from '../core/Utils';
|
||||
|
||||
import { X509, KJUR, ASN1HEX, BigInteger, KEYUTIL } from 'jsrsasign';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
import punycode from '../lib/punycode';
|
||||
|
||||
/**
|
||||
* Punycode operations.
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import Utils from '../core/Utils';
|
||||
import JsDiff from '../lib/diff';
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,8 +5,7 @@ import Chef from '../../core/Chef';
|
|||
import Manager from './Manager';
|
||||
import HTMLCategory from './HTMLCategory';
|
||||
import HTMLOperation from './HTMLOperation';
|
||||
|
||||
|
||||
import Split from 'split.js';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@ import OptionsWaiter from './OptionsWaiter';
|
|||
* @constructor
|
||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
||||
*/
|
||||
const Manager = function (app) {
|
||||
export default function Manager(app) {
|
||||
this.app = app;
|
||||
|
||||
// Define custom events
|
||||
|
@ -60,7 +60,7 @@ const Manager = function (app) {
|
|||
this.dynamic_handlers = {};
|
||||
|
||||
this.initialise_event_listeners();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import $ from 'jquery';
|
||||
import HTMLOperation from './HTMLOperation';
|
||||
import Sortable from '../../lib/Sortable';
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import $ from 'jquery';
|
||||
import HTMLOperation from './HTMLOperation';
|
||||
import Sortable from '../../lib/Sortable';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import moment from 'moment';
|
||||
import HTMLApp from './HTMLApp';
|
||||
import Categories from '../../config/Categories';
|
||||
import OperationConfig from '../../config/OperationConfig';
|
||||
|
||||
import Split from '../../lib/split';
|
||||
|
||||
/**
|
||||
* @author n1474335 [n1474335@gmail.com]
|
||||
|
@ -46,7 +47,7 @@ const main = function () {
|
|||
// Fix issues with browsers that don't support console.log()
|
||||
window.console = console || { log() {}, error() {} };
|
||||
|
||||
window.compile_time = moment.tz('<%= grunt.template.today() %>', 'ddd MMM D YYYY HH:mm:ss', 'UTC').valueOf();
|
||||
window.compile_message = '<%= compile_msg %>';
|
||||
window.compile_time = moment(COMPILE_TIME).valueOf();
|
||||
window.compile_message = '';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', main, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue