Running the PoC
bash poc.sh
<?php | |
/* | |
Plugin Name: BioBox | |
Description: A plugin that provides a BioBox widget and shortcode for author information. | |
Version: 1.0 | |
Author: Your Name | |
Text Domain: biobox | |
*/ | |
// Security measure to prevent direct access |
<?php | |
/** | |
* The plugin bootstrap file | |
* | |
* @link https://freshysites.com | |
* @since 1.0.0 | |
* @package Cache_Clearer_WP_Rocket | |
* | |
* @wordpress-plugin |
<?php | |
/** | |
* Helper function to handle WordPress.com environment checks. | |
* | |
* @param string $plugin_slug The plugin slug. | |
* @param string $learn_more_link The link to more information. | |
* @return void | |
*/ | |
function wp_com_plugin_check( $plugin_slug, $learn_more_link ) { |
<?php | |
/** | |
* Checks if a particular user has one or more roles. | |
* | |
* Returns true on first matching role. Returns false if no roles match. | |
* | |
* @param array|string $roles - Role name (or array of names). | |
* @param int $user_id - (Optional) The ID of a user. Defaults to the current user. | |
* |
<?php | |
/** | |
* Get explicit image sizes | |
* | |
* @param string $image_url The image URL - https:// ... | |
* | |
* @return string | |
*/ | |
function get_explicit_image_sizes( $image_url ) { |
<?php | |
/** | |
* Get image sizes by ID | |
* | |
* @param int $media_id The media ID | |
* | |
* @return array|bool | |
*/ | |
function get_image_sizes_by_id( $media_id ) { |
<?php | |
/** | |
* Get media ID from URL | |
* | |
* @param string $image_url The image URL - https:// ... | |
* | |
* @return int|null | |
*/ | |
function get_media_id_from_url( $image_url ) { |
<?php | |
/** | |
* The plugin bootstrap file | |
* | |
* @link https://robertdevore.com | |
* @since 1.0.0 | |
* @package Customer_Cleanup | |
* | |
* @wordpress-plugin | |
* |
Running the PoC
bash poc.sh
This script reads in the input file line by line and writes the encoded lines to the output file. It skips any empty lines in the input file.
You can use this script by replacing input.txt
with the name of your input file and output.txt
with the name of the output file you want to create.
Useful for when you have a password or vuln list that has blank lines you need to clean up before running them through your scanners.