Last active
August 29, 2015 13:59
-
-
Save warewolf/10462719 to your computer and use it in GitHub Desktop.
Modified/customized Phison controller based USB flash drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [117163.256124] usb 8-2: new high-speed USB device number 2 using xhci_hcd | |
| [117163.355492] usb 8-2: New USB device found, idVendor=1337, idProduct=1337 | |
| [117163.355500] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | |
| [117163.355506] usb 8-2: Product: Yeah right. | |
| [117163.355509] usb 8-2: Manufacturer: USB DISK | |
| [117163.355513] usb 8-2: SerialNumber: 2014020622340340000010C6 | |
| [117163.389290] usb-storage 8-2:1.0: USB Mass Storage device detected | |
| [117163.389353] scsi6 : usb-storage 8-2:1.0 | |
| [117163.389413] usbcore: registered new interface driver usb-storage | |
| [117164.392212] scsi 6:0:0:0: CD-ROM USB 2.0 1.00 PQ: 0 ANSI: 4 | |
| [117164.393998] scsi 6:0:0:1: Direct-Access USB 2.0 1.00 PQ: 0 ANSI: 4 | |
| [117164.401747] sr1: scsi3-mmc drive: 0x/0x tray | |
| [117164.402062] sr 6:0:0:0: Attached scsi CD-ROM sr1 | |
| [117164.402331] sr 6:0:0:0: Attached scsi generic sg3 type 5 | |
| [117164.403223] sd 6:0:0:1: Attached scsi generic sg4 type 0 | |
| [117167.605035] sd 6:0:0:1: [sdb] 13977600 512-byte logical blocks: (7.15 GB/6.66 GiB) | |
| [117167.609594] sd 6:0:0:1: [sdb] Write Protect is off | |
| [117167.609605] sd 6:0:0:1: [sdb] Mode Sense: 23 00 00 00 | |
| [117167.613859] sd 6:0:0:1: [sdb] No Caching mode page found | |
| [117167.613866] sd 6:0:0:1: [sdb] Assuming drive cache: write through | |
| [117167.634138] sd 6:0:0:1: [sdb] No Caching mode page found | |
| [117167.634147] sd 6:0:0:1: [sdb] Assuming drive cache: write through | |
| [117167.640371] sdb: unknown partition table | |
| [117167.652486] sd 6:0:0:1: [sdb] No Caching mode page found | |
| [117167.652494] sd 6:0:0:1: [sdb] Assuming drive cache: write through | |
| [117167.652500] sd 6:0:0:1: [sdb] Attached SCSI removable disk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # lsusb -d 1337:1337 -v | |
| Bus 008 Device 002: ID 1337:1337 | |
| Device Descriptor: | |
| bLength 18 | |
| bDescriptorType 1 | |
| bcdUSB 2.00 | |
| bDeviceClass 0 (Defined at Interface level) | |
| bDeviceSubClass 0 | |
| bDeviceProtocol 0 | |
| bMaxPacketSize0 64 | |
| idVendor 0x1337 | |
| idProduct 0x1337 | |
| bcdDevice 1.00 | |
| iManufacturer 1 USB DISK | |
| iProduct 2 Yeah right. | |
| iSerial 3 2014020622340340000010C6 | |
| bNumConfigurations 1 | |
| Configuration Descriptor: | |
| bLength 9 | |
| bDescriptorType 2 | |
| wTotalLength 32 | |
| bNumInterfaces 1 | |
| bConfigurationValue 1 | |
| iConfiguration 0 | |
| bmAttributes 0x80 | |
| (Bus Powered) | |
| MaxPower 100mA | |
| Interface Descriptor: | |
| bLength 9 | |
| bDescriptorType 4 | |
| bInterfaceNumber 0 | |
| bAlternateSetting 0 | |
| bNumEndpoints 2 | |
| bInterfaceClass 8 Mass Storage | |
| bInterfaceSubClass 6 SCSI | |
| bInterfaceProtocol 80 Bulk-Only | |
| iInterface 0 | |
| Endpoint Descriptor: | |
| bLength 7 | |
| bDescriptorType 5 | |
| bEndpointAddress 0x81 EP 1 IN | |
| bmAttributes 2 | |
| Transfer Type Bulk | |
| Synch Type None | |
| Usage Type Data | |
| wMaxPacketSize 0x0200 1x 512 bytes | |
| bInterval 0 | |
| Endpoint Descriptor: | |
| bLength 7 | |
| bDescriptorType 5 | |
| bEndpointAddress 0x02 EP 2 OUT | |
| bmAttributes 2 | |
| Transfer Type Bulk | |
| Synch Type None | |
| Usage Type Data | |
| wMaxPacketSize 0x0200 1x 512 bytes | |
| bInterval 0 | |
| Device Qualifier (for other device speed): | |
| bLength 10 | |
| bDescriptorType 6 | |
| bcdUSB 2.00 | |
| bDeviceClass 0 (Defined at Interface level) | |
| bDeviceSubClass 0 | |
| bDeviceProtocol 0 | |
| bMaxPacketSize0 64 | |
| bNumConfigurations 1 | |
| Device Status: 0x0000 | |
| (Bus Powered) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sg_inq /dev/sg3 | |
| standard INQUIRY: | |
| PQual=0 Device_type=5 RMB=1 version=0x04 [SPC-2] | |
| [AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0 Resp_data_format=2 | |
| SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 [BQue=0] | |
| EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0 | |
| [RelAdr=0] WBus16=0 Sync=0 Linked=0 [TranDis=0] CmdQue=0 | |
| length=36 (0x24) Peripheral device type: cd/dvd | |
| Vendor identification: | |
| Product identification: USB 2.0 | |
| Product revision level: 1.00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sg_inq /dev/sg4 | |
| standard INQUIRY: | |
| PQual=0 Device_type=0 RMB=1 version=0x04 [SPC-2] | |
| [AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0 Resp_data_format=2 | |
| SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 [BQue=0] | |
| EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0 | |
| [RelAdr=0] WBus16=0 Sync=0 Linked=0 [TranDis=0] CmdQue=0 | |
| length=36 (0x24) Peripheral device type: disk | |
| Vendor identification: | |
| Product identification: USB 2.0 | |
| Product revision level: 1.00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sg_raw -r 525 /dev/sg3 06 05 00 00 00 00 | |
| >>> transport error: Host_status=0x07 [DID_ERROR] | |
| Driver_status=0x00 [DRIVER_OK, SUGGEST_OK] | |
| SCSI Status: Good | |
| Received 512 bytes of data: | |
| 00 12 01 00 02 00 00 00 40 37 13 37 13 00 01 01 02 .......@7.7..... | |
| 10 03 01 04 03 09 04 00 00 00 00 00 00 00 00 00 00 ................ | |
| 20 00 00 00 00 00 00 00 00 00 00 00 00 12 03 55 53 ..............US | |
| 30 42 20 44 49 53 4b 00 00 00 00 00 00 00 00 00 00 B DISK.......... | |
| 40 00 00 00 00 00 00 22 03 59 65 61 68 20 72 69 67 ......".Yeah rig | |
| 50 68 74 2e 20 20 20 20 20 00 00 00 00 00 00 00 00 ht. ........ | |
| 60 32 03 32 30 30 33 31 34 34 30 30 30 32 30 30 30 2.20031440002000 | |
| 70 36 30 32 31 32 30 33 43 34 36 00 00 00 00 00 00 6021203C46...... | |
| 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| 90 00 00 39 00 03 09 30 0d 06 03 ff 01 55 53 42 20 ..9...0.....USB | |
| a0 32 2e 30 20 20 20 20 20 20 20 20 20 de 01 00 01 2.0 .... | |
| b0 20 20 20 20 20 20 20 20 31 2e 30 30 00 00 00 00 1.00.... | |
| c0 0c ff ff ff 50 68 49 73 4f 6e 00 ff 02 0a 06 ff ....PhIsOn...... | |
| d0 ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ | |
| f0 00 00 00 00 00 20 ff ff ff ff ff ff ff ff ff ff ..... .......... | |
| 100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 110 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 120 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 130 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 140 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 150 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 160 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 170 ff ff ff ff ff ff ff ff ff ff 56 52 93 10 22 61 ..........VR.."a | |
| 180 00 00 ff 20 00 ef 15 ff ff 49 53 50 70 0a ff ff ... .....ISPp... | |
| 190 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 1a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 1b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 1c0 ff ff ca fe 01 22 1b 01 00 00 ff ff ff ff ff ff .....".......... | |
| 1d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 1e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ | |
| 1f0 ff ff ff ff ff ff ff ff ff ff ff ff 00 1d c8 00 ................ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment