Skip to content

AI

Welcome! This handbook teaches you everything you need to know about using X’s AI system, even if you’ve never used it before.


  1. What is the AI?
  2. Getting Started
  3. Basic Commands
  4. File Operations
  5. Permission Management
  6. Network Scanning
  7. Exploitation & Hacking
  8. Data Extraction
  9. Configuration
  10. Natural Language Tips
  11. Common Patterns
  12. Troubleshooting
  13. Examples Gallery

The X AI Agent is a natural language command assistant that understands what you want to do and executes terminal commands for you.

The AI understands many different ways to express the same intent!

  • 📂 File Operations: Copy, move, delete, create files
  • 🔐 Permissions: Change file permissions, owners, and groups
  • 🌐 Network Scanning: Scan IPs, ports, and networks
  • 💻 Exploitation: Find and exploit vulnerabilities
  • 📧 Data Extraction: Get emails, passwords, and files
  • ⚙️ System Management: Search files, view contents, manage processes

All AI commands start with ai followed by your request:

Terminal window
ai your request here

For read-only commands (viewing, listing, searching), quotes are optional:

Terminal window
ai show me test.txt
ai scan 192.168.1.1
ai list files

For write commands (copying, moving, deleting, changing permissions), use quotes to be safe:

Terminal window
ai copy test.txt to backup.txt
ai delete oldfile.txt
ai change permissions of myfile to 644

Let’s try reading a file:

Terminal window
ai show me the file test.txt

What happens:

  1. AI detects you want to read a file (cat command)
  2. AI extracts the filename: test.txt
  3. AI executes the command and shows you the contents

That’s it! No need to remember command syntax.

Ask the AI for help with any command:

Terminal window
ai what does chmod do?
ai how do I use scan?
ai explain the exploit command

Show file contents:

Terminal window
ai show me myfile.txt
ai read the file config.txt
ai display document.txt
ai cat myfile.txt # Traditional command also works

View directory contents:

Terminal window
ai list files in this directory
ai show me what's in Documents
ai ls # Traditional command also works

Search for text in files:

Terminal window
ai search for 'password' in config.txt
ai find the word 'admin' in logfile.txt
ai grep 'error' in system.log

Find files by name:

Terminal window
ai find files named test.txt
ai locate all .txt files
ai search for files containing 'backup' in the name

Create an empty file:

Terminal window
ai create an empty file called newfile.txt
ai touch test.txt
ai make a new file named data.txt

Create a directory:

Terminal window
ai create a directory called MyFolder
ai make a new folder named Projects
ai mkdir TestDir

Basic copy:

Terminal window
ai copy test.txt to backup.txt
ai duplicate myfile.txt as myfile_backup.txt
ai cp document.txt to Documents/document.txt

Copy with path:

Terminal window
ai copy myfile.txt to /home/user/Documents
ai duplicate test.txt to Desktop/test_copy.txt

What gets copied:

  • The file itself
  • File contents
  • Original permissions preserved

Move file to different location:

Terminal window
ai move test.txt to Documents
ai relocate myfile.txt to Desktop
ai mv old.txt to Archive/old.txt

Rename file:

Terminal window
ai rename test.txt to newname.txt
ai move oldname.txt to newname.txt
ai change test.txt name to final.txt

Move and rename:

Terminal window
ai move myfile.txt to Documents/renamed.txt

Delete a file:

Terminal window
ai delete test.txt
ai remove oldfile.txt
ai erase backup.txt
ai rm unwanted.txt

⚠️ Warning: File deletion is permanent! The AI will ask for confirmation before deleting.

Create a symbolic link:

Terminal window
ai create a link from source.txt to link.txt
ai make a symlink from myfile.txt to shortcut.txt
ai ln source.txt to destination.txt

What is a link?
A link is like a shortcut. Editing the link edits the original file.


File permissions control who can read, write, or execute files.

Permission Levels:

  • Read (r/4): View file contents
  • Write (w/2): Modify file contents
  • Execute (x/1): Run file as program

Permission Numbers:

  • 777 = Full access (read + write + execute for everyone)
  • 755 = Owner can do everything, others can read and execute
  • 644 = Owner can read and write, others can only read
  • 444 = Read-only for everyone
  • 000 = No permissions for anyone

Using permission numbers:

Terminal window
ai change permissions of test.txt to 755
ai set permissions of myfile.txt to 644
ai chmod test.txt to 777

Using descriptions:

Terminal window
ai make test.txt executable
ai give full permissions to myfile.txt
ai set test.txt to read only
ai remove all permissions from secret.txt

Change permissions of X to Y patterns:

Terminal window
ai change permissions of test.txt to 755
ai set permissions of myfile.txt to read only
ai chmod test.txt to 777
ai give permissions of script.sh to executable

Recursive permissions (for directories):

Terminal window
ai change permissions of MyFolder to 755
# AI will ask: "Apply recursively to all files inside?"

Change file owner:

Terminal window
ai change owner of test.txt to root
ai chown test.txt to admin
ai set owner of myfile.txt to guest

Using direct pattern:

Terminal window
ai chown root test.txt

Recursive:

Terminal window
ai change owner of MyFolder to root
# AI will ask about recursive

Change file group:

Terminal window
ai change group of test.txt to admin
ai chgrp test.txt to users
ai set group of myfile.txt to developers

Change both at once:

Terminal window
ai chog guest test.txt
ai change owner and group of test.txt to root
ai chog of myfile.txt to admin

Network scanning finds computers, open ports, and vulnerabilities.

Scan a specific IP:

Terminal window
ai scan 192.168.1.1
ai probe 10.0.0.5
ai check 172.16.0.1 for open ports

Scan with service:

Terminal window
ai scan 192.168.1.1 port 22
ai check 10.0.0.5 for ssh
ai probe 192.168.1.1 on port 80

Scan random IP:

Terminal window
ai scan a random ip
ai scan random network
ai probe a random host

Scan localhost:

Terminal window
ai scan local
ai scan localhost
ai check my computer

Scan local network:

Terminal window
ai scan the network
ai scan lan
ai probe home network
Scanning 192.168.1.1...
Found computer: 192.168.1.1
Open ports:
22 (SSH)
80 (HTTP)
443 (HTTPS)
Services:
SSH version 2.0
Apache web server

Next steps after scanning:

  • Exploit vulnerabilities
  • Crack passwords
  • Extract data

Scan for library exploits:

Terminal window
ai scan apt library
ai check metaxploit for vulnerabilities
ai scan crypto library

Scan remote service:

Terminal window
ai scan ssh on 192.168.1.1
ai scan ftp on 10.0.0.5 port 21
ai check http on 192.168.1.100

What is es?
es (exploit scan) is a discrete scanning tool that:

  • Checks local libraries for exploits
  • Scans remote services for vulnerabilities
  • Quieter than normal scan

After scanning:

Terminal window
ai find exploits for this computer
ai show available exploits
ai what vulnerabilities exist?

Exploit a target:

Terminal window
ai exploit 192.168.1.1
ai attack this computer
ai break into this system

What happens:

  1. AI scans for vulnerabilities
  2. Finds available exploits
  3. Executes most promising exploit
  4. Returns shell or file access

Crack a password file:

Terminal window
ai crack the password file
ai brute force passwords
ai crack user passwords

Crack specific user:

Terminal window
ai crack password for root
ai brute force admin password

Escalate to root access:

Terminal window
ai escalate to root
ai get root access
ai escalate privileges

What happens:

Agent: Understood - Execute cal command for root access
Agent: Executing plan...
NOVEMBER-( 2005 )
SU MO TU WE TH FR SA
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Done. Awaiting further instructions.

The AI uses the cal command to gain root privileges on the target system.


After gaining access to a system, extract valuable data.

Extract email data:

Terminal window
ai extract email data
ai dig for emails
ai get mail from router

Extract banking data:

Terminal window
ai extract bank information
ai dig for banking data
ai get financial records

Extract passwords:

Terminal window
ai extract passwords
ai dig for password file
ai get user credentials

Extract all data:

Terminal window
ai extract everything
ai dig all data from router
ai get all available information

List files:

Terminal window
ai list files on this computer
ai show directory contents

Download files:

Terminal window
ai download /etc/passwd
ai get the password file

The AI has settings you can change.

Control verbosity:

Terminal window
ai verbose mode on # Show detailed logs
ai verbose mode off # Normal output
ai quiet mode on # Minimal output
ai quiet mode off # Normal output

Or set directly:

Terminal window
ai set outputLevel to 2 # 0=silent, 1=normal, 2=verbose

Preview commands without executing:

Terminal window
ai dry run on # Preview mode
ai dry run off # Execute mode

Example:

Terminal window
ai dry run on
ai delete test.txt
# AI shows: "Would execute: rm test.txt" (but doesn't delete)

Enable aggressive exploitation:

Terminal window
ai aggressive mode on
ai aggressive mode off

What it does:

  • Tries all exploits instead of safest one
  • Uses brute force when possible
  • Reduces delays between attempts

Minimize detection:

Terminal window
ai stealth mode on
ai stealth mode off

What it does:

  • Uses slower, quieter scanning
  • Randomizes attack timing
  • Clears logs when possible

Show technical details:

Terminal window
ai debug mode on
ai debug mode off

Use when:

  • Commands aren’t working as expected
  • You want to see what AI is thinking
  • Reporting bugs

See current settings:

Terminal window
ai show config
ai display configuration
ai view settings

Reset to defaults:

Terminal window
ai reset config
ai restore default settings

Same command, different words:

Terminal window
ai show me test.txt
ai display test.txt
ai read test.txt
ai cat test.txt
ai view the contents of test.txt
ai let me see test.txt

All of these do the same thing!

You can be conversational:

Terminal window
ai can you show me the file test.txt?
ai I need to see what's in myfile.txt
ai please scan the local network

If you know the command name:

Terminal window
ai chmod test.txt to 755"
ai grep 'password' in config.txt"
ai scan 192.168.1.1

Filenames preserve case, but commands don’t:

Terminal window
ai SHOW ME TEST.TXT" # Works, but filename becomes uppercase
ai Show Me test.txt" # Preserves test.txt case
ai show me TeSt.TxT" # Preserves TeSt.TxT case

Best practice: Use normal capitalization for filenames.


Many commands use “of X to Y” structure:

Terminal window
ai change permissions of test.txt to 755"
ai change owner of test.txt to root"
ai change group of test.txt to admin"
ai move content of source.txt to dest.txt"

Some commands support direct structure:

Terminal window
ai chmod test.txt to 755" # Direct
ai chown root test.txt" # Direct
ai chgrp admin test.txt" # Direct

For copy/archive operations:

Terminal window
ai copy test.txt into backup.txt"
ai move myfile.txt into Archive"
ai tar myfiles into backup.tar"

Some commands use flags instead of targets:

Terminal window
ai scan random" # Uses -r flag
ai scan local" # Uses -l flag
ai scan network" # Uses -n flag
ai list wifi networks" # Uses iwlist -l

Problem: AI doesn’t understand your request.

Solutions:

  1. Be more specific: “show file” → “show me test.txt”
  2. Use command name: “chmod test.txt to 755”
  3. Try different wording: “display” instead of “show"

Problem: AI knows what command but not which file/IP.

Solutions:

  1. Include the target: “scan 192.168.1.1” not just “scan”
  2. Be explicit: “delete test.txt” not just “delete"

Problem: You don’t have rights to perform action.

Solutions:

  1. Check if you’re root: whoami
  2. Escalate privileges if you have a shell
  3. Use AI to escalate: “ai escalate to root”

Problem: File not found because case is wrong.

Example:

Terminal window
ai show me MYFILE.TXT
# Looks for MYFILE.TXT but file is actually MyFile.txt

Solution: Use exact case:

Terminal window
ai show me MyFile.txt

Problem: AI interpreted your request differently than intended.

Solutions:

  1. Enable dry run first: ai dry run on"
  2. Be more specific in your request
  3. Use the exact command name if you know it

Example of being more specific:

Terminal window
# Ambiguous
ai remove permissions" # Could mean chmod or rm!
# Clear
ai remove all permissions from test.txt" # chmod
ai delete the file test.txt" # rm

Problem: Commands take a long time.

Causes:

  • Reading man pages (first time only)
  • Complex operations (scanning networks)
  • Waiting for user prompts

Solutions:

  1. Disable prompts: ai promptOnAmbiguous off"
  2. Use simple commands when possible
  3. Be patient during network operations

Terminal window
# Step 1: Scan target
ai scan 192.168.1.1
# Step 2: Check what we found
# (AI shows open ports and services)
# Step 3: Exploit target
ai exploit 192.168.1.1"
# Step 4: Escalate privileges (if needed)
ai escalate to root"
# Step 5: Extract data
ai extract all data from router"
Terminal window
# Step 1: Create a backup directory
ai create a directory called Backups"
# Step 2: Copy important files
ai copy important.txt to Backups/important_backup.txt"
ai copy data.txt to Backups/data_backup.txt"
# Step 3: Change permissions on backups
ai change permissions of Backups to 444"
# Step 4: Verify
ai list files in Backups"
Terminal window
# Step 1: Scan local network
ai scan the local network"
# Step 2: Scan specific interesting hosts
ai scan 192.168.1.1 port 22"
ai scan 192.168.1.5 port 80"
# Step 3: Check for exploits
ai scan ssh on 192.168.1.1"
ai scan http on 192.168.1.5"
# Step 4: Exploit vulnerable services
ai exploit 192.168.1.1"
Terminal window
ai show me test.txt" # View file
ai copy test.txt to backup.txt # Copy
ai move test.txt to Documents" # Move
ai delete test.txt # Delete
ai create an empty file called test.txt # Create
Terminal window
ai change permissions of test.txt to 755" # chmod
ai change owner of test.txt to root" # chown
ai change group of test.txt to admin" # chgrp
ai chog guest test.txt" # chog
Terminal window
ai search for 'password' in config.txt" # grep
ai find files named test.txt" # find
ai locate all .txt files" # find
Terminal window
ai scan 192.168.1.1 # scan IP
ai scan random" # scan -r
ai scan local" # scan -l
ai scan ssh on 192.168.1.1" # es
ai show wifi networks" # iwlist
Terminal window
ai exploit 192.168.1.1" # Attack target
ai crack passwords" # Crack
ai escalate to root" # Escalate
ai extract email data" # Extract
Terminal window
ai verbose mode on" # Verbose
ai dry run on" # Dry run
ai aggressive mode on" # Aggressive
ai stealth mode on" # Stealth
ai show config" # View config

Goal: Get shell access to 192.168.1.1

Terminal window
# Enable stealth to avoid detection
ai stealth mode on"
# Scan target
ai scan 192.168.1.1
# Output: Found SSH on port 22, HTTP on port 80
# Try exploiting SSH
ai scan ssh on 192.168.1.1"
# Output: Found vulnerability in SSH service
# Exploit it
ai exploit 192.168.1.1"
# Output: Shell obtained!
# Escalate to root
ai escalate to root"
# Output: Root shell obtained!
# Extract data
ai extract all data from router"

Goal: Protect sensitive files

Terminal window
# Create secure directory
ai create a directory called SecureFiles"
# Move sensitive files
ai move passwords.txt to SecureFiles"
ai move secrets.txt to SecureFiles"
# Lock down permissions
ai change permissions of SecureFiles to 700"
# This means only you can access
# Change owner to root (if you're root)
ai change owner of SecureFiles to root"
# Verify
ai list files in SecureFiles"

Goal: Map all devices on local network

Terminal window
# Enable verbose mode for details
ai verbose mode on"
# Scan the network
ai scan the local network"
# Output: Found 5 hosts
# Scan each host
ai scan 192.168.1.1
ai scan 192.168.1.2"
ai scan 192.168.1.3"
# Check for exploits on interesting hosts
ai scan ssh on 192.168.1.1"
ai scan ftp on 192.168.1.2"
ai scan http on 192.168.1.3"
# Create report
ai create a file called network_map.txt"
# (manually add findings)

Goal: Extract data from compromised router

Terminal window
# Assuming you have router access
# Check what's available
ai list data on router"
# Extract emails
ai extract email data"
# Save to file
ai create a file called emails.txt"
# (data automatically saved)
# Extract passwords
ai extract password data"
# Extract banking info
ai extract bank information"
# Download everything
ai extract everything"

Goal: Remove evidence after exploitation

Terminal window
# Enable dry run to see what would be deleted
ai dry run on"
# Delete logs
ai delete /var/log/auth.log"
ai delete /var/log/syslog"
# Verify dry run output looks good
# Then disable dry run
ai dry run off"
# Actually delete
ai delete /var/log/auth.log"
ai delete /var/log/syslog"
# Remove your user
ai delete user hacker"
# Clear command history
ai delete ~/.bash_history"

You can execute multiple AI commands in sequence:

Terminal window
ai scan 192.168.1.1 && ai exploit 192.168.1.1"

Store results for later use:

Terminal window
TARGET="192.168.1.1"
ai scan $TARGET"
ai exploit $TARGET"

Create shortcuts for common AI commands:

Terminal window
alias aiscan='ai scan'
alias aiexploit='ai exploit'
# Usage
aiscan 192.168.1.1
aiexploit 192.168.1.1

Put AI commands in scripts:

auto_hack.sh
#!/bin/bash
echo "Starting automated hack..."
ai scan 192.168.1.1
ai exploit 192.168.1.1"
ai escalate to root"
ai extract all data"
echo "Hack complete!"

Begin with basic commands:

  • View files
  • List directories
  • Simple searches

Then progress to:

  • Scanning
  • Exploitation
  • Data extraction

Before destructive operations:

Terminal window
ai dry run on"
ai delete important_file.txt"
# Check if this is what you want
ai dry run off"

When learning:

Terminal window
ai verbose mode on"

This shows you:

  • What the AI is doing
  • Which commands are executed
  • Detailed progress

Vague:

Terminal window
ai "scan" # Scan what?

Specific:

Terminal window
ai scan 192.168.1.1

After successful commands:

Terminal window
ai create a file called commands.txt
# Note: Manually save your command history

The AI provides helpful information:

  • Confirmation messages
  • Error details
  • Next step suggestions

Use non-critical files for testing:

Terminal window
ai create an empty file called test.txt
ai change permissions of test.txt to 777
ai delete test.txt

Mistake 1: Not Using Quotes for Complex Commands

Section titled “Mistake 1: Not Using Quotes for Complex Commands”

Most commands work fine without quotes:

Terminal window
ai show me test.txt # Works!
ai scan 192.168.1.1 # Works!

But use quotes for complex write operations to be safe:

Terminal window
ai "copy file with spaces.txt to backup folder/file.txt"
ai delete important file.txt

Wrong:

Terminal window
ai show me MYFILE.TXT
# But file is actually MyFile.txt

Right:

Terminal window
ai show me MyFile.txt

Wrong:

Terminal window
ai "scan"
# Error: No target specified

Right:

Terminal window
ai scan 192.168.1.1

Wrong:

Terminal window
ai remove permissions"
# Unclear: Delete file or remove permissions?

Right:

Terminal window
ai remove all permissions from test.txt" # chmod
ai delete the file test.txt" # rm

Wrong:

Terminal window
ai delete *.txt"
# Deletes ALL .txt files!

Right:

Terminal window
ai dry run on"
ai delete *.txt"
# Check what would be deleted
ai dry run off"
# Then delete if okay

Terminal window
ai help
ai what commands are available?"
ai how do I use scan?"
ai explain chmod
Terminal window
ai show config"
ai display current settings"
Terminal window
ai debug mode on"
# Run your problematic command
ai show me test.txt"
# Look at debug output for clues

The AI provides helpful error messages:

Agent: No target specified for scan

This tells you: You need to specify what to scan!

Agent: File not found: test.txt

This tells you: The file doesn’t exist or wrong case!


Use arrow keys to recall previous commands:

  • ↑ (Up Arrow): Previous command
  • ↓ (Down Arrow): Next command

Some shells support tab completion:

Terminal window
ai show me tes<TAB>"
# Completes to: ai show me test.txt"

Press Ctrl+C to cancel a running command.


  • Use stealth mode when hacking
  • Clean up logs after exploitation
  • Don’t leave obvious traces
  • Create folders for different projects
  • Use descriptive filenames
  • Back up important data
  • Learn common patterns
  • Use dry run for complex commands
  • Enable verbose when debugging
  • Test on non-critical files first
  • Always backup before destructive operations
  • Understand what a command does before running it

You now know everything you need to use X’s AI Agent effectively!

Remember:

  1. Use natural language
  2. Be specific with targets
  3. Check output carefully
  4. Use dry run for destructive operations
  5. Enable verbose when learning

Start with simple commands and gradually work up to complex operations.

  • Try viewing a file: ai show me test.txt"
  • Try copying a file: ai copy test.txt to backup.txt
  • Try scanning: ai scan local"
  • Configure settings: ai verbose mode on"
  • Read this handbook again when stuck

Good luck hacking! 🚀


Document Version: 1.0
AI System Version: 0.9.7.2
Last Updated: 2024

For technical details, see the AI Developer Handbook.