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








Imagedisk_Export.1sc
Exports Data from Imagedisk Images (mostly Retrocomputer relevant)


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








RemoveFromStartToCurrentPosition.1sc
Remove bytes from start file to current position. Useful when you cant use the keyboard in a demo.


More Info...








ReverseBytes.1sc
Reverse the order of bytes in a binary file, optionally with a specified step size. If a selection is made only the selected bytes are modified, otherwise the whole file is modified.


More Info...








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


More Info...








Samdisk_Export.1sc
Exports Data from Samdisk DSK Images (mostly Retrocomputer relevant)


More Info...








ShowProcessAddress.1sc
When editing a process, convert the local address into a process address and display the result in the status bar.


More Info...








SimpleEncoder.1sc
Encode current selection by shifting characters. Supported encodings: ROT-5, ROT-13, ROT-47, Caesar and custom shifts. The complete file is encoded when nothing is selected.


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








TruncateFileFromCurrentPosition.1sc
Truncate the file from the current position. Useful when you cant use the keyboard in a demo.


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








UnSkew_Image.1sc
Remove or Add the Skew from Floppy Images (mostly CP/M and Retrocomputer relevant)


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





BookmarksToStruct.1sc
Gathers all bookmarks placed within a file or the current selection and generates a Binary Template or explicit C# struct with primitive reading.


More Info...








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





ADLATUS_CRC.1sc
Perform ADLATUS CRC32 calculation.


More Info...








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








CZCheckSum.1sc
Update checksum for czp file


More Info...








DexFixer.1sc
Fix DEX file sha1 and adler32 value.


More Info...








Ext-CRC16.1sc
crc16 function as used in ext filesystems


More Info...








TazWantedSavCRC.1sc
Update checksum for TazWanted.sav 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...








CopyAsHex.1sc
Copy selected hex bytes as hexstring. Note that this functionality is built into 010 Editor using 'Copy > Copy As > Copy as Hex Text'.


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 as Python bytes.


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





AlpineAPN.1sc
Convert BMP graphics to use as a backgroung picture in ALPINE iDA-X001 receiver. 320x240 16bit 5-6-5 RGB color file required. Destination file should be saved with *.apn extension


More Info...








ExtractME01.1sc
Extract the contents of ME01 archives.


More Info...








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


More Info...








RDM_to_OBJ.1sc
Convert Anno 2070 .rdm model to Wavefront .obj format


More Info...








SplitMiffHeaders.1sc
Cut (or copy, if source file is read-only) MIFF header(s) to new file(s). Not fully compatible with all valid MIFF files, but should work with those generated by ImageMagick.


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








FindLongestLine.1sc
Find the longest line in a file and list all line numbers with the same length


More Info...








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


More Info...








FindPE.1sc
Finds PE files within the current file. The script will try to guess the size of the PE files found based on their furthest section. A new file tab is created for every PE file found. Limitations: It doesn't see overlay data from PE files found.


More Info...








FindShortestLine.1sc
Find the shortest line in a file and list all line numbers with the same length


More Info...








Find_and_Bookmark.1sc
Find the interactively specified pattern and bookmark the results.The method of the search and the bookmark name can be selected.The last search pattern is kept in the environment variable. Script uses the selection as the range (if specified). See comment inside for further information.


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








RateStrings.1sc
Uses Fireeyes StringSifter to Rate Strings


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





BracketMatch.1sc
Finds the matching bracket("{}()[]<>"), selects the matched block. When the ending bracket is not found gives information about the number lacking brackets and sets the cursor at the last unbalanced bracket found.


More Info...








CreateInputPattern.1sc
Creates Ascii input pattern for identifying RET when Buffer Overflow occurs


More Info...








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. Note this functionality is now built into 010 Editor using 'Format > Delete Blank Lines'.


More Info...








DeleteLinesContaining.1sc
Deletes all lines in the selection which contains specified word. If no lines are selected all lines in the file will selected.


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








OpenURL.1sc
If the current selection contains a URL starting with http:// or https://, the URL is loaded with the default browser.


More Info...








PostfixLines.1sc
Postfix selected lines with a string or all lines if none selected


More Info...








PrefixLines.1sc
Prefix selected lines with a string or all lines if none selected


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








QuickSort2.1sc
The variant of the quicksort function for the numerical arrays. Keeps information about the original indexes in the separate table. Allows to sort the fragment of the array.


More Info...








VTContentSearch.1sc
Searches the current selection in a Virus Total Content search with the default WEB-Browser.


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.





Newsletter - Receive special offers, tips, tricks and news. Join now



010 Editor v15.0 is here!
What's new?


Navigation


Products

010 Editor














E-mail: info@sweetscape.com