There are several hardware options you can use, going from a simple Android phone to custom hardware such as Teensy USB HID, which you can order at https://www.pjrc.com/; USB Rubber Ducky, available at https://hakshop.com; or the Cactus WHID from https://github.com/whid-injector/WHID.
Getting ready
Get Metasploit Penetration Testing Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.