Hello David,
thank you for the contribution. The refrence to this thread has been
added to the Host communication wiki page [1].
We will consider adding it to the default Debian image.
Thanks
Andrej
[1]
https://github.com/usbarmory/usbarmory/wiki/Host-communication
On 2023-02-17 Fri, David Bateman wrote:
> With the script this time
>
> Le vendredi 17 février 2023 à 12:11:05 UTC+1, David Bateman a écrit :
>
> > By default the USB Armory uses the legacy g_ether module. This modules is
> > not recognized by Windows since the release of Windows 10. The reason is
> > that the new RNDIS v6 driver file rndiscmp.inf does not include a matching
> > regexp for the g_ether gadget. There are no options to the g_ether module
> > allow the RNDIS v6 Windows driver to accept it.
> >
> > There are many proposed solutions if you search the net, for example using
> > an old RNDIS v5.1 driver, or an unsigned *.INF. However, the best solution
> > is to no longer use the legacy g_ether driver but to convert the USB Armory
> > to use the new Linux ConfigFS Gadget interface.
> >
> > I've written a boot script, that is attached to do exactly this, which I'd
> > like to share. To use it do the following
> >
> > 1. Install the script in /etc/init.d/armorygadget
> > 2. Modify the variables lun0, lun1 at the top of the script (if using
> > "mass" or "multi" mode). You'll have to create the backing store files
> > yourself
> > 3. Select the gadget mode "ether", "mass" or "multi"
> > 4. ln -s /etc/init.d/armorygadget /etc/rc5.d/S01armorygadget
> > 5. sed -i -e "/^g_ether/d" /etc/modules
> > 6. grep -qPzo "start\)\n.*sleep" /etc/init.d/isc_dhcp-server || sed
> > -i -e "s/\(^.*\)start)/\1start)\n\1\tsleep 30/" /etc/init.d/isc-dhcp-server
> >
> > The last action is needed to allow the ether gadget the time to start up
> > before starting the dhcpd on this gadget.. I've been using this script for
> > the last week without issues. Feel free to use this code however you like,
> > as ideally I'd like to see something like this used by default on all USB
> > Armory devices ;-)
> >
> > D.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "USB armory" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
usbarmory+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/usbarmory/f0214101-b278-466b-994b-4ee4af8092d5n%40googlegroups.com.
--
Andrej Rosano | Hardware Security | WithSecure
www.withsecure.com -
foundry.withsecure.com
BDE1 62F4 7020 1588 8046 AE02 EA17 8C32 AB56 54CE