Run this model with HF Jobs
Run ArmurAI/Pentest_AI on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/ArmurAI/Pentest_AI. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ArmurAI/Pentest_AI on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/ArmurAI/Pentest_AI. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/ArmurAI/Pentest_AI. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use ArmurAI/Pentest_AI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArmurAI/Pentest_AI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ArmurAI/Pentest_AI") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ArmurAI/Pentest_AI") model = AutoModelForCausalLM.from_pretrained("ArmurAI/Pentest_AI", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ArmurAI/Pentest_AI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ArmurAI/Pentest_AI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ArmurAI/Pentest_AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ArmurAI/Pentest_AI
- SGLang
How to use ArmurAI/Pentest_AI with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ArmurAI/Pentest_AI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ArmurAI/Pentest_AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ArmurAI/Pentest_AI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ArmurAI/Pentest_AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ArmurAI/Pentest_AI with Docker Model Runner:
docker model run hf.co/ArmurAI/Pentest_AI
Pentest AI
PentestAI is an innovative assistant for penetration testing, we used the OpenHermes-2.5-Mistral-7B model, we jailbroke it, finetuned it with commands for popular Kali Linux tools and it's now able to provide guided, actionable steps and command automation for performing deep pen tests.
The innovative PentestAI offers a cutting-edge solution for penetration testing by leveraging the modified OpenHermes-2.5-Mistral-7B model. This model has been uniquely jailbroken and finetuned with commands tailored for the most commonly used tools in Kali Linux, enabling it to provide guided, actionable steps and automate command execution for comprehensive penetration testing.
Key Features of PentestAI:
- Guided Penetration Testing: PentestAI simplifies the complexity of penetration testing by guiding you through each step of the process. Starting with the acquisition of the target IP, it offers customized advice tailored to the specific phase of the penetration test you are in.
- Command Automation: Streamline your penetration testing with automated command execution. PentestAI incorporates extensive knowledge of Kali Linux tools, providing you with command examples that you can execute directly or modify as needed.
- Adaptive Learning: As you progress through your penetration testing tasks and share results, PentestAI dynamically adapts its suggestions to enhance your efficiency and effectiveness.
- Ethical Framework: Throughout the testing process, PentestAI emphasizes adherence to ethical standards, ensuring that your penetration testing practices are responsible and legally compliant.
- User-Friendly Interaction: You can interact seamlessly with PentestAI and conclude your session anytime by typing 'exit' or 'hacked' upon successfully compromising the target machine.
By integrating these features, PentestAI not only facilitates a smoother penetration testing experience but also ensures that it is performed efficiently and ethically. Whether you are a novice eager to learn the ropes or an experienced professional seeking to streamline your workflow, PentestAI provides valuable support tailored to your needs.
For more details and to access the tool, visit the GitHub repository.
- Downloads last month
- 154