2006-01-28 20:11:28 +00:00
|
|
|
module Msf
|
|
|
|
module Ui
|
|
|
|
module Wx
|
|
|
|
|
|
|
|
# ID generator for Wx controls
|
|
|
|
class IDGen
|
|
|
|
@@last_id = 1000
|
|
|
|
def self.alloc
|
|
|
|
@@last_id += 1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Menu items in the main application
|
2006-01-28 20:22:18 +00:00
|
|
|
APP_MENU_QUIT = IDGen.alloc
|
|
|
|
APP_MENU_ABOUT = IDGen.alloc
|
|
|
|
APP_MENU_RELOAD = IDGen.alloc
|
|
|
|
|
|
|
|
|
2006-01-28 20:11:28 +00:00
|
|
|
# Tree controls
|
|
|
|
FRAME_TREE_MODULES = IDGen.alloc
|
|
|
|
|
|
|
|
# Icons
|
|
|
|
FRAME_ICONS_MODULES = 0
|
|
|
|
FRAME_ICONS_EXPLOITS = 1
|
|
|
|
FRAME_ICONS_AUXILIARY = 2
|
|
|
|
FRAME_ICONS_PAYLOADS = 3
|
|
|
|
FRAME_ICONS_ENCODERS = 4
|
|
|
|
FRAME_ICONS_NOPS = 5
|
|
|
|
FRAME_ICONS_MOD_EXPLOIT = 6
|
|
|
|
FRAME_ICONS_MOD_AUXILIARY = 6
|
|
|
|
FRAME_ICONS_MOD_PAYLOAD = 7
|
|
|
|
FRAME_ICONS_MOD_ENCODER = 7
|
|
|
|
FRAME_ICONS_MOD_NOP = 7
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|