Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
c2d06cd
Export cyberchef error types to be used in consuming applications
d98762625 Sep 20, 2019
13aceb9
Update NodeRecipe so args is optional in bake config
d98762625 Sep 6, 2019
c8143e8
update function comments
d98762625 Sep 6, 2019
89ecc55
update node-forge version
cbeuw Sep 26, 2019
d0b8973
Update node API tests
cbeuw Sep 26, 2019
0b00888
Adapt AES "no IV" tests
cbeuw Sep 26, 2019
f066db7
Correct wrong DES and 3DES tests
cbeuw Sep 26, 2019
3dfe6de
9.7.3
n1474335 Oct 1, 2019
f10d729
Updated package-lock.json
n1474335 Oct 1, 2019
e440cd6
9.7.4
n1474335 Oct 1, 2019
63978d9
Added support for many more file types to file signature operations
n1474335 Oct 1, 2019
ae6cb97
9.7.5
n1474335 Oct 1, 2019
2d51815
Fixed webm signature
n1474335 Oct 1, 2019
aaa825e
9.7.6
n1474335 Oct 1, 2019
121a605
Added several more file signatures. The background magic button now h…
n1474335 Oct 4, 2019
21887cb
9.7.7
n1474335 Oct 4, 2019
9c66939
update gitignore
d98762625 Oct 7, 2019
78a0a09
Improved PE extractor to also carve the overlay if possible
n1474335 Oct 9, 2019
f7216a5
9.7.8
n1474335 Oct 9, 2019
3bb1bfd
9.7.9
n1474335 Oct 9, 2019
296a0f5
make async node tests actually fail when they fail. Update tests that…
d98762625 Oct 7, 2019
be0c2de
fix linting tests
d98762625 Oct 7, 2019
84b6a77
Base64 operations now throw a meaningful error if the alphabet is the…
n1474335 Oct 15, 2019
7ea5533
9.7.10
n1474335 Oct 15, 2019
67d0bda
Added test to ensure all operations are in a category. Added various …
n1474335 Oct 16, 2019
05d934b
9.7.11
n1474335 Oct 16, 2019
7971ea6
Removed Clippy
n1474335 Oct 16, 2019
df6a60a
Fixed some typos
n1474335 Oct 16, 2019
aee373b
9.7.12
n1474335 Oct 16, 2019
8be26ab
DES Encrypt/Decrypt - checks length of IV string
Oct 12, 2019
0868ab4
Added length check to Triple DES IVs
n1474335 Oct 16, 2019
05d728c
9.7.13
n1474335 Oct 16, 2019
1ad81c1
Remove duplicate bug report issue template
Xenonym Oct 12, 2019
13d6a65
Rename feature request issue template
Xenonym Oct 12, 2019
de67aab
Updated bug report template
n1474335 Oct 16, 2019
0ec1461
Fixed search box appaerance in Firefox
n1474335 Oct 16, 2019
f9e6fbb
Fixed building on Windows
BjoernAkAManf Oct 3, 2019
f97e94b
Tidied up chainCommands function in Gruntfile
n1474335 Oct 16, 2019
ac0b3d4
Utils: don't consume three backslashes at a time
wh0 Oct 7, 2019
4d1df67
Added tests for Utils.parseEscapedChars
n1474335 Oct 16, 2019
770ec68
9.7.14
n1474335 Oct 16, 2019
5fe5b21
PHP Deserialize NULL values converted to correctly
Oct 2, 2019
b630d5e
9.7.15
n1474335 Oct 16, 2019
c0f3e2a
DES no longer requires an IV in ECB mode
n1474335 Oct 18, 2019
18e92dc
9.7.16
n1474335 Oct 18, 2019
a2ffc75
Fork no longer appends its merge delimiter to the end of the output. …
n1474335 Oct 18, 2019
ae30d77
9.7.17
n1474335 Oct 18, 2019
8734eb8
Update README.md
n1474335 Oct 21, 2019
7130309
Update .travis.yml
n1474335 Oct 21, 2019
829875c
Update nightwatch and chromedriver
mattnotmitt Oct 26, 2019
68fa116
9.7.18
n1474335 Oct 27, 2019
1db932f
auto focus on search bar and made searchbar and text area tab-able
brian-digital-labs Oct 26, 2019
245de68
Added tabindex to ingredients
n1474335 Oct 27, 2019
6dcb1af
Theme configuration through url
rianadon Oct 24, 2019
c65e4fe
Document theme option in README
rianadon Oct 24, 2019
21dd64e
Improved theme selection. Added changeTheme method.
n1474335 Oct 27, 2019
dd2cc64
Updated README
n1474335 Oct 27, 2019
e09e576
Updated yara to v3.11.0 and openssl to v1.1.1d
mattnotmitt Oct 18, 2019
4fe70f3
Add YARA rules node test
mattnotmitt Oct 18, 2019
02712ff
Update libyara-wasm
mattnotmitt Oct 26, 2019
361fd8b
Dependency update
n1474335 Oct 27, 2019
f6d7307
9.7.19
n1474335 Oct 27, 2019
0703700
Improved Magic scoring slightly
n1474335 Oct 28, 2019
90c8a86
diff.mjs: Allows showing subtraction
gsilvapt Oct 29, 2019
2bc0bb1
diff.mjs: Fixes tests and adds default flag
gsilvapt Oct 29, 2019
6059371
9.7.20
n1474335 Oct 31, 2019
f1a1985
Argument hints are not tooltips instead of bmd-help elements
n1474335 Oct 31, 2019
6e1bd7e
Add Avro to JSON data format conversion
jarrodconnolly Oct 31, 2019
bd5a8be
Tidied up Avro to JSON operation
n1474335 Oct 31, 2019
2b0ec47
Updated CHANGELOG
n1474335 Oct 31, 2019
c975aea
9.8.0
n1474335 Oct 31, 2019
8b6c2a1
Added support for 109 more character encodings
n1474335 Nov 1, 2019
223297e
Updated CHANGELOG
n1474335 Nov 1, 2019
bc618d3
9.9.0
n1474335 Nov 1, 2019
12a36b5
Added custom lug option
VirtualColossus Mar 25, 2019
8722f1a
Added Lorenz SZ40/42 operation
VirtualColossus Mar 25, 2019
de3c4ab
Added Lorenz SZ40/42 Operation
VirtualColossus Mar 25, 2019
6e1dce8
Custom wheel settings
VirtualColossus Mar 25, 2019
33240cf
Fixed motor wheel movement
VirtualColossus Mar 27, 2019
2c8a201
Fixed p5 limitation
VirtualColossus Mar 27, 2019
bb162e4
Renamed option
VirtualColossus Mar 27, 2019
9e7f26f
Removed debug. Final testing
VirtualColossus Mar 30, 2019
450eddd
Fixed code spacing and formatting
VirtualColossus Mar 30, 2019
dab6911
Fixed code spacing and formatting
VirtualColossus Mar 30, 2019
941e222
Updated description
VirtualColossus Apr 1, 2019
076d140
Tidied run function, added some tests
VirtualColossus Oct 29, 2019
a54d06c
Mixed tabs & spaces
VirtualColossus Oct 29, 2019
075235c
Fixed bug using KT option, added tests
VirtualColossus Oct 31, 2019
3c2468b
removed duplicate test
VirtualColossus Oct 31, 2019
7f99172
Tidied up Lorenz operation and created new Bletchley module for WW2-e…
n1474335 Nov 6, 2019
1e46847
Updated CHANGELOG
n1474335 Nov 6, 2019
14e6a59
9.10.0
n1474335 Nov 6, 2019
50b59bc
Added link to Lorenz wiki article in operation description
n1474335 Nov 6, 2019
9b21060
Add file extensions which are mandatory for the latest Node 12.x.
dkarpo Nov 6, 2019
65e0b68
Fix #578 by refactoring and implementing the modes
cbeuw Sep 26, 2019
b485ffb
Remove base64 options
cbeuw Oct 1, 2019
725455b
Add invalid key length error message
cbeuw Oct 1, 2019
c09ac99
Remove unnecessary IV adaptation
cbeuw Oct 1, 2019
c368593
Add tests
cbeuw Oct 1, 2019
9feb39c
Adapt API tests to comply with length requirements
cbeuw Oct 1, 2019
6061f86
Add reference Python script
cbeuw Oct 1, 2019
40ec6aa
Tidied up Blowfish tests
n1474335 Nov 6, 2019
31dca96
Updated CHANGELOG
n1474335 Nov 6, 2019
a010167
9.11.0
n1474335 Nov 6, 2019
abb4a22
xz compression
n1073645 Nov 7, 2019
9b9a329
XZ compression
n1073645 Nov 7, 2019
3afc381
GIF extractor for GIF89a
n1073645 Nov 7, 2019
9321fc2
Tidied GIFextractor
n1073645 Nov 7, 2019
78af9f1
Comments for GIF.
n1073645 Nov 7, 2019
f120997
Bzip2 extractor completed
n1073645 Nov 8, 2019
e2057c6
Made GIF extractor more robust
n1073645 Nov 8, 2019
d44d5b0
Made GIF extractor more robust
n1073645 Nov 8, 2019
2a73ce9
Added WAV extractor.
n1073645 Nov 8, 2019
e0d3dce
Comment the WAV extractor.
n1073645 Nov 8, 2019
ddbed23
Comment the WAV extractor.
n1073645 Nov 8, 2019
500d241
SQLITE, EVT, EVTX and Signatures added
n1073645 Nov 8, 2019
6e77d14
Improved continueUntil, added consumeWhile and made the EVTX extracto…
n1073645 Nov 11, 2019
3e1ab51
Improved continueUntil, added consumeWhile and made the EVTX extracto…
n1073645 Nov 11, 2019
334ce32
Improved continueUntil, added consumeWhile and made the EVTX extracto…
n1073645 Nov 12, 2019
01544b8
Tidied up GIF and BZIP2 extractors
n1474335 Nov 8, 2019
ad893fa
9.11.1
n1474335 Nov 8, 2019
13743be
9.11.2
n1474335 Nov 8, 2019
1fa1adb
Improved continueUntil, added consumeWhile and made the EVTX extracto…
n1073645 Nov 12, 2019
36bc88c
Corrections
n1073645 Nov 13, 2019
a91b8d2
Small correction to continueWhile
n1073645 Nov 13, 2019
544c85c
Adjustment to consumeWhile
n1073645 Nov 13, 2019
de21b5c
Linting adjustments
n1073645 Nov 13, 2019
9912fc5
Linting changes
n1073645 Nov 14, 2019
2921833
Fixed bug in Base62 operations when using different alphabets
n1474335 Nov 13, 2019
5459976
9.11.3
n1474335 Nov 13, 2019
719e2b3
Tidied up consumeWhile and consumeUntil
n1474335 Nov 13, 2019
fe997e7
9.11.4
n1474335 Nov 13, 2019
5a623c1
Add missing filenames for Node 12 imports
janisozaur Nov 12, 2019
f2c9faf
9.11.5
n1474335 Nov 13, 2019
501c82f
Linting changes
n1073645 Nov 14, 2019
6da1ee2
Updated dependencies
n1474335 Nov 21, 2019
19a7a35
9.11.6
n1474335 Nov 21, 2019
3a9e13c
Fixed module detection issue. Closes #881
n1474335 Nov 21, 2019
8e07ce9
9.11.7
n1474335 Nov 21, 2019
ff01dff
Fixed typo in IPV6 alphabet
fjh1997 Nov 24, 2019
a3f9637
9.11.8
n1474335 Nov 27, 2019
018e9c1
DNS over HTTP: Fix "validate" argument
Mirclus Nov 25, 2019
d09a82e
9.11.9
n1474335 Nov 27, 2019
c7893d8
Added Tar and Mach-O extractors
n1073645 Nov 14, 2019
30498eb
Rectified magic bytes for MACHO extractor
n1073645 Nov 15, 2019
69a085d
Tidied up local and global variables for Mach-o
n1073645 Nov 15, 2019
2df0185
Made TAR extractor and MACHO signature more robust
n1073645 Nov 15, 2019
292b91b
Made TAR extractor and MACHO signature more robust
n1073645 Nov 15, 2019
02d8d48
Made TAR extractor and MACHO signature more robust
n1073645 Nov 15, 2019
2a3865a
Tidied up ExtractTAR
n1073645 Nov 18, 2019
2fdffcd
Tidied up ExtractTAR
n1073645 Nov 18, 2019
1114ec5
Improved comment in Tar extractor
n1474335 Nov 27, 2019
3ca1c22
9.11.10
n1474335 Nov 27, 2019
a80c8ae
Add special case for Magic (flow control) to node api
d98762625 Feb 12, 2020
c72e3b1
Added word separator code to Morse Code ops.
n1474335 Dec 2, 2019
df3ae06
9.11.11
n1474335 Dec 2, 2019
2d5624e
Fixed the magic bug where it wouldnt recommended operations that resu…
n1073645 Dec 13, 2019
fd72f00
Updated dependencies
n1474335 Dec 9, 2019
e4b8284
9.11.12
n1474335 Dec 9, 2019
fbdaed6
Fixed file overlay icon
n1474335 Dec 10, 2019
1317540
9.11.13
n1474335 Dec 10, 2019
ac16dde
Added 'Show all' button to output file overlay
n1474335 Dec 13, 2019
0f2d74d
Improved CR preservation logic - now based on entropy
n1474335 Dec 13, 2019
3dcfa78
Always display HTML outputs even if they are above the size threshold…
n1474335 Dec 13, 2019
58529ec
9.11.14
n1474335 Dec 13, 2019
7aff6ad
Fixed the magic bug where it wouldnt recommended operations that resu…
n1073645 Dec 13, 2019
447acd4
Operation elements now have decreasing z-index properties, meaning dr…
n1474335 Dec 16, 2019
c18ecb7
Added extractor for OLE2 and modified the PLIST one.
n1073645 Nov 21, 2019
dd17290
Comments for OLE2 extractor.
n1073645 Nov 21, 2019
7a46253
Comments for OLE2 extractor.
n1073645 Nov 21, 2019
8d2eeb7
Comments to OLE2 extractor
n1073645 Nov 21, 2019
fdd373e
Tidied up OLE2 extractor
n1474335 Dec 20, 2019
6bf5f2c
9.11.15
n1474335 Dec 20, 2019
831e5a6
Added ICO extractor
n1073645 Nov 25, 2019
a2157fc
From Base85 and From Braille signatures added for magic
n1073645 Nov 25, 2019
fe57592
Linting and tidy up
n1073645 Dec 5, 2019
6a3500b
Tidied up ICO extractor
n1474335 Dec 20, 2019
1cb377b
9.11.16
n1474335 Dec 20, 2019
54cd9f8
Sets the gzip comment bitfield
n1073645 Dec 16, 2019
3bb42a6
Gzip tests added
n1073645 Dec 17, 2019
c2f29bd
Remove unnecessary comments.
n1073645 Dec 17, 2019
b32023a
Added tests for gunzip.
n1073645 Dec 17, 2019
fe284d3
Linting on tests
n1073645 Dec 17, 2019
ec40358
9.11.17
n1474335 Dec 20, 2019
a680e8e
Tidy up
n1073645 Dec 20, 2019
1ed87a6
9.11.18
n1474335 Dec 20, 2019
d7c0d94
Linting
n1073645 Dec 20, 2019
f6f2cdf
Improve RTF detection
bartblaze Dec 11, 2019
3b06e45
9.11.19
n1474335 Dec 20, 2019
7b1c1f7
ToCaseInsensitiveRegex improvements
n1073645 Nov 18, 2019
7f82acf
ToCaseInsensitiveRegex improvements
n1073645 Nov 18, 2019
ce8c698
Combined two rules into one case insensitive rule
n1073645 Nov 20, 2019
1016f93
Replaced the .replaces in regex operation
n1073645 Nov 21, 2019
6e97390
Linting on regex operation
n1073645 Nov 21, 2019
ce4821f
Comments and linting for regex operation.
n1073645 Nov 21, 2019
f07bc1b
Added tests for regex operation and a slight bug fix
n1073645 Nov 22, 2019
bdf5d17
Linting for regex operation
n1073645 Nov 22, 2019
041accd
Tidied up Case Insensitive Regex ops
n1474335 Dec 20, 2019
4a2f45b
9.11.20
n1474335 Dec 20, 2019
788660c
Add operation to normalise unicode
matthieuxyz Nov 25, 2019
1e4ff3e
Tidied up Normalise Unicode operation
n1474335 Dec 20, 2019
a04cde2
Updated CHANGELOG
n1474335 Dec 20, 2019
2bd0a23
9.12.0
n1474335 Dec 20, 2019
7c3ee76
fix linting errors
d98762625 Feb 12, 2020
d6bc8c8
updating to use chromedriver 80.0.1 as travis stable is now using chr…
d98762625 Feb 12, 2020
09bfb12
Edit node magic tests to be less fragile
d98762625 Feb 21, 2020
a62b4b1
Merge branch 'master' of github.com:gchq/CyberChef into allow-magic
d98762625 Feb 21, 2020
6aa4020
remove errors after rebase
d98762625 Feb 21, 2020
0a3bea7
Merge branch 'master' of github.com:gchq/CyberChef into allow-magic
d98762625 Mar 27, 2020
00b98b8
Merge branch 'master' of github.com:gchq/CyberChef into allow-magic
d98762625 Apr 3, 2020
48b0783
Update magic op tests to reflect updated lib. Added a bit more info t…
d98762625 Apr 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 20 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/core/lib/FileSignatures.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3359,7 +3359,6 @@ export function extractSQLITE(bytes, offset) {

// Move to the end of all the pages.
stream.moveTo(pageSize*numPages);

return stream.carve();
}

Expand Down
23 changes: 23 additions & 0 deletions src/node/api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,30 @@ export function _wrap(OpClass) {
*/
wrapped = async (input, args=null) => {
const {transformedInput, transformedArgs} = prepareOp(opInstance, input, args);

// SPECIAL CASE for Magic.
if (opInstance.flowControl) {
opInstance.ingValues = transformedArgs;

const state = {
"progress": 0,
"dish": ensureIsDish(transformedInput),
"opList": [opInstance],
"numJumps": 0,
"numRegisters": 0,
"forkOffset": 0
};

const updatedState = await opInstance.run(state);

return new NodeDish({
value: updatedState.dish.value,
type: opInstance.outputType,
});
}

const result = await opInstance.run(transformedInput, transformedArgs);

return new NodeDish({
value: result,
type: opInstance.outputType,
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/TestRegister.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class TestRegister {
result.status = "passing";
} catch (e) {
result.status = "erroring";
result.output = e.message;
result.output = `${e.message}\nError: ${e.stack}`;
}

testResults.push(result);
Expand Down
Loading