11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1 - Script failure<br />

2 - Something is Blacklisted<br />

Optional environment variables<br />

SPAMMER_TRACE<br />

If set to a writable file,<br />

script will log an execution flow trace.<br />

SPAMMER_DATA<br />

If set to a writable file, script will dump its<br />

<strong>di</strong>scovered data in the form of GraphViz file.<br />

See: http://www.research.att.com/sw/tools/graphviz<br />

SPAMMER_LIMIT<br />

Limits the depth of resource tracing.<br />

Default is 2 levels.<br />

A setting of 0 (zero) means ’unlimited’ . . .<br />

Caution: script might recurse the whole Internet!<br />

A limit of 1 or 2 is most useful when processing<br />

a file of domain names and addresses.<br />

A higher limit can be useful when hunting spam gangs.<br />

Appen<strong>di</strong>ce A. Script aggiuntivi<br />

Ad<strong>di</strong>tional documentation<br />

Download the archived set of scripts<br />

explaining and illustrating the function contained within this script.<br />

http://personal.riverusers.com/mszick_clf.tar.bz2<br />

Study notes<br />

This script uses a large number of functions.<br />

Nearly all general functions have their own example script.<br />

Each of the example scripts have tutorial level comments.<br />

Scripting project<br />

Add support for IP(v6) addresses.<br />

IP(v6) addresses are recognized but not processed.<br />

Advanced project<br />

Add the reverse lookup detail to the <strong>di</strong>scovered information.<br />

Report the delegation chain and abuse contacts.<br />

Mo<strong>di</strong>fy the GraphViz file output to include the<br />

newly <strong>di</strong>scovered information.<br />

__is_spammer_Doc_<br />

#######################################################<br />

672

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!