Character Generator Protocol: Difference between revisions

Content deleted Content added
Brandenads (talk | contribs)
Added a bash script that will simulate the visual appearance of CHARGEN.
Brandenads (talk | contribs)
Line 129:
 
== Visual Output Simulation ==
For security reasons, most modern machines should have both telnetTelnet and chargenCHARGEN services disabled. The following is a Linux bash script that will simulate the visual appearance of the chargenCHARGEN service in the terminal window. The script can be stopped by pressing 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;