Qué solicitudes envío en un chat de Ares (dejo Protocolo)

  • 0 Respuestas
  • 1295 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado Nemo247820

  • *
  • Underc0der
  • Mensajes: 15
  • Actividad:
    0%
  • Reputación 0
    • Ver Perfil
Hola,
Aca les dejo el documento de protocolo de ares:
Mi pregunta es: que solicitudes envio en un chat de ares cuando me conecto?

Código: C
  1. Code: [Select]
  2. 2 bytes -> data length
  3. 1 byte -> proto id
  4. x bytes -> data
  5.  
  6.  
  7. Ares Chatroom Protocol - Ares 2.1.7.3041 implementation:
  8.  
  9. Code: [Select]
  10. Proto ID: MSG_CHAT_SERVER_ERROR (0)
  11. Direction: server to client
  12. Function: make client display error message and then disconnect
  13.  
  14. x bytes -> error message
  15.  
  16. Code: [Select]
  17. Proto ID: MSG_CHAT_CLIENT_RELOGIN (1)
  18. Direction: client to server
  19. Function: login and automatically set keepalive flag
  20.  
  21. Same packet layout as MSG_CHAT_CLIENT_LOGIN
  22.  
  23. Code: [Select]
  24. Proto ID: MSG_CHAT_CLIENT_LOGIN (2)
  25. Direction: client to server
  26. Function: login handshake packet when first joining a room
  27.  
  28. 16 bytes -> guid
  29. 2 bytes -> file count
  30. 1 byte -> null
  31. 2 bytes -> data port
  32. 4 bytes -> node ip address
  33. 2 bytes -> node port
  34. 4 bytes -> null * 4
  35. x bytes -> user name
  36. 1 byte -> null
  37. x bytes -> client version
  38. 1 byte -> null
  39. 4 bytes -> local ip address
  40. 4 bytes -> external ip address
  41. 1 byte -> client features
  42. 1 byte -> current uploads
  43. 1 byte -> maximum uploads allowed
  44. 1 byte -> current queued users
  45. 1 byte -> user age
  46. 1 byte -> user gender
  47. 1 byte -> user country code
  48. x bytes -> user location
  49. 1 byte -> null
  50.  
  51. Code: [Select]
  52. Proto ID: MSG_CHAT_SERVER_LOGIN_ACK (3)
  53. Direction: server to client
  54. Function: server tells client that they have logged in successfully
  55.  
  56. x bytes -> the user name allocated to you
  57. 1 byte -> null
  58. x bytes -> the current name of the chatroom
  59. 1 byte -> null
  60.  
  61. Code: [Select]
  62. Proto ID: MSG_CHAT_CLIENT_UPDATE_STATUS (4)
  63. Direction: client to server
  64. Function: client sends this every few minutes to keep connection alive
  65.  
  66. 2 bytes -> file count
  67. 1 byte -> client features
  68. 4 bytes -> node ip address
  69. 2 bytes -> node port
  70. 4 bytes -> external ip address
  71. 1 byte -> client features
  72. 1 byte -> current uploads
  73. 1 byte -> maximum uploads allowed
  74. 1 byte -> current queued users
  75. 1 byte -> user age
  76. 1 byte -> user gender
  77. 1 byte -> user country code
  78. x bytes -> user location
  79. 1 byte -> null
  80.  
  81. Code: [Select]
  82. Proto ID: MSG_CHAT_SERVER_UPDATE_USER_STATUS (5)
  83. Direction: server to client
  84. Function: server tells users that user details have changed
  85.  
  86. x bytes -> user name
  87. 1 byte -> null
  88. 2 bytes -> file count
  89. 1 byte -> browsable status
  90. 4 bytes -> node ip address
  91. 2 bytes -> node port
  92. 4 bytes -> external ip address
  93. 1 byte -> admin level
  94. 1 byte -> user age
  95. 1 byte -> user gender
  96. 1 byte -> user country code
  97. x bytes -> user location
  98. 1 byte -> null
  99.  
  100. Code: [Select]
  101. Proto ID: MSG_CHAT_SERVER_REDIRECT (6)
  102. Direction: server to client
  103. Function: send a client to a different chatroom
  104.  
  105. 4 bytes -> new room external ip address
  106. 2 bytes -> new room port
  107. 4 bytes -> new room local ip address
  108. x bytes -> new room name
  109. 1 byte -> null
  110. x bytes -> reason for redirecting
  111. 1 byte -> null
  112.  
  113. Code: [Select]
  114. Proto ID: MSG_CHAT_CLIENT_AUTOLOGIN (7)
  115. Direction: client to server
  116. Function: secure admin login
  117.  
  118. 20 bytes -> SHA1 hash
  119. (
  120.     20 bytes -> SHA1 hash
  121.     (
  122.         x bytes -> password
  123.     )
  124.     4 bytes -> server external ip address
  125.     4 bytes -> the admin cookie allocated to you
  126. )
  127.  
  128. Code: [Select]
  129. Proto ID: MSG_CHAT_CLIENT_AVATAR (9)
  130. Direction: client to server
  131. Function: upload your avatar
  132.  
  133. x bytes -> 48x48 sized image as JPEG
  134.  
  135. Code: [Select]
  136. Proto ID: MSG_CHAT_SERVER_AVATAR (9)
  137. Direction: server to client
  138. Function: update a user's avatar for everyone
  139.  
  140. x bytes -> user name
  141. 1 byte -> null
  142. x bytes -> 48x48 sized image as JPEG
  143.  
  144. Code: [Select]
  145. Proto ID: MSG_CHAT_CLIENT_PUBLIC (10)
  146. Direction: client to server
  147. Function: upload a message to the server
  148.  
  149. x bytes -> message
  150.  
  151. Code: [Select]
  152. Proto ID: MSG_CHAT_SERVER_PUBLIC (10)
  153. Direction: server to client
  154. Function: send a received message to clients
  155.  
  156. x bytes -> user name
  157. 1 byte -> null
  158. x bytes -> message
  159.  
  160. Code: [Select]
  161. Proto ID: MSG_CHAT_CLIENT_EMOTE (11)
  162. Direction: client to server
  163. Function: upload a purple message to the server
  164.  
  165. x bytes -> message
  166.  
  167. Code: [Select]
  168. Proto ID: MSG_CHAT_SERVER_EMOTE (11)
  169. Direction: server to client
  170. Function: send a received purple message to clients
  171.  
  172. x bytes -> user name
  173. 1 byte -> null
  174. x bytes -> message
  175.  
  176. Code: [Select]
  177. Proto ID: MSG_CHAT_CLIENT_PERSONALMESSAGE (13)
  178. Direction: client to server
  179. Function: upload your personal message to the server
  180.  
  181. x bytes -> message
  182.  
  183. Code: [Select]
  184. Proto ID: MSG_CHAT_SERVER_PERSONALMESSAGE (13)
  185. Direction: server to client
  186. Function: update a user's personal message for everyone
  187.  
  188. x bytes -> user name
  189. 1 byte -> null
  190. x bytes -> message
  191.  
  192. Code: [Select]
  193. Proto ID: MSG_CHAT_CLIENT_FASTPING (14)
  194. Direction: client to server
  195. Function: fast ping users send this every few seconds if supported
  196.  
  197. empty
  198.  
  199. Code: [Select]
  200. Proto ID: MSG_CHAT_SERVER_FASTPING (14)
  201. Direction: server to client
  202. Function: reply to client fastping packet
  203.  
  204. empty
  205.  
  206. Code: [Select]
  207. Proto ID: MSG_CHAT_SERVER_JOIN (20)
  208. Direction: server to client
  209. Function: server sends green join message
  210.  
  211. 2 bytes -> file count
  212. 4 bytes -> null * 4
  213. 4 bytes -> external ip
  214. 2 bytes -> data port
  215. 4 bytes -> node ip
  216. 2 bytes -> node port
  217. 1 byte -> null
  218. x bytes -> user name
  219. 1 byte -> null
  220. 4 bytes -> local ip
  221. 1 byte -> browsable status
  222. 1 byte -> admin level
  223. 1 byte -> age
  224. 1 byte -> gender
  225. 1 byte -> country code
  226. x byte -> user location
  227. 1 byte -> null
  228.  
  229. Code: [Select]
  230. Proto ID: MSG_CHAT_SERVER_PART (22)
  231. Direction: server to client
  232. Function: server sends orange part message
  233.  
  234. x bytes -> user name
  235.  
  236. Code: [Select]
  237. Proto ID: MSG_CHAT_CLIENT_PVT (25)
  238. Direction: client to server
  239. Function: client uploads a private message
  240.  
  241. x bytes -> target user name
  242. 1 byte -> null
  243. x bytes -> message
  244.  
  245. Code: [Select]
  246. Proto ID: MSG_CHAT_SERVER_PVT (25)
  247. Direction: server to client
  248. Function: server sends an uploaded private message
  249.  
  250. x bytes -> sender user name
  251. 1 byte -> null
  252. x bytes -> message
  253.  
  254. Code: [Select]
  255. Proto ID: MSG_CHAT_SERVER_ISIGNORINGYOU (26)
  256. Direction: server to client
  257. Function: message when you PM a user who ignored you
  258.  
  259. x bytes -> sender user name
  260.  
  261. Code: [Select]
  262. Proto ID: MSG_CHAT_SERVER_OFFLINEUSER (27)
  263. Direction: server to client
  264. Function: message when you PM a user who is no longer connected
  265.  
  266. x bytes -> sender user name
  267.  
  268. Code: [Select]
  269. Proto ID: MSG_CHAT_SERVER_CHANNEL_USER_LIST (30)
  270. Direction: server to client
  271. Function: userlist item when you first join a room
  272.  
  273. same as MSG_CHAT_SERVER_JOIN
  274.  
  275. Code: [Select]
  276. Proto ID: MSG_CHAT_SERVER_TOPIC (31)
  277. Direction: server to client
  278. Function: new topic message
  279.  
  280. x bytes -> message
  281.  
  282. Code: [Select]
  283. Proto ID: MSG_CHAT_SERVER_TOPIC_FIRST (32)
  284. Direction: server to client
  285. Function: topic message received when you join a room
  286.  
  287. x bytes -> message
  288.  
  289. Code: [Select]
  290. Proto ID: MSG_CHAT_SERVER_CHANNEL_USER_LIST_END (35)
  291. Direction: server to client
  292. Function: userlist items finished sending
  293.  
  294. 1 byte -> null
  295.  
  296. Code: [Select]
  297. Proto ID: MSG_CHAT_SERVER_NOSUCH (44)
  298. Direction: server to client
  299. Function: red announce message
  300.  
  301. x bytes -> message
  302.  
  303. Code: [Select]
  304. Proto ID: MSG_CHAT_CLIENT_IGNORELIST (45)
  305. Direction: client to server
  306. Function: add/remove a user to/from your ignore list
  307.  
  308. 1 byte -> add/remove
  309. x bytes -> target user name
  310.  
  311. Code: [Select]
  312. Proto ID: MSG_CHAT_CLIENT_ADDSHARE (50)
  313. Direction: client to server
  314. Function: upload a browse item
  315.  
  316. 1 byte -> mime type
  317. 4 bytes -> file length
  318. 2 bytes -> length of search words
  319. x bytes -> search words
  320.  
  321. // file data --->
  322. 15 bytes -> SHA1 hash (range 1 to 16)
  323. x bytes -> params
  324. 2 bytes -> length of details
  325. x bytes -> details
  326. // <--- file data
  327.  
  328. Code: [Select]
  329. Proto ID: MSG_CHAT_CLIENT_REMSHARE (51)
  330. Direction: client to server
  331. Function: remove a browse item
  332.  
  333. 4 bytes -> size of file(s) to be removed
  334.  
  335. Code: [Select]
  336. Proto ID: MSG_CHAT_CLIENT_BROWSE (52)
  337. Direction: client to server
  338. Function: request browse of someone's shared files
  339.  
  340. 2 bytes -> browse id
  341. 1 byte -> mime
  342. x bytes -> target user name
  343.  
  344. Code: [Select]
  345. Proto ID: MSG_CHAT_SERVER_ENDOFBROWSE (53)
  346. Direction: server to client
  347. Function: all browse items have been sent
  348.  
  349. 2 bytes -> browse id
  350.  
  351. Code: [Select]
  352. Proto ID: MSG_CHAT_SERVER_BROWSEERROR (54)
  353. Direction: server to client
  354. Function: cancelled browse session
  355.  
  356. 2 bytes -> browse id
  357.  
  358. Code: [Select]
  359. Proto ID: MSG_CHAT_SERVER_BROWSEITEM (55)
  360. Direction: server to client
  361. Function: browse item sent to client
  362.  
  363. 2 bytes -> browse id
  364. 1 byte -> mime
  365. 4 bytes -> file size
  366. x bytes -> file data
  367.  
  368. Code: [Select]
  369. Proto ID: MSG_CHAT_SERVER_STARTOFBROWSE (56)
  370. Direction: server to client
  371. Function: browse session begins
  372.  
  373. 2 bytes -> browse id
  374. 2 bytes -> browse items to be sent
  375.  
  376. Code: [Select]
  377. Proto ID: MSG_CHAT_CLIENT_SEARCH (60)
  378. Direction: client to server
  379. Function: request a search of everyone's shared files
  380.  
  381. 2 bytes -> search id
  382. 1 byte -> null
  383. 1 byte -> mime
  384. 2 bytes -> length of search words
  385. x bytes -> search words
  386.  
  387. Code: [Select]
  388. Proto ID: MSG_CHAT_SERVER_SEARCHHIT (61)
  389. Direction: server to client
  390. Function: search result item
  391.  
  392. 2 bytes -> search id
  393. 1 byte -> mime
  394. 4 bytes -> file data
  395. 4 bytes -> external ip
  396. 2 bytes -> port
  397. 4 bytes -> node ip
  398. 2 bytes -> node port
  399. 4 bytes -> local ip
  400. 1 byte -> current upload count
  401. 1 byte -> maximum uploads allowed
  402. 1 byte -> current queued users
  403. 1 byte -> 0x01
  404.  
  405. Code: [Select]
  406. Proto ID: MSG_CHAT_SERVER_ENDOFSEARCH (62)
  407. Direction: server to client
  408. Function: search items finished being sent
  409.  
  410. 2 bytes -> search id
  411.  
  412. Code: [Select]
  413. Proto ID: MSG_CHAT_CLIENT_DUMMY (64)
  414. Direction: client to server
  415. Function: proxy server keep alive
  416.  
  417. empty
  418.  
  419. Code: [Select]
  420. Proto ID: MSG_CHAT_CLIENT_SEND_SUPERNODES (70)
  421. Direction: client to server
  422. Function: request a list of reliable nodes
  423.  
  424. empty
  425.  
  426. Code: [Select]
  427. Proto ID: MSG_CHAT_SERVER_HERE_SUPERNODES (70)
  428. Direction: server to client
  429. Function: receive a list of reliable nodes
  430.  
  431. while (remaining_data >= 6)
  432. {
  433.     4 bytes -> node ip
  434.     2 bytes -> node port
  435. }
  436.  
  437. Code: [Select]
  438. Proto ID: MSG_CHAT_CLIENT_DIRCHATPUSH (72)
  439. Direction: client to server
  440. Function: request help initialising a direct chat session
  441.  
  442. x bytes -> target user name
  443. 1 byte -> null
  444. 16 bytes -> direct chat session guid
  445.  
  446. Code: [Select]
  447. Proto ID: MSG_CHAT_SERVER_DIRCHATPUSH (72)
  448. Direction: server to client
  449. Function: direct chat push response
  450.  
  451. either:
  452.  
  453. 1 byte -> direct chat error code
  454.  
  455. or:
  456.  
  457. x bytes -> target name
  458. 1 byte -> null
  459. 4 bytes -> target external ip
  460. 2 bytes -> target port
  461. 4 bytes -> target local ip
  462. 16 bytes -> direct chat session guid
  463.  
  464. Code: [Select]
  465. Proto ID: MSG_CHAT_SERVER_URL (73)
  466. Direction: server to client
  467. Function: update the url tag
  468.  
  469. x bytes -> URL
  470. 1 byte -> null
  471. x bytes -> message
  472. 1 byte -> null
  473.  
  474. Code: [Select]
  475. Proto ID: MSG_CHAT_CLIENT_COMMAND (74)
  476. Direction: client to server
  477. Function: send an admin command to the server
  478.  
  479. x bytes -> message
  480.  
  481. Code: [Select]
  482. Proto ID: MSG_CHAT_SERVER_OPCHANGE (75)
  483. Direction: server to client
  484. Function: set right click userlist menu for a user
  485.  
  486. 1 byte -> include admin options
  487. 1 byte -> null
  488.  
  489. Code: [Select]
  490. Proto ID: MSG_CHAT_CLIENTCOMPRESSED (80)
  491. Direction: client to server
  492. Function: client sends compressed data to the server
  493.  
  494. x bytes -> compressed data
  495.  
  496. Code: [Select]
  497. Proto ID: MSG_CHAT_CLIENTCOMPRESSED (80)
  498. Direction: server to client
  499. Function: server sends compressed data to the client
  500.  
  501. x bytes -> compressed data
  502.  
  503. Code: [Select]
  504. Proto ID: MSG_CHAT_CLIENT_AUTHLOGIN (82)
  505. Direction: client to server
  506. Function: unsecure admin login
  507.  
  508. x bytes -> password
  509.  
  510. Code: [Select]
  511. Proto ID: MSG_CHAT_SERVER_MYFEATURES (92)
  512. Direction: server to client
  513. Function: server sends joining user chatroom credentials
  514.  
  515. x bytes -> server version
  516. 1 byte -> null
  517. 1 byte -> client features supported
  518. 1 byte -> mime types supported
  519. 1 byte -> default language
  520. 4 bytes -> admin cookie
  521. 1 byte -> avatar support

Gracias y saludos
« Última modificación: Diciembre 05, 2015, 07:02:33 pm por Cl0udswX »

 

[Python] Chat con python

Iniciado por Theraritho5

Respuestas: 4
Vistas: 3237
Último mensaje Diciembre 10, 2015, 10:42:01 am
por Gabriela
¿Mejor aplicacion para crear sala privada de chat?

Iniciado por iGreentick

Respuestas: 2
Vistas: 2098
Último mensaje Junio 24, 2016, 10:13:11 am
por grep
Ayuda a crear chat cliente servidor con sockets en lenguaje c

Iniciado por Yukth

Respuestas: 0
Vistas: 3291
Último mensaje Septiembre 27, 2014, 12:31:38 pm
por Yukth
[SOLUCIONADO] ¿Hacer un Fuzzer propio o no - servidor chat?

Iniciado por Adalher

Respuestas: 13
Vistas: 3268
Último mensaje Julio 24, 2017, 12:38:11 pm
por blackdrake
Como podria hacer printear el chat de IRC con un bot en python?

Iniciado por deletethisaccount

Respuestas: 0
Vistas: 1181
Último mensaje Septiembre 12, 2016, 01:39:32 pm
por deletethisaccount