Skip to content

Commit e6e7a45

Browse files
authored
Merge pull request #20540 from Chocapikk/tips
Add new helpful tips to COMMON_TIPS for better usability
2 parents a496ad0 + 9347289 commit e6e7a45

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

lib/msf/ui/tip.rb

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def self.highlight(string)
1717
"View all productivity tips with the #{highlight('tips')} command",
1818
"Enable verbose logging with #{highlight('set VERBOSE true')}",
1919
"When in a module, use #{highlight('back')} to go back to the top level prompt",
20-
"Tired of setting RHOSTS for modules? Try globally setting it with #{highlight('setg RHOSTS x.x.x.x')}",
20+
"Tired of setting #{highlight('RHOSTS')} for modules? Try globally setting it with #{highlight('setg RHOSTS x.x.x.x')}",
2121
"Enable HTTP request and response logging with #{highlight('set HttpTrace true')}",
2222
"You can upgrade a shell to a Meterpreter session on many platforms using #{highlight('sessions -u <session_id>')}",
2323
"Open an interactive Ruby terminal with #{highlight('irb')}",
@@ -35,12 +35,23 @@ def self.highlight(string)
3535
"Network adapter names can be used for IP options #{highlight('set LHOST eth0')}",
3636
"Use #{highlight('sessions -1')} to interact with the last opened session",
3737
"View missing module options with #{highlight('show missing')}",
38-
"Start commands with a space to avoid saving them to history",
39-
"You can pivot connections over sessions started with the ssh_login modules",
38+
'Start commands with a space to avoid saving them to history',
39+
'You can pivot connections over sessions started with the ssh_login modules',
4040
"Use the #{highlight('analyze')} command to suggest runnable modules for hosts",
41-
"Set the current module's RHOSTS with database values using #{highlight('hosts -R')} or #{highlight('services -R')}",
42-
"Use the 'capture' plugin to start multiple authentication-capturing and poisoning services",
43-
"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')}"
41+
"Set the current module's #{highlight('RHOSTS')} with database values using #{highlight('hosts -R')} or #{highlight('services -R')}",
42+
"Use the #{highlight('capture')} plugin to start multiple authentication-capturing and poisoning services",
43+
"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')}",
44+
"Organize your work by creating workspaces with #{highlight('workspace -a <name>')}",
45+
"Store discovered credentials for later use with #{highlight('creds')}",
46+
"Keep track of findings and observations with #{highlight('notes')}",
47+
"Add routes to pivot through a compromised host using #{highlight('route add <subnet> <session_id>')}",
48+
"Run modules in the background with #{highlight('run -j')} so you can keep working",
49+
"Stop all background jobs quickly with #{highlight('jobs -K')}",
50+
"Export your database results with #{highlight('db_export -f xml <file>')}",
51+
"Execute a command across all sessions with #{highlight('sessions -C <command>')}",
52+
"Use #{highlight('post/multi/manage/autoroute')} to automatically add pivot routes",
53+
"Use #{highlight('check')} before #{highlight('run')} to confirm if a target is vulnerable",
54+
"Bind your reverse shell to a tunnel with #{highlight('set ReverseListenerBindAddress <tunnel_address>')} and #{highlight('set ReverseListenerBindPort <tunnel_port>')} (e.g., ngrok)"
4455
].freeze
4556
private_constant :COMMON_TIPS
4657

0 commit comments

Comments
 (0)