1
0
Fork
You've already forked ht
0
The HT Editor: A file editor/viewer/analyzer for executables.
C++ 72.9%
C 26.1%
Raku 0.3%
Makefile 0.2%
M4 0.2%
Other 0.3%
Find a file
2025年07月03日 22:41:16 +02:00
analyser Fix c++ warnings 2025年07月03日 21:34:05 +02:00
asm Fix c++ warnings 2025年07月03日 21:34:05 +02:00
debian . 2005年05月16日 14:01:21 +00:00
doc Fix texinfo warnings 2025年07月03日 22:39:44 +02:00
eval Fix c++ warnings 2025年07月03日 21:34:05 +02:00
info Fix c++ warnings 2025年07月03日 21:34:05 +02:00
io Fix c++ warnings 2025年07月03日 21:34:05 +02:00
minilzo merging missing commits from branch 2014年09月11日 20:53:57 +02:00
output Fix c++ warnings 2025年07月03日 21:34:05 +02:00
srt renamings 2014年09月11日 18:41:15 +02:00
tools merging missing commits from branch 2014年09月11日 20:53:57 +02:00
.gitignore add compile to ignore 2015年11月09日 20:50:32 +01:00
atom.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
atom.h . 2007年04月30日 10:40:47 +00:00
AUTHORS More advanced display and modification of PE relocations (thanks Mertens Engineering) 2014年11月25日 13:47:30 +01:00
autogen.sh *** empty log message *** 2011年08月20日 12:54:51 +00:00
blockop.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
blockop.h . 2007年04月30日 10:23:10 +00:00
ChangeLog updated version number 2015年02月18日 21:36:05 +01:00
class.h . 2007年04月30日 10:23:10 +00:00
classimg.cc . 2007年06月19日 18:56:27 +00:00
classimg.h . 2009年05月02日 15:55:06 +00:00
classread.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
classview.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
cmds.cc . 2005年02月23日 01:35:02 +00:00
cmds.h . 2007年04月30日 10:23:10 +00:00
coff_s.cc . 2007年04月30日 10:23:10 +00:00
coff_s.h More advanced display and modification of PE relocations (thanks Mertens Engineering) 2014年11月25日 13:47:30 +01:00
configure.ac Fix c++ warnings 2025年07月03日 21:34:05 +02:00
COPYING *** empty log message *** 2013年02月28日 23:21:33 +00:00
cp-demangle.c *** empty log message *** 2012年01月20日 21:11:08 +00:00
cp-demangle.h *** empty log message *** 2011年11月06日 20:49:26 +00:00
cplus-dem.c Fix c++ warnings 2025年07月03日 21:34:05 +02:00
cstream.cc . 2007年04月30日 10:23:10 +00:00
cstream.h . 2007年04月30日 10:23:10 +00:00
data.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
data.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
defreg.c *** empty log message *** 2012年11月23日 03:30:45 +00:00
defreg.h *** empty log message *** 2012年11月23日 03:30:45 +00:00
demangle.h *** empty log message *** 2011年11月06日 20:49:26 +00:00
elfstruc.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
elfstruc.h Add openbsd elf program header types 2016年08月17日 11:01:08 +02:00
endianess.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
endianess.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
except.cc . 2007年04月30日 10:40:47 +00:00
except.h . 2007年04月30日 10:40:47 +00:00
fltstruc.cc . 2007年04月30日 10:23:10 +00:00
fltstruc.h . 2007年04月30日 10:23:10 +00:00
formats.cc . 2007年04月30日 10:23:10 +00:00
formats.h . 2007年04月30日 10:23:10 +00:00
guix.scm Add perl as native input to fix warning 2025年06月27日 22:52:35 +02:00
htanaly.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htanaly.h replace auto_ptr by unique_ptr 2015年11月09日 21:02:44 +01:00
htapp.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htapp.h . 2009年08月27日 14:31:43 +00:00
htcfg.cc replace autoptr by unique_ptr 2015年11月09日 22:16:07 +01:00
htcfg.h . 2007年12月04日 20:27:14 +00:00
htclipboard.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htclipboard.h . 2007年04月30日 10:23:10 +00:00
htcoff.cc . 2007年04月30日 10:23:10 +00:00
htcoff.h . 2007年04月30日 10:23:10 +00:00
htcoffhd.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htcoffhd.h . 2005年02月23日 01:35:02 +00:00
htcoffimg.cc . 2007年04月30日 10:23:10 +00:00
htcoffimg.h . 2007年04月30日 10:23:10 +00:00
htctrl.cc . 2009年08月27日 14:31:43 +00:00
htctrl.h . 2009年08月27日 14:31:43 +00:00
htdebug.cc . 2007年04月30日 10:23:10 +00:00
htdebug.h *** empty log message *** 2013年01月31日 04:35:18 +00:00
htdialog.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htdialog.h *** empty log message *** 2013年01月31日 04:35:18 +00:00
htdisasm.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htdisasm.h . 2007年05月08日 22:14:37 +00:00
htelf.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htelf.h *** empty log message *** 2012年11月21日 05:16:29 +00:00
htelfhd.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htelfhd.h . 2005年02月23日 01:35:02 +00:00
htelfimg.cc *** empty log message *** 2011年08月20日 12:54:51 +00:00
htelfimg.h . 2007年04月30日 10:23:10 +00:00
htelfphs.cc Add openbsd elf program header types 2016年08月17日 11:01:08 +02:00
htelfphs.h . 2005年02月23日 01:35:02 +00:00
htelfrel.cc *** empty log message *** 2012年11月21日 05:16:29 +00:00
htelfrel.h . 2005年02月23日 01:35:02 +00:00
htelfshs.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htelfshs.h . 2005年02月23日 01:35:02 +00:00
htelfsym.cc fixed handling of out-of-bounds elf header indices 2015年02月01日 01:20:01 +01:00
htelfsym.h . 2005年02月23日 01:35:02 +00:00
hteval.cc . 2009年06月30日 20:07:18 +00:00
hteval.h . 2008年05月06日 20:31:08 +00:00
htfinfo.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htfinfo.h . 2007年04月30日 10:23:10 +00:00
htflt.cc . 2007年04月30日 10:23:10 +00:00
htflt.h . 2007年04月30日 10:23:10 +00:00
htflthd.cc . 2007年04月30日 10:23:10 +00:00
htflthd.h . 2003年06月09日 14:29:49 +00:00
htfltimg.cc . 2007年04月30日 10:23:10 +00:00
htfltimg.h . 2007年04月30日 10:23:10 +00:00
htformat.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htformat.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
hthex.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
hthex.h . 2008年05月06日 20:31:08 +00:00
hthist.cc . 2009年07月11日 17:27:39 +00:00
hthist.h . 2009年07月11日 17:27:39 +00:00
htidle.cc . 2007年04月30日 10:23:10 +00:00
htidle.h . 2007年04月30日 10:23:10 +00:00
htinfo.h update copyright 2016年11月13日 15:28:47 +01:00
htiobox.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htiobox.h . 2007年06月14日 14:17:13 +00:00
htle.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htle.h . 2007年04月30日 10:23:10 +00:00
htleent.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htleent.h . 2005年02月23日 01:35:02 +00:00
htlehead.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htlehead.h . 2005年02月23日 01:35:02 +00:00
htleimg.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htleimg.h . 2007年04月30日 10:23:10 +00:00
htleobj.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htleobj.h . 2005年02月23日 01:35:02 +00:00
htlepage.cc . 2007年05月08日 22:50:24 +00:00
htlepage.h . 2005年02月23日 01:35:02 +00:00
htlevxd.cc . 2007年04月30日 10:23:10 +00:00
htlevxd.h . 2005年02月23日 01:35:02 +00:00
htmacho.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htmacho.h . 2007年08月06日 23:44:08 +00:00
htmachohd.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htmachohd.h . 2005年02月23日 01:35:02 +00:00
htmachoimg.cc . 2007年08月13日 18:53:43 +00:00
htmachoimg.h . 2007年04月30日 10:23:10 +00:00
htmenu.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htmenu.h . 2007年04月30日 10:23:10 +00:00
htmz.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htmz.h . 2007年04月30日 10:23:10 +00:00
htmzhead.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htmzhead.h . 2005年02月23日 01:35:02 +00:00
htmzimg.cc . 2007年04月30日 10:23:10 +00:00
htmzimg.h . 2005年02月23日 01:35:02 +00:00
htne.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htne.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htneent.cc . 2008年03月22日 22:32:02 +00:00
htneent.h . 2007年04月30日 10:23:10 +00:00
htnehead.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htnehead.h . 2005年02月23日 01:35:02 +00:00
htneimg.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htneimg.h . 2007年04月30日 10:23:10 +00:00
htneimp.cc . 2007年04月30日 10:23:10 +00:00
htneimp.h . 2005年02月23日 01:35:02 +00:00
htnenms.cc . 2007年04月30日 10:23:10 +00:00
htnenms.h . 2005年02月23日 01:35:02 +00:00
htneobj.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htneobj.h . 2005年02月23日 01:35:02 +00:00
htnewexe.cc . 2007年04月30日 10:23:10 +00:00
htnewexe.h . 2007年04月30日 10:23:10 +00:00
htobj.cc . 2008年03月05日 20:02:54 +00:00
htobj.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htpal.cc Fix "format not a string" compilation failure 2015年02月18日 21:20:39 +01:00
htpal.h . 2007年04月30日 10:23:10 +00:00
htpe.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htpe.h call correct destructor 2015年01月04日 22:35:43 +01:00
htpedimp.cc . 2008年03月22日 22:32:02 +00:00
htpedimp.h . 2007年04月30日 10:23:10 +00:00
htpeexp.cc . 2008年03月22日 22:32:02 +00:00
htpeexp.h . 2007年04月30日 10:23:10 +00:00
htpef.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htpef.h . 2007年04月30日 10:23:10 +00:00
htpefhd.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htpefhd.h . 2005年02月23日 01:35:02 +00:00
htpefimg.cc . 2008年05月06日 21:00:14 +00:00
htpefimg.h . 2008年05月06日 21:00:14 +00:00
htpefimp.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htpefimp.h . 2007年04月30日 10:23:10 +00:00
htpehead.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
htpehead.h . 2007年04月30日 10:23:10 +00:00
htpeil.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htpeil.h . 2007年04月30日 10:23:10 +00:00
htpeimg.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htpeimg.h . 2007年04月30日 10:23:10 +00:00
htpeimp.cc . 2008年03月22日 22:32:02 +00:00
htpeimp.h . 2007年04月30日 10:23:10 +00:00
htpereloc.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htpereloc.h More advanced display and modification of PE relocations (thanks Mertens Engineering) 2014年11月25日 13:47:30 +01:00
htperes.cc . 2007年06月14日 01:27:21 +00:00
htperes.h . 2007年04月30日 10:23:10 +00:00
htprocess.cc . 2007年04月30日 10:40:47 +00:00
htprocess.h . 2007年04月30日 10:40:47 +00:00
htreg.cc *** empty log message *** 2012年11月23日 03:30:45 +00:00
htreg.h *** empty log message *** 2012年11月23日 03:30:45 +00:00
htsearch.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htsearch.h *** empty log message *** 2013年01月31日 04:35:18 +00:00
httag.cc More advanced display and modification of PE relocations (thanks Mertens Engineering) 2014年11月25日 13:47:30 +01:00
httag.h More advanced display and modification of PE relocations (thanks Mertens Engineering) 2014年11月25日 13:47:30 +01:00
httext.cc *** empty log message *** 2012年11月20日 06:04:53 +00:00
httext.h . 2007年05月08日 22:14:37 +00:00
httree.cc *** empty log message *** 2012年11月20日 06:04:53 +00:00
httree.h *** empty log message *** 2012年11月20日 06:04:53 +00:00
htxbe.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htxbe.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htxbehead.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htxbehead.h . 2007年04月30日 10:23:10 +00:00
htxbeimg.cc replace auto_ptr by unique_ptr 2015年11月09日 21:02:44 +01:00
htxbeimg.h . 2007年04月30日 10:23:10 +00:00
htxbeimp.cc . 2008年03月22日 22:32:02 +00:00
htxbeimp.h . 2007年04月30日 10:23:10 +00:00
htxex.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htxex.h fix wrong permissions on some source files 2016年11月27日 00:50:50 +01:00
htxexhead.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
htxexhead.h fix wrong permissions on some source files 2016年11月27日 00:50:50 +01:00
htxeximg.cc . 2007年04月30日 10:40:47 +00:00
htxeximg.h . 2007年04月30日 10:40:47 +00:00
ilstruct.cc . 2007年04月30日 10:23:10 +00:00
ilstruct.h . 2007年04月30日 10:23:10 +00:00
INSTALL distinguish between tarball release and repository 2015年01月04日 20:35:59 +01:00
install-sh indent/tab 2002年08月19日 16:55:54 +00:00
KNOWNBUGS . 2009年02月17日 00:56:37 +00:00
lestruct.cc . 2007年04月30日 10:23:10 +00:00
lestruct.h . 2007年04月30日 10:23:10 +00:00
log.cc . 2005年02月23日 01:35:02 +00:00
log.h . 2005年02月23日 01:35:02 +00:00
machostruc.cc . 2007年08月13日 18:53:43 +00:00
machostruc.h . 2007年08月13日 18:53:43 +00:00
main.cc make repository c++11 ready 2015年02月17日 18:52:48 +01:00
Makefile.am Fix c++ warnings 2025年07月03日 21:34:05 +02:00
mfile.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
mfile.h . 2007年04月30日 10:23:10 +00:00
mzstruct.cc . 2007年04月30日 10:23:10 +00:00
mzstruct.h . 2007年04月30日 10:23:10 +00:00
nestruct.cc . 2007年04月30日 10:23:10 +00:00
nestruct.h . 2007年04月30日 10:23:10 +00:00
NEWS indent/tab 2002年08月19日 16:55:54 +00:00
pefstruc.cc . 2007年04月30日 10:23:10 +00:00
pefstruc.h . 2007年04月30日 10:23:10 +00:00
pestruct.cc More advanced display and modification of PE relocations (thanks Mertens Engineering) 2014年11月25日 13:47:30 +01:00
pestruct.h More advanced display and modification of PE relocations (thanks Mertens Engineering) 2014年11月25日 13:47:30 +01:00
README README: fix typos 2016年11月12日 15:20:15 +01:00
regex.c Fix c++ warnings 2025年07月03日 21:34:05 +02:00
regex.h Initial revision 2002年06月30日 13:47:00 +00:00
relfile.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
relfile.h . 2007年04月30日 10:23:10 +00:00
safe-ctype.h . 2008年03月05日 21:38:18 +00:00
snprintf.cc . 2007年04月30日 10:23:10 +00:00
snprintf.h . 2007年04月30日 10:23:10 +00:00
store.cc added const 2014年09月11日 18:30:02 +02:00
store.h . 2009年05月10日 12:39:39 +00:00
str.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
str.h *** empty log message *** 2013年01月31日 04:35:18 +00:00
stream.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
stream.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
strtools.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
strtools.h fix wrong permissions on some source files 2016年11月27日 00:50:50 +01:00
syntax.cc *** empty log message *** 2012年11月20日 06:04:53 +00:00
syntax.h . 2007年04月30日 10:23:10 +00:00
terminal.cc . 2007年04月30日 10:23:10 +00:00
terminal.h . 2007年04月30日 10:23:10 +00:00
textedit.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
textedit.h . 2007年04月30日 10:23:10 +00:00
textfile.cc Fix c++ warnings 2025年07月03日 21:34:05 +02:00
textfile.h . 2007年04月30日 10:23:10 +00:00
TODO . 2005年05月12日 14:35:25 +00:00
tools.cc . 2007年04月30日 10:23:10 +00:00
tools.h *** empty log message *** 2012年03月04日 20:21:44 +00:00
vfs.cc *** empty log message *** 2012年11月21日 05:16:29 +00:00
vfs.h *** empty log message *** 2012年11月21日 05:16:29 +00:00
vfsview.cc *** empty log message *** 2012年11月21日 05:16:29 +00:00
vfsview.h . 2007年04月30日 10:23:10 +00:00
vxd.cc . 2007年04月30日 10:23:10 +00:00
vxd.h . 2007年04月30日 10:23:10 +00:00
vxdserv.cc . 2005年02月23日 01:35:02 +00:00
vxdserv.h . 2005年02月23日 01:35:02 +00:00
xbestruct.cc . 2007年04月30日 10:23:10 +00:00
xbestruct.h Fix c++ warnings 2025年07月03日 21:34:05 +02:00
xexstruct.cc fix wrong permissions on some source files 2016年11月27日 00:50:50 +01:00
xexstruct.h fix wrong permissions on some source files 2016年11月27日 00:50:50 +01:00

HT Editor
=========
This is HT 2.1.0; Have fun...
About
=====
This program is a file viewer, editor and analyzer for text, binary,
and (especially) executable files.
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 version 2 as published by the Free Software Foundation.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301 USA.
Key bindings
============
 * General key bindings
 Return follow link (if applicable)
 Backspace undo "follow link"
 Space/F6 choose view mode
 Alt+[1-9] select window
 Alt+0 select window list
 Ctrl+Left/Right scroll left/right
 Cursor keys move around
 Page Up/Down next/prev page
 Alt+S toggle select
 Ctrl+Ins/Alt+C copy
 Shift+Ins/Alt+V insert
 Ctrl+Del/Alt+D delete
 Shift+Del/Alt+X cut
 * Window key bindings
 Alt+F3/Ctrl+W close window
 Ctrl+F5 resize/move mode
 (in resize/move mode only:)
 Space toggle resize/move mode
 Cursor keys resize/move window
 Escape/Return/Ctrl+F5leave resize/move mode
 * Analyser key bindings
 c continue code analysis at cursor
 f follow dword ptr at address
 n name current address (empty string to delete)
 x show xrefs (search for xrefs)
 # edit comments
 s define a string
 i define an integer (32bit)
 h define a halfword (16bit)
 b define a byte (8bit)
 Ctrl+A call assembler
 Ctrl+F goto start of current function
 (indicated in the 2nd line)
 Ctrl+L goto previous label
 Ctrl+T show recursive function references
Note: Some keys don't work in HT-posix. Try using Escape instead of
Control or something...
Authors
=======
 * Stefan Weyergraf
 * Sebastian Biallas <sb@biallas.net>
Features
========
HT contains some very advanced and useful features, which you should
carefully inspect:
General features
================
 1. Supported file formats
 * common object file format (COFF/XCOFF32)
 - header
 - image with code/data analyser (x86)
 * executable and linkable format (ELF)
 - header
 - section headers
 - program headers
 - symbol tables
 - image with code/data analyser (x86, AMD64, Alpha,
 PowerPC, ARM, AVR) and relocations
 * linear executables (LE)
 - header
 - VxD descriptor
 - object table
 - page table
 - image with code/data analyser (x86)
 - auto-relocation layer (only internal refs for now)
 * standard dos executables (MZ)
 - header
 - relocations
 - image (disassembly only)
 * new executables (NE)
 - header
 - segments
 - names
 - entrypoints
 - image with code/data analyser (x86)
 - auto-relocation layer (pretty complete)
 * portable executables (PE32, PE64)
 - header
 - import section
 - delay-import section
 - export section
 - resources
 - image with code/data analyser (x86, AMD64, PowerPC,
 Alpha, ARM)
 - preliminary support for .net executables
 * java class files (CLASS)
 - header
 - image with code/data analyser (java bytecode
 disassembler)
 * Mach exe/link format (MachO)
 - header
 - image with code/data analyser (x86, AMD64, PowerPC,
 ARM)
 * X-Box executable (XBE)
 - header
 - imports
 - image with code/data analyser (x86)
 * Flat (FLT)
 - header
 - image with data analyser (no disassembler yet)
 * PowerPC executable format (PEF)
 - header
 - imports - image with code/data analyser (PowerPC)
 * Still some to be implemented (M$-OBJ, ARCH, LX)
 2. Code & Data Analyser
 - finds branch sources and destinations recursively
 - finds procedure entries
 - creates labels based on this information
 - creates xref information
 - allows to interactively analyse unexplored code (press 'c')
 - allows to create/rename/delete labels (press 'n')
 - allows to create/edit comments (press '#')
 3. Target systems
 - GNU/Linux
 - FreeBSD
 - Win32
Configuration files
===================
Global configuration
--------------------
HT automatically creates a file to store its configuration. It is
called `~/.htcfg2' on Unices and `ht.cfg2' (where ht.exe resides) on
Windows. More specifically it contains HT's registry and the *Note
Global history::.
Per file configuration
----------------------
The analyser (for analysable files) will be stored in an extra file
called `FILENAME.htcfg', where FILENAME is the analysed file. This file
contains all information to restore the complete state of the analyser.
Clipboard
=========
All open files and dialogs use the common clipboard, where all copied
and cut text or binary data is stored. Clipboard operations are
normally binary safe, that means you can copy some binary data out of a
file and paste it into an input line. Exceptions are only the 0円
character (binary null), it will be converted to a space in places
where it would not make sense (e.g. file open).
 Although the clipboard won't be saved between different HT sessions
(ie. you will loose it when exiting HT), you can either save and load it
or part of it manually (via Edit->paste into/copy from file) or rely on
the input lines' *Note history: Global history, which is stored and
retrieved from the config file automatically.
Global history
==============
HTs history system is global, which means that you can use it for all
open files. Histories are also grouped by their context. I.e.
file-related and regex-search-related dialogs have their own history
(who would want to open "[0-9][0-9a-z]+" anyway?).
 History entries are stored within the *Note Configuration files::,
so they can be reused when you relaunch.
 You can delete a history entry by pressing DEL inside the history
popup.
Expression evaluation
=====================
HT contains a very powerful expression evaluator which is used in all
dialogs where expressions are expected. These are mainly
blockoperation, goto, search and of course evaluate itself
(Edit->Evaluate).
 You can use all standard math operators (+ - / * % **), logical
operators (! && || ^^), relational operators (== != < > <= >=), bit
operators (~ & | ^), string operators (. for concatenation),
parenthesis, the ternary operator (a?b:c), functions and symbols (both
depending on context).
 The evaluator uses integer, string and float types depending on
context. You can always convert a result via the `int()', `string()'
and `float()' functions to appropriate type. Try Edit->Evaluate to see
how it works...
Functions and symbols
---------------------
You can always use the standard built-in math (`round', `sin',
`random', etc.) and string (`strcmp', `strchr', `sprintf', etc.)
functions, they work more or less like the corresponding C functions
(actually they ARE more or less wrappers for them); see `eval/eval.y'
for details (sorry but a detailed help would get outdated rather soon).
 The symbol _ always refers to the last result. If you are in a hex
buffer, the variable `first' contains the offset of the first byte and
the variable `last' contains the offset of the last byte. This is
useful, for instance, if you want to jump to the last byte of a file.
 When using *Note Block operations::, or searching you have some
context depending functions and symbols; see these sections for
explanation.
Block operations
================
Block operation (Blockop) is a very powerful tool to perform
modifications on binary files. It is available in hex viewer only.
 Blockop takes four parameters: START, END, MODE and EXPRESSION.
Blockop works as follows:
 * START: Start at the offset specified by START
 * REPEAT: Evaluate EXPRESSION and store n bytes (1 - byte, 2 - word,
 4 - dword, variable - string) at the current offset. Increment
 current offset by n. Stop if END has been reached.
Special variables/functions that can be used in EXPRESSION:
`readbyte(ofs)'
 read a byte from offset OFS, returns a number
`readstring(ofs, size)'
 read SIZE bytes from offset OFS, returns a string
`i'
 contains the iteration count/index starting with 0
`o'
 contains the current offset
Search and its different modes
==============================
The search function is one of the most advanced functions of HT. It is
invoked through F7, Shift-F7 continues a search from cursor. Depending
on context (ie. file type and mode) the following modes are enabled:
bin: ASCII / Hex
----------------
Enter an exact search string either via ascii characters or via
hexadecimal interpretation. This is the fastest search mode. You may
specify a case-insensitive search.
bin: eval str
-------------
Enter an expression, it will be evaluated ONCE (difference to the 4th
mode), and HT will then search for the result-string. This is pretty
useful when searching for intermixed text and control-chars/binary,
e.g. `"hello world\n0円"'
display: regex
--------------
As the prefix indicates, this search doesn't search in the binary file
but in the display on screen. HT searches for a regular expression so
this can be very powerful, e.g. in PE/Image you can search for
`(add|sub).+?,\ [78]$'. This will find all add or sub instructions
with second parameter 7 or 8.
expr nonzero
------------
This is the slowest but also most advanced search mode. Enter an
expression and the search stops if this expression evaluates to
non-zero (it will be evaluated on every byte). In this mode there are
two predefined symbols and some functions: I is always the number of
current iteration and O stands for the current offset in file. With the
functions `readbyte(ofs)' and `readstring(ofs, size)' you access the
file's content.
 It's easier to understand this with examples:
 1. Searching for patterns:
 a. Enter `readbyte(o) == readbyte(o+1)'
 This will search for two equal bytes ("AA", "55", "!!", etc.).
 b. Enter `(readbyte(o) == readbyte(o+1)-1) &&
 (readbyte(o)==readbyte(o+2)-2)'
 This will search for three ascending bytes ("ABC", "123",
 etc).
 2. Search with special functions:
 With HT you can easily detect the RSA key in the `ADVAPI32.DLL':
 Search for `entropy(readstring(o, 64)) > 82' in expr!=0 mode, and
 you will find it very quickly. How does it work? `readstring(o,
 64)' reads a 64 byte string from current offset and entropy
 calculates the entropy ("randomness") of a string (result is
 0..100). So the search stops if an entropy greater than 82%
 (guessed value) is encountered, which normally indicates packed or
 encrypted data.
 Note: the `entropy()' function is not the best of its kind, if you
 know of a better one please let us know!
Command line options
====================
`--' treat all additional parameters as file names
`-v' `--version' show version and copyright on console
`-h' `--help' show help
`-t' `--text' load file(s) in text editor mode
`-b' `--bin' load file(s) in hex editor mode
`-a' `--auto' try to guess file type
Where to download?
==================
The HT homepage is located at `http://hte.sourceforge.net'
Downloads are available from the 'download' section. Please also take
a look at `http://sourceforge.net/projects/hte'