more logic fixes

git-svn-id: file:///home/svn/framework3/trunk@13240 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
David Rude 2011-07-19 21:19:34 +00:00
parent a934004a2b
commit b96bf9754e
1 changed files with 10 additions and 10 deletions

View File

@ -95,18 +95,18 @@ class Metasploit3 < Msf::Auxiliary
if not msg[0].eql?("") if not msg[0].eql?("")
if msg[0].include?("SIP/2.0 180 Ringing") if msg[0].include?("SIP/2.0 180 Ringing")
origin = /o=\w+\@[\w+\.]+/.match(msg[0]) origin = /o=\w+\@[\w+\.]+/.match(msg[0])
end
if not origin.nil? if not origin.nil?
print_good(/\w+\@[\w+\.]+/.match(origin.to_s).to_s) print_good(/\w+\@[\w+\.]+/.match(origin.to_s).to_s)
else else
print_status("Ringing message received but no user/gateway sent...") print_status("Ringing message received but no user/gateway sent...")
end end
data = create_probe(datastore['RHOST'], 'CANCEL', @branch, @tag, @callid) data = create_probe(datastore['RHOST'], 'CANCEL', @branch, @tag, @callid)
udp_sock.put(data) udp_sock.put(data)
strtport = fnlport + 1 strtport = fnlport + 1
rcv = nil rcv = nil
end
else else
break break
end end