| analyze_helper.rb - warvox - VoIP based wardialing tool, forked from rapid7/war… | |
| git clone git://jay.scot/warvox | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| analyze_helper.rb (456B) | |
| --- | |
| 1 module AnalyzeHelper | |
| 2 | |
| 3 | |
| 4 def fwd_match_html(pct) | |
| 5 %Q|<span class="badge fwd_match_span" style='background-color: #{pct_t… | |
| 6 | |
| 7 #{"%.3f" % pct.to_f}% Match | |
| 8 | |
| 9 </span> | |
| 10 | |
| 11 | | |
| 12 end | |
| 13 | |
| 14 def rev_match_html(pct) | |
| 15 %Q|<span class="rev_match_span" style='padding-left: #{ (pct.to_i * 2)… | |
| 16 end | |
| 17 | |
| 18 def pct_to_color(pct) | |
| 19 "#" + "20" + (pct.to_i * 2.00).to_i.to_s(16).rjust(2, "0") + "20" | |
| 20 end | |
| 21 | |
| 22 end |