diff options
author | FreeArtMan <dos21h@gmail.com> | 2019-08-03 10:46:53 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2019-08-03 10:46:53 +0100 |
commit | 99a902fad6e62bce4c484edb21a007a51a3c4ada (patch) | |
tree | 1bf4516244c8b9ab9d180a7b6d05ef0553848097 /md/writeup | |
parent | d9d9ba6c43b36178f281047ea2b9208b22af70a7 (diff) | |
download | md-content-99a902fad6e62bce4c484edb21a007a51a3c4ada.tar.gz md-content-99a902fad6e62bce4c484edb21a007a51a3c4ada.zip |
Updated webusb article
Diffstat (limited to 'md/writeup')
-rw-r--r-- | md/writeup/webusb_example.md | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/md/writeup/webusb_example.md b/md/writeup/webusb_example.md index 717e77b..3787ab9 100644 --- a/md/writeup/webusb_example.md +++ b/md/writeup/webusb_example.md @@ -15,7 +15,32 @@ TODO * describe initialisation phase * Describe how to send data on CH341 * Describe how to recieve data on CH341 -* sniffed usbmon traffic desctiption + +## Using example + +Source is located in [http://git.main.lv/cgit.cgi/webusb.git/tree/](http://git.main.lv/cgit.cgi/webusb.git/tree/) + +There is 2 files *index.html* and *webusb.js* both with messy code inside. +To run exmaple download files or clone git repository +``` +git clone http://git.main.lv/cgit.cgi/webusb.git +``` + +Open *index.html* and run sequence + + * Request permissions + * Open + * Claim Interface + * Config + * Set baudrate + * EP1 Out 32 + * BulkOut + +Best option is to open developers console to see logs and results of actions. +And connect to other end of serial other serial converter. Then is possible +to see output from *EP1 Out 32* input box to other device. And with BulkOut +recieve results from other device and save it to inputbox. + ## Gathering info @@ -267,6 +292,13 @@ ffff8c3203c21000 2726380480 S Co:2:022:0 s 40 9a 2518 00c3 0000 0 ffff8c3203c21000 2726380636 C Co:2:022:0 0 0 ``` +| Urb address| Timestamp | Urb Event | Transfer & Control diredtion | Bus number | Device number | Endpoint number | Urb status | Request type | Request | Value | Index | Length | +| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | +| ffff8c3203c21000 | 2726380350 | S | Co | 2 | 022 | 0 | s | 40 | 9a | 1312 | b282 | 0000 | +| ffff8c3203c21000 | 2726380459 | C | Co | 2 | 022 | 0 | 0 | 0 | | | | | +| ffff8c3203c21000 | 2726380480 | S | Co | 2 | 022 | 0 | s | 40 | 9a | 2518 | 00c3 | 0000 | +| ffff8c3203c21000 | 2726380636 | C | Co | 2 | 022 | 0 | 0 | 0 | | | | | + ## Thx [daGrevis](https://github.com/daGrevis) - gave tips about using await/async in js |