Character Generator Protocol: Difference between revisions

Content deleted Content added
m Bot: http → https
m format RFCs
 
(One intermediate revision by one other user not shown)
Line 19:
| osilayer = [[Application layer]] (7)
| ports = tcp/19, udp/19
| rfcs = {{IETF RFC|864|plainlink=yes}}
| hardware =
}}
Line 148:
 
== Visual output simulation ==
For security reasons, most modern machines should have CHARGEN services disabled. The following is a Linux bash script that will simulate the visual appearance of the CHARGEN service in the terminal window. The script can be stopped by pressing {{Keypress|Ctrl + |C}}.
<syntaxhighlight lang="bash">
strg=""; for n in {32..126}; do c=`printf '%x' $n | xxd -r -p`; strg=${strg}${c}; done; strg=${strg}${strg}; n=0; while :; do m=n%95; echo "${strg:m:72}"; n=$((n+1)); sleep .1; done;
 
</syntaxhighlight>