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: README.md
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,23 +5,36 @@ v0.2, 12/04/2023
5
5
**PentestGPT** is a penetration testing tool empowered by **ChatGPT**. It is designed to automate the penetration testing process. It is built on top of ChatGPT and operate in an interactive mode to guide penetration testers in both overall progress and specific operations.
6
6
A sample testing process of **PentestGPT** on a target VulnHub machine (Hackable II) is available at [here](./resources/PentestGPT_Hackable2.pdf).
7
7
8
+
- Comparison to **Auto-GPT**.
9
+
- Using [Auto-GPT](https://github.com/Torantulino/Auto-GPT) in security testing is good, but it is not optimized for security-related tasks.
10
+
-**PentestGPT** is designed for penetration testing with a customized session interaction (see [here](./PentestGPT_design.md) for the detailed design).
11
+
- Currently, **PentestGPT** does not rely on search engine. The "Google-enhanced" version of **PentestGPT** is under development.
8
12
9
13
## Contribute
10
-
The project is still in its early stage. Feel free to raise any issues when using the tool.
14
+
- The project is still in its early stage. Feel free to raise any issues when using the tool.
15
+
- This project is for research purpose. Please contact me if you're interested in collaboration.
11
16
12
17
## Installation
13
18
1. Install `requirements.txt` with `pip install -r requirements.txt`
14
-
2. Install `chatgpt-wrapper` if you're non-plus members: `pip install git+https://github.com/mmabrouk/chatgpt-wrapper`. More details at: https://github.com/mmabrouk/chatgpt-wrapper. Note that the support for non-plus members are not optimized.
19
+
2.(Deprecated: Will update support for non-plus member later.) ~~Install `chatgpt-wrapper` if you're non-plus members: `pip install git+https://github.com/mmabrouk/chatgpt-wrapper`. More details at: https://github.com/mmabrouk/chatgpt-wrapper. Note that the support for non-plus members are not optimized.~~
15
20
3. Configure the keys in `config`. You may follow a sample by `cp config/chatgpt_config_sample.py. config/chatgpt_config.py`.
16
21
17
22
18
23
19
24
## Usage
20
25
1. To start, run `python3 main.py`.
21
26
2. The tool works similar to *msfconsole*. Follow the guidance to perform penetration testing.
22
-
3. In general, PentestGPT intakes commands similar to chatGPT.
23
-
- To intake multi-line inputs in the terminal, please use <Enter> for new line, and <Shift+Right-Arror> to submit the input.
24
-
- The selection bar allows you to select a pre-defined options.
27
+
3. In general, PentestGPT intakes commands similar to chatGPT. There are several basic commands.
28
+
1. The commands are:
29
+
-`help`: show the help message.
30
+
-`next`: key in the test execution result and get the next step.
31
+
-`more`: let **PentestGPT** to explain more details of the current step.
32
+
-`todo`: show the todo list.
33
+
-`discuss`: discuss with the **PentestGPT**.
34
+
-`exit`: exit the tool.
35
+
2. You can use <SHIFT + right arrow> to end your input (and <ENTER> is for next line).
36
+
3. You may always use `TAB` to autocomplete the commands.
37
+
4. When you're given a drop-down selection list, you can use cursor or arrow key to navigate the list. Press `ENTER` to select the item. Similarly, use <SHIFT + right arrow> to confirm selection.
25
38
26
39
27
40
## Design Documentation
@@ -44,6 +57,9 @@ The handler is the main entry point of the penetration testing tool. It allows p
0 commit comments