Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/msf/ui/tip.rb
Views: 11779
# -*- coding: binary -*-1# frozen_string_literal: true23module Msf4module Ui5###6#7# Module that contains some most excellent tips.8#9###10module Tip11def self.highlight(string)12"%grn#{string}%clr"13end1415COMMON_TIPS = [16"View all productivity tips with the #{highlight('tips')} command",17"Enable verbose logging with #{highlight('set VERBOSE true')}",18"When in a module, use #{highlight('back')} to go back to the top level prompt",19"Tired of setting RHOSTS for modules? Try globally setting it with #{highlight('setg RHOSTS x.x.x.x')}",20"Enable HTTP request and response logging with #{highlight('set HttpTrace true')}",21"You can upgrade a shell to a Meterpreter session on many platforms using #{highlight('sessions -u <session_id>')}",22"Open an interactive Ruby terminal with #{highlight('irb')}",23"Use the #{highlight('resource')} command to run commands from a file",24"To save all commands executed since start up to a file, use the #{highlight('makerc')} command",25"View advanced module options with #{highlight('advanced')}",26"You can use #{highlight('help')} to view all available commands",27"Use #{highlight('help <command>')} to learn more about any command",28"View a module's description using #{highlight('info')}, or the enhanced version in your browser with #{highlight('info -d')}",29"After running #{highlight('db_nmap')}, be sure to check out the result of #{highlight('hosts')} and #{highlight('services')}",30"Save the current environment with the #{highlight('save')} command, future console restarts will use this environment again",31"Search can apply complex filters such as #{highlight('search cve:2009 type:exploit')}, see all the filters with #{highlight('help search')}",32"Metasploit can be configured at startup, see #{highlight('msfconsole --help')} to learn more",33"Display the Framework log using the #{highlight('log')} command, learn more with #{highlight('help log')}",34"Network adapter names can be used for IP options #{highlight('set LHOST eth0')}",35"Use #{highlight('sessions -1')} to interact with the last opened session",36"View missing module options with #{highlight('show missing')}",37"Start commands with a space to avoid saving them to history",38"You can pivot connections over sessions started with the ssh_login modules",39"Use the #{highlight('analyze')} command to suggest runnable modules for hosts",40"Set the current module's RHOSTS with database values using #{highlight('hosts -R')} or #{highlight('services -R')}",41"Use the 'capture' plugin to start multiple authentication-capturing and poisoning services",42"The #{highlight('use')} command supports fuzzy searching to try and select the intended module, e.g. #{highlight('use kerberos/get_ticket')} or #{highlight('use kerberos forge silver ticket')}"43].freeze44private_constant :COMMON_TIPS4546DEVELOPER_TIPS = [47"Writing a custom module? After editing your module, why not try the #{highlight('reload')} command",48"Use the #{highlight('edit')} command to open the currently active module in your editor",49].freeze50private_constant :DEVELOPER_TIPS5152ALL_TIPS = COMMON_TIPS + DEVELOPER_TIPS53private_constant :ALL_TIPS5455def self.all56ALL_TIPS57end5859def self.sample60ALL_TIPS.sample61end62end63end64end656667