Exploit databaseDownload repository ZIP
GH-f1172bb323ceb73f88bb7e58e8982f98
ctkqiang/php2shellpoc2026
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files38
ctkqiang/php2shellpoc2026Revision e4be28598cb8
- ↑..Parent directory
- locales/
- poc/
- report/
- access.rb
- attack.rb
- block_page.rb
- cli.rb
- detections.rb
- discovery.rb
- dns_info.rb
- environment.rb
- errors.rb
- frameworks.rb
- hackability.rb
- http_client.rb
- i18n.rb
- idn.rb
- layout.rb
- next_actions.rb
- options.rb
- poc.rb
- probe.rb
- rate_limiter.rb
- red_team.rb
- remediation.rb
- report.rb
- risk.rb
- sanitize.rb
- scan_result.rb
- scanner.rb
- scope.rb
- style.rb
- summary.rb
- target.rb
- tooling.rb
- trace.rb
- verdict.rb
- version.rb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/php2shell_poc2026/summary.rb
Ruby · 2,956 bytes# frozen_string_literal: true
require_relative "version"
module PHP2ShellPOC2026
# One summary shape for every output format. Text, JSON, Markdown and
# SARIF should never disagree about how many targets were exposed.
module Summary
def self.compute(results, meta: {})
counts = Hash.new(0)
results.each { |result| counts[result.verdict.status] += 1 }
attempted = results.sum { |result| result.fingerprint.dig(:coverage, :attempted).to_i }
usable = results.sum { |result| result.fingerprint.dig(:coverage, :usable).to_i }
requests = results.sum { |result| result.meta[:requests].to_i }
duration = results.sum { |result| result.meta[:duration_ms].to_f }
exposed = counts[:vulnerable] + counts[:eol]
patched = counts[:patched]
no_php = counts[:no_php]
unverified = counts[:unknown] + counts[:inconclusive]
assessable = exposed + patched + no_php
errors = results.count { |result| result.error }
# The decision counts are authoritative for the report's yes/no/unknown
# answer. They are normally equal to exposed/patched+no_php/unverified,
# but keeping them separate means the summary cannot disagree with the
# per-target DECISION cards if the evidence model changes.
hackable = results.count { |result| result.hackability.answer == :yes }
not_hackable = results.count { |result| result.hackability.answer == :no }
decision_unknown = results.count { |result| result.hackability.answer == :unknown }
{
total: results.size,
exposed: exposed,
vulnerable: counts[:vulnerable],
eol: counts[:eol],
patched: patched,
no_php: no_php,
unverified: unverified,
hackable: hackable,
not_hackable: not_hackable,
decision_unknown: decision_unknown,
unknown: counts[:unknown],
inconclusive: counts[:inconclusive],
errors: errors,
assessable: assessable,
blocked: results.count { |result| result.verdict.reason_code == :blocked },
auth_wall: results.count { |result| result.verdict.reason_code == :auth_wall },
rate_limited: results.count { |result| result.verdict.reason_code == :rate_limited },
soft_404: results.count { |result| result.verdict.reason_code == :soft_404 },
unreachable: results.count { |result| result.verdict.reason_code == :unreachable },
coverage: {
attempted: attempted,
usable: usable,
percent: attempted.zero? ? 0.0 : (usable.to_f / attempted * 100.0).round(1)
},
requests: requests,
duration_ms: duration.round(1),
scope_skipped: meta[:scope_skipped].to_i,
generated_at: meta[:generated_at],
tool: { name: "php2shell-poc2026", version: VERSION },
profile: meta[:profile],
format: meta[:format]
}
end
end
end