P4wnP1_aloa icon indicating copy to clipboard operation
P4wnP1_aloa copied to clipboard

os detection

Open learningsomethingnewanduseful opened this issue 5 years ago • 3 comments

i want to add something like this https://github.com/hak5/bashbunny-payloads/pull/384 to p4wnp1 aloa but i don't really know how. already tried it couple times but cant get it working. this is what i also found from bash bunny. https://github.com/hak5/bashbunny-payloads/blob/master/payloads/extensions/get.sh

given that P4wnP1 ALOA is meant to emulate a keyboard, mouse and usb storage device, it might be difficult. I have been thinking about this for some time now, and I know it is not a great method, but to differentiate Windows from OSX, maybe there could be a script monitoring for LED changes, and another could toggle NUM lock, as with HIDScript, you cant use the waitledrepeat code, as it dosen't work with OSX. Probably woulden't help with linux, but it could be a start.

21weberer avatar Oct 16 '19 13:10 21weberer

The bashbunny script linked above utilizes nmap OS fingerprinting.

I can't recommend this for two reasons:

  1. It is active TCP/IP communication to the target and thus "loud".
  2. Results aren't reliable.

Now if you want to use it anyways, it is pretty easy, because:

  • P4wnP1 uses Kali which means nmap is right at your hands
  • If you start your bash script from a Trigger on DHCP please, there is no need to to do fancy stuff like parsing a lease file for the remote IP, as the bashscript is called with a pre-assigned environment variable holding the target IP (set by the DHCP lease trigger)

mame82 avatar Oct 16 '19 18:10 mame82

@learningsomethingnewanduseful Check this script out https://github.com/SymbianSyMoh/P4wnP1-ALOA-Payloads/blob/master/pwnpi-OSAutoDetect.sh

SymbianSyMoh avatar Feb 13 '20 07:02 SymbianSyMoh