Exploit databaseDownload repository ZIP
GH-f5b5f3e255c9647f10455031c760da99
opsxcq/exploit-cve-2016-7434
Sources for CVE-2016-7434
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files11
opsxcq/exploit-cve-2016-7434Revision b2860c5160a6
- ↑..Parent directory
- colour_prompt.rb
- colour_reporter.rb
- generate_config.yml
- generate_module.rb
- generate_test_runner.rb
- parseOutput.rb
- runner_maybe.c
- test_file_filter.rb
- type_sanitizer.rb
- unity_test_summary.py
- unity_test_summary.rb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ntp-4.2.8p8/sntp/unity/auto/colour_reporter.rb
Ruby · 1,060 bytes# ==========================================
# Unity Project - A Test Framework for C
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
# [Released under MIT License. Please refer to license.txt for details]
# ==========================================
require "#{File.expand_path(File.dirname(__FILE__))}/colour_prompt"
$colour_output = true
def report(message)
if not $colour_output
$stdout.puts(message)
else
message = message.join('\n') if (message.class == Array)
message.each_line do |line|
line.chomp!
colour = case(line)
when /(?:total\s+)?tests:?\s+(\d+)\s+(?:total\s+)?failures:?\s+\d+\s+Ignored:?/i
($1.to_i == 0) ? :green : :red
when /PASS/
:green
when /^OK$/
:green
when /(?:FAIL|ERROR)/
:red
when /IGNORE/
:yellow
when /^(?:Creating|Compiling|Linking)/
:white
else
:silver
end
colour_puts(colour, line)
end
end
$stdout.flush
$stderr.flush
end