Skip to content

Commit 75842bf

Browse files
author
root0zaki
committed
update command to ai run target_url
1 parent b4a5222 commit 75842bf

5 files changed

Lines changed: 19 additions & 19 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ AI security testing framework with terminal-first execution and GitHub Pages dem
99
## Primary command
1010

1111
```bash
12-
./ai run <url>
12+
ai run <target_url>
1313
```
1414

1515
Example sample endpoints:
1616

1717
```bash
18-
./ai run https://prompt-injection-lab.vercel.app/api/chat
19-
./ai run https://api-inference.huggingface.co/models/gpt2
20-
./ai run https://aihorde.net/api/v2
21-
./ai run https://chat.openai.com/backend-api/models
18+
ai run https://prompt-injection-lab.vercel.app/api/chat
19+
ai run https://api-inference.huggingface.co/models/gpt2
20+
ai run https://aihorde.net/api/v2
21+
ai run https://chat.openai.com/backend-api/models
2222
```
2323

2424
## Technical structure
2525

2626
```text
2727
/Users/harshitaaa/Projects/AI-Pentest
28-
├── ai # launcher for ./ai run <url>
28+
├── ai # launcher for ai run <target_url>
2929
├── main.py # command parser + run orchestration
3030
├── demo/
3131
│ ├── __init__.py
@@ -48,7 +48,7 @@ Example sample endpoints:
4848

4949
## Runtime flow
5050

51-
1. Parse `ai run <url>`.
51+
1. Parse `ai run <target_url>`.
5252
2. Print helper prelude (project, link, command, sample URLs).
5353
3. Discover testcase folders containing all required files:
5454
- `discovery.py`

‎demo/index.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
line('AI Pentest REPL Demo', 'muted');
155155
line('Project: AI-Pentest', 'muted');
156156
line('GitHub: https://github.com/harshitaaa/AI-Pentest', 'muted');
157-
line('Command: ai run <url>', 'muted');
157+
line('Command: ai run <target_url>', 'muted');
158158
line('Sample URLs:', 'muted');
159159
line(' - https://prompt-injection-lab.vercel.app/api/chat', 'muted');
160160
line(' - https://api-inference.huggingface.co/models/gpt2', 'muted');
@@ -305,7 +305,7 @@
305305
line('Commands:', 'other');
306306
line(' help', 'other');
307307
line(' clear', 'other');
308-
line(' ai run <url>', 'other');
308+
line(' ai run <target_url>', 'other');
309309
spacer();
310310
return;
311311
}
@@ -317,7 +317,7 @@
317317
}
318318

319319
if (parsed.kind === 'bad') {
320-
line('Invalid command. Use: ai run <url>', 'vuln');
320+
line('Invalid command. Use: ai run <target_url>', 'vuln');
321321
spacer();
322322
return;
323323
}

‎demo/ui.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def print_banner() -> None:
2626
def show_repl_prelude() -> None:
2727
print(color("Project: AI-Pentest", GRAY))
2828
print(color("GitHub: https://github.com/harshitaaa/AI-Pentest", GRAY))
29-
print(color("Command: ai run <url>", GRAY))
29+
print(color("Command: ai run <target_url>", GRAY))
3030
print(color("Examples:", GRAY))
3131
print(color(" - ai run https://prompt-injection-lab.vercel.app/api/chat", GRAY))
3232
print(color(" - ai run https://api-inference.huggingface.co/models/gpt2", GRAY))

‎index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="wrap">
1717
<div class="card">
1818
<h1>AI PENTEST DEMO</h1>
19-
<p>Primary command: <code>./ai run &lt;url&gt;</code></p>
19+
<p>Primary command: <code>ai run &lt;url&gt;</code></p>
2020
<p>Live demo page: <a href="https://imharshitaa.github.io/AI-Pentest/demo/">https://imharshitaa.github.io/AI-Pentest/demo/</a></p>
2121
</div>
2222
</div>

‎main.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def _build_parser() -> argparse.ArgumentParser:
1515
description="AI pentest testcase runner",
1616
epilog=(
1717
"Samples:\n"
18-
" ./ai run https://prompt-injection-lab.vercel.app/api/chat\n"
19-
" ./ai run https://api-inference.huggingface.co/models/gpt2 --report reports/hf.json\n"
18+
" ai run https://prompt-injection-lab.vercel.app/api/chat\n"
19+
" ai run https://api-inference.huggingface.co/models/gpt2 --report reports/hf.json\n"
2020
" python3 main.py run offline://lab\n"
2121
),
2222
formatter_class=argparse.RawDescriptionHelpFormatter,
@@ -28,9 +28,9 @@ def _build_parser() -> argparse.ArgumentParser:
2828
help="Run all pentest cases against a target URL",
2929
epilog=(
3030
"Examples:\n"
31-
" ./ai run https://prompt-injection-lab.vercel.app/api/chat\n"
32-
" ./ai run https://aihorde.net/api/v2\n"
33-
" ./ai run https://chat.openai.com/backend-api/models --quiet\n"
31+
" ai run https://prompt-injection-lab.vercel.app/api/chat\n"
32+
" ai run https://aihorde.net/api/v2\n"
33+
" ai run https://chat.openai.com/backend-api/models --quiet\n"
3434
),
3535
formatter_class=argparse.RawDescriptionHelpFormatter,
3636
)
@@ -63,7 +63,7 @@ def _interactive_args() -> argparse.Namespace:
6363
show_vulnerable_targets_hint(load_vulnerable_target_urls(history_path))
6464
command_line = input("Command (example: ai run https://target-ai.example): ").strip()
6565
if not command_line:
66-
raise SystemExit("No command provided. Use `./ai --help` for usage.")
66+
raise SystemExit("No command provided. Use `ai --help` for usage.")
6767
tokens = shlex.split(command_line)
6868
if tokens and tokens[0] == "ai":
6969
tokens = tokens[1:]
@@ -83,7 +83,7 @@ def main() -> None:
8383
print_banner()
8484

8585
if args.command not in {"run", "pentest"}:
86-
raise SystemExit("Unknown command. Use `./ai --help`.")
86+
raise SystemExit("Unknown command. Use `ai --help`.")
8787

8888
target = {
8989
"source": "any",

0 commit comments

Comments
 (0)