From 0ff67e5e373ee8f5d45727d1d42115a3a339912d Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 16 Jan 2018 20:40:05 +0100 Subject: [PATCH] add winxp screenshot --- .gitattributes | 2 ++ README.md | 2 ++ doc/r0c.png | Bin 0 -> 5252 bytes r0c/config.py | 11 ++++++++++- r0c/user.py | 2 +- 5 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 doc/r0c.png diff --git a/.gitattributes b/.gitattributes index fcadb2c..90eaec1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ * text eol=lf + +*.png binary diff --git a/README.md b/README.md index 0f00c9c..b4e1452 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ * MIT-Licensed, 2018-01-07, ed @ irc.rizon.net * https://github.com/9001/r0c +![screenshot of telnet connected to a r0c server](doc/r0c.png) + ## features * tries to be irssi diff --git a/doc/r0c.png b/doc/r0c.png new file mode 100644 index 0000000000000000000000000000000000000000..009bbba1242a1ba564df6683c1df7ad70ea0753f GIT binary patch literal 5252 zcmYjVc{tSH_a9n_@F_|WV+m1~EXk4y720T{NJE4YQ-mxtV=JYyq)23JSz}bPgc+r> zWy@A*#y&G|8_WAn!e!u7Y{QkK2oYy_)+~+y>p4W5Fb052%b&``&k%2%UaxTut z&O;y)!gal0dc*p>;mLlvb+Iwf{){~Y@;+Tw;JaxZON5_ya)8wK@1d-NEq9!+ghL?m z-~JsEFZauMX{#?;=_XD6-m1k@ z{-HF%&fCkoLRYk-nLBRLOdsgwVq&jl&3#f_KeH+wBgUtP4y5N;2m?g(BsOy(%wq#4Ao zsonuJ?=wtOdAmYZ^pGs`C;Yv!%)=Ri!|4L^Cp@z!JnQEoeKb2h9wO~clDS6O;!RTU zr)<2uu<^=*r2Cw-_u_`j^BkUNTOjqHfF@n3tQESW*Ds> z>0>T5lD*C`V2b4QOJ_3`l`5{ZR{g><$MjYdNt;$O48iABDfn;U&i*gnS9 z(9pn-a`1S3Mn*>ZC+5%$@7D}(Xq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+liDC#L6Ri%mvV(lXb`nK-Sva;L<(wvXO^2isT!+S= z@c37e@CvZ=>XhbRsli&l#5BL7<(QED>+psce8#k!k#7s!O|I@8=UK%@pEvmaud&ff z2mW6%XRg;Zr39n{N&i>qN-@w&Qh=q~OZQgrkNn8rzTH_e1#K2`;2(JDRLtAw4T?@7 z0>s$>9y&I#rCMWalJA+#y(W7JRgE2^>b~$03a(hsw-)hX`e-^#o!5}{PA{Cxjv2b( zHD_r{r`5=lbFLE|)3x(W=i_$b`f(Hu%y+B|b9hr+uf*m!V4;MtM5Z zYVEUV+p9kYNWu-)Vd5~F4NZRx_5wVYNs|1Ntm;_eS4BQG=%Kl)7BV(7ckV9BEVq!r z^&(?6If`{H@o-gsrd{2JzYb8*14Zv0G*~8GvEKeCnkL9byCh=f+m%3<4w`OxL&tJ*ulmHxbY>Tw`SjP<)YJI;Y^DIA*g<1kSCCG z{n^C`nyOE(GwCfx_SP7`o!eOB#s&rx*s%3S9c1w@ui||j`?3UM;A88%aYe=kLpdZ3 ze2t{=Ye4Re%BeHMlElgY~&L!+JNIK+y)??w}7o=z8{>HdXG0b^2xQv z{g|3NvOZj9OOOhwTz5pyq(s?2bYF&bT)SsT`B~)~(E*i9!_6v6&q`ps=JwhvDW)7- Q{~Uz496x)k*1;$7KYoN{E&u=k literal 0 HcmV?d00001 diff --git a/r0c/config.py b/r0c/config.py index 0c3e90a..c57a4d8 100644 --- a/r0c/config.py +++ b/r0c/config.py @@ -2,29 +2,38 @@ if __name__ == '__main__': raise RuntimeError('\r\n{0}\r\n\r\n this file is part of retr0chat.\r\n enter the parent folder of this file and run:\r\n\r\n python -m r0c \r\n\r\n{0}'.format('*'*72)) +BUILD_DATE = '2018-01-16' # felt like a good idea at the time + # two example values are listed for each config attribute; # the first for debug purposes, the second for regular use +# show negotiations etc DBG = True DBG = False +# show all traffic from clients HEXDUMP_IN = True HEXDUMP_IN = False +# show all traffic to clients HEXDUMP_OUT = True HEXDUMP_OUT = False +# filter packets larger than N bytes from being hexdumped HEXDUMP_TRUNC = 65535 HEXDUMP_TRUNC = 128 +# set true for a really bad "slow network" simulation SLOW_MOTION_TX = True SLOW_MOTION_TX = False +# force clients into linemode (to debug linemode UI) FORCE_LINEMODE = True FORCE_LINEMODE = False +# dump statistics every 2 seconds BENCHMARK = True #BENCHMARK = False +# width of the hexdump, in bytes per line HEX_WIDTH = 16 - diff --git a/r0c/user.py b/r0c/user.py index e824aae..eeecd02 100644 --- a/r0c/user.py +++ b/r0c/user.py @@ -99,7 +99,7 @@ class User(object): `1;30m\\ `0;36m| `1m\\_/ `0;36m\\__ `1;30m/ `0;36m------b. build_date `0m """ - text = text.replace(u'`', u'\033[').replace('build_date', '2018-01-15') + text = text.replace(u'`', u'\033[').replace('build_date', BUILD_DATE) text += u""" Useful commands: