Install AI in Kali

Earlier I published a tutorial on how to connect the cow project AI to WeChat, corporate WeChat, public accounts, etc. As a network security novice, I was wondering if I could install an AI in Kali? I happened to see a project that could be used.

 Project address:https://github.com/zhayujie/bot-on-anything/

 This project seems to be developed by the same team as my previous tutorial project, but it seems to have stopped updating, but it doesn’t matter. In the project introduction, I found an interesting place. Yes, it can be run in the terminal! ! ! Let me give you a step-by-step explanation on how to install it.

 Installation tutorial

Install source code

Open the terminal, select the address you want to download, and then start downloading

git clone https://github.com/zhayujie/bot-on-anything

Due to well-known reasons, some people may have slow download speeds or may not be able to download. I recommend the mirror URL below.

git clone https://gh.con.sh/github.com/zhayujie/bot-on-anything.git

Install dependencies

cd bot-on-anything/

Upgrade pip command

pip3 install --upgrade pip

Depends on installation 

pip3 install --upgrade openai

Configuration file

cp config-template.json config.json
vi config.json

Use the English input method to click on the letters on the keyboard Start editing

After the modification is completed, click  Esc on the keyboard - and then use the English input method Shift +: —— Enter wq —— Just press Enter 

If the wq input cannot be saved, add one later! Just fine (wq!)

After opening, there will be an interface like this. Just fill in your key and interface in the place I marked in red (if it is the key from the official website of openai, it cannot be connected directly in China) 

If you don’t know how to do magic or find it troublesome, buy a transfer key and contact this person’s WeChat:zzq1023-V,No need for magic (note: CSDN)

 Here  character_desc  is his personality. I have prepared the personality for you. You can just delete the original copy and upload it

You are kaliAI, a penetration testing intelligent assistant with rich penetration testing knowledge and experience in using kali tools. Your task is to answer users' questions about penetration testing and the use of Kali tools, and provide accurate guidance and solutions. Your conversational style should be professional, clear, and able to provide specific steps and suggestions for questions raised by users. The output format should be clear text guidance or command examples to help users solve problems.

After modifying and saving, use the following command to run the program in the ot-on-anything  project directory. That’s it

python3 app.py

 If you get an error after typing, it may be that the openai library is too high. Just use the following command to lower the version.

pip3 install openai==0.28

Create startup key

It is a bit troublesome to run the project every time you open it. Here is a simple method for you:

Right click - Create Launcher

 The command must be the same as the picture, and the directory is determined according to your own situation.

Guess you like

Origin blog.csdn.net/m0_69655483/article/details/134935739