Edit Anything

Professional text and hex editing
with Binary Templates technology.






010 Editor - Script Archive

The following is a repository of 010 Editor Script files that have been submitted. Please feel free to submit any scripts you have that may be useful to other people. Please review the terms and conditions for using this script archive.


Script File

Description










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







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.







BinToI_IToBin.1sc
Functions for converting from a binary string to an integer and vise versa.







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







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







CopyAsAsm.1sc
Copies the current selection to the clipboard as hex bytes in a format suitable for inclusion in an assembly program.







CopyAsBinary.1sc
Copies the currently selected bytes to the clipboard in binary format.







CopyAsCpp.1sc
Copies the selection to the clipboard as hex bytes suitable for inclusion in an C/C++ program.







CopyAsPascal.1sc
010 Editor can copy bytes from a file to the clipboard as C code or as Java code. This script allows additionally to copy as Pascal code. The text copied into the clipboard contains a Pascal constant definition, followed by the data as Hex bytes in Pascal notation.







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.







Count_Blocks.1sc
Identifies blocks of identical bytes within a file.







CreateMassData.1sc
Create mass data files to check input field boundaries.







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.







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







DumpStrings.1sc
List all ASCII and Unicode strings in a file.







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







EncodeBase64.1sc
Encode bytes to Base64.







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).







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







Find_Diff_Down.1sc
Finds the first byte with a different value than the current byte. Search direction is down.







Find_Diff_Down_RE.1sc
Similar to Find_Diff_Down.1sc except uses regular expressions.







Find_Diff_Up.1sc
Finds the first byte with a different value than the current byte. Search direction is up.







Find_Diff_Up_RE.1sc
Similar to Find_Diff_Up.1sc except uses regular expressions.







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







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







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.







FindLongLines.1sc
Identifies long lines in a text file.







GetFileIndexOrName.1sc
Utility functions to extract the file name from a file path, or to look up a file index from a file name.







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







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







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.







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







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







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







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







JoinFile.1sc
Reassembles files that were split with the SplitFile.1sc script. The user must select the first file in the sequence to reassemble.







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







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







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







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







ParseCSV.1sc
A set of functions to help parsing CSV data with an example.







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







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







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.







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.







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







SectorSearch.1sc
Searches at the beginning of each sector for a value.







SelToLowerASCII.1sc
Sets all letters in the selection to lower case.







SelToULowerASCII.1sc
Sets the first letter of the selection to upper case and all following letters to lower case.







SelToUpperASCII.1sc
Sets all letters in the selection to upper case.







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







SplitFile.1sc
Splits the current file into a number of equal sized files. The user must enter the size of each file and the first file name in the sequence to write (for example, file0001.dat).







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







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







StringReverse.1sc
Utility for reversing a string.







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







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







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







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.







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







Submit a Script





010 Editor Menu


Latest News


Download
- 010 Editor
v8.0
is now available.

Download it now!
What's New in 8.0?


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...