Exploit database

GH-f1172bb323ceb73f88bb7e58e8982f98

ctkqiang/php2shellpoc2026

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

412 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

lib/php2shell_poc2026/report/ndjson.rb

Ruby · 749 bytes
# frozen_string_literal: true

require "json"

module PHP2ShellPOC2026
  module Report
    # Newline-delimited JSON: one target record per line, then a run record.
    # This is the format to pipe into a log shipper; a multi-megabyte
    # pretty-printed document is not.
    module Ndjson
      def self.render(results, options, summary:, meta: {})
        lines = results.map do |result|
          JSON.generate(
            record_type: "target",
            generated_at: meta[:generated_at],
            result: result.to_h(include_body: options.evidence)
          )
        end
        lines << JSON.generate(record_type: "run", generated_at: meta[:generated_at], summary: summary)
        lines.join("\n") + "\n"
      end
    end
  end
end