Content deleted Content added
Persent101 (talk | contribs) mNo edit summary Tags: Mobile edit Mobile app edit iOS app edit |
Brandenads (talk | contribs) Added a bash script that will simulate the visual appearance of CHARGEN. |
||
Line 127:
</pre>
This continues until the TCP connection is closed as shown in the trace by ending the telnet session.
== Visual Output Simulation ==
For security reasons, most modern machines should have both telnet and 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 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>
==Abuse==
|