Protocols/OSCAR/SNAC/ICQ DB QUERY/REQ INFORMATION/SEND SPAM REPORT

From NINA Wiki
Jump to navigation Jump to search
OSCAR Protocol
IntroductionTermsClients
Basic
DatatypesFLAPSNACTLV
UUIDsErrorsTool IDs
Host Interaction
Rate LimitsMigrationMessages
Other Services
ADMINADVERTALERT
BARTBOSBUCPCHAT
CHAT_NAV
Tutorials
Sign OnBARTRendezvous
ICBMLocateBuddies
Foodgroups
OSERVICE (0x0001)
LOCATE (0x0002)
BUDDY (0x0003)
ICBM (0x0004)
ADVERT (0x0005)
INVITE (0x0006)
ADMIN (0x0007)
POPUP (0x0008)
PD (0x0009)
USER_LOOKUP (0x000A)
STATS (0x000B)
TRANSLATE (0x000C)
CHAT_NAV (0x000D)
CHAT (0x000E)
ODIR (0x000F)
BART (0x0010)
FEEDBAG (0x0013)
ICQ (0x0015)
BUCP (0x0017)
ALERT (0x0018)
PLUGIN (0x0022)
UNNAMED_FG_24 (0x0024)
MDIR (0x0025)
ARS (0x044A)
ID Origin Name Foodgroup Service Status Version
0x0015, 0x0002 Client ICQ__DB_QUERY ICQ BOS Active 1.2


From Aleksandr Shutko: SNAC(15,02)/07D0/2008 META_SEND_SPAM_REPORT


Client use this to send spam report to server staff. This was first appeared in ICQLite (1150). Server should reply via SNAC(15,03)/07DA/2012 which contain flag byte. If flag byte doesn't equal 0x0A - there was an error sending request. Client should put spammer messages into this request.

 00 15   word   SNAC family
 00 02   word   SNAC subtype
 00 01   word   SNAC flags
 xx xx xx xx   dword   SNAC request-id
 00 01   word   TLV.Type(1) - encapsulated META_DATA
 xx xx   word   TLV.Length
 xx xx   word (LE)   data chunk size (TLV.Length-2)
 xx xx xx xx   dword (LE)   request owner uin
 D0 07   word (LE)   data type: META_DATA
 02 00   word (LE)   request sequence number
 08 20   word (LE)   data subtype: META_SEND_SPAM_REPORT
 xx xx   word (LE)   spammer uin string length
 xx .. xx 00   asciiz str   spammer uin string
 xx xx xx xx
 xx xx xx xx
  raw 8b   report id cookie
 xx xx xx xx
    xx xx xx xx
 xx xx xx xx
 xx xx xx xx
 xx
  raw 17b   unknown (depends on spammer message type)
 xx xx   word (LE)   messagelog string length
 xx .. xx 00   asciiz str   messagelog string


Example SNAC dump with flap header:


  00 15 00 02 00 00 00 0F  00 02 00 01 00 AA A8 00  ........ ........
  92 E4 5E 00 D0 07 1F 37  08 20 08 00 31 30 30 30  ..^....7 . ..1000
  30 30 30 00 00 00 00 00  38 FB AC 3E BE 6B 73 05  000..... 8..>.ks.
  0F C2 10 4F A6 DE 4D B1  E3 56 4B 0E 01 79 00 31  ...O..M. .VK..y.1
  30 30 30 30 30 30 20 28  30 38 3A 35 37 20 50 4D  000000 ( 08:57 PM
  29 20 3A 20 0D 0A 74 65  73 74 20 6D 65 73 73 61  ) : ..te st messa
  67 65 31 0D 0A 4E 61 74  61 73 68 61 53 54 20 20  ge1..Nat ashaST
  28 30 38 3A 35 37 20 50  4D 29 20 3A 20 0D 0A 74  (08:57 P M) : ..t
  65 73 74 20 6D 65 73 73  61 67 65 32 0D 0A 4E 61  est mess age2..Na
  74 61 73 68 61 53 54 20  20 28 30 38 3A 35 38 20  tashaST   (08:58
  50 4D 29 20 3A 20 0D 0A  74 65 73 74 20 6D 65 73  PM) : .. test mes
  73 61 67 65 33 0D 0A 00                           sage3...