I want to completely wipe a MacBook Pro and install macOS High Sierra, but without trusting the self-install mechanism on the laptop (it's second-hand, so it may have been compromised by a rootkit or something). So I want to somehow download it and install it from an external boot disk, like in the old days.
How can I do this? I've googled but I can't seem to find any clear advice on this.