name: msfconsole
category: exploit
description: Metasploit Framework console for exploitation and post-exploitation.
keywords:
  - metasploit
  - exploit
  - payload
  - shell
  - meterpreter
  - post
  - framework

parameters:
  resource:
    type: string
    flag: "-r"
    description: Resource script to run

  execute:
    type: string
    flag: "-x"
    description: Commands to execute

  quiet:
    type: boolean
    flag: "-q"
    description: Quiet mode (no banner)

  database:
    type: string
    flag: "-d"
    description: Database to use

  environment:
    type: string
    flag: "-e"
    description: Environment string

  logger:
    type: string
    flag: "-L"
    description: Log output to file

  real_readline:
    type: boolean
    flag: "-n"
    description: Use real readline

requires_root: false
timeout: 0
interactive: true

examples:
  - "msfconsole -q"
  - "msfconsole -r script.rc"
  - "msfconsole -q -x 'use exploit/multi/handler; set PAYLOAD windows/meterpreter/reverse_tcp; set LHOST 192.168.1.1; exploit'"
  - "msfconsole -q -x 'db_nmap -sV 192.168.1.0/24'"

notes: |
  Common commands:
  - search [term]: Find modules
  - use [module]: Select module
  - info: Module information
  - show options: Show settings
  - set [opt] [val]: Set option
  - exploit/run: Execute module

  Module types:
  - exploit/: Exploitation modules
  - payload/: Payloads (shells, meterpreter)
  - auxiliary/: Scanners, fuzzers
  - post/: Post-exploitation
  - encoder/: Payload encoders

  Common payloads:
  - windows/meterpreter/reverse_tcp
  - linux/x64/meterpreter/reverse_tcp
  - windows/shell/reverse_tcp
  - cmd/unix/reverse_bash

  Database commands:
  - db_nmap: Nmap with DB storage
  - hosts: List hosts
  - services: List services
  - vulns: List vulnerabilities

  Resource scripts:
  - Automate common tasks
  - Chain multiple modules
