Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.15
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
samba /
[ HOME SHELL ]
Name
Size
Permission
Action
setup
[ DIR ]
drwxr-xr-x
addshare.py
1.13
KB
-rwxr-xr-x
panic-action
2.01
KB
-rwxr-xr-x
setoption.py
1.3
KB
-rwxr-xr-x
smb.conf
8.43
KB
-rw-r--r--
update-apparmor-samba-profile
2.62
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : addshare.py
#!/usr/bin/python # Helper to add a share 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 sys 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() (share, path) = args 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: name = m.groups(1)[0] if name.lower() == share.lower(): sys.exit(0) outf.write(l) if not os.path.isdir(path): os.makedirs(path) outf.write("[%s]\n" % share) outf.write(" path = %s\n" % path) outf.write(" read only = no\n") outf.write("\n") os.fchmod(fd, stat.S_IMODE(os.stat(opts.configfile).st_mode)) outf.close() shutil.move(fn, opts.configfile)
Close