Read Me
//
/////u // // craftware ===============
// // // utilities NetProbe
// // // // // // ===============
// // // yt /// www.utillyty.eu
//
Copyright (C) 2015 Attilio Pavone <tilly@utillyty.eu>
A trivial TCP/UDP connectivity tester.
Version 1.1, 22/05/2015
********************************************************************************
*
* USAGE
*
********************************************************************************
LSTN (listen)
=============
Activate a TCP Server listening on
SVR ADDR: server local IP address
SVR PORT: server local port number
When an incoming connection arrive it is accepted right away and the
others field are filled:
RMT ADDR: TCP socket remote IP address
RMT PORT: TCP socket remote port number
LOC ADDR: TCP socket local IP address
LOC PORT: TCP socket local port number
CONN (connect)
==============
Connect a TCP socket to the remote host listening at
RMT ADDR: TCP server remote address IP or name (i.e.: 192.168.1.1, www.utillyty.eu, etc)
RMT PORT: TCP server remote port number
As soon as the connection is accepted the other fields are filled:
LOC ADDR: TCP socket local IP address
LOC PORT: TCP socket local port number
BIND (bind UDP socket)
=====================
Create an UDP socket and BIND it to:
LOC ADDR: UDP socket local IP address [optional: leave blank for "any"]
LOC PORT: UDP socket local port number
SEND (send text)
================
Send the content of the upper text box via the TCP/UDP socket, based
on radio-button selection.
The socket must be connected/bound before sending.
If TCP is selected, the connected socket will be used (changes in text fields
are not taken in account as far as the socket is connected).
If UDP is selected, the packet is sent to the host/port currently entered in
the fields RMT ADDR/RMT PORT
If 'Hex' is checked the text is interpreted as an array of hexadecimal values,
(digits are grouped two by two, all non hex digits are skipped).
For example this are interpreted as the same hex array:
hex-1: \x00\x01\x00\x00\x21\x12\xA4\x42\xED\x5C\x3B\x33\x1C\x73\x6B\x86\x2C\x42\x0C\xCE
hex-2: 00010000 2112A442 ED5C3B33 1C736B86 2C420CCE
RECEIVING
=========
All incoming TCP/UDP packet are displayed in the bottom text box as soon
as received.
For UDP also the remote ip/port are displayed in the message text.
If 'Hex' is checked the raw byte array in hexadecimal format is displayed
STRESS
======
When using the STRESS test function, a byte array of the chosen length filled
with the constant 10101010 value is sent to the peer (the text box content is
ignored)
- send
----
CHUNK (B): the prefilled array size in bytes that will be sent at the chosen
interval
INTERVAL (MS): the interval in milliseconds at which the array is sent
- receive
-------
To receive leave the CHUNK (B) field blank.
INTERVAL (MS): the interval in milliseconds at which display receive
status (bytes received in interval/total bytes received since
test started).
********************************************************************************
*
* CHANGELOG
*
********************************************************************************
version 1.0 [r1] - 2015-04-15
-----------------------------
- public release
version 1.1 [r3] - 2015-05-22
-----------------------------
- added hex option
- added host name resolution
- fixed window icon, removed exit button for space matter
********************************************************************************
*
* STUN ruler
*
********************************************************************************
|T |len|cookie |Trx ID |MAPPED ADDRESS |SOURCE ADDRESS |CHANGED-ADDRESS |XOR-MAPPED-ADDRESS(?) |Software
| | | | |T |len|r|P|p |ip |T |len|r|P|p |ip |T |len|r|P|p |ip |T |len|r|P|p |ip |
010100442112a442ed5c3b331c736b862c420cce000100080001e4dc972f16e60004000800010d97d4e343220005000800010d96d4e34321802000080001c5ceb63db2a480220010566f766964612e6f726720302e393600
Request:
=======
20-byte header:
--------------
Type: 00 01 (binding request)
Length: 00 00
Cookie: 21 12 a4 42 (fixed value: read RFC!)
Trx ID: ed 5c 3b 33 1c 73 6b 86 2c 42 0c ce (randomly generated by client)
[00 01 00 00 21 12 a4 42 ed 5c 3b 33 1c 73 6b 86 2c 42 0c ce]
Response (clear):
================
20-byte header:
--------------
Type: 01 01 (binding success response)
Length: 00 44 (=68)
Cookie: 21 12 a4 42
Trx ID: ed 5c 3b 33 1c 73 6b 86 2c 42 0c ce
Attributes: TLV (Type,Length,Value) = 2-bytes Type, 2-bytes Length, <Length>-bytes value
-----------
* MAPPED-ADDRESS *
Type: 00 01
Length: 00 08
Resvd.: 00 (reserved: ignore it!)
Proto: 01 (=IPv4)
Port: 54 3f (=21567)
IP: 52 35 26 07 (=82.53.38.7)
* SOURCE-ADDRESS * (deprecated)
00 04 00 08 00 01 0d 96 42 33 80 0b (=66.51.128.11:3478)
* CHANGED-ADDRESS * (deprecated)
00 05 00 08 00 01 0d 97 42 33 80 0c (=66.51.128.12:3479)
* (unknown) * NB: wireshark says unknown but it looks exactly like XOR-MAPPED-ADDRESS (0x0020)
80 20 00 08 00 01 72 ee 73 27 82 45
* SOFTWARE *
80 22 00 10 56 6f 76 69 64 61 2e 6f 72 67 20 30 2e 39 36 00
(Vovida.org 0.96\0)
Another response (Xor-ed):
=========================
header:
ok |l=12 | cookie | trx id
01 01 00 0c 21 12 a4 42 12 34 56 78 90 12 34 56 78 90 12 34
TLV:
00 20 XOR-MAPPED-ADDRESS
00 08
00
01
79 61 22643 (0x79^0x21 = 0x58, 0x61^0x12 = 0x73 => 0x58*256+0x73 = 0x5873 = 22643)
73 27 82 45 82.53.38.7 (0x73^0x21 = 82, 0x27^0x12 = 53, 0x82^0xa4 = 38, 0x45^0x42 = 7)
port is xor-ed with the first 2 bytes of cookie
ip with the cookie if ipv4, with the cookie + trx-id if ipv6