Carnivore - Predator
Formerly known as THC HackSuite, Carnivore - Predator stands at the forefront of cutting-edge cybersecurity tools, redefining the landscape of penetration testing with unparalleled innovation. Designed to empower ethical hackers, security professionals, and enthusiasts alike, Carnivore - Predator is the ultimate Pentest CMS that puts you in command.
current version: 0.7.0 - PREDATOR
home > documentation > modules > How to use xPerformance
This article explains how to effectively make use of xPerformance.
author: Remco Kouw
created: 25-May-2024
updated: 25-May-2024

xPerformance Introduction

This documentation provides an overview of the functionality of the thc_pe module.

xPerformance is a module that allows you to measure the performance of two different scripts and determine which script performs better in terms of speed.

Interface Parameters:

  1. Scripts: The scripts to compare performances of.
  2. Cycles: The number of script executions.
  3. Method: The order of script execution.
  4. Type of Report: Generate a graphical report (requires GD) or text statistics.

ModGlue Variables:

  1. $_CONTEXT['thc_pe']['scriptstotest']: (int) Number of scripts to test.
  2. $_CONTEXT['thc_pe']['scriptsfolder']: (string) Absolute path to the module's scripts folder.
  3. $_CONTEXT['thc_pe']['scripts']: (array) Filenames of all PHP scripts in the module's scripts folder.
  4. $_CONTEXT['thc_pe']['requestedscriptsnumber']: (int) Number of scripts to test.
  5. $_CONTEXT['thc_pe']['requestedscripts']: (array) Filenames of the scripts to test.
  6. $_CONTEXT['thc_pe']['startscript']: (int) Timestamp of when the script was executed.
  7. $_CONTEXT['thc_pe']['cycles']: (int) Number of cycles.
  8. $_CONTEXT['thc_pe']['method']: (int) Order of script execution.
  9. $_CONTEXT['thc_pe']['report']: (int) Type of report.
  10. $_CONTEXT['thc_pe']['totalcycles']: (int) Total number of cycles for all scripts.
  11. $_CONTEXT['thc_pe']['result']: (array) Result data of all cycles.
  12. $_CONTEXT['thc_pe']['lastscript']: (int) Last executed script index.
  13. $_CONTEXT['thc_pe']['resultavg']: (array) Average statistics of a script's execution.
  14. $_CONTEXT['thc_pe']['printresults']['time_start']: (int) Starting timestamp of the execution of a script.
  15. $_CONTEXT['thc_pe']['printresults']['time_end']: (int) Ending timestamp of the execution of a script.
  16. $_CONTEXT['thc_pe']['printresults']['results']: (string) Result of the execution of a script.
  17. $_CONTEXT['thc_pe']['printresults']['script1']: (string) Absolute path to the first script to execute in the module's scripts folder.
  18. $_CONTEXT['thc_pe']['printresults']['script2']: (string) Absolute path to the second script to execute in the module's scripts folder.

Resource Settings:

  • Time Limit: PHP default
  • Memory Limit: PHP default

Dependencies:

GD (graphical statistics)

Expanding xPerformance:

N/A

Known Issues:

N/A

Created by Remco Kouw: 2008-2024