/ Chip 2002 May
/ 05_02.iso / macos / net / files / Snak 4.8.2 For OS X.sit / Snak 4.8.2 / UserScripts / CTCPCatcher ![]() | < prev | next > |
MacBinary | 2000-04-20 | 2.4 KB | [TEXT/R*ch] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Thu Apr 20 08:45:48 2000, modified Thu Apr 20 08:45:48 2000, creator BBEdit, type ASCII, 1736 bytes "CTCPCatcher" , at 0x748 410 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [R*ch] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 43 54 43 50 43 61 | 74 63 68 65 72 00 00 00 |..CTCPCa|tcher...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 52 2a 63 | 68 01 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 06 c8 00 | 00 01 9a b5 24 ac 7c b5 |........|....$.|.|
|00000060| 24 ac 7c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |$.|.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 16 bd 00 00 |........|........|
|00000080| 23 20 6c 69 6e 65 73 20 | 77 69 74 68 20 27 23 27 |# lines |with '#'|
|00000090| 20 61 72 65 20 63 6f 6d | 6d 65 6e 74 73 20 74 68 | are com|ments th|
|000000a0| 61 74 20 61 72 65 20 6e | 6f 74 20 65 78 65 63 75 |at are n|ot execu|
|000000b0| 74 65 64 0d 0d 23 20 54 | 68 69 73 20 66 69 6c 65 |ted..# T|his file|
|000000c0| 20 63 6f 6e 74 61 69 6e | 73 20 65 78 61 6d 70 6c | contain|s exampl|
|000000d0| 65 73 20 6f 66 20 68 6f | 77 20 74 6f 20 61 64 64 |es of ho|w to add|
|000000e0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 66 75 6e 63 | additio|nal func|
|000000f0| 74 69 6f 6e 61 6c 69 74 | 79 20 74 6f 20 53 6e 61 |tionalit|y to Sna|
|00000100| 6b 2e 20 0d 23 20 54 68 | 65 20 65 78 61 6d 70 6c |k. .# Th|e exampl|
|00000110| 65 73 20 72 65 73 70 6f | 6e 64 20 74 6f 20 6e 65 |es respo|nd to ne|
|00000120| 77 20 43 54 43 50 20 72 | 65 71 75 65 73 74 73 20 |w CTCP r|equests |
|00000130| 6f 72 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 77 |or chang|es the w|
|00000140| 61 79 20 65 78 69 73 74 | 69 6e 67 20 0d 23 20 72 |ay exist|ing .# r|
|00000150| 65 71 75 65 73 74 73 20 | 61 72 65 20 68 61 6e 64 |equests |are hand|
|00000160| 6c 65 64 2e 0d 0d 23 20 | 54 6f 20 61 75 74 6f 6d |led...# |To autom|
|00000170| 61 74 69 63 61 6c 6c 79 | 20 6c 6f 61 64 20 74 68 |atically| load th|
|00000180| 69 73 20 69 6e 74 6f 20 | 61 20 63 6f 6e 6e 65 63 |is into |a connec|
|00000190| 74 69 6f 6e 2c 20 61 64 | 64 20 22 2f 6c 6f 61 64 |tion, ad|d "/load|
|000001a0| 20 63 74 63 70 63 61 74 | 63 68 65 72 22 20 74 6f | ctcpcat|cher" to|
|000001b0| 20 74 68 65 20 73 74 61 | 72 74 75 70 20 61 63 74 | the sta|rtup act|
|000001c0| 69 6f 6e 73 2e 0d 0d 23 | 20 54 68 69 73 20 6d 65 |ions...#| This me|
|000001d0| 74 68 6f 64 20 63 61 6e | 20 61 64 64 20 61 64 64 |thod can| add add|
|000001e0| 69 74 69 6f 6e 61 6c 20 | 70 72 6f 63 65 73 73 69 |itional |processi|
|000001f0| 6e 67 20 6f 66 20 65 78 | 69 73 74 69 6e 67 20 43 |ng of ex|isting C|
|00000200| 54 43 50 20 66 75 6e 63 | 74 69 6f 6e 73 0d 23 20 |TCP func|tions.# |
|00000210| 53 6e 61 6b 73 20 65 78 | 69 73 74 69 6e 67 20 43 |Snaks ex|isting C|
|00000220| 54 43 50 20 70 72 6f 63 | 65 73 73 69 6e 67 20 77 |TCP proc|essing w|
|00000230| 69 6c 6c 20 73 74 69 6c | 6c 20 68 61 70 70 65 6e |ill stil|l happen|
|00000240| 0d 0d 6f 6e 20 5e 63 74 | 63 70 20 22 25 20 25 20 |..on ^ct|cp "% % |
|00000250| 43 4c 49 45 4e 54 49 4e | 46 4f 20 2a 22 20 7b 0d |CLIENTIN|FO *" {.|
|00000260| 09 65 63 68 6f 20 2a 2a | 2a 20 24 30 20 72 65 71 |.echo **|* $0 req|
|00000270| 75 65 73 74 73 20 79 6f | 75 72 20 43 4c 49 45 4e |uests yo|ur CLIEN|
|00000280| 54 49 4e 46 4f 0d 7d 0d | 0d 0d 23 20 74 68 69 73 |TINFO.}.|..# this|
|00000290| 20 6d 65 74 68 6f 64 20 | 63 61 6e 20 61 6c 73 20 | method |can als |
|000002a0| 61 64 64 20 6e 65 77 20 | 43 54 43 50 20 73 65 6c |add new |CTCP sel|
|000002b0| 65 63 74 6f 72 73 20 6c | 69 6b 65 20 50 41 47 45 |ectors l|ike PAGE|
|000002c0| 2e 20 59 6f 75 72 20 70 | 72 6f 63 65 73 73 69 6e |. Your p|rocessin|
|000002d0| 67 20 6f 66 20 42 65 65 | 70 73 20 0d 23 20 6d 75 |g of Bee|ps .# mu|
|000002e0| 73 74 20 62 65 20 73 65 | 74 20 6f 6e 20 69 6e 20 |st be se|t on in |
|000002f0| 74 68 65 20 70 72 65 66 | 65 72 65 6e 63 65 73 2c |the pref|erences,|
|00000300| 20 6f 72 20 74 68 65 20 | 62 65 65 70 73 20 77 69 | or the |beeps wi|
|00000310| 6c 6c 20 62 65 20 73 69 | 6c 65 6e 74 0d 0d 23 20 |ll be si|lent..# |
|00000320| 74 68 65 20 27 5e 27 20 | 69 6e 20 66 72 6f 6e 74 |the '^' |in front|
|00000330| 20 6f 66 20 63 74 63 70 | 20 6d 61 6b 65 73 20 53 | of ctcp| makes S|
|00000340| 6e 61 6b 20 73 74 6f 70 | 20 70 72 6f 63 65 73 73 |nak stop| process|
|00000350| 69 6e 67 20 6f 66 20 74 | 68 65 20 6d 65 73 73 61 |ing of t|he messa|
|00000360| 67 65 20 61 66 74 65 72 | 20 74 68 65 20 68 61 6e |ge after| the han|
|00000370| 64 6c 65 72 20 0d 23 20 | 68 61 73 20 65 78 65 63 |dler .# |has exec|
|00000380| 75 74 65 64 2e 20 49 66 | 20 74 68 69 73 20 77 61 |uted. If| this wa|
|00000390| 73 20 27 2d 27 20 6f 72 | 20 6d 69 73 73 69 6e 67 |s '-' or| missing|
|000003a0| 20 74 68 65 6e 20 53 6e | 61 6b 20 77 6f 75 6c 64 | then Sn|ak would|
|000003b0| 20 74 72 79 20 61 6e 64 | 20 64 6f 20 50 41 47 45 | try and| do PAGE|
|000003c0| 20 61 73 20 77 65 6c 6c | 20 0d 23 20 62 75 74 20 | as well| .# but |
|000003d0| 74 68 69 73 20 77 6f 75 | 6c 64 20 67 69 76 65 20 |this wou|ld give |
|000003e0| 61 6e 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |an error| message|
|000003f0| 0d 0d 6f 6e 20 5e 63 74 | 63 70 20 22 25 20 25 20 |..on ^ct|cp "% % |
|00000400| 50 41 47 45 22 20 7b 0d | 09 65 63 68 6f 20 07 2a |PAGE" {.|.echo .*|
|00000410| 2a 2a 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |** -----|--------|
|00000420| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 09 65 63 68 6f 20 |--------|-..echo |
|00000440| 07 2a 2a 2a 20 2a 20 43 | 54 43 50 20 50 41 47 45 |.*** * C|TCP PAGE|
|00000450| 20 72 65 63 65 69 76 65 | 64 20 66 72 6f 6d 20 02 | receive|d from .|
|00000460| 24 5b 31 30 5d 30 02 20 | 2a 0d 09 65 63 68 6f 20 |$[10]0. |*..echo |
|00000470| 07 2a 2a 2a 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.*** ---|--------|
|00000480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 7d 0d 0d 0d |--------|---.}...|
|000004a0| 23 20 74 68 65 20 72 61 | 77 5f 69 72 63 20 6d 65 |# the ra|w_irc me|
|000004b0| 74 68 6f 64 20 61 20 77 | 61 79 20 74 6f 20 62 65 |thod a w|ay to be|
|000004c0| 20 74 68 65 20 76 65 72 | 79 20 66 69 72 73 74 20 | the ver|y first |
|000004d0| 74 68 61 74 20 61 63 63 | 65 73 73 65 73 20 69 6e |that acc|esses in|
|000004e0| 63 6f 6d 69 6e 67 20 64 | 61 74 61 0d 23 20 69 74 |coming d|ata.# it|
|000004f0| 20 69 73 20 6f 6e 6c 79 | 20 77 61 79 20 74 68 61 | is only| way tha|
|00000500| 74 20 63 61 6e 20 62 6c | 6f 63 6b 20 74 68 65 20 |t can bl|ock the |
|00000510| 65 78 69 73 74 69 6e 67 | 20 70 72 6f 63 65 73 73 |existing| process|
|00000520| 69 6e 67 20 6f 66 20 43 | 54 43 50 20 72 65 71 75 |ing of C|TCP requ|
|00000530| 65 73 74 73 20 62 79 20 | 73 77 61 6c 6c 6f 77 69 |ests by |swallowi|
|00000540| 6e 67 20 0d 23 20 74 68 | 65 20 64 61 74 61 20 62 |ng .# th|e data b|
|00000550| 65 66 6f 72 65 20 61 6e | 79 20 6f 74 68 65 72 20 |efore an|y other |
|00000560| 70 61 72 74 73 20 6f 66 | 20 53 6e 61 6b 20 61 63 |parts of| Snak ac|
|00000570| 74 73 20 6f 6e 20 69 74 | 0d 0d 23 20 54 68 69 73 |ts on it|..# This|
|00000580| 20 73 63 72 69 70 74 20 | 75 73 65 73 20 74 68 65 | script |uses the|
|00000590| 20 24 6e 69 63 6b 6f 6e | 6c 79 20 66 75 6e 63 74 | $nickon|ly funct|
|000005a0| 69 6f 6e 20 66 72 6f 6d | 20 74 68 65 20 42 61 73 |ion from| the Bas|
|000005b0| 69 63 61 6c 20 73 63 72 | 69 70 74 20 66 69 6c 65 |ical scr|ipt file|
|000005c0| 2e 0d 23 20 54 68 65 20 | 66 75 6e 63 74 69 6f 6e |..# The |function|
|000005d0| 20 73 70 6c 69 74 73 20 | 74 68 65 20 6e 69 63 6b | splits |the nick|
|000005e0| 21 75 73 65 72 68 6f 73 | 74 20 73 74 72 69 6e 67 |!userhos|t string|
|000005f0| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 74 68 65 | and ret|urns the|
|00000600| 20 6e 69 63 6b 2e 0d 0d | 23 20 49 6e 70 75 74 3a | nick...|# Input:|
|00000610| 0d 23 20 24 30 20 3a 20 | 6e 69 63 6b 21 75 73 65 |.# $0 : |nick!use|
|00000620| 72 68 6f 73 74 0d 0d 5e | 6f 6e 20 5e 72 61 77 5f |rhost..^|on ^raw_|
|00000630| 69 72 63 20 22 25 20 50 | 52 49 56 4d 53 47 20 25 |irc "% P|RIVMSG %|
|00000640| 20 3a 2a 01 2a 56 45 52 | 53 49 4f 4e 2a 01 2a 22 | :*.*VER|SION*.*"|
|00000650| 20 7b 0d 09 65 63 68 6f | 20 2a 2a 2a 20 02 24 30 | {..echo| *** .$0|
|00000660| 02 20 72 65 71 75 65 73 | 74 65 64 20 79 6f 75 72 |. reques|ted your|
|00000670| 20 63 6c 69 65 6e 74 20 | 76 65 72 73 69 6f 6e 0d | client |version.|
|00000680| 09 71 75 6f 74 65 20 4e | 4f 54 49 43 45 20 24 6e |.quote N|OTICE $n|
|00000690| 69 63 6b 6f 6e 6c 79 28 | 24 30 29 20 3a 01 56 45 |ickonly(|$0) :.VE|
|000006a0| 52 53 49 4f 4e 20 41 20 | 72 65 61 6c 6c 79 20 67 |RSION A |really g|
|000006b0| 6f 6f 64 20 49 52 43 20 | 63 6c 69 65 6e 74 01 0d |ood IRC |client..|
|000006c0| 7d 0d 0d 23 20 65 6d 69 | 74 73 20 74 68 72 65 65 |}..# emi|ts three|
|000006d0| 20 62 65 65 70 73 2e 20 | 43 61 6e 20 62 65 20 61 | beeps. |Can be a|
|000006e0| 64 64 65 64 20 74 6f 20 | 61 20 73 63 72 69 70 74 |dded to |a script|
|000006f0| 20 73 6e 69 70 70 65 74 | 20 73 6f 20 79 6f 75 20 | snippet| so you |
|00000700| 63 61 6e 20 68 65 61 72 | 20 74 68 61 74 20 69 74 |can hear| that it|
|00000710| 20 65 78 65 63 75 74 65 | 64 0d 61 6c 69 61 73 20 | execute|d.alias |
|00000720| 62 65 65 70 65 72 20 7b | 0d 09 65 63 68 6f 20 07 |beeper {|..echo .|
|00000730| 07 07 20 73 6f 6d 65 74 | 68 69 6e 67 20 68 61 70 |.. somet|hing hap|
|00000740| 70 65 6e 65 64 0d 7d 0d | 00 00 00 00 00 00 00 00 |pened.}.|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000790| 69 63 73 38 00 01 07 5e | 69 63 73 23 00 01 07 76 |ics8...^|ics#...v|
|000007a0| 69 63 73 34 00 01 07 8e | 46 52 45 46 00 01 07 a6 |ics4....|FREF....|
|000007b0| 42 4e 44 4c 00 00 07 be | 47 4e 52 4c 00 01 07 ca |BNDL....|GNRL....|
|000007c0| 53 54 52 20 00 5d 07 e2 | 43 43 49 aa 00 00 0c 4a |STR .]..|CCI....J|
|000007d0| 6e 72 63 74 00 00 0c 56 | 73 79 73 7a 00 00 0c 62 |nrct...V|sysz...b|
|000007e0| 4d 49 4e 48 00 01 0c 6e | 44 46 4c 47 00 02 0c 86 |MINH...n|DFLG....|
|000007f0| 44 41 54 41 00 04 0c aa | 44 41 54 42 00 14 0c e6 |DATA....|DATB....|
|00000800| 44 41 54 43 00 01 0d e2 | 44 69 79 73 00 00 0d fa |DATC....|Diys....|
|00000810| 63 66 72 67 00 00 0e 06 | 76 65 72 73 00 01 0e 12 |cfrg....|vers....|
|00000820| 66 74 61 67 00 00 0e 2a | 00 09 00 00 30 00 00 00 |ftag...*|....0...|
|00000830| 00 00 00 00 00 0a 00 0d | 30 00 02 16 00 00 00 00 |........|0.......|
|00000840| 00 0b 00 1c 30 00 08 fc | 00 00 00 00 f0 00 00 2c |....0...|.......,|
|00000850| 30 00 0b 2a 00 00 00 00 | 07 09 00 34 30 00 f0 b4 |0..*....|...40...|
|00000860| 00 00 00 00 c5 20 00 44 | 40 01 24 52 00 00 00 00 |..... .D|@.$R....|
|00000870| 00 29 00 51 50 01 b5 6e | 00 00 00 00 00 20 00 61 |.).QP..n|..... .a|
|00000880| 00 00 00 04 00 01 00 00 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00000890| 6e 61 63 6f 00 04 5d f8 | 00 00 00 26 00 00 00 3a |naco..].|...&...:|
|000008a0| 2b c6 03 00 07 0d 94 84 | 07 03 b4 7e 07 03 00 06 |+.......|...~....|
|000008b0| 00 04 00 2d 01 c4 03 2d | 04 16 00 2d 01 c4 03 2d |...-...-|...-...-|
|000008c0| 04 16 b5 24 66 2c 00 00 | 00 e6 00 00 01 46 00 00 |...$f,..|.....F..|
|000008d0| 00 00 01 00 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000008e0| 00 00 00 46 07 04 5e cc | 3c 3a 00 00 00 1c 00 46 |...F..^.|<:.....F|
|000008f0| 00 01 4d 57 42 42 00 00 | 00 12 4d 50 53 52 00 00 |..MWBB..|..MPSR..|
|00000900| 00 1e 03 f0 ff ff 00 00 | 00 00 00 00 00 00 03 ed |........|........|
|00000910| ff ff 00 00 00 08 07 04 | 5b cc 00 00 00 00 00 00 |........|[.......|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+