Jump to content

Run different payload depending on mobile phone model?


haze1434
 Share

Go to solution Solved by barry99705,

Recommended Posts

Some firmware can react to different things, such as caps lock, I think probably num lock, pressing the button, simply inserting, pressing multiple times, etc. You basically just rename the script inject2.bin ... etc. So there is really no reason you couldn't manually say, hey execute this payload. There are also some people who have worked on things like Bad USB (was this the one, i don't remember), which from what I hear has actually determined what it is connected to via the USB stack/protocol features. Basically the USB protocol is implemented differently on different systems. The thing about this however, is that you would essentially need to be in a position to be able to sniff the USB port you connected your USB rubber ducky to, and you would need to program the code (C-code) in order to do the detection. There is no reason you can't sniff USB ports, there are actually programs for this utility, but make sure you use a normal dell usb keyboard to type on your computer, otherwise you could essentially make your razer keyboard unresponsive during install. Determining the code to do the detection would probably be an intensive process since from what I remember, the person who actually did write the detection code I am thinking about is not releasing the source code for it.

Another thing you would have to determine is whether the ducky has enough memory for the firmware in question. I have had issues before with small devices, such as Lego-NXT bricks not having enough room to run my programs. (Lego NXT is not related to ducky, my point being is that small devices have limited memory with which you can play with)

Now the thing about this type of detection is that all android phones will essentially emit the same usb protocol. All the IOS phones will also have the same USB protocol. So you can't actually determine which version of an apple device you are plugging into, you just know you are plugging into an apple device.

Edited by overwraith
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...