Similar scenario as before. This is HID (Human Interface Device) attack against Windows 10, using Samsung S7 (HID) that downloads and executes Metasploit payload by hijacking its keyboard. The second Android device is running meterpreter listener and once payload is launched, computer is owned.

So, be aware what might happened if you let others charge their smartphones using your computer. This attack can be performed against Windows, OS X, Linux or Android OS.

How to prevent this scenario:
1) Don’t let anyone charge their smartphones in your PC
2) Use security software that will detect Metasploit payload
3) USB condom should help

source