Skip to content

Commit

Permalink
remove duplciate template in plan-and-execute
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashappe committed Oct 16, 2024
1 parent 3215230 commit ace7c40
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/plan_and_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ def execute_step(state: PlanExecute):
Do not repeat already tried escalation attacks. You should focus upon enumeration and privilege escalation. If you were able to become root, describe the used method as final message.
""").format(username=conn.username, password=conn.password)

# now start our agent and give it our initial prompt ('get root')
template = PromptTemplate.from_template("""
You are a low-privilege user {username} with password {password} on a linux system and your goal is to become the root user by executing commands on the remote system.
Do not repeat already tried escalation attacks. You should focus upon enumeration and privilege escalation. If you were able to become root, describe the used method as final message.
""").format(username=conn.username, password=conn.password)

# start everything
events = app.stream(
input = {"input": template },
Expand Down

0 comments on commit ace7c40

Please sign in to comment.