switch to .3 for 0.4.0 to avoid conflicts

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
This commit is contained in:
Víctor Mayoral Vilches 2025-05-26 10:58:49 +02:00
parent f2902b7e2d
commit 912ce4cb4d
8 changed files with 25 additions and 25 deletions

View File

@ -78,7 +78,7 @@ RUN wget https://raw.githubusercontent.com/adfoster-r7/metasploit-info/master/in
# NOTE: align dev env in Linux
# work
# RUN echo "192.168.2.1 host.docker.internal" >> /etc/hosts
# RUN echo "192.168.3.1 host.docker.internal" >> /etc/hosts
# Update and upgrade packages
# Preconfigure console-setup and install kali-linux-headless fixers
RUN apt-get update && \

View File

@ -18,7 +18,7 @@ services:
command: /bin/sh -c "while sleep 10; do :; done"
networks:
cainet:
ipv4_address: 192.168.2.5
ipv4_address: 192.168.3.5
cap_add:
- NET_ADMIN
- SYS_ADMIN
@ -40,7 +40,7 @@ services:
# "
# networks:
# cainet:
# ipv4_address: 192.168.2.11
# ipv4_address: 192.168.3.11
# mac_address: 08:00:27:85:55:86
# # Vulnhub vulnerable machine (Bob) SUGGESTION: Comment this and use PentestPerf
@ -52,20 +52,20 @@ services:
# - "8080:80"
# networks:
# cainet:
# ipv4_address: 192.168.2.12
# ipv4_address: 192.168.3.12
# mac_address: 08:00:27:cb:07:d4
# Qdrant vector database
qdrant:
image: qdrant/qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- ./qdrant_storage:/qdrant/storage:z
networks:
cainet:
ipv4_address: 192.168.2.13
# # Qdrant vector database
# qdrant:
# image: qdrant/qdrant
# ports:
# - "6333:6333"
# - "6334:6334"
# volumes:
# - ./qdrant_storage:/qdrant/storage:z
# networks:
# cainet:
# ipv4_address: 192.168.3.13
#################
# NETWORKS
@ -75,4 +75,4 @@ networks:
ipam:
driver: default
config:
- subnet: 192.168.2.0/24
- subnet: 192.168.3.0/24

View File

@ -857,7 +857,7 @@ curl -v http://host.docker.internal:8000/api/version
![cai-004-first-message](imgs/readme_imgs/cai-004-first-message.png)
The starting user prompt in this case is: `Target IP: 192.168.2.10, perform a full network scan`.
The starting user prompt in this case is: `Target IP: 192.168.3.10, perform a full network scan`.
The agent started performing a nmap scan. You could either interact with the agent and give it more instructions, or let it run to see what it explores next.
</details>

View File

@ -61,7 +61,7 @@
![cai-004-first-message](media/cai-004-first-message.png)
The starting user prompt in this case is: `Target IP: 192.168.2.10, perform a full network scan`.
The starting user prompt in this case is: `Target IP: 192.168.3.10, perform a full network scan`.
The agent started performing a nmap scan. You could either interact with the agent and give it more instructions, or let it run to see what it explores next.

View File

@ -13,9 +13,9 @@ Environment Variables
CTF_CHALLENGE: Specific challenge name
within the CTF to test
CTF_SUBNET: Network subnet for the CTF
container (default: "192.168.2.0/24")
container (default: "192.168.3.0/24")
CTF_IP: IP address for the CTF
container (default: "192.168.2.100")
container (default: "192.168.3.100")
CTF_INSIDE: Whether to conquer the CTF from
within container (default: "true")

View File

@ -30,12 +30,12 @@ ENV_VARS = {
3: {
"name": "CTF_SUBNET",
"description": "Network subnet for the CTF container",
"default": "192.168.2.0/24"
"default": "192.168.3.0/24"
},
4: {
"name": "CTF_IP",
"description": "IP address for the CTF container",
"default": "192.168.2.100"
"default": "192.168.3.100"
},
5: {
"name": "CTF_INSIDE",

View File

@ -2933,9 +2933,9 @@ def setup_ctf():
ctf = ptt.ctf( # pylint: disable=I1101 # noqa
ctf_name,
subnet=os.getenv('CTF_SUBNET', "192.168.2.0/24"),
subnet=os.getenv('CTF_SUBNET', "192.168.3.0/24"),
container_name="ctf_target",
ip_address=os.getenv('CTF_IP', "192.168.2.100"),
ip_address=os.getenv('CTF_IP', "192.168.3.100"),
)
ctf.start_ctf()

View File

@ -46,7 +46,7 @@ async def test_one_tool_agent_inference():
"""
Non-streaming inference test for the one_tool_agent.
"""
prompt = "use nmap to scan 192.168.2.0/24"
prompt = "use nmap to scan 192.168.3.0/24"
result = await Runner.run(get_agent_by_name("one_tool_agent"), prompt)
final_output = result.final_output or ""
assert final_output, "Expected non-empty final output"