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]
|
section = args[0]
|
||||||
match = args[1]
|
match = args[1]
|
||||||
else
|
else
|
||||||
print("Usage: search (all|encoders|nops|exploits|payloads|auxiliary) regex\n")
|
print_line("Usage: search (all|encoders|nops|exploits|payloads|auxiliary) regex")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
regex = Regexp.new(match, true)
|
regex = Regexp.new(match, true)
|
||||||
rescue RegexpError => e
|
rescue RegexpError => e
|
||||||
print_status("Invalid regular expression: #{match} (hint: try .*)")
|
print_error("Invalid regular expression: #{match} (hint: try .*)")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -912,7 +912,7 @@ class Core
|
||||||
when 'auxiliary'
|
when 'auxiliary'
|
||||||
show_auxiliary(regex)
|
show_auxiliary(regex)
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue