### Custom Plugin Development Source: https://context7.com/rtcatc/packer-fuzzer/llms.txt Example of a custom plugin class that interacts with the Packer Fuzzer database to perform specialized API detection logic. ```python class ext(): def __init__(self, projectTag, options): self.projectTag = projectTag self.options = options self.statut = 1 def run(self): apis = DatabaseType(self.projectTag).apiPathFromDB() for api in apis: print(f"检测 API: {api}") ``` -------------------------------- ### Configuring HTTP Requests Source: https://context7.com/rtcatc/packer-fuzzer/llms.txt Demonstrates how to force request methods (GET/POST), set custom Content-Type headers, and provide POST data payloads. ```bash python3 PackerFuzzer.py -u https://target.example.com --st POST --ct "application/json" --pd '{"username":"admin","password":"admin123"}' ``` -------------------------------- ### Batch Scanning with Bash Source: https://context7.com/rtcatc/packer-fuzzer/llms.txt Automates the scanning process for multiple target URLs by iterating through an array and executing the Packer Fuzzer script for each. ```bash #!/bin/bash targets=("https://site1.com" "https://site2.com" "https://site3.com") for i in "${!targets[@]}"; do python3 PackerFuzzer.py -u "${targets[$i]}" -s "batch_scan_$i" -r html done ``` -------------------------------- ### Configuration File Structure Source: https://context7.com/rtcatc/packer-fuzzer/llms.txt Defines the structure of the config.ini file used for setting blacklist filters, vulnerability detection keywords, and sensitive information rules. ```ini [blacklist] filename = jquery.js,flexible.js,angular.js [vulnTest] resultFilter = 未登录,请登录,token error [infoTest] info = password§§§Password Info,token§§§token ``` -------------------------------- ### JavaScript Chart Rendering with G2 Source: https://github.com/rtcatc/packer-fuzzer/blob/master/doc/template/html/zh.html This JavaScript code uses the G2 charting library to render a pie chart displaying vulnerability distribution. It configures the chart, data source, legend, tooltip, and renders the chart with a default selected item. ```javascript var data = [ {vuln_pie} ]; var Stat = G2.Stat; var chart = new G2.Chart({ id: 'c1', forceFit: true, height: 200 }); chart.source(data); // 重要:绘制饼图时,必须声明 theta 坐标系 chart.coord('theta', { radius: 0.9 // 设置饼图的大小 }); chart.legend('name', { position: 'bottom', itemWrap: true, formatter: function(val) { for(var i = 0, len = data.length; i < len; i++) { var obj = data[i]; if (obj.name === val) { return val; } } } }); chart.tooltip({ title: "漏洞分布", map: { value: 'value' } }); chart.intervalStack() .position(Stat.summary.percent('value')) .color('name') .label('name*..percent',function(name, percent){ percent = (percent * 100).toFixed(2) + '%'; return name + ' ' + percent; }); chart.render(); // 设置默认选中 var geom = chart.getGeoms()[0]; // 获取所有的图形 var items = geom.getData(); // 获取图形对应的数据 geom.setSelected(items[1]); // 设置选中 ``` -------------------------------- ### JavaScript for Print Functionality Source: https://github.com/rtcatc/packer-fuzzer/blob/master/doc/template/html/zh.html This JavaScript snippet demonstrates how to trigger the browser's print functionality by calling the window.print() method. It's typically used in conjunction with a print button. ```javascript javascript:window.print() ``` -------------------------------- ### jQuery for DataTable Initialization Source: https://github.com/rtcatc/packer-fuzzer/blob/master/doc/template/html/zh.html This jQuery code initializes a DataTable plugin for HTML tables. It configures pagination, searching, ordering, and other common DataTable features for enhanced table interactivity. ```javascript $.widget.bridge('uibutton', $.ui.button) // navbar hack if ($(".sidebar-collapse")[0]) document.getElementById("nbar").style.display = "none"; $(function () { // Datatable $('table').DataTable({ "paging": true, "lengthChange": false, "searching": true, "ordering": true, "info": true, "autoWidth": true, "responsive": true, }); }); // Navbar Active $(".nav-link").on("click", function() { $(".nav-link").removeClass("active"); $(this).addClass("active"); }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.