Edit Anything

Professional text and hex editing
with Binary Templates technology.






010 Editor - Script Repository

The following is a repository of 010 Editor Script files that have been submitted. For information on how to install these files see the Installing page.

Sort by: Category | Alphabetic | Newest


Template File

Description

More Info













Binary





CountBlocks.1sc
This script finds blocks of identical characters within the file or within the selection. Results are stored in bookmarks and printed in the output pane. Block size is defined by the variable LIMIT.


More Info...








DecodeBase64.1sc
Decode the selected bytes or the entire file from Base64 code into binary. Base64 is a code used in email attachments or similar purposes, for to transfer binary data, where only ASCII data can be transmitted. In each character are placed 6 bits. This script extracts from the characters the least significant 6 bits and puts it together to whole bytes. Note that some of this functionality is now built directly into 010 Editor.


More Info...








EncodeBase64.1sc
Encode bytes to Base64. Note this functionality is now included in 010 Editor using 'Copy > Copy As > Copy as Base64' or 'File > Export Hex'.


More Info...








Entropy.1sc
Displays the entropy value for a file or selection. The more random the file looks, the more the entropy value approaches 8.0 (its maximum value).


More Info...








Fuzzer.1sc
Fuzz a file by overwriting random locations.


More Info...








Interleave.1sc
Interleaves the bytes of two files together. See Uninterleave.1sc to separate the interleaved file.


More Info...








JoinFile.1sc
Reassembles files that were split with the SplitFile.1sc script. Open the first file in the file sequence with the file dialog that is displayed. The file name must contain numbers (e.g. 'c:\temp\file.bmp.001'). The joined file will be created as a new file.


More Info...








NibblesReverse.1sc
Reverse nibbles of data. Eg. DF C2 A1 --->to ---> FD 2C 1A.


More Info...








Randomize.1sc
Assigns a set of random byte values to a file. If a selection is made only the selected bytes are modified, otherwise the whole file is modified. The user can enter a minimum and maximum value to generate.


More Info...








Rot-13.1sc
ROT-13 decoder/encoder of the selected block.


More Info...








SplitFile.1sc
Split a large file into a number of smaller files. The user must specify the number of bytes per created file and also provide the filename of the first file. Note that the filename must contain numbers (e.g. 'c:\temp\file.bmp.001' or 'c:\temp\file0000.dat').


More Info...








StringPlus.1sc
Add a number to each character of the selected string or whole file.


More Info...








Uninterleave.1sc
When given an interleaved file, this script creates two files by separating the interleaved data. See Interleave.1sc for the reverse operation.


More Info...








XORSelection.1sc
Xors the current selection with a set of bytes, which causes the bytes to be encoded so they cannot be read by a human. Run the Xor again on the encoded selection to decode the data.


More Info...








XORSelectionHex.1sc
Similar to XORSelection.1sc but you can enter the XOR key in HEX style.


More Info...







Bookmarks





FindBookmarksNearCursor.1sc
Finds the nearest bookmarks to the cursor. Places the cursor at the previous bookmark and optionally selects bytes to the next bookmark.


More Info...








ImportBookmarksCSV.1sc
Imports a set of bookmarks from a CSV file.


More Info...







Checksum





BatchChecksum.1sc
Demonstrates how to batch process a set of files. Takes as input a text file containing a list of file names, one per line. Opens each file in the list, performs processing on the file (in this case does an MD5 checksum) and then closes the file.


More Info...







Clipboard





CopyAsAsm.1sc
Copies the current selection to the clipboard as hex bytes in a format suitable for inclusion in an assembly program. If no selection is made the whole file is copied.


More Info...








CopyAsBinary.1sc
Copies the currently selected bytes to the clipboard in binary format. Note that this functionality is now built into 010 Editor using 'Copy > Copy As > Copy as Binary Text'.


More Info...








CopyAsCpp.1sc
Copies the selection to the clipboard as hex bytes suitable for inclusion in an C/C++ program. If no selection is made the whole file is copied. Note that this functionality is now built into 010 Editor using 'Copy > Copy As > Copy as C Code'.


More Info...








CopyAsPascal.1sc
Copy selection or entire file to the clipboard as Pascal code. The text copied into the clipboard contains a Pascal constant definition, followed by the data as Hex bytes in Pascal notation.


More Info...








CopyAsPython.1sc
Copy selection or entire file as Python code. Counts number of bytes and the Python Data Array is also copied to the Clipboard.


More Info...








MultiplePaste.1sc
Executes a paste operation a number of times. The user can enter the number of times to paste in an input box.


More Info...







Compare





CmpLines.1sc
Compares the current text line with the next line and sets bookmarks at characters which differ, marking them red.


More Info...








Patchmaker.1sc
Generate a 010 script to patch a file based on differences. The files must be the same size.


More Info...







Format Specific





InsertTiffTag.1sc
Inserts the specified tag into a TIFF image, updating the necessary attributes and offsets accordingly.


More Info...







Internet





Js-unicode-escape.1sc
%u encode the selected bytes (little endian), similar to JavaScript's escape function.


More Info...








Js-unicode-unescape.1sc
Decodes a %u encoding, similar to JavaScript's unescape function.


More Info...








URLDecoder.1sc
Convert %xx in a URL to a char. Eg. AAA%3DCCC => AAA=CCC.


More Info...







Search





DumpStrings.1sc
List all ASCII and Unicode strings in a file. Note that this functionality is now built into 010 Editor using 'Search > Find Strings'.


More Info...








FindAllClipboardBytes.1sc
Find all occurrences of bytes stored in the clipboard. Creates bookmarks for all occurrences found.


More Info...








FindClipboardBytes.1sc
Find the first occurrence of the bytes stored in the clipboard. The bytes found are selected and the cursor is positioned after or before the selection according to the search direction.


More Info...








FindLongLines.1sc
Prints out all text lines in a file that are longer than a certain tolerance.


More Info...








Find_Diff_Down.1sc
Finds the first byte with a different value than the current byte. Allows to skip large blocks filled with the same value. Search direction is down.


More Info...








Find_Diff_Down_RE.1sc
Finds the first byte which differs from the byte under current cursor position. Allows to skip large blocks filled with the same value. This version searches down and uses regular expressions.


More Info...








Find_Diff_Up.1sc
Finds the first byte with a different value than the current byte. Allows skipping large blocks filled with the same byte. Search direction is up.


More Info...








Find_Diff_Up_RE.1sc
Finds the first byte with a different value than the current byte. Allows skipping large blocks filled with the same byte. Search direction is up and uses regular expressions.


More Info...








ImportFindAllCSV.1sc
Imports a CSV file exported from a Find All operation and creates bookmarks for each occurrence.


More Info...








RecordSearch.1sc
Treats a file as a set of blocks and searches for a pattern at the beginning of each block. Could be used, for example, to search for a pattern at the beginning of each disk sector.


More Info...








SectorSearch.1sc
Searches at the start of each sector for a value. Moves the cursor to the next occurrence every time the script is run.


More Info...








StringReplace.1sc
Utility function for searching for a value within a string and replacing it with another value.


More Info...








XORStringBruteForce.1sc
Brute forces 1-byte XOR keys looking for a string. Default is part of PE header.


More Info...







Text





CreateMassData.1sc
Creates files with up to 1 million characters for the use as input in data fields to check the data boundaries.


More Info...








CSVDeleteColumn.1sc
Deletes one column of data in a CSV file. The column to delete is entered with an input box (1 is the first column).


More Info...








DelColumn.1sc
Deletes all columns in a text file between the start and end of the selection.


More Info...








DeleteEmptyLines.1sc
Deletes all empty lines in the selection. If no lines are selected all empty lines in the file are deleted.


More Info...








EbookClean.1sc
Erase repeated BLANK_LINES, BLANKs or lines including selected texts in files.


More Info...








IsASCII.1sc
Determines if the currently open file contains only ASCII characters (byte range 0..127). If a non-ASCII byte is found, the cursor is moved to the first byte.


More Info...








SelToLowerASCII.1sc
Sets all letters in the selection to lower case. Note this functionality is now built into 010 Editor using 'Format > Lowercase'.


More Info...








SelToULowerASCII.1sc
Sets the first letter of the selection to upper case and all following letters to lower case. Note this functionality is now built into 010 Editor using 'Format > Capitalize'.


More Info...








SelToUpperASCII.1sc
Sets all letters in the selection to upper case. Note this functionality is now built into 010 Editor using 'Format > Uppercase'.


More Info...








SortLines.1sc
Sort (and optionally remove duplicate) lines in a text file in ascending order.


More Info...








StringReverse.1sc
Utility for reversing a string.


More Info...








sWeEtSCApE.1sc
Creates all upper/lower case combinations of a string and writes them to a file.


More Info...







Utility





ArrayOfStrings.1sc
Contains utility functions for packing or unpacking a set of strings into an array. Includes an example.


More Info...








BinToI_IToBin.1sc
Functions for converting from a binary string to an integer and vise versa. Note that 010 Editor v4 now contains the built-in functions IntToBinaryStr and BinaryStrToInt.


More Info...








ConvertBytesToInts.1sc
Conversion of an array of bytes to integer types (short, int, int64).


More Info...








GetFileIndexOrName.1sc
Utility functions to extract the file name from a file path, or to look up a file index from a file name. Note that 010 Editor now contains the built-in functions FileNameGetBase and FindOpenFile.


More Info...








GUID.1sc
Formats a 16 byte sequence as a Microsoft GUID, prints the result and then copies the result to the clipboard.


More Info...








HexToAsciiString.1sc
Convert hex data to ascii string. Eg. 01020304 -> "\x01\x02\x03\x04".


More Info...








ParseCSV.1sc
A set of functions to help parsing CSV data with an example. Other separator than "," can be specified.


More Info...








QuickSort.1sc
Demonstrates how to do a quicksort on an array.


More Info...







Please feel free to submit any scripts you have that may be useful to other people and please review the terms and conditions for using this repository.





010 Editor Menu


Latest News


Download
- 010 Editor
v7.0.2
is now available.

Download it now!
What's New in 7.0.2?


Other Products


Articles


Newsletter
Join our newsletter to receive tips and tricks on hex editing, special offers, and news from SweetScape Software Inc.

Sign-up Now...