ZSec File Manager
Upload
Current Directory: /home/aiessinternational.com/public_html
[Up]
..
[Open]
Hapus
Rename
.htaccess
[Edit]
Hapus
Rename
21cbfe
[Open]
Hapus
Rename
ALFA_DATA
[Open]
Hapus
Rename
advance
[Open]
Hapus
Rename
advance.zip
[Edit]
Hapus
Rename
ammika.php
[Edit]
Hapus
Rename
c8aa5
[Open]
Hapus
Rename
click.php
[Edit]
Hapus
Rename
defaults.php
[Edit]
Hapus
Rename
google41b982abb0d9ca3b.html
[Edit]
Hapus
Rename
index.php
[Edit]
Hapus
Rename
index.php0
[Edit]
Hapus
Rename
item.php
[Edit]
Hapus
Rename
license.txt
[Edit]
Hapus
Rename
mah.php
[Edit]
Hapus
Rename
networks.php
[Edit]
Hapus
Rename
options.php
[Edit]
Hapus
Rename
pages.php
[Edit]
Hapus
Rename
plugins.php
[Edit]
Hapus
Rename
product.php
[Edit]
Hapus
Rename
readme.html
[Edit]
Hapus
Rename
robots.txt
[Edit]
Hapus
Rename
saiga.php
[Edit]
Hapus
Rename
search.php
[Edit]
Hapus
Rename
web.config
[Edit]
Hapus
Rename
wp-activate.php
[Edit]
Hapus
Rename
wp-admin
[Open]
Hapus
Rename
wp-blog-header.php
[Edit]
Hapus
Rename
wp-comments-post.php
[Edit]
Hapus
Rename
wp-config-sample.php
[Edit]
Hapus
Rename
wp-config.php
[Edit]
Hapus
Rename
wp-content
[Open]
Hapus
Rename
wp-cron.php
[Edit]
Hapus
Rename
wp-includes
[Open]
Hapus
Rename
wp-links-opml.php
[Edit]
Hapus
Rename
wp-load.php
[Edit]
Hapus
Rename
wp-log1n.php
[Edit]
Hapus
Rename
wp-mail.php
[Edit]
Hapus
Rename
wp-settings.php
[Edit]
Hapus
Rename
wp-signup.php
[Edit]
Hapus
Rename
wp-trackback.php
[Edit]
Hapus
Rename
wp.php
[Edit]
Hapus
Rename
xmlrpc.php
[Edit]
Hapus
Rename
Edit File
#!/usr/bin/python3 ''' postfix-add-filter - A script to append new services to Postfix master.cf to simplify integration of content filters. Copyright (c) 2008 Scott Kitterman <scott@kitterman.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' __author__ = "Scott Kitterman" __email__ = "scott@kitterman.com" __version__ = "0.1: August 3, 2008" import sys import shutil import time def makepolicy(name, user, argv): # Recommendations from the Postfix SMTPD_POLICY_README. header = """# ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== # Added using postfix-add-policy script: """ policy = ("""%s unix - n n - 0 spawn user=%s argv=%s """ % (name, user, argv)) additions = header + policy return additions USAGE = """To add a new policy service to your master.cf: % sudo postfix-policy-add {policy service name} {user} {file (full path)} Example: % sudo postfix-policy-add policyd noboby /usr/bin/policyd Adds the following to master.cf: """ + makepolicy('policyd', 'nobody', '/usr/bin/policyd') + """ To output this usage message: % postfix-add-policy """ if __name__ == '__main__': if len(sys.argv) < 4: print(USAGE + "\n") elif len(sys.argv) == 4: policyname = sys.argv[1] user = sys.argv[2] argv = sys.argv[3] # Read in master.cf and check to make sure specified name isn't # already used with open('/etc/postfix/master.cf', mode='r') as masterfile: master = masterfile.readlines() bailout = False for line in master: if policyname in line: # Policy name already used, print error and bail print ('Selected policy name, %s, already in master.cf. \ Master.cf not updated.' % (policyname)) bailout = True break if not bailout: # Make backup copy backupname = '/etc/postfix/master.cf.' + str(int(time.time())) shutil.copy2('/etc/postfix/master.cf', backupname) # Make working copy shutil.copy2('/etc/postfix/master.cf', \ '/etc/postfix/master.cf.working') # Add stuff in stuff = makepolicy(policyname, user, argv) # Append stuff to the working copy: with open('/etc/postfix/master.cf.working', mode='a') as newmaster: newmaster.writelines(stuff) # Put working copy in place. shutil.move('/etc/postfix/master.cf.working', \ '/etc/postfix/master.cf') else: print(USAGE + "\n")
Simpan