Lucene search
K

PHP Nop Generator

🗓️ 17 Dec 2006 07:57:51Reported by hdm <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 11 Views

PHP Nop Generator, harmless padding for PHP script

Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

###
#
# This class implements a "nop" generator for PHP payloads
#
###
class MetasploitModule < Msf::Nop

  def initialize
    super(
      'Name'        => 'PHP Nop Generator',
      'Alias'       => 'php_generic',
      'Description' => 'Generates harmless padding for PHP scripts',
      'Author'      => 'hdm',
      'License'     => MSF_LICENSE,
      'Arch'        => ARCH_PHP)
  end

  # Generate valid PHP code up to the requested length
  def generate_sled(length, opts = {})
    Array.new(length) { ["\t", " ", "\n", "\r", ";"].sample }.join
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Sep 2024 19:28Current
7.5High risk
Vulners AI Score7.5
11