Skip to content

armgit / ARES

Public Imported from GitHub
0

ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.

docs: normalize local API examples

Mafifrizi91b416d438fc
diff --git a/docs/api-reference.md b/docs/api-reference.md
index 703cf82..c80a503 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -81,7 +81,7 @@ PowerShell example:
```powershell
$token = (Invoke-RestMethod `
-Method Post `
- -Uri http://localhost:8080/auth/token `
+ -Uri http://127.0.0.1:8080/auth/token `
-ContentType "application/x-www-form-urlencoded" `
-Body "username=admin&password=YOUR_CURRENT_ADMIN_PASSWORD").access_token
@@ -89,7 +89,7 @@ $headers = @{ Authorization = "Bearer $token" }
Invoke-RestMethod `
-Method Post `
- -Uri http://localhost:8080/auth/register `
+ -Uri http://127.0.0.1:8080/auth/register `
-Headers $headers `
-ContentType "application/json" `
-Body (@{
diff --git a/docs/dashboard-guide.md b/docs/dashboard-guide.md
index 6234a26..9c551ea 100644
--- a/docs/dashboard-guide.md
+++ b/docs/dashboard-guide.md
@@ -149,7 +149,7 @@ PowerShell example:
```powershell
$token = (Invoke-RestMethod `
-Method Post `
- -Uri http://localhost:8080/auth/token `
+ -Uri http://127.0.0.1:8080/auth/token `
-ContentType "application/x-www-form-urlencoded" `
-Body "username=admin&password=YOUR_CURRENT_ADMIN_PASSWORD").access_token
@@ -157,7 +157,7 @@ $headers = @{ Authorization = "Bearer $token" }
Invoke-RestMethod `
-Method Post `
- -Uri http://localhost:8080/auth/register `
+ -Uri http://127.0.0.1:8080/auth/register `
-Headers $headers `
-ContentType "application/json" `
-Body (@{
diff --git a/docs/modules.md b/docs/modules.md
index 44cca29..4eb9477 100644
--- a/docs/modules.md
+++ b/docs/modules.md
@@ -53,7 +53,7 @@ authorization and a scoped campaign.
```powershell
$token = (Invoke-RestMethod `
-Method Post `
- -Uri http://localhost:8080/auth/token `
+ -Uri http://127.0.0.1:8080/auth/token `
-ContentType "application/x-www-form-urlencoded" `
-Body "username=admin&password=YOUR_PASSWORD").access_token
diff --git a/docs/validation-lab.md b/docs/validation-lab.md
index 0a05147..e564a59 100644
--- a/docs/validation-lab.md
+++ b/docs/validation-lab.md
@@ -22,7 +22,7 @@ Start ARES first:
$bytes = [byte[]]::new(32)
[System.Security.Cryptography.RandomNumberGenerator]::Fill($bytes)
$env:ARES_SECRET_KEY = -join ($bytes | ForEach-Object { $_.ToString("x2") })
-$env:ARES_ENCRYPTION_KEY = .\.venv\Scripts\python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
+$env:ARES_ENCRYPTION_KEY = .\.venv\Scripts\python.exe -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
$env:ARES_DEFAULT_ADMIN_PASSWORD = "replace-with-your-own-strong-admin-password"
.\.venv\Scripts\ares-api.exe
```