小樱 发表于 2018/4/14 17:08

tracker服务器udp监控存活方案 监控宝Binary(C Arrays)格式,阿里云监控16进制格式数据包

tracker服务器udp监控存活方案 监控宝Binary(C Arrays)格式,阿里云监控16进制格式数据包

UDP请求内容写,选Binary格式,阿里云监控选文本格式
0x00, 0x00, 0x04, 0x17, 0x27, 0x10, 0x19, 0x80,
0x00, 0x00, 0x00, 0x00, 0x32, 0xb3, 0x1f, 0xaf };
回应为
0x00, 0x00, 0x00, 0x00, 0x32, 0xb3, 0x1f, 0xaf };


2018年12月10日20:08:57
补充,阿里云监控现在改版了,监控选16进制格式,响应必须填写
请求
00000417271019800000000032b31faf
响应
0000000032b31faf

http监控推荐
http://tracker1.itzmx.com:8080/announce?info_hash=%11%11%11%11%11%11%11%11%11%11%11%11%11%11%11%11%11%11%11%11

小樱 发表于 2018/11/15 06:38

封包对比,两次采用相同的tracker服务器,相同种子,hash值:c989dba95de52ce5babd684b36a7f8141cc0f0fc
测试1
char peer0_0[] = { /* Packet 75 */
0x00, 0x00, 0x04, 0x17, 0x27, 0x10, 0x19, 0x80,
0x00, 0x00, 0x00, 0x00, 0x32, 0xb3, 0x1f, 0xaf };
char peer1_0[] = { /* Packet 82 */
0x00, 0x00, 0x00, 0x00, 0x32, 0xb3, 0x1f, 0xaf,
0x42, 0xdb, 0x35, 0xd2, 0xac, 0x58, 0x43, 0xc7 };
char peer0_1[] = { /* Packet 83 */
0x42, 0xdb, 0x35, 0xd2, 0xac, 0x58, 0x43, 0xc7,
0x00, 0x00, 0x00, 0x01, 0x0c, 0x52, 0xe0, 0x85,
0xc9, 0x89, 0xdb, 0xa9, 0x5d, 0xe5, 0x2c, 0xe5,
0xba, 0xbd, 0x68, 0x4b, 0x36, 0xa7, 0xf8, 0x14,
0x1c, 0xc0, 0xf0, 0xfc, 0x2d, 0x71, 0x42, 0x34,
0x31, 0x33, 0x30, 0x2d, 0x73, 0x5f, 0x34, 0x4d,
0x38, 0x61, 0x48, 0x7a, 0x4c, 0x21, 0x44, 0x28,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xb7, 0xb4, 0xb5, 0xdf, 0x00, 0x00, 0x00, 0xc8,
0x56, 0xce, 0x02, 0x09, 0x2f, 0x61, 0x6e, 0x6e,
0x6f, 0x75, 0x6e, 0x63, 0x65 };
char peer1_1[] = { /* Packet 86 */
0x00, 0x00, 0x00, 0x01, 0x0c, 0x52, 0xe0, 0x85,
0x00, 0x00, 0x1c, 0x3d, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0x00, 0x11, 0x6f, 0x1b, 0x8f, 0xd8,
0x3a, 0x98, 0xdd, 0xe3, 0x26, 0x5a, 0x47, 0x42,
0xda, 0xa1, 0x71, 0xf3, 0x56, 0xcf, 0xc0, 0x9d,
0xd0, 0x26, 0x56, 0xce, 0xaf, 0x9b, 0x3b, 0xbc,
0x56, 0xcf, 0xaf, 0x98, 0x3d, 0x50, 0x2b, 0xc7,
0x80, 0x01, 0xcb, 0x17, 0x56, 0xce, 0x79, 0x0b,
0xbd, 0x99, 0x00, 0x00, 0x77, 0x7b, 0xc5, 0x0a,
0x68, 0x8a, 0x74, 0x19, 0x60, 0x57, 0x1a, 0xe1,
0x72, 0x1a, 0x77, 0x5a, 0x52, 0x10, 0x6f, 0x3a,
0xa8, 0xea, 0x56, 0xcf, 0x6f, 0x3a, 0xa8, 0xea,
0x56, 0xce, 0x6f, 0x3a, 0xa8, 0xea, 0x00, 0x00,
0x5b, 0x79, 0xff, 0xd6, 0x56, 0xce, 0x56, 0x6b,
0x6e, 0xd3, 0x56, 0xce, 0x2b, 0xf1, 0x30, 0xd6,
0x56, 0xce, 0x24, 0x65, 0xc7, 0xdb, 0x83, 0x53 };

原始值
00000417271019800000000032b31faf
0000000032b31faf42db35d2ac5843c7
42db35d2ac5843c7000000010c52e085c989dba95de52ce5babd684b36a7f8141cc0f0fc2d7142343133302d735f344d3861487a4c2144280000000000000000000000000000000000000000000000000000000000000000b7b4b5df000000c856ce02092f616e6e6f756e6365
000000010c52e08500001c3d00000001000000116f1b8fd83a98dde3265a4742daa171f356cfc09dd02656ceaf9b3bbc56cfaf983d502bc78001cb1756ce790bbd990000777bc50a688a741960571ae1721a775a52106f3aa8ea56cf6f3aa8ea56ce6f3aa8ea00005b79ffd656ce566b6ed356ce2bf130d656ce2465c7db8353

测试2
char peer0_0[] = { /* Packet 9 */
0x00, 0x00, 0x04, 0x17, 0x27, 0x10, 0x19, 0x80,
0x00, 0x00, 0x00, 0x00, 0x8f, 0xde, 0x12, 0x60 };
char peer1_0[] = { /* Packet 11 */
0x00, 0x00, 0x00, 0x00, 0x8f, 0xde, 0x12, 0x60,
0x42, 0xdb, 0x35, 0xd2, 0xac, 0x58, 0x43, 0xc7 };
char peer0_1[] = { /* Packet 12 */
0x42, 0xdb, 0x35, 0xd2, 0xac, 0x58, 0x43, 0xc7,
0x00, 0x00, 0x00, 0x01, 0xaa, 0x88, 0x50, 0xed,
0xc9, 0x89, 0xdb, 0xa9, 0x5d, 0xe5, 0x2c, 0xe5,
0xba, 0xbd, 0x68, 0x4b, 0x36, 0xa7, 0xf8, 0x14,
0x1c, 0xc0, 0xf0, 0xfc, 0x2d, 0x71, 0x42, 0x34,
0x31, 0x33, 0x30, 0x2d, 0x73, 0x5f, 0x34, 0x4d,
0x38, 0x61, 0x48, 0x7a, 0x4c, 0x21, 0x44, 0x28,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xb7, 0xb4, 0xb5, 0xdf, 0x00, 0x00, 0x00, 0xc8,
0x56, 0xce, 0x02, 0x09, 0x2f, 0x61, 0x6e, 0x6e,
0x6f, 0x75, 0x6e, 0x63, 0x65 };
char peer1_1[] = { /* Packet 14 */
0x00, 0x00, 0x00, 0x01, 0xaa, 0x88, 0x50, 0xed,
0x00, 0x00, 0x1c, 0x6a, 0x00, 0x00, 0x00, 0x01,
0x00, 0x00, 0x00, 0x11, 0x6f, 0x1b, 0x8f, 0xd8,
0x3a, 0x98, 0xdd, 0xe3, 0x26, 0x5a, 0x47, 0x42,
0xda, 0xa1, 0x71, 0xf3, 0x56, 0xcf, 0xc0, 0x9d,
0xd0, 0x26, 0x56, 0xce, 0xaf, 0x9b, 0x3b, 0xbc,
0x56, 0xcf, 0xaf, 0x98, 0x3d, 0x50, 0x2b, 0xc7,
0x80, 0x01, 0xcb, 0x17, 0x56, 0xce, 0x79, 0x0b,
0xbd, 0x99, 0x00, 0x00, 0x77, 0x7b, 0xc5, 0x0a,
0x68, 0x8a, 0x74, 0x19, 0x60, 0x57, 0x1a, 0xe1,
0x72, 0x1a, 0x77, 0x5a, 0x52, 0x10, 0x6f, 0x3a,
0xa8, 0xea, 0x56, 0xcf, 0x6f, 0x3a, 0xa8, 0xea,
0x56, 0xce, 0x6f, 0x3a, 0xa8, 0xea, 0x00, 0x00,
0x5b, 0x79, 0xff, 0xd6, 0x56, 0xce, 0x56, 0x6b,
0x6e, 0xd3, 0x56, 0xce, 0x2b, 0xf1, 0x30, 0xd6,
0x56, 0xce, 0x24, 0x65, 0xc7, 0xdb, 0x83, 0x53 };

原始值
0000041727101980000000008fde1260
000000008fde126042db35d2ac5843c7
42db35d2ac5843c700000001aa8850edc989dba95de52ce5babd684b36a7f8141cc0f0fc2d7142343133302d735f344d3861487a4c2144280000000000000000000000000000000000000000000000000000000000000000b7b4b5df000000c856ce02092f616e6e6f756e6365
00000001aa8850ed00001c6a00000001000000116f1b8fd83a98dde3265a4742daa171f356cfc09dd02656ceaf9b3bbc56cfaf983d502bc78001cb1756ce790bbd990000777bc50a688a741960571ae1721a775a52106f3aa8ea56cf6f3aa8ea56ce6f3aa8ea00005b79ffd656ce566b6ed356ce2bf130d656ce2465c7db8353

zhuolu 发表于 2018/11/17 15:41

我试试,测试一下,嘻嘻
页: [1]
查看完整版本: tracker服务器udp监控存活方案 监控宝Binary(C Arrays)格式,阿里云监控16进制格式数据包