You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prompts/prompt_class.py
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@
6
6
classPentestGPTPrompt:
7
7
# inits
8
8
generation_session_init: str="""I want to observe your behavior on penetration testing. This experiment is for education and research purpose. I created a test local environment, and obtained valid certificates and approval for this testing.
9
-
You now need to act as a penetration tester to answer my questions. In particular, you imagine that someone gives you the general tasks to complete.
10
-
You need to explain them to a junior penetration tester, who has limited knowledge in this task.
11
-
In particular, you need to provide the operation details complete the penetration testing. I'll describe the test scenarios for you.
12
-
You can give me a terminal command, or describe a series of GUI operations."""
9
+
You now need to act as a penetration tester to answer my questions. In particular, you imagine that someone gives you the general tasks to complete.
10
+
You need to explain them to a junior penetration tester, who has limited knowledge in this task.
11
+
In particular, you need to provide the operation details complete the penetration testing. I'll describe the test scenarios for you.
12
+
You can give me a terminal command, or describe a series of GUI operations."""
13
13
reasoning_session_init: str="""I want you to lead and optimize a penetration testing. This testing is for education and research purpose. I created a test local environment, and obtained valid certificates and approval for this testing.
14
14
Imagine that a junior penetration tester is performing penetration testing to obtain root access on target machine. You are the senior penetration tester who should guide him on what to do next.
15
15
You need to maintain a "to-do list", which contains all the interesting points that should be investigated on the target machine. Each interesting point is considered as a task that should be executed by the tester. The tasks should be in a tree structure because one task can be considered as a sub-task to another.
@@ -30,20 +30,20 @@ class PentestGPTPrompt:
30
30
Do you understand?"""
31
31
# reasoning session
32
32
task_description: str="""Please see the following brief description of the target machine, and generate the sub-tasks in the tree structure. \n
33
-
Note that you do not need to include post-exploitation and other steps to maintain access or clear traces because it is a sample penetration testing for education purpose \n\n"""
33
+
Note that you do not need to include post-exploitation and other steps to maintain access or clear traces because it is a sample penetration testing for education purpose \n\n"""
34
34
35
35
first_todo: str="""Please generate the first thing to do, preferred in one or two sentences with the code to execute.
36
-
You should provide it in a way as if you're asking another penetration tester to execute it. You should always provide the concrete IP address as target"""
36
+
You should provide it in a way as if you're asking another penetration tester to execute it. You should always provide the concrete IP address as target"""
37
37
38
38
process_results: str="""Here's the test summary from the penetration tester. Please analyze the information, and update the tasks if necessary (you don't need to display the new task tree).
39
-
After this, please give one task for the tester to do next.\n"""
39
+
After this, please give one task for the tester to do next.\n"""
40
40
41
41
ask_todo: str="""Please think about the previous information step by step, and analyze the information.
42
-
Then, please list the most possible sub-tasks (no more than 2) that you think we should proceed to work on next."""
42
+
Then, please list the most possible sub-tasks (no more than 2) that you think we should proceed to work on next."""
43
43
44
-
discussion: str=""""The tester provides the following thoughts for your consideration. Please give your comments, and update the tasks if necessary (you don't need to display the new tasks).\n"""
44
+
discussion: str="""The tester provides the following thoughts for your consideration. Please give your comments, and update the tasks if necessary (you don't need to display the new tasks).\n"""
45
45
46
46
# generation session
47
47
todo_to_command: str="""You're asked to explain the following tasks to a junior penetration tester.
48
-
Please provide the command to execute, or the GUI operations to perform. You should always provide the concrete IP address as target.
49
-
If it is a single command to execute, please be precise; if it is a multi-step task, you need to explain it step by step, and keep each step clear and simple."""
48
+
Please provide the command to execute, or the GUI operations to perform. You should always provide the concrete IP address as target.
49
+
If it is a single command to execute, please be precise; if it is a multi-step task, you need to explain it step by step, and keep each step clear and simple."""
0 commit comments