WaReD Posted September 5, 2022 Share Posted September 5, 2022 compiling error in payloadstudio if use EXTENSION OS_DETECTION Quote Link to comment Share on other sites More sharing options...
WaReD Posted September 5, 2022 Author Share Posted September 5, 2022 after debugging macos is detected in linux.. grrr Quote Link to comment Share on other sites More sharing options...
Mork Posted September 6, 2022 Share Posted September 6, 2022 Vor 19 Stunden sagte WaReD: nach dem debuggen wird macos in linux erkannt.. grrr The same with android. Also recognized as Linux Quote Link to comment Share on other sites More sharing options...
WaReD Posted September 6, 2022 Author Share Posted September 6, 2022 I hope there will be an update, I bought it specifically for that Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted September 6, 2022 Share Posted September 6, 2022 23 hours ago, WaReD said: after debugging macos is detected in linux.. grrr Which version of macOS is being detected as Linux? Quote Link to comment Share on other sites More sharing options...
WaReD Posted September 6, 2022 Author Share Posted September 6, 2022 28 minutes ago, Darren Kitchen said: Which version of macOS is being detected as Linux? Hi Darren it's macos 12.5.1 Monterey... for the moment I have made a macos/linux detection with uname -a | grep -q "Darwin" && echo -e "Macos" that requires opening a terminal first 😉 Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted September 6, 2022 Share Posted September 6, 2022 Apple keeps changing the behavior in macOS. I can verify that this is working as expected on my Catalina mac, but agree it's also failing on my Monterey mac. I haven't tested Big Sur or Ventura. Thankfully the detection is all done in DuckyScript and extensions are versioned for this very reason, so we'll just need to test and update the extension. I wish it weren't such a moving target — but I'm glad we made the architectural choices to not hardcode values or bake detection into the firmware, which means we have a ton of flexibility to adapt as the environment changes. There are at least two potential vectors for macOS detection that I can think of off the top of my head which could be added to the extension: lack of scroll lock state reply (doesn't exist on mac) or brief press vs hold of capslock (macos requires ~100ms "hold" of capslock to enable, whereas every other system treats it the same as any ordinary key). Quote Link to comment Share on other sites More sharing options...
WaReD Posted September 6, 2022 Author Share Posted September 6, 2022 37 minutes ago, Darren Kitchen said: Apple keeps changing the behavior in macOS. I can verify that this is working as expected on my Catalina mac, but agree it's also failing on my Monterey mac. I haven't tested Big Sur or Ventura. Thankfully the detection is all done in DuckyScript and extensions are versioned for this very reason, so we'll just need to test and update the extension. I wish it weren't such a moving target — but I'm glad we made the architectural choices to not hardcode values or bake detection into the firmware, which means we have a ton of flexibility to adapt as the environment changes. There are at least two potential vectors for macOS detection that I can think of off the top of my head which could be added to the extension: lack of scroll lock state reply (doesn't exist on mac) or brief press vs hold of capslock (macos requires ~100ms "hold" of capslock to enable, whereas every other system treats it the same as any ordinary key). I just changed the extension, it's good for now, in macos capslock_ON is all a time False.. in Linux is TRUE... I'll post the solution soon, only for Windows, Mac, and Linux detection. I don't have an android smartphone or chromebook to test the suite Quote Link to comment Share on other sites More sharing options...
WaReD Posted September 6, 2022 Author Share Posted September 6, 2022 here the solution, tested and ok 👍 detect_os.txt 1 Quote Link to comment Share on other sites More sharing options...
Mork Posted September 7, 2022 Share Posted September 7, 2022 13 hours ago, WaReD said: hier die Lösung, getestet und ok 👍 detect_os.txt 623 B · 6 downloads Thanks for sharing your current solution. Unfortunately it is not an option for Android! Quote Link to comment Share on other sites More sharing options...
hdbreaker Posted April 11 Share Posted April 11 Hi, I'm having same issue in macOS Big Sur, it is detected as LINUX. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.