Handle empty fingerprints better - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 1e452fb1bfce901225ae239580f2d05c269c8e73
DIR parent 4fc4e0581fc91a4856e94c089aa1f34c4f2aa001
HTML Author: HD Moore <hd_moore@rapid7.com>
Date: Thu, 27 Dec 2012 00:06:02 -0600
Handle empty fingerprints better
Diffstat:
M app/views/analyze/view.html.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/app/views/analyze/view.html.erb b/app/views/analyze/view.html.erb
@@ -42,7 +42,7 @@
<td align='center'>
<b><%=h dial_result.line_type.upcase %></b><br/>
<a href="<%=resource_analyze_path(@job_id, dial_result.id, "big_sig_dots")%>" class="lightbox"><img src="<%=resource_analyze_path(@job_id, dial_result.id, "small_sig")%>" /></a>
- <a href="<%=resource_analyze_path(@job_id, dial_result.id, "big_freq")%>" class="lightbox"><img src="<%=resource_analyze_path(@job_id, dial_result.id, "small_freq")%>" /></a><br/>
+ <a href="<%=resource_analyze_path(@job_id, dial_result.id, "big_freq")%>" ="lightbox"><img src="<%=resource_analyze_path(@job_id, dial_result.id, "small_freq")%>" /></a><br/>
<% (dial_result.signatures||"").split("\n").each do |s|
sid,mat,name = s.split(':', 3)
str = [mat.to_i * 6.4, 255].min
@@ -50,7 +50,7 @@
%>
<div style="color: #<%= col%>;"><%=h name%> (<%=h sid %>@<%=h mat %>)</div>
<% end %>
- <% if dial_result.fprint %>
+ <% if dial_result.fprint and dial_result.fprint.to_s != '{}' %>
<a href="<%=view_matches_path(dial_result.id)%>">View Matches</a>
<% end %>
</td>