Permalink
Browse files

Changed spaces into tabs.

  • Loading branch information...
graywolf committed Mar 28, 2012
1 parent 485c740 commit c19a3dfba6a5028c7e14a70354d4f90c9960a472
View
@@ -91,7 +91,7 @@ def search(self):
if (self.access[key] == 0):
self.report.item_forgotten(key)
-################################################################################
+################################################################################
class SystemAccounts(InspectorBase):
def __init__(self, filename):
View
@@ -1,18 +1,16 @@
import sys, os
class CreateListingByCmd:
-
- def __init__(self, files_cmd_pairs):
-
- for out_file, cmd in files_cmd_pairs.items():
- self.os_cmd(cmd + " > ./inspection/"+out_file)
-
- def os_cmd(self, cmd):
- result = os.system(cmd)
-
- if result <> 0:
- print "Commander Error:", cmd, result
- sys.exit(1)
-
-
-
+
+ def __init__(self, files_cmd_pairs):
+
+ for out_file, cmd in files_cmd_pairs.items():
+ self.os_cmd(cmd + " > ./inspection/"+out_file)
+
+ def os_cmd(self, cmd):
+ result = os.system(cmd)
+
+ if result <> 0:
+ print "Commander Error:", cmd, result
+ sys.exit(1)
+
@@ -1,20 +1,22 @@
config = "/etc/sysctl.conf"
-parameters={"net.ipv4.ip_forward":"0",
- "net.ipv4.conf.all.send_redirects":"0",
- "net.ipv4.conf.default.send_redirects":"0",
- "net.ipv4.tcp_max_syn_backlog":"1280",
- "net.ipv4.icmp_echo_ignore_broadcasts":"1",
- "net.ipv4.conf.all.accept_source_route":"0",
- "net.ipv4.conf.all.accept_redirects":"0",
- "net.ipv4.conf.all.secure_redirects":"0",
- "net.ipv4.conf.all.log_martians":"1",
- "net.ipv4.conf.default.accept_source_route":"0",
- "net.ipv4.conf.default.accept_redirects":"0",
- "net.ipv4.conf.default.secure_redirects":"0",
- "net.ipv4.icmp_echo_ignore_broadcasts":"1",
- "net.ipv4.icmp_ignore_bogus_error_responses":"1",
- "net.ipv4.tcp_syncookies":"1",
- "net.ipv4.conf.all.rp_filter":"1",
- "net.ipv4.conf.default.rp_filter":"1",
- "net.ipv4.tcp_timestamps":"0"}
+parameters = {
+ "net.ipv4.ip_forward":"0",
+ "net.ipv4.conf.all.send_redirects":"0",
+ "net.ipv4.conf.default.send_redirects":"0",
+ "net.ipv4.tcp_max_syn_backlog":"1280",
+ "net.ipv4.icmp_echo_ignore_broadcasts":"1",
+ "net.ipv4.conf.all.accept_source_route":"0",
+ "net.ipv4.conf.all.accept_redirects":"0",
+ "net.ipv4.conf.all.secure_redirects":"0",
+ "net.ipv4.conf.all.log_martians":"1",
+ "net.ipv4.conf.default.accept_source_route":"0",
+ "net.ipv4.conf.default.accept_redirects":"0",
+ "net.ipv4.conf.default.secure_redirects":"0",
+ "net.ipv4.icmp_echo_ignore_broadcasts":"1",
+ "net.ipv4.icmp_ignore_bogus_error_responses":"1",
+ "net.ipv4.tcp_syncookies":"1",
+ "net.ipv4.conf.all.rp_filter":"1",
+ "net.ipv4.conf.default.rp_filter":"1",
+ "net.ipv4.tcp_timestamps":"0"
+}
View
@@ -1,11 +1,13 @@
config = "/etc/mysql/my.cnf"
-parameters = { "socket":"/var/run/mysqld/mysqld.sock",
- "user":"mysql",
- "port":"3306",
- "basedir":"/usr",
- "datadir":"/var/lib/mysql",
- "tempdir":"/tmp",
- "bind-address":"127.0.0.1",
- "skip-networking":"#",
- "symbolic-links":"0"}
+parameters = {
+ "socket":"/var/run/mysqld/mysqld.sock",
+ "user":"mysql",
+ "port":"3306",
+ "basedir":"/usr",
+ "datadir":"/var/lib/mysql",
+ "tempdir":"/tmp",
+ "bind-address":"127.0.0.1",
+ "skip-networking":"#",
+ "symbolic-links":"0"
+}
View
@@ -1,11 +1,13 @@
#config = "/etc/php5/apache2/php.ini"
config = "/etc/php5/cli/php.ini"
-parameters = { "safe_mode":"On",
- "expose_php":"Off",
- "open_basedir":"/sftp",
- "register_globals":"Off",
- "display_errors":"Off",
- "log_errors":"On",
- "allow_url_fopen":"Off",
- "disable_functions":"exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source"}
+parameters = {
+ "safe_mode":"On",
+ "expose_php":"Off",
+ "open_basedir":"/sftp",
+ "register_globals":"Off",
+ "display_errors":"Off",
+ "log_errors":"On",
+ "allow_url_fopen":"Off",
+ "disable_functions":"exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source"
+}
View
@@ -1,11 +1,12 @@
config = "/etc/ssh/sshd_config"
-parameters = { "PermitRootLogin":"no",
- "PermitEmptyPasswords":"no",
- "Protocol":"2",
- "StrictModes":"yes",
- "LoginGraceTime":"30",
- "IgnoreRhosts":"yes",
- "ServerKeyBits":"768",
- "MaxAuthTries":"3"}
-
+parameters = {
+ "PermitRootLogin":"no",
+ "PermitEmptyPasswords":"no",
+ "Protocol":"2",
+ "StrictModes":"yes",
+ "LoginGraceTime":"30",
+ "IgnoreRhosts":"yes",
+ "ServerKeyBits":"768",
+ "MaxAuthTries":"3"
+}
View
@@ -1,20 +1,22 @@
config = "/etc/sysctl.conf"
-parameters={"net.ipv4.ip_forward":"0",
- "net.ipv4.conf.all.send_redirects":"0",
- "net.ipv4.conf.default.send_redirects":"0",
- "net.ipv4.tcp_max_syn_backlog":"1280",
- "net.ipv4.icmp_echo_ignore_broadcasts":"1",
- "net.ipv4.conf.all.accept_source_route":"0",
- "net.ipv4.conf.all.accept_redirects":"0",
- "net.ipv4.conf.all.secure_redirects":"0",
- "net.ipv4.conf.all.log_martians":"1",
- "net.ipv4.conf.default.accept_source_route":"0",
- "net.ipv4.conf.default.accept_redirects":"0",
- "net.ipv4.conf.default.secure_redirects":"0",
- "net.ipv4.icmp_echo_ignore_broadcasts":"1",
- "net.ipv4.icmp_ignore_bogus_error_responses":"1",
- "net.ipv4.tcp_syncookies":"1",
- "net.ipv4.conf.all.rp_filter":"1",
- "net.ipv4.conf.default.rp_filter":"1",
- "net.ipv4.tcp_timestamps":"0"}
+parameters = {
+ "net.ipv4.ip_forward":"0",
+ "net.ipv4.conf.all.send_redirects":"0",
+ "net.ipv4.conf.default.send_redirects":"0",
+ "net.ipv4.tcp_max_syn_backlog":"1280",
+ "net.ipv4.icmp_echo_ignore_broadcasts":"1",
+ "net.ipv4.conf.all.accept_source_route":"0",
+ "net.ipv4.conf.all.accept_redirects":"0",
+ "net.ipv4.conf.all.secure_redirects":"0",
+ "net.ipv4.conf.all.log_martians":"1",
+ "net.ipv4.conf.default.accept_source_route":"0",
+ "net.ipv4.conf.default.accept_redirects":"0",
+ "net.ipv4.conf.default.secure_redirects":"0",
+ "net.ipv4.icmp_echo_ignore_broadcasts":"1",
+ "net.ipv4.icmp_ignore_bogus_error_responses":"1",
+ "net.ipv4.tcp_syncookies":"1",
+ "net.ipv4.conf.all.rp_filter":"1",
+ "net.ipv4.conf.default.rp_filter":"1",
+ "net.ipv4.tcp_timestamps":"0"
+}
View
@@ -1,11 +1,13 @@
config = "/etc/mysql/my.cnf"
-parameters = { "socket":"/var/run/mysqld/mysqld.sock",
- "user":"mysql",
- "port":"3306",
- "basedir":"/usr",
- "datadir":"/var/lib/mysql",
- "tempdir":"/tmp",
- "bind-address":"127.0.0.1",
- "skip-networking":"#",
- "symbolic-links":"0"}
+parameters = {
+ "socket":"/var/run/mysqld/mysqld.sock",
+ "user":"mysql",
+ "port":"3306",
+ "basedir":"/usr",
+ "datadir":"/var/lib/mysql",
+ "tempdir":"/tmp",
+ "bind-address":"127.0.0.1",
+ "skip-networking":"#",
+ "symbolic-links":"0"
+}
View
@@ -1,10 +1,12 @@
config = "/etc/php.ini"
-parameters = { "safe_mode":"On",
- "expose_php":"Off",
- "open_basedir":"/sftp",
- "register_globals":"Off",
- "display_errors":"Off",
- "log_errors":"On",
- "allow_url_fopen":"Off",
- "disable_functions":"exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source"}
+parameters = {
+ "safe_mode":"On",
+ "expose_php":"Off",
+ "open_basedir":"/sftp",
+ "register_globals":"Off",
+ "display_errors":"Off",
+ "log_errors":"On",
+ "allow_url_fopen":"Off",
+ "disable_functions":"exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source"
+}
View
@@ -1,11 +1,12 @@
config = "/etc/ssh/sshd_config"
-parameters = { "PermitRootLogin":"no",
- "PermitEmptyPasswords":"no",
- "Protocol":"2",
- "StrictModes":"yes",
- "LoginGraceTime":"30",
- "IgnoreRhosts":"yes",
- "ServerKeyBits":"768",
- "MaxAuthTries":"3"}
-
+parameters = {
+ "PermitRootLogin":"no",
+ "PermitEmptyPasswords":"no",
+ "Protocol":"2",
+ "StrictModes":"yes",
+ "LoginGraceTime":"30",
+ "IgnoreRhosts":"yes",
+ "ServerKeyBits":"768",
+ "MaxAuthTries":"3"
+}

0 comments on commit c19a3df

Please sign in to comment.