/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
modules/nops/php/generic.rb
27 строк
673 B
bcoles
modules/nops: Resolve RuboCop violations
13 апр 2025, 04:27
Не верифицирован
13 апр 2025, 04:27
5091539
Код
Авторство
О чём код?
## # 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