script
Ben Pfaff
pfaffben@msu.edu
11 Sep 2000 08:14:45 -0400
"Marcel Kunath" <kunathma@pilot.msu.edu> writes:
> If somebody has some ample time can you take apart this little script and
> explain what it does?
>
> dig @138.195.138.195 goret.org. axfr |
Retrieves and outputs all DNS records for goret.org from the DNS
server at 138.195.138.195.
> grep '^c..\..*A' |
Drops all records except "A" (address) records of the form
c##.################################.gros 1D IN A 127.0.0.1
where each # is a hex digit.
> sort |\
The initial c## is a sort key. This arranges the records in
proper order.
> cut -b5-36 |
Drops everything except the long string of hex digits, which is
encoded, gzip'd data.
> perl -e 'while(<>){print pack("H32",$_)}' |
Converts the hex digits into a stream of binary data.
> gzip -d
Ungzips the binary data, producing the deCSS source code.