use more apt print methods for search messages
git-svn-id: file:///home/svn/framework3/trunk@6344 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
1d42efd73d
commit
ea1336d2f3
|
@ -881,14 +881,14 @@ class Core
|
|||
section = args[0]
|
||||
match = args[1]
|
||||
else
|
||||
print("Usage: search (all|encoders|nops|exploits|payloads|auxiliary) regex\n")
|
||||
print_line("Usage: search (all|encoders|nops|exploits|payloads|auxiliary) regex")
|
||||
return
|
||||
end
|
||||
|
||||
begin
|
||||
regex = Regexp.new(match, true)
|
||||
rescue RegexpError => e
|
||||
print_status("Invalid regular expression: #{match} (hint: try .*)")
|
||||
print_error("Invalid regular expression: #{match} (hint: try .*)")
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -912,7 +912,7 @@ class Core
|
|||
when 'auxiliary'
|
||||
show_auxiliary(regex)
|
||||
else
|
||||
print("Usage: search (all|encoders|nops|exploits|payloads|auxiliary) regex\n")
|
||||
print_line("Usage: search (all|encoders|nops|exploits|payloads|auxiliary) regex")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue