版权声明:本文为博主原创文章,未经博主允许不得转载。PS: 转载请注明出处 http://blog.csdn.net/ouyangtianhan https://blog.csdn.net/ouyangtianhan/article/details/80031749
查看usb设备信息
在 终端输入: system_profiler SPUSBDataType 可以查看连接的usb设备的信息
比如我的usb信息如下(部分内容):
Android:
Product ID: 0x2769
Vendor ID: 0x22d9
Version: 2.31
Serial Number: 6e5d48a4
Speed: Up to 480 Mb/sec
Manufacturer: Android
Location ID: 0x1d110000 / 8
Current Available (mA): 500
Current Required (mA): 500
查看到我的android手机的Vendor ID: 0x22d9,记住这个id
USB error 3: Unable to claim interface: Access denied (insufficient permissions)
Here is step how to do it.
- create Info.plist in /System/Library/Extensions/Proxmark3.kext/Contents , And you should create parent folder if is missing, file content shuold be like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- This is a dummy driver which binds to Proxmark. It -->
<!-- contains no actual code; its only purpose is to -->
<!-- prevent Apple's USBHID driver from exclusively -->
<!-- opening the device. -->
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.proxmark.driver.dummy</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.0d1</string>
<key>IOKitPersonalities</key>
<dict>
<!-- The Proxmark3 USB interface -->
<key>Proxmark3</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.kpi.iokit</string>
<key>IOClass</key>
<string>IOService</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>bConfigurationValue</key>
<integer>1</integer>
<key>bInterfaceNumber</key>
<integer>0</integer>
<key>idProduct</key>
<integer>{your-usb-hardware-product-id}</integer>
<key>idVendor</key>
<integer>{your-usb-hardware-vendor-id}</integer>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOUSBFamily</key>
<string>1.8</string>
</dict>
</dict>
</plist>
note: {your-usb-hardware-product-id} and {your-usb-hardware-vendor-id} have to be your own hardware ids, which can be obtained from About this mac - System Report - Hardware - USB .
- Enter /System/Library/Extensions, and run as ROOT
sudo chown -R root:wheel Proxmark3.kext
sudo chmod -R 755 Proxmark3.kext
sudo kextcache -system-caches
- reboot your system and see the result.