Commit Graph

318 Commits

Author SHA1 Message Date
toby ee25df0c28 Add desc and fix error message for "Extract EXIF" 2017-05-08 12:48:43 -04:00
Toby Lorne 6bf06a9629 Merge branch 'master' into feature-ebcdic 2017-05-07 18:21:30 -04:00
toby 3c15bd9e29 Add "{To,From} EBCDIC" operations
This adds operations
+ "To EBCDIC"
+ "From EBCDIC"

This makes use of the npm codepage package but it is not installed as a
dependency.

Instead I used the `make.sh` script to export pages 37 and 500.

To my knowledge there is no way currently to only import individual code pages
from the npm package (hence the included script).

If we were to import the package directly it increases the build size by
2.7MB.
2017-05-07 18:07:56 -04:00
toby 71796e3dbf Merge remote-tracking branch 'upstream/master' into feature-exif 2017-05-06 23:38:04 -04:00
n1474335 280f1ee2df Dark theme tweaks and improvements 2017-05-07 01:13:47 +01:00
n1474335 0dc72d8301 Merged master 2017-05-06 16:22:25 +01:00
n1474335 6abd10f9e2 Tidying codebase 2017-05-06 16:12:09 +01:00
n1474335 5efe9bd91d Merge branch 'prefer-const' of https://github.com/graingert/CyberChef into graingert-prefer-const 2017-05-06 14:11:38 +01:00
n1474335 e9c3bebfff Fixed lint error 2017-05-06 13:59:33 +01:00
n1474335 03fc22d3da Merge conflicts 2017-05-06 13:47:26 +01:00
n1474335 76204f5f47 Fixed lint errors 2017-05-05 16:03:25 +00:00
n1474335 b68adbd9a8 Merge branch 'master' into bug-x509-sig 2017-05-05 16:02:12 +00:00
n1474335 4f844ea837 Merge branch 'master' into feature-key-derivation-hashers 2017-05-05 15:57:42 +00:00
n1474335 508a371175 Fixed offset checker array initialisation 2017-05-05 15:54:59 +00:00
n1474335 b010fd88e8 Fix X.509 signature breakout bug 2017-05-05 15:42:24 +00:00
n1474335 66a93b81c6 Added hasher argument to PBKDF2 and EVPKDF operations. 2017-05-05 15:38:38 +00:00
toby 274e1139fa Remove debounce from Utils 2017-05-03 10:43:30 -04:00
toby 6122e33f4f Removed debounced autobake & stop disabling input 2017-05-03 10:35:15 -04:00
Thomas Grainger b365ce3195
fix the first 100 prefer-const errors 2017-05-03 00:41:01 +01:00
Thomas Grainger 0a3233d289
move spider images to .json file 2017-05-03 00:41:01 +01:00
Thomas Grainger 15aea9e9ea
auto-fix prefer-const 2017-05-03 00:41:01 +01:00
Thomas Grainger 5b03a84be8
use .fill to initialise Arrays 2017-05-02 23:05:04 +01:00
n1474335 80cdf0c014 Merge conflict 2017-05-02 23:03:28 +01:00
n1474335 463b06f508 Consistency modifications 2017-05-02 22:53:57 +01:00
n1474335 d3377d56b4 Merge branch 'no-var-rule' of https://github.com/graingert/CyberChef into graingert-no-var-rule 2017-05-02 22:28:17 +01:00
n1474335 c7611fbc05 Merge pull request #123 from gchq/feature-comment
Feature: 'Comment' operation
2017-05-02 21:05:58 +01:00
n1474335 d1d394eec7 Fix search-results layout bug. 2017-05-02 20:56:57 +01:00
toby 98bc68c2bf Update descriptions to explain context awareness 2017-05-02 12:17:43 -04:00
toby 116c0680a2 Make camel,etc smart and add tests 2017-05-02 11:51:33 -04:00
toby 1b8a25ec88 Add "Extract EXIF" operation 2017-04-29 16:06:16 -04:00
toby d5def01a9d Add operations To {Snake,Camel,Kebab} case 2017-04-29 13:42:07 -04:00
Thomas Grainger ee07b72415
move eslintrc up a directory 2017-04-28 16:53:38 +01:00
Thomas Grainger d05543db30
manual fixes 2017-04-28 16:45:02 +01:00
Thomas Grainger b33f73ac9a
autofix no-var 2017-04-28 16:45:00 +01:00
n1474335 8096fd20a7 Fixed lint errors 2017-04-27 13:12:45 +00:00
n1474335 addd45ae8e Added 'Comment' operation for annotating the recipe 2017-04-27 13:05:29 +00:00
n1474335 e4c5c4a901 Fixed bug where popovers on operations stopped working after the operation was dragged into the recipe. 2017-04-27 09:10:18 +00:00
n1474335 39f36c9184 Removed excess auto-baking when an operation is added to the recipe. Fixes #120. 2017-04-26 11:05:44 +00:00
n1474335 2e4076bb75 Added option to change the theme. 2017-04-25 00:21:38 +01:00
n1474335 d71ac2e894 Moved from Sass to CSS with custom properties, allowing for dynamic theme changes. 2017-04-24 23:59:35 +01:00
n1474335 4375a151dd BUGFIX #119: Recipe names are now correctly escaped. 2017-04-24 11:53:55 +00:00
toby 50784f2600 Debounce autobake in the web app.
Added debounce with guidance from the underscore.js implementation:
e944e0275a/underscore.js (L880)
2017-04-23 13:41:28 -04:00
toby 21c0fed833 Fix bug: baking error did not reset baking status 2017-04-23 13:14:59 -04:00
n1474335 d081ff745d Added Head and Tail to Utils category and replaced 'AllBut' argument functionality with support for negative values of n. 2017-04-23 18:05:00 +01:00
n1474335 e3f41fea9c Developing a dark theme. 2017-04-23 17:09:12 +01:00
toby dea214bd2e Add Head and Tail operations 2017-04-21 23:10:34 -04:00
toby a13e2468db Added UI loading indications to the HTML app 2017-04-21 20:04:12 -04:00
toby 9f60dc3dd6 Change ecmaVersion to 8 to make eslint happy 2017-04-21 17:56:16 -04:00
toby c39622ed1e Add support for async ops using async/await 2017-04-21 17:48:42 -04:00
n1474335 a4d93f23d6 Added preloader to hide elements before they are correctly rendered 2017-04-15 20:46:57 +01:00
n1474335 e0e5670d0e Styles rewritten in a modular format with themable properties stored in variables. 2017-04-13 17:59:37 +01:00
n1474335 bf91352fce Modified comments in Code.js 2017-04-11 14:41:30 +00:00
n1474335 a840504b3d Merge branch 'master' of https://github.com/FloatingGhost/CyberChef into FloatingGhost-master 2017-04-11 14:38:29 +00:00
n1474335 e120422b05 Styles now imported through Sass. Less removed. 2017-04-09 14:06:59 +01:00
n1474335 d9006d6e37 Merge pull request #110 from artemisbot/feature/accessibility
Made changes to fix accessibility errors
2017-04-07 23:10:42 +01:00
n1474335 2a07999db6 BUGFIX #98: Auto-Bake now triggers when operations are re-ordered. 2017-04-07 22:23:23 +01:00
n1474335 abd05f5105 Fixed popover bug in search and removed popovers when favourites are dragged out. 2017-04-07 21:50:53 +01:00
Matt C 44d2e100bd Made changes to fix accessibility errors
Still some warnings and notices, but they are inconsequential.
2017-04-07 17:00:32 +01:00
Hannah Ward 8d9c114acd
fix: Re-add comments in code replacements 2017-04-07 13:59:00 +01:00
Hannah Ward bce0950498
chg: Removed redundant code = code.replace 2017-04-06 12:43:37 +01:00
Hannah Ward dcac64fb9a
chg: Compress repeated replaces 2017-04-06 12:31:44 +01:00
n1474335 5f85bff315 Fixed tests for octal operations. 2017-04-05 22:00:06 +01:00
Matt C a36c9ca339 Merge remote-tracking branch 'upstream/master' into feature-octal 2017-03-31 18:44:38 +00:00
n1474335 706423462d 'From Base' operation now supports numbers with fractional parts. 2017-03-31 16:00:23 +00:00
n1474335 b9766a5041 Configured Travis CI to deploy to GitHub Pages 2017-03-30 20:17:40 +01:00
n1474335 6d396dbb9e Calls to window and document in src/core/ no longer break non-browser environments 2017-03-30 00:47:51 +01:00
n1474335 720b7a3e3f Removed stats.txt functionality as it doesn't add much. 2017-03-29 21:51:42 +01:00
Matt C 7ab6c88774 Made fixes so that tests might work 2017-03-28 16:21:57 +00:00
Matt C 96e40a6479 Made requested changes. 2017-03-27 20:30:32 +00:00
Matt C 497824ff21 Merge branch 'master' into feature-octal 2017-03-27 18:50:42 +00:00
n1474335 06d4002c6b Fixed CanvasComponents not being available to operation output code. 2017-03-27 19:43:50 +01:00
n1474335 ed21dff88f Fixed 'Diff' imports and added test 2017-03-27 19:39:04 +01:00
n1474335 559e32a16a Merged upstream master 2017-03-27 18:41:23 +01:00
n1474335 97d41fd50a Restructured and fixed inliner. 2017-03-27 16:08:36 +01:00
n1474335 d37bc4ab08 Fixed node imports. 2017-03-25 13:56:46 +00:00
n1474335 c75ebcf001 Fixed tests and brought test module naming in line with conventions. 2017-03-25 13:32:35 +00:00
n1474335 9bd11dc7ad UglifyJS now invoked by webpack instead of Grunt 2017-03-23 18:41:36 +00:00
n1474335 131b3a83c1 Converted all modules from CommonJS to ES6 2017-03-23 17:52:20 +00:00
n1474335 0f2a5014be Restructured src files into a more logical hierarchy 2017-03-23 00:33:40 +00:00
Ashley Ward 72e3c6fc24 Fixed an issue with Base32 encoding 2017-03-22 22:12:18 +00:00
n1474335 c9910a8ddb Banners and template options added through webpack 2017-03-22 16:55:21 +00:00
n1474335 df15826912 CSS now packaged with webpack instead of Grunt 2017-03-22 16:12:53 +00:00
n1474335 fce13130cd Removed snowfall feature 2017-03-22 00:05:40 +00:00
n1474335 1800bad61d Added babel-preset-env with browser version targets and babel-polyfill 2017-03-21 23:56:46 +00:00
n1474335 87d6459074 Updated production build 2017-03-21 23:10:18 +00:00
n1474335 69f6769d52 Removed jQuery and reference to window object from Utils code. 2017-03-21 23:06:51 +00:00
n1474335 885fbe13ac Set up Grunt tasks to build web and Node versions of CyberChef using webpack 2017-03-21 22:41:44 +00:00
Matt C b8ce10ae96 Adds Octal functions
- To Octal
- From Octal
2017-03-14 21:26:10 +00:00
toby 78abacdadc Add download button for displayFilesAsHTML files
+ Added bytes attribute for "file objects" in untar and unzip
+ Added download button on files displayed by displayFilesAsHTML
2017-03-12 14:03:40 -04:00
n1474335 94ea086e05 BUGFIX: "Strip HTTP header" operation now functions correctly. 2017-03-09 17:16:47 +00:00
n1474335 b93c183772 Added EUI-64 detection to 'Parse IPv6 address' 2017-03-07 13:36:26 +00:00
n1474335 99f306dc18 Removed unused standalone libraries and fixed a few outstanding imports. 2017-03-07 11:27:36 +00:00
n1474335 a21e0e546b Converted the majority of the core and operations to use CommonJS module syntax. 2017-03-06 12:45:51 +00:00
n1474335 14e9ea699a Jump operations now jump backwards in a more logical way. 2017-03-04 10:57:14 +00:00
n1474335 a459f542af Merge pull request #85 from Manishearth/crypt
Add UNIX crypt base64 format
2017-03-02 14:09:59 +00:00
n1474335 fc9c2d1f6e BUGFIX: HTML output which is then converted to a regular string (for a standard operation) still contained escaped HTML chars. 2017-03-01 21:33:28 +00:00
n1474335 70603be5ab BUGFIX: Jump operations skipping an operation once maxJumps reached. 2017-03-01 21:20:42 +00:00
Manish Goregaokar 83791e2ea7
Add crypt base64 format 2017-03-01 09:44:35 -08:00
n1474335 d7e396c04f Tweaks and restructuring of test runner. 2017-02-28 17:08:36 +00:00
n1474335 6e5ea5d75f Merge branch 'tests' of https://github.com/tlwr/CyberChef into tlwr-tests 2017-02-28 13:05:03 +00:00
toby 3a90244af0 Convert test runner to headless 2017-02-24 18:50:17 -05:00
toby 04df7a51d2 Handle case when expected error and receives none 2017-02-23 14:30:19 -05:00
toby 3d89881373 Fix typo in TestRegister.js 2017-02-23 14:04:50 -05:00
toby d680b4a06f Merge remote-tracking branch 'upstream/master' into tests 2017-02-23 14:04:30 -05:00
toby 500522bdeb Initial work on in-browser test runner
Run `grunt test` and open up the `build/test/index.html` to run the
tests.
2017-02-23 13:59:58 -05:00
n1474335 d6cebe55ab Merge branch 'master' into feature-ipv4header 2017-02-21 19:52:36 +00:00
n1474335 be07fe81ed Completed 'Parse IPv4 header' operation candidate. 2017-02-21 19:40:19 +00:00
n1474335 6505c4e6d8 Built new production version to incorporate Morse Code improvements. 2017-02-18 16:15:42 +00:00
n1474335 fa20939dd4 Added initial functionality for 'Parse IPv4 header' operation. 2017-02-18 16:13:19 +00:00
n1474335 6bb6363b0f Merge pull request #74 from misterRaven/master
Morse code improvements
2017-02-18 16:10:58 +00:00
n1474335 92bd2c921e Built production version with Base58 and NetBIOS operations. Closes #48. 2017-02-13 18:12:55 +00:00
n1474335 701ea5890d Merge pull request #78 from tlwr/master
Base58 operations
2017-02-13 17:50:38 +00:00
n1474335 f8744df907 Merge pull request #75 from gchq/feature-netbios
'Encode NetBIOS Name' and 'Decode NetBIOS Name' operations
2017-02-13 17:49:32 +00:00
n1474335 edb418a3fc BUGFIX: CanvasComponents naming conventions updated to match main project settings. Fixes 'Entropy' and 'Frequency distribution' operations. 2017-02-13 17:48:24 +00:00
toby 11e972ff26 Change description in Base58.js 2017-02-10 13:45:20 -05:00
toby 9125d74fa2 Merge branch 'base58' 2017-02-10 13:34:21 -05:00
toby e26e6a4961 Add "To Base58" and "From Base58" operations 2017-02-10 13:31:59 -05:00
n1474335 f76316eae3 Fixed double encoding of HTML entities by improving Utils.escapeHTML. Fixes #76. 2017-02-10 16:39:32 +00:00
n1474335 0e2ce2bee2 Rebuilt production version to include tar and untar ops. 2017-02-10 12:21:51 +00:00
n1474335 ee5aea5443 Added 'Encode NetBIOS Name' and 'Decode NetBIOS Name' operations 2017-02-10 11:57:23 +00:00
toby 0fd2550190 Improve and fix examples for padBytesRight 2017-02-09 13:37:30 -05:00
toby 0eef1d972a Add padBytesRight author & displayFilesAsHTML desc 2017-02-09 13:22:27 -05:00
toby 6cc5806486 Remove obsolete line from displayFilesAsHTML 2017-02-09 13:20:44 -05:00
toby bbc93af2ae Remove padLeft & move zeroFillBytes to Utils
+ `padLeft was changed to use `Utils.padLeft`
+ Moved `zeroFillBytes` to `Utils.padBytesRight`
2017-02-09 13:07:46 -05:00
toby 037540c9a8 Fix description for Tar operation
Changed "unpack" to "pack"
2017-02-09 13:04:46 -05:00
toby 3bd585cabf Update Unzip to use displayFilesAsHTML 2017-02-09 12:00:36 -05:00
toby 6b8ab2bf16 Add file count to displayFilesAsHTML 2017-02-09 11:59:47 -05:00
toby c67957da81 Code styling changes to pass grunt prod 2017-02-09 11:38:20 -05:00
toby a4283554cf Merge remote-tracking branch 'upstream/master' 2017-02-09 11:35:14 -05:00
toby 616cebff5a Fix "A lone zero block at ##" bug
Before, the tar operation would write the incorrect number of bytes to
indicate the end of the tar file. It should have been 2 blocks of 512
ascii zeros, but it would write 529 zeros instead.

The new implementation of `writeEndBlocks` is nicer and we can reuse
code with the `addEmptyBlock` function.
2017-02-09 11:25:09 -05:00
n1474335 e803d208e8 Updated eslint whitespace rules 2017-02-09 15:09:33 +00:00
n1474335 b2b60f0454 Fixed conflicts. 2017-02-09 14:17:44 +00:00
misterRaven 1cc7835a8d FromMorse operation extended to treat dashes & hyphens as long signals 2017-02-09 17:29:12 +07:00
misterRaven 991bb887ae Punctuation symbols for Morse code 2017-02-09 17:20:06 +07:00
toby d5796706e4 Change Tar block padding to 2 blocks 2017-02-08 23:52:59 -05:00
toby 1653cbf817 Fix JSDoc return type for displayFilesAsHTML 2017-02-08 23:36:09 -05:00
toby 442dd560c0 Implement the Tar operation 2017-02-08 23:35:54 -05:00
toby 281a83bbc3 Add author to runTar, runUntar, displayFilesAsHTML 2017-02-08 12:51:54 -05:00
toby 6f077a9c50 Rename to runTar, runUntar, displayFilesAsHTML 2017-02-08 12:51:18 -05:00
Matt C a153246191 Tidied operations to match conventions 2017-02-08 17:29:50 +00:00
Matt C 2750be36da Adds Affine/Atbash Cipher encryption/decryption
- 3 new operations - Affine Encode, Decode and Atbash Cipher
- Added 3 new utils - mod, GCD and modInv
2017-02-08 11:51:37 +00:00
toby e809deb914 Initial functionality of untar
+ Added skeleton "Tar" operation with no functionality
+ Added intial functionality of "Untar"
+ Added a function in `Utils` `HTMLFormat` to generalize HTML generation
of files and folders (could later be used in Unzip).

I had a brief search for a small library for tar and untar operations,
however they were mostly for node (if anyone finds one we can drop in
that would be appreciated) or unmaintained. Luckily the tar spec is
relatively easy to understand just from Wikipedia.
2017-02-08 00:05:52 -05:00
n1474335 4f0d153e73 Added 'Report a bug' tab to the 'About/Support' pane. 2017-02-07 20:31:15 +00:00
n1474335 35d74980a1 BUGFIX #70: Updated 'CSS selector' operation to use vanilla JS instead of jQuery, also fixing root element selection issues. 2017-02-07 15:04:10 +00:00
n1474335 553d9945ce Added forward and backward slashes to the delimiter options for the Morse Code operations. Closes #66. 2017-02-07 14:37:26 +00:00
n1474335 8f69ee441e Tidied Morse Code operations to match the project conventions. 2017-02-07 14:20:34 +00:00
Matt C a30babc682 Fixes required changes
gchq/CyberChef#67
2017-02-04 00:17:04 +00:00
Matt C ae8eea543c Merged branch master into morse-fixes 2017-02-04 00:13:03 +00:00
Matt C 02fce74a65 Merge remote-tracking branch 'refs/remotes/upstream/master' 2017-02-04 00:01:44 +00:00
toby b9f1cf968f Make translateTo faster and aware of line breaks
Speed improvement is due to using a function regex instead of multiple
find/replace calls.
2017-02-03 18:34:46 -05:00