![]() |
|
[PHP] [Release] AST Authorized Stress Tester source code (PHP + MySQL + single-file SPA) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] [Release] AST Authorized Stress Tester source code (PHP + MySQL + single-file SPA) (/showthread.php?tid=6331736) |
[Release] AST Authorized Stress Tester source code (PHP + MySQL + single-file SPA) - Clumsy - Sep 11, 2026 Hey HF, Releasing the full source for AST (Authorized Stress Tester) — a self-hosted web platform for authorized network stress testing. Written from scratch: no frameworks, no dependencies, no build step. Just source. Nothing for sale, nothing hosted, no service. ━━━ WHAT'S IN THE SOURCE ━━━ Code ast/━━━ FRONTEND (public/index.html) ━━━ Single HTML file. No npm. No bundler. No CDN. No deps.
━━━ BACKEND (api/*.php) ━━━ PHP 8.1+, no framework. PDO prepared statements throughout.
Code auth.php login / register / logout / me━━━ DATABASE (db.sql) ━━━ MySQL 8.0+ / MariaDB 10.5+, InnoDB, utf8mb4. 13 tables: users, sessions, api_keys, targets, tests, test_metrics, logs, news, updates, config, rate_limits, workers, test_types 4 views: v_active_targets, v_running_tests, v_user_dashboard, v_latest_metrics 7 procedures: sp_create_test, sp_claim_next_test, sp_record_metric, sp_finish_test, sp_verify_target, sp_revoke_target, sp_purge_old_logs 3 triggers: trg_tests_before_insert, trg_targets_after_update, trg_users_after_update 4 events: retention cleanup, session expiry, rate-limit cleanup, stale-worker cleanup ━━━ WORKER ━━━ Two modes: systemd daemon (throughput) or cron single-shot (low volume).
━━━ ENFORCEMENT MODEL ━━━ Authorization checked at four independent layers:
Plus a fifth: the worker re-validates the target right before spawning the child (defends against time-of-check vs time-of-use). Every mutation is logged with user, IP, action, details, severity, timestamp. ━━━ SETUP ━━━ Code git clone <repo> /var/www/astCron alternative: Code * * * * * /usr/bin/php /var/www/ast/cron/run_test.php --quiet >> /var/log/ast-worker.log 2>&1Default credentials: root / root — change immediately after first login. Full walkthrough in README.md. ━━━ INTENDED USE ━━━
You must have written permission for every target. The code enforces this at the DB layer — it can't verify your authorization document is real, that part is on you. ━━━ LICENSE ━━━ MIT. Do whatever you want with the code. Provided as-is. Unauthorized use against systems you don't own or have written permission to test is illegal (CFAA, Computer Misuse Act, Directive 2013/40/EU, and equivalents). You are responsible for every test you launch. ━━━ DOWNLOAD ━━━ Mirror 1 (MediaFire): https://www.mediafire.com/file/6wicygtbqp9ezcr/AST+Authorized+Stress+Tester+By+Clumsy.zip/file Mirror 2 (direct): https://download1348.mediafire.com/ieptanay2rwgHhzgM3TQqn6cu8zsLFOIYaaJ9LTaJYDTwXTrpceo4hEgGOCyUR464fnPtzSnJvGbF7PlOXI2_J3tcHn-owwI3Dy5HZ1-5lXDNwjrDbNQQsVaqNBmwRtkyFDUbSJwIt3_wshcPmcEQEKaYGgR6Jbh6bS2nhZv0tqqSQrt/6wicygtbqp9ezcr/AST+Authorized+Stress+Tester+By+Clumsy.zip Code SHA-256: <paste hash here>━━━ CHANGELOG ━━━ Code v2.0 — full rewrite, layered authorization enforcement, single-file SPAFeedback, bugs, and remakes welcome. |