Module ImportFrom alias alias alias alias Assign NameStore Dict ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Return FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num orelse Assign NameStore NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Return ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr IfExp CompareEq AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Return orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr IfExp CompareEq AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Return orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr IfExp CompareEq AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Return Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Dict Str Str ListLoad ListLoad Dict Str Str Str ListLoad TupleLoad Str Str Str Str Str Str Str TupleLoad Str Str Str Str Str Str Str ListLoad ListLoad Dict Str Str Str Str Str ListLoad ListLoad ListLoad ListLoad ListLoad Dict Str Str ListLoad ListLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr body If UnaryOpNot CompareIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot CompareIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body If CompareGt Call NameLoad NameLoad Num body Print NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return Assign NameStore ListLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body If CompareGt Call NameLoad NameLoad Num body Print NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return Assign NameStore ListLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore ListLoad BinOpMod Str NameLoad Str For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body If CompareGt Call NameLoad NameLoad Num body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return Assign NameStore ListLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list Assign SubscriptStore NameLoad Index Str NameLoad
N/A kippo_extra.utils ExtendedHoneyPotCommand ModifiedOptionParser OptionParsingError OptionParsingExit N/A commands N/A command_iptables N/A ExtendedHoneyPotCommand N/A N/A resolve_args False N/A APP_NAME iptables N/A APP_VERSION v1.4.14 N/A DEFAULT_TABLE filter start N/A N/A self N/A N/A N/A 
        Emulate iptables commands, including permission checking.

        Verified examples:
        * iptables -A OUTPUT -o eth0 -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT
        * iptables -A INPUT -i eth0 -p tcp -s "127.0.0.1" -j DROP

        Others:
        * iptables
        * iptables [[-t | --table] <name>] [-h | --help]
        * iptables [[-t | --table] <name>] [-v | --version]
        * iptables [[-t | --table] <name>] [-F | --flush] <chain>
        * iptables [[-t | --table] <name>] [-L | --list] <chain>
        * iptables [[-t | --table] <name>] [-S | --list-rules] <chain>
        * iptables --this-is-invalid
         N/A N/A N/A len N/A self args 0 N/A N/A N/A N/A self no_command N/A optional_arg N/A N/A arg_default N/A N/A func N/A N/A option opt_str value parser N/A N/A N/A N/A N/A parser rargs N/A N/A N/A N/A N/A parser rargs N/A 0 startswith - N/A N/A val N/A N/A parser rargs N/A 0 N/A N/A N/A N/A parser rargs pop 0 N/A N/A val arg_default N/A N/A setattr N/A parser values N/A option dest val N/A N/A func N/A N/A parser N/A ModifiedOptionParser add_help_option False N/A N/A N/A parser add_option -h --help dest help action store_true N/A N/A N/A parser add_option -V --version dest version action store_true N/A N/A N/A parser add_option -v --verbose dest verbose action store_true N/A N/A N/A parser add_option -x --exact dest exact action store_true N/A N/A N/A parser add_option --line-numbers dest line_numbers action store_true N/A N/A N/A parser add_option -n --numeric dest numeric action store_true N/A N/A N/A parser add_option --modprobe dest modprobe action store N/A N/A N/A parser add_option -t --table dest table action store default N/A command_iptables DEFAULT_TABLE N/A N/A N/A parser add_option -F --flush dest flush action callback callback N/A optional_arg True N/A N/A N/A parser add_option -Z --zero dest zero action callback callback N/A optional_arg True N/A N/A N/A parser add_option -S --list-rules dest list_rules action callback callback N/A optional_arg True N/A N/A N/A parser add_option -L --list dest list action callback callback N/A optional_arg True N/A N/A N/A parser add_option -A --append dest append action store N/A N/A N/A parser add_option -D --delete dest delete action store N/A N/A N/A parser add_option -I --insert dest insert action store N/A N/A N/A parser add_option -R --replace dest replace action store N/A N/A N/A parser add_option -N --new-chain dest new_chain action store N/A N/A N/A parser add_option -X --delete-chain dest delete_chain action store N/A N/A N/A parser add_option -P --policy dest policy action store N/A N/A N/A parser add_option -E --rename-chain dest rename_chain action store N/A N/A N/A parser add_option -p --protocol dest protocol action store N/A N/A N/A parser add_option -s --source dest source action store N/A N/A N/A parser add_option -d --destination dest destination action store N/A N/A N/A parser add_option -j --jump dest jump action store N/A N/A N/A parser add_option -g --goto dest goto action store N/A N/A N/A parser add_option -i --in-interface dest in_interface action store N/A N/A N/A parser add_option -o --out-interface dest out_interface action store N/A N/A N/A parser add_option -f --fragment dest fragment action store_true N/A N/A N/A parser add_option -c --set-counters dest set_counters action store N/A N/A N/A parser add_option -m --match dest match action store N/A N/A N/A parser add_option --sport --source-ports dest source_ports action store N/A N/A N/A parser add_option --dport --destination-ports dest dest_ports action store N/A N/A N/A parser add_option --ports dest ports action store N/A N/A N/A parser add_option --state dest state action store N/A N/A N/A N/A opts args N/A N/A parser parse_args N/A list N/A self args N/A N/A N/A OptionParsingError N/A e N/A N/A N/A N/A self bad_argument N/A N/A self args N/A 0 N/A N/A N/A OptionParsingExit N/A e N/A N/A N/A N/A self unknown_option e N/A N/A N/A N/A N/A self setup_table N/A opts table N/A N/A N/A N/A opts help N/A N/A N/A N/A self show_help N/A N/A N/A N/A opts version N/A N/A N/A N/A self show_version N/A N/A N/A N/A opts flush N/A N/A N/A N/A self flush N/A N/A N/A opts flush True N/A opts flush N/A N/A N/A N/A opts list N/A N/A N/A N/A self list N/A N/A N/A opts list True N/A opts list N/A N/A N/A N/A opts list_rules N/A N/A N/A N/A self list_rules N/A N/A N/A opts list_rules True N/A opts list_rules N/A N/A N/A N/A self exit N/A setup_table N/A N/A self table N/A N/A N/A 
        Called during startup to make sure the current environment has some
        fake rules in memory.
         N/A N/A N/A hasattr N/A N/A self honeypot env iptables N/A N/A N/A setattr N/A N/A self honeypot env iptables N/A raw filter mangle nat N/A PREROUTING OUTPUT N/A N/A N/A INPUT FORWARD OUTPUT N/A N/A ACCEPT tcp -- anywhere anywhere tcp dpt:ssh N/A DROP all -- anywhere anywhere N/A N/A N/A PREROUTING INPUT FORWARD OUTPUT POSTROUTING N/A N/A N/A N/A N/A N/A PREROUTING OUTPUT N/A N/A N/A N/A self tables N/A getattr N/A N/A self honeypot env iptables N/A N/A N/A N/A self is_valid_table table N/A N/A False N/A N/A self current_table N/A N/A self tables N/A table N/A True N/A is_valid_table N/A N/A self table N/A N/A N/A N/A N/A self user_is_root N/A N/A N/A N/A table N/A N/A N/A self tables iterkeys N/A N/A N/A N/A self writeln N/A %s: can't initialize iptables table '%s': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded. N/A N/A command_iptables APP_NAME table N/A N/A N/A self exit N/A N/A True N/A N/A N/A N/A self no_permission N/A False N/A is_valid_chain N/A N/A self chain N/A N/A N/A N/A N/A chain N/A N/A N/A self current_table iterkeys N/A N/A N/A N/A self writeln N/A %s: No chain/target/match by that name. N/A command_iptables APP_NAME N/A N/A N/A self exit N/A False N/A True N/A show_version N/A N/A self N/A N/A N/A  Show version and exit  N/A N/A N/A self writeln_and_exit N/A %s %s N/A N/A command_iptables APP_NAME N/A command_iptables APP_VERSION N/A show_help N/A N/A self N/A N/A N/A  Show help and exit  N/A N/A N/A self writeln_and_exit N/A %s %s'

Usage: iptables -[AD] chain rule-specification [options]
       iptables -I chain [rulenum] rule-specification [options]
       iptables -R chain rulenum rule-specification [options]
       iptables -D chain rulenum [options]
       iptables -[LS] [chain [rulenum]] [options]
       iptables -[FZ] [chain] [options]
       iptables -[NX] chain
       iptables -E old-chain-name new-chain-name
       iptables -P chain target [options]
       iptables -h (print this help information)

Commands:
Either long or short options are allowed.
  --append  -A chain       Append to chain
  --delete  -D chain       Delete matching rule from chain
  --delete  -D chain rulenum
               Delete rule rulenum (1 = first) from chain
  --insert  -I chain [rulenum]
               Insert in chain as rulenum (default 1=first)
  --replace -R chain rulenum
               Replace rule rulenum (1 = first) in chain
  --list    -L [chain [rulenum]]
               List the rules in a chain or all chains
  --list-rules -S [chain [rulenum]]
               Print the rules in a chain or all chains
  --flush   -F [chain]     Delete all rules in  chain or all chains
  --zero    -Z [chain [rulenum]]
               Zero counters in chain or all chains
  --new     -N chain       Create a new user-defined chain
  --delete-chain
            -X [chain]     Delete a user-defined chain
  --policy  -P chain target
               Change policy on chain to target
  --rename-chain
            -E old-chain new-chain
               Change chain name, (moving any references)
Options:
[!] --proto    -p proto    protocol: by number or name, eg. 'tcp'
[!] --source   -s address[/mask][...]
               source specification
[!] --destination -d address[/mask][...]
               destination specification
[!] --in-interface -i input name[+]
               network interface name ([+] for wildcard)
  --jump    -j target
               target for rule (may load target extension)
  --goto      -g chain
                              jump to chain with no return
  --match  -m match
               extended match (may load extension)
  --numeric    -n      numeric output of addresses and ports
[!] --out-interface -o output name[+]
               network interface name ([+] for wildcard)
  --table  -t table    table to manipulate (default: 'filter')
  --verbose    -v      verbose mode
  --line-numbers       print line numbers when listing
  --exact  -x      expand numbers (display exact values)
[!] --fragment -f      match second or further fragments only
  --modprobe=<command>     try to insert modules using this command
  --set-counters PKTS BYTES    set the counter during insert/append
[!] --version  -V      print package version. N/A N/A command_iptables APP_NAME N/A command_iptables APP_VERSION N/A list_rules N/A N/A self chain N/A N/A N/A  List current rules as commands N/A N/A N/A self user_is_root N/A N/A N/A N/A len chain 0 N/A N/A chain N/A N/A N/A N/A self is_valid_chain chain N/A N/A N/A chains N/A chain N/A N/A chains N/A N/A N/A self current_table iterkeys N/A output N/A N/A chain chains N/A N/A N/A N/A output append N/A -P %s ACCEPT chain N/A N/A N/A self writeln_and_exit output N/A N/A N/A N/A self no_permission N/A list N/A N/A self chain N/A N/A N/A  List current rules  N/A N/A N/A self user_is_root N/A N/A N/A N/A len chain 0 N/A N/A chain N/A N/A N/A N/A self is_valid_chain chain N/A N/A N/A chains N/A chain N/A N/A chains N/A N/A N/A self current_table iterkeys N/A output N/A N/A chain chains N/A N/A chain_output N/A N/A Chain %s (policy ACCEPT) chain target     prot opt source               destination N/A rule N/A N/A self current_table N/A chain N/A N/A N/A N/A chain_output append N/A %-10s %-4s %-3s %-20s %-20s %s %s rule N/A N/A N/A output append N/A N/A join chain_output N/A N/A N/A self writeln_and_exit N/A N/A join output N/A N/A N/A N/A self no_permission N/A flush N/A N/A self chain N/A N/A N/A  Mark rules as flushed  N/A N/A N/A self user_is_root N/A N/A N/A N/A len chain 0 N/A N/A N/A N/A N/A self is_valid_chain chain N/A N/A N/A chains N/A chain N/A N/A chains N/A N/A N/A self current_table iterkeys N/A chain chains N/A N/A N/A N/A self current_table N/A chain N/A N/A N/A N/A self exit N/A N/A N/A N/A self no_permission N/A no_permission N/A N/A self N/A N/A N/A N/A N/A self writeln_and_exit N/A %s %s: can't initialize iptables table 'filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded. N/A N/A command_iptables APP_NAME N/A command_iptables APP_VERSION N/A no_command N/A N/A self N/A N/A N/A  Print no command message and exit  N/A N/A N/A self writeln_and_exit N/A %s %s: no command specified'
Try `iptables -h' or 'iptables --help' for more information. N/A N/A command_iptables APP_NAME N/A command_iptables APP_VERSION N/A unknown_option N/A N/A self option N/A N/A N/A  Print unknown option message and exit  N/A N/A N/A self writeln_and_exit N/A %s %s: unknown option '%s''
Try `iptables -h' or 'iptables --help' for more information. N/A N/A command_iptables APP_NAME N/A command_iptables APP_VERSION option N/A bad_argument N/A N/A self argument N/A N/A N/A  Print bad argument and exit  N/A N/A N/A self writeln_and_exit N/A Bad argument '%s'
Try `iptables -h' or 'iptables --help' for more information. argument N/A N/A N/A N/A commands N/A /sbin/iptables command_iptables