Callback Address (set myip)
Which IP ADscan tells a target to connect back to during relay, coercion and capture, how it is chosen per asset, and what to set when the authentication never arrives.
It did not call me back: what to set
If a relay, coercion or capture step finishes with no incoming authentication, the target probably connected to an address it cannot reach. Declare the address the target must use:
(ADscan:workspace) > set myip 203.0.113.10An address you declare with set myip wins over everything ADscan would otherwise infer. ADscan does not require it to exist on a local interface, so you can use the address of a jump host or a tunnel endpoint. It must be a valid IP address, and ADscan rejects anything else when you type it.
The declaration is saved with the workspace, so it survives a restart and a workspace reload. Selecting a network interface afterwards (set iface) replaces it, so if you need the declared address, set it last.
If ADscan cannot find any usable address, the step stops and tells you, instead of coercing the target towards nothing:
Could not determine which local IP the target <host> should connect back to: no route lookup result and no configured 'myip'. Declare it with 'set myip <ip>'.When this applies
In most techniques ADscan connects out to the target. A few work the other way round: the target must authenticate back to you.
- ADCS ESC8 relay
- NTLM capture
- RBCD relay
- Share bait (files that make a user's machine authenticate to you when they browse the share)
For these, ADscan listens on every interface and separately advertises one address to the target. The target has to be able to reach that address from its own network.
How the address is chosen
ADscan picks the address per asset, the host that has to connect back, not once for the whole workspace. It takes the first of these that yields an address:
| Order | Source | What it covers |
|---|---|---|
| 1 | An address passed to the command itself (see below) | One command that needs a different address from the rest. |
| 2 | The address you declared with set myip | Tunnels and pivots, where the address is on no local interface. |
| 3 | The callback address of a pivot that covers the target | A target reached through a Ligolo tunnel. |
| 4 | The address your operating system would use to reach that specific asset | Several interfaces on different networks. |
| 5 | The address of the interface you chose | The fallback when nothing more specific is available. An interface no target could reach is never used here, such as a container bridge, a virtual adapter, or the container's own interface. |
| 6 | The best local IPv4 address, preferring a real network interface | The last resort, for a session with no interface configured. Your operating system decides what counts as real, so a VPN tunnel you pivot through is used, while a container bridge or a hypervisor adapter is not. |
| 7 | Nothing usable | The step stops and reports it. |
A few commands accept the address directly. The flag is not the same everywhere:
| Command | Flag |
|---|---|
relay_ldap | --listener-ip IP |
| CVE scan | --listener <ip> |
For any other command, declare the address with set myip.
You do not have to choose an interface for any of this. ADscan does not ask for one when a session starts, and a session with none configured still gets an address from the last rung. If you do choose one (set iface, or --interface in adscan ci and adscan execute), its address is used only when nothing more specific applies.
When ADscan asks for an interface
Only broadcast poisoning needs a specific network interface, so that is where ADscan asks. start, start_auth and start_unauth do not prompt for one when the session begins. The question appears at the poisoning prompt and when you run the poisoning command yourself:
- If an interface is already set, ADscan offers to keep it, switch to another, or skip. Keeping it is the default.
- If none is set, ADscan opens an interface picker with each option shown with its IPv4 address, plus an entry to skip.
Whether poisoning runs at all is decided in this order, so you can tell in advance whether you will be asked:
ADSCAN_NO_POISONING=1turns it off, whatever else is set.- An explicit
poisoning.enabledin the scan config. - The scan policy default: on for a policy for a real environment (
audit,production_sensitive), off forlab_ctf.
A normal Audit session therefore asks, and a Lab / CTF session does not unless you enable poisoning. In an unattended adscan ci run with no --interface, poisoning is skipped with a warning instead of asking.
Why it is per asset
A single global address is wrong in two situations that come up in real engagements.
Segmented networks. An appliance with several interfaces reaches every VLAN, and the domain controller and the certificate authority sit on different ones. One global address can be right for the controller and wrong for the authority. When the coerced authentication never arrives, the technique finds nothing to report, and the report then understates the exposure. Resolving per asset gives each host the address that reaches it.
Tunnels and pivots. When you work through a jump host, the address the target must reach belongs to the jump host. No local interface holds it, so ADscan cannot infer it. Either a pivot that covers the target supplies it, or you declare it with set myip.
Troubleshooting
| Symptom | Check |
|---|---|
| The step stops with "Could not determine which local IP" | Run set myip <ip> with the address the target can reach, then run the step again. |
| The step runs but no authentication arrives | The address ADscan chose is probably not reachable from the target. Check from the target's network which of your addresses it can reach, then declare that one with set myip. |
You declared myip and it changed | Selecting an interface with set iface replaces a declared address. Run set myip <ip> again after it. |
| You work through a tunnel or jump host | Declare the jump host's address with set myip. |
| Different assets sit on different networks | Leave myip unset so each asset gets its own address. A declared myip applies to every asset, so use it when one address is correct for all of them. |
One declared address applies to every target
A declared myip overrides the per-asset choice for all targets in the session. Declare it when one address is right for everything you are testing, and leave it unset for a segmented network.
Related pages: Segmented networks, Scanning commands, Attack paths and steps, Hardening detection.
Licence server connection
What happens when an ADscan PRO machine cannot reach the licence server, how long it keeps working, and how to find and fix what blocks the connection.
Engagement scope for hosts and accounts
Hold an assessment to the hosts and accounts the client agreed to, with an allow list and a deny list that work the same way in adscan ci, adscan start and the Enterprise platform.