CFF Explorer's Scripting Language
V1
Introduction
The Lua Language: Brief Guide
CFF Explorer's Modified Lua
Bit Operators
Other Operators
0-Based Arrays (Or Tables)
C# Strings
Definitions
How It Works
Security Issues
Code Samples
PE Resources
Easy PE Editing
Advanced PE Editing
Generic Patches
PE Reports
Extension Setups
Functions Reference
General
Portable Executable
Win32
Conclusions
Introduction
The first version of this scripting language was introduced in the CFF Explorer VII. The initial
idea was a very simple one: offering a basic command line support to modify resources in a
Portable Executable, just like Resource Hacker. The command line / script support was
requested by a community of people who needed it for their software to change some Windows
resources. After bouncing a little bit the idea in my head it evolved into a bigger project:
providing a scripting language to do most PE tasks.
The first two possibilities I came up with were Python and Lua. Initially, I thought Python
would've been a little too much for a PE editor; it seemed to me that it would've been like
opening a door with a panzer. However, I might have been wrong. In fact, a lot of tools like
IDA are opening up to Python and my choice might have been a misjudgement. Anyway, the
Lua language is not very different in its syntax from Python. So, at least, it'll be easy for
Python programmers to use it.
For this is the first version of this scripting language, I have no idea if people will like it. Even if
it'll turn to be useless, I think it's an interesting feature, and, even though time consuming and
sometimes not so easy, it was fun adding it to the CFF Explorer.
The Lua Language: Brief Guide
Lua is a very easy language to learn. This paragraph is absolutely not an extensive guide about
Lua, rather a brief description of its main features. If you want to learn more about the
language, you can visit
Lua's documentation page. Keep in mind that there are a few
评论1
最新资源