Skip to content

Commit fc7182a

Browse files
committed
updated README.md
1 parent be14eed commit fc7182a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

‎src/hackingBuddyGPT/usecases/rag/README.md‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# ThesisPrivescPrototype
22
This usecase is an extension of `usecase/privesc`.
33

4+
## Setup
5+
### Depdendencies
6+
The needed dependencies can be downloaded with `pip install -e '.[rag-usecase]'`. If you encounter the error `unexpected keyword argument 'proxies'` after trying to start the usecase, try downgrading `httpx` to 0.27.2.
7+
### RAG vector store setup
8+
The code for the vector store setup can be found in `rag_utility.py`. Currently the vectore store uses two sources: `GTFObins` and `hacktricks`. To use RAG, download the markdown files and place them in `rag_storage/GTFObinMarkdownfiles` (`rag_storage/hacktricksMarkdownFiles`). You can download the markdown files either from the respective github repository ([GTFObin](https://github.com/GTFOBins/GTFOBins.github.io/tree/master), [hacktricks](https://github.com/HackTricks-wiki/hacktricks/tree/master/src/linux-hardening/privilege-escalation)) or scrap them from their website ([GTFObin](https://gtfobins.github.io/), [hacktricks](https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html)).
9+
10+
New data sources can easily be added by adjusting `initiate_rag()` in `rag_utility.py`.
11+
412
## Components
513
### Analyze
614
You can enable this component by adding `--enable_analysis ENABLE_ANALYSIS` to the command.
@@ -22,7 +30,3 @@ If enabled, instead of including all commands and their respective output in the
2230
You can enable this component by adding `--enable_structure_guidance ENABLE_STRUCTURE_GUIDANCE` to the command.
2331

2432
If enabled, an initial set of command recommendations is included in the `query_next_command` prompt.
25-
## RAG vector store setup
26-
The code for the vector store setup can be found in `rag_utility.py`. Currently the vectore store uses two sources: `GTFObins` and `hacktricks`. To use RAG, download the markdown files and place them in `rag_storage/GTFObinMarkdownfiles` (`rag_storage/hacktricksMarkdownFiles`). You can download the markdown files either from the respective github repository ([GTFObin](https://github.com/GTFOBins/GTFOBins.github.io/tree/master), [hacktricks](https://github.com/HackTricks-wiki/hacktricks/tree/master/src/linux-hardening/privilege-escalation)) or scrap them from their website ([GTFObin](https://gtfobins.github.io/), [hacktricks](https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html)).
27-
28-
New data sources can easily be added by adjusting `initiate_rag()` in `rag_utility.py`.

0 commit comments

Comments
 (0)