From 42e2fb6ef2dab76ea1b8268e80dbfd3c881c5d62 Mon Sep 17 00:00:00 2001 From: administrator Date: Thu, 14 May 2026 11:46:10 +0000 Subject: [PATCH] feat: port 8000 + GITEX 2026 Nairobi hub page, improved scan messaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change server port from 8080 to 8000 - Redesign index.html as GITEX 2026 Nairobi hub (app launcher) - Add /aasd route serving AASD-specific landing page - Add '← GITEX 2026 Hub' links to simulation, admin, and AASD pages - Show 'Could Not Scan Target' message when GoTestWAF fails - Increase GoTestWAF timeout from 120s to 300s - Update install.sh, docs, and gitignore for bin/ as local-only --- .gitignore | 5 + aasd/bin/.gitkeep | 0 aasd/docs/STATE_OF_DEVELOPMENT.md | 2 +- aasd/install.sh | 2 +- aasd/src/cmd/aasd/main.go | 6 +- aasd/src/static/aasd.html | 160 ++++++++++++++++++++++++++++++ aasd/src/static/index.html | 160 ++++++++---------------------- aasd/src/static/simulation.html | 7 +- aasd/src/templates/admin.html | 3 + 9 files changed, 220 insertions(+), 125 deletions(-) create mode 100644 aasd/bin/.gitkeep create mode 100644 aasd/src/static/aasd.html diff --git a/.gitignore b/.gitignore index 5a15080..785d44e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ Thumbs.db .idea/ *.swp *.swo +*.bak # Config — never commit real credentials **/config.yaml @@ -17,3 +18,7 @@ Thumbs.db # Runtime directories (deployment-only) reports/ logs/ + +# Pre-built binaries (build from source or use releases) +aasd/bin/* +!aasd/bin/.gitkeep diff --git a/aasd/bin/.gitkeep b/aasd/bin/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/aasd/docs/STATE_OF_DEVELOPMENT.md b/aasd/docs/STATE_OF_DEVELOPMENT.md index 29676c0..16ed5dd 100644 --- a/aasd/docs/STATE_OF_DEVELOPMENT.md +++ b/aasd/docs/STATE_OF_DEVELOPMENT.md @@ -36,7 +36,7 @@ Visitor sees report with QR code; consultant accesses full GoTestWAF output | **Report Serving** | ✅ Complete | visitor_{token}.html + consultant_{token}.html | | **QR Code** | ✅ Complete | Booth scanning workflow | | **Graceful Shutdown** | ✅ Complete | SIGINT/SIGTERM handling | -| **Booth Network** | ✅ Complete | Binds to 0.0.0.0:8080 | +| **Booth Network** | ✅ Complete | Binds to 0.0.0.0:8000 | ## Technical Specifications diff --git a/aasd/install.sh b/aasd/install.sh index 3ad3017..e43d2de 100644 --- a/aasd/install.sh +++ b/aasd/install.sh @@ -247,7 +247,7 @@ echo -e "${GREEN}═════════════════════ echo -e "${GREEN} AASD installation complete${NC}" echo -e "${GREEN}══════════════════════════════════════════════${NC}" echo "" -echo " URL: http://$(hostname -I 2>/dev/null | awk '{print $1}'):8080" +echo " URL: http://$(hostname -I 2>/dev/null | awk '{print $1}'):8000" echo " Binary: $APP_HOME/aasd" echo " Config: $CONFIG_FILE" echo " Service: aasd.service" diff --git a/aasd/src/cmd/aasd/main.go b/aasd/src/cmd/aasd/main.go index 21fc333..739c4ba 100644 --- a/aasd/src/cmd/aasd/main.go +++ b/aasd/src/cmd/aasd/main.go @@ -92,7 +92,8 @@ func main() { // Serve static files router.Static("/static", "./static") - router.StaticFile("/", "./static/index.html") + router.StaticFile("/", "./static/index.html") // GITEX 2026 hub + router.StaticFile("/aasd", "./static/aasd.html") // AASD entry point router.Static("/reports", "./reports") // QR code generator endpoint @@ -321,12 +322,13 @@ func main() { signal.Notify(signalChan, syscall.SIGINT, syscall.SIGTERM) srv := &http.Server{ - Addr: "0.0.0.0:8080", + Addr: "0.0.0.0:8000", Handler: router, } go func() { fmt.Printf("AASD server starting on %s\n", srv.Addr) + fmt.Printf("GITEX 2026 Nairobi — Hub: http://localhost:8000\n") fmt.Printf("Version: 2026-04.1 | API Attack Surface Discovery\n") if err := srv.ListenAndServe(); err != nil && err != http.ErrServerClosed { fmt.Printf("Server error: %v\n", err) diff --git a/aasd/src/static/aasd.html b/aasd/src/static/aasd.html new file mode 100644 index 0000000..293d03a --- /dev/null +++ b/aasd/src/static/aasd.html @@ -0,0 +1,160 @@ + + + + + + AASD — API Attack Surface Discovery + + + + + +
+ + + + + +
+

+ AASD +

+

API Attack Surface Discovery

+
+ + +
+

Discover Your Attack Surface

+

+ Enter your domain. We'll discover subdomains, test your WAF, and generate a resilience report. +

+ + + +
+
+ + +
+ + +
+
+ + +
+

What happens next

+
+
+ 1 + Domain discovery scans your org +
+
+ 2 + GoTestWAF probes your WAF defense +
+
+ 3 + AI generates your resilience report +
+
+
+ + +
+

+ GITEX 2026 Booth Demo — Bring your code to BU 4 +

+
+
+ + + + diff --git a/aasd/src/static/index.html b/aasd/src/static/index.html index 417fd42..172a91c 100644 --- a/aasd/src/static/index.html +++ b/aasd/src/static/index.html @@ -3,23 +3,14 @@ - AASD — API Attack Surface Discovery + GITEX 2026 Nairobi — Demo Hub diff --git a/aasd/src/static/simulation.html b/aasd/src/static/simulation.html index a720ef5..ce65f8b 100644 --- a/aasd/src/static/simulation.html +++ b/aasd/src/static/simulation.html @@ -29,8 +29,13 @@
+ + + -
+

AASD

API Attack Surface Discovery

domain.com
diff --git a/aasd/src/templates/admin.html b/aasd/src/templates/admin.html index f852628..81cde50 100644 --- a/aasd/src/templates/admin.html +++ b/aasd/src/templates/admin.html @@ -12,6 +12,9 @@
+

AASD Dashboard

API Attack Surface Discovery — Consultant View