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.

#+ domain name recursion.<br />

declare -a been_there_addr<br />

been_there_addr=( ’127.0.0.1’ ) # Whitelist localhost<br />

# Names which we have checked (or given up on)<br />

declare -a known_name<br />

# Addresses which we have checked (or given up on)<br />

declare -a known_address<br />

# List of zero or more Blacklist servers to check.<br />

# Each ’known_address’ will be checked against each server,<br />

#+ with negative replies and failures suppressed.<br />

declare -a list_server<br />

# In<strong>di</strong>rection limit - set to zero == no limit<br />

in<strong>di</strong>rect=${SPAMMER_LIMIT:=2}<br />

# # # # ’Hunt the Spammer’ information output data # # # #<br />

# Any domain name may have multiple IP addresses.<br />

# Any IP address may have multiple domain names.<br />

# Therefore, track unique address-name pairs.<br />

declare -a known_pair<br />

declare -a reverse_pair<br />

# In ad<strong>di</strong>tion to the data flow variables; known_address<br />

#+ known_name and list_server, the following are output to the<br />

#+ external graphics interface file.<br />

# Authority chain, parent -> SOA fields.<br />

declare -a auth_chain<br />

# Reference chain, parent name -> child name<br />

declare -a ref_chain<br />

# DNS chain - domain name -> address<br />

declare -a name_address<br />

# Name and service pairs - domain name -> service<br />

declare -a name_srvc<br />

# Name and resource pairs - domain name -> Resource Record<br />

declare -a name_resource<br />

# Parent and Child pairs - parent name -> child name<br />

# This MAY NOT be the same as the ref_chain followed!<br />

declare -a parent_child<br />

# Address and Blacklist hit pairs - address->server<br />

declare -a address_hits<br />

# Dump interface file data<br />

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

681

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

Saved successfully!

Ooh no, something went wrong!