Use the onboard Wi-Fi. The script can tell the target PC to download malware, but simultaneously the Pi Zero 2 W can beacon back to you over Wi-Fi, bypassing the target's need for an internet connection.
Write a script that types commands when plugged into an unlocked PC: raspberry pi zero 2 w hacking projects
Because the Zero 2 W is faster, you can run bettercap alongside the rogue AP to automatically strip HTTPS from requests (SSLstrip2) and inject malicious JavaScript into insecure pages. Use the onboard Wi-Fi
Attach an RTL-SDR dongle via USB-OTG cable: Attach an RTL-SDR dongle via USB-OTG cable: The
The Hak5 Rubber Ducky costs $50+. You can build a more powerful version for $15. The Pi Zero 2 W supports USB Gadget mode, meaning when you plug it into a target computer via USB, it registers as a Human Interface Device (HID) — a keyboard.
With great power comes great responsibility. Use these skills to make systems more secure, not less.