evasion setting
git-svn-id: file:///home/svn/incoming/trunk@2948 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
31471ff270
commit
395e1b696a
|
@ -39,7 +39,7 @@ X - logging session activity
|
||||||
- bsd payloads
|
- bsd payloads
|
||||||
- user interfaces
|
- user interfaces
|
||||||
- general
|
- general
|
||||||
- add concept of EVASION option (high, normal, low)
|
X - add concept of EVASION option (high, normal, low)
|
||||||
X - logging improvements
|
X - logging improvements
|
||||||
X - provide log file setting interface
|
X - provide log file setting interface
|
||||||
X - log by default in the LogDir
|
X - log by default in the LogDir
|
||||||
|
|
|
@ -87,12 +87,7 @@ class Driver < Msf::Ui::Driver
|
||||||
|
|
||||||
if (conf.group?(ConfigCore))
|
if (conf.group?(ConfigCore))
|
||||||
conf[ConfigCore].each_pair { |k, v|
|
conf[ConfigCore].each_pair { |k, v|
|
||||||
case k.downcase
|
on_variable_set(true, k, v)
|
||||||
when "sessionlogging"
|
|
||||||
handle_session_logging(v)
|
|
||||||
when "consolelogging"
|
|
||||||
handle_console_logging(v)
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -153,6 +148,8 @@ class Driver < Msf::Ui::Driver
|
||||||
handle_session_logging(val) if (glob)
|
handle_session_logging(val) if (glob)
|
||||||
when "consolelogging"
|
when "consolelogging"
|
||||||
handle_console_logging(val) if (glob)
|
handle_console_logging(val) if (glob)
|
||||||
|
when "evasion"
|
||||||
|
handle_evasion(val) if (glob)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -166,6 +163,8 @@ class Driver < Msf::Ui::Driver
|
||||||
handle_session_logging('0') if (glob)
|
handle_session_logging('0') if (glob)
|
||||||
when "consolelogging"
|
when "consolelogging"
|
||||||
handle_console_logging('0') if (glob)
|
handle_console_logging('0') if (glob)
|
||||||
|
when "evasion"
|
||||||
|
handle_evasion(EVASION_NORMAL) if (glob)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -216,6 +215,17 @@ protected
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Evasion. Sets the global evasion level based on the supplied argument.
|
||||||
|
#
|
||||||
|
def handle_evasion(val)
|
||||||
|
if (val =~ /^(normal|low|high)$/i)
|
||||||
|
Rex::Evasion.set_level(val.downcase)
|
||||||
|
else
|
||||||
|
false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue