Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 13.58.200.78
66 Domain
8.0.30
amvm
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib64 /
python2.7 /
Tools /
scripts /
[ HOME SHELL ]
Name
Size
Permission
Action
analyze_dxp.py
4.11
KB
-rwxr-xr-x
analyze_dxp.pyc
4.64
KB
-rw-r--r--
analyze_dxp.pyo
4.64
KB
-rw-r--r--
byext.py
3.85
KB
-rwxr-xr-x
byext.pyc
4.42
KB
-rw-r--r--
byext.pyo
4.42
KB
-rw-r--r--
byteyears.py
1.6
KB
-rwxr-xr-x
byteyears.pyc
1.37
KB
-rw-r--r--
byteyears.pyo
1.37
KB
-rw-r--r--
checkappend.py
4.55
KB
-rwxr-xr-x
checkappend.pyc
4.77
KB
-rw-r--r--
checkappend.pyo
4.77
KB
-rw-r--r--
checkpyc.py
1.96
KB
-rwxr-xr-x
checkpyc.pyc
1.93
KB
-rw-r--r--
checkpyc.pyo
1.93
KB
-rw-r--r--
classfix.py
5.81
KB
-rwxr-xr-x
classfix.pyc
4.09
KB
-rw-r--r--
classfix.pyo
4.09
KB
-rw-r--r--
cleanfuture.py
8.38
KB
-rwxr-xr-x
cleanfuture.pyc
7.22
KB
-rw-r--r--
cleanfuture.pyo
7.19
KB
-rw-r--r--
combinerefs.py
4.28
KB
-rwxr-xr-x
combinerefs.pyc
4.16
KB
-rw-r--r--
combinerefs.pyo
4.12
KB
-rw-r--r--
copytime.py
664
B
-rwxr-xr-x
copytime.pyc
937
B
-rw-r--r--
copytime.pyo
937
B
-rw-r--r--
crlf.py
611
B
-rwxr-xr-x
crlf.pyc
855
B
-rw-r--r--
crlf.pyo
855
B
-rw-r--r--
cvsfiles.py
1.75
KB
-rwxr-xr-x
cvsfiles.pyc
2.11
KB
-rw-r--r--
cvsfiles.pyo
2.11
KB
-rw-r--r--
db2pickle.py
3.49
KB
-rwxr-xr-x
db2pickle.pyc
3.42
KB
-rw-r--r--
db2pickle.pyo
3.42
KB
-rw-r--r--
diff.py
1.98
KB
-rwxr-xr-x
diff.pyc
2.29
KB
-rw-r--r--
diff.pyo
2.29
KB
-rw-r--r--
dutree.py
1.58
KB
-rwxr-xr-x
dutree.pyc
2.18
KB
-rw-r--r--
dutree.pyo
2.18
KB
-rw-r--r--
eptags.py
1.45
KB
-rwxr-xr-x
eptags.pyc
1.83
KB
-rw-r--r--
eptags.pyo
1.83
KB
-rw-r--r--
find_recursionlimit.py
3.39
KB
-rwxr-xr-x
find_recursionlimit.pyc
5.54
KB
-rw-r--r--
find_recursionlimit.pyo
5.54
KB
-rw-r--r--
finddiv.py
2.46
KB
-rwxr-xr-x
finddiv.pyc
3.22
KB
-rw-r--r--
finddiv.pyo
3.22
KB
-rw-r--r--
findlinksto.py
1.04
KB
-rwxr-xr-x
findlinksto.pyc
1.39
KB
-rw-r--r--
findlinksto.pyo
1.39
KB
-rw-r--r--
findnocoding.py
2.64
KB
-rwxr-xr-x
findnocoding.pyc
3.03
KB
-rw-r--r--
findnocoding.pyo
3.03
KB
-rw-r--r--
fixcid.py
9.75
KB
-rwxr-xr-x
fixcid.pyc
7.67
KB
-rw-r--r--
fixcid.pyo
7.67
KB
-rw-r--r--
fixdiv.py
13.57
KB
-rwxr-xr-x
fixdiv.pyc
13.7
KB
-rw-r--r--
fixdiv.pyo
13.62
KB
-rw-r--r--
fixheader.py
1.16
KB
-rwxr-xr-x
fixheader.pyc
1.44
KB
-rw-r--r--
fixheader.pyo
1.44
KB
-rw-r--r--
fixnotice.py
2.98
KB
-rwxr-xr-x
fixnotice.pyc
3.42
KB
-rw-r--r--
fixnotice.pyo
3.42
KB
-rw-r--r--
fixps.py
894
B
-rwxr-xr-x
fixps.pyc
969
B
-rw-r--r--
fixps.pyo
969
B
-rw-r--r--
ftpmirror.py
12.55
KB
-rwxr-xr-x
ftpmirror.pyc
10.81
KB
-rw-r--r--
ftpmirror.pyo
10.81
KB
-rw-r--r--
google.py
520
B
-rwxr-xr-x
google.pyc
792
B
-rw-r--r--
google.pyo
792
B
-rw-r--r--
gprof2html.py
2.12
KB
-rwxr-xr-x
gprof2html.pyc
2.22
KB
-rw-r--r--
gprof2html.pyo
2.22
KB
-rw-r--r--
h2py.py
5.82
KB
-rwxr-xr-x
h2py.pyc
4.3
KB
-rw-r--r--
h2py.pyo
4.3
KB
-rw-r--r--
hotshotmain.py
1.45
KB
-rwxr-xr-x
hotshotmain.pyc
1.82
KB
-rw-r--r--
hotshotmain.pyo
1.82
KB
-rw-r--r--
ifdef.py
3.63
KB
-rwxr-xr-x
ifdef.pyc
2.21
KB
-rw-r--r--
ifdef.pyo
2.21
KB
-rw-r--r--
lfcr.py
619
B
-rwxr-xr-x
lfcr.pyc
880
B
-rw-r--r--
lfcr.pyo
880
B
-rw-r--r--
linktree.py
2.37
KB
-rwxr-xr-x
linktree.pyc
1.98
KB
-rw-r--r--
linktree.pyo
1.98
KB
-rw-r--r--
lll.py
747
B
-rwxr-xr-x
lll.pyc
947
B
-rw-r--r--
lll.pyo
947
B
-rw-r--r--
logmerge.py
5.45
KB
-rwxr-xr-x
logmerge.pyc
4.96
KB
-rw-r--r--
logmerge.pyo
4.96
KB
-rw-r--r--
mailerdaemon.py
7.76
KB
-rwxr-xr-x
mailerdaemon.pyc
7.19
KB
-rw-r--r--
mailerdaemon.pyo
7.19
KB
-rw-r--r--
md5sum.py
2.33
KB
-rwxr-xr-x
md5sum.pyc
2.85
KB
-rw-r--r--
md5sum.pyo
2.85
KB
-rw-r--r--
methfix.py
5.33
KB
-rwxr-xr-x
methfix.pyc
4.03
KB
-rw-r--r--
methfix.pyo
4.03
KB
-rw-r--r--
mkreal.py
1.59
KB
-rwxr-xr-x
mkreal.pyc
1.93
KB
-rw-r--r--
mkreal.pyo
1.93
KB
-rw-r--r--
ndiff.py
3.72
KB
-rwxr-xr-x
ndiff.pyc
3.77
KB
-rw-r--r--
ndiff.pyo
3.77
KB
-rw-r--r--
nm2def.py
2.39
KB
-rwxr-xr-x
nm2def.pyc
2.89
KB
-rw-r--r--
nm2def.pyo
2.89
KB
-rw-r--r--
objgraph.py
5.88
KB
-rwxr-xr-x
objgraph.pyc
4.82
KB
-rw-r--r--
objgraph.pyo
4.82
KB
-rw-r--r--
parseentities.py
1.68
KB
-rwxr-xr-x
parseentities.pyc
2.03
KB
-rw-r--r--
parseentities.pyo
2.03
KB
-rw-r--r--
patchcheck.py
5.42
KB
-rwxr-xr-x
patchcheck.pyc
7.24
KB
-rw-r--r--
patchcheck.pyo
7.24
KB
-rw-r--r--
pathfix.py
4.23
KB
-rwxr-xr-x
pathfix.pyc
3.75
KB
-rw-r--r--
pathfix.pyo
3.75
KB
-rw-r--r--
pdeps.py
3.84
KB
-rwxr-xr-x
pdeps.pyc
3.14
KB
-rw-r--r--
pdeps.pyo
3.14
KB
-rw-r--r--
pickle2db.py
3.85
KB
-rwxr-xr-x
pickle2db.pyc
3.73
KB
-rw-r--r--
pickle2db.pyo
3.73
KB
-rw-r--r--
pindent.py
16.77
KB
-rwxr-xr-x
pindent.pyc
11.3
KB
-rw-r--r--
pindent.pyo
11.3
KB
-rw-r--r--
ptags.py
1.2
KB
-rwxr-xr-x
ptags.pyc
1.37
KB
-rw-r--r--
ptags.pyo
1.37
KB
-rw-r--r--
pysource.py
3.76
KB
-rwxr-xr-x
pysource.pyc
3.92
KB
-rw-r--r--
pysource.pyo
3.92
KB
-rw-r--r--
redemo.py
5.66
KB
-rwxr-xr-x
redemo.pyc
5.16
KB
-rw-r--r--
redemo.pyo
5.16
KB
-rw-r--r--
reindent-rst.py
278
B
-rwxr-xr-x
reindent-rst.pyc
481
B
-rw-r--r--
reindent-rst.pyo
481
B
-rw-r--r--
reindent.py
10.58
KB
-rwxr-xr-x
reindent.pyc
8.77
KB
-rw-r--r--
reindent.pyo
8.74
KB
-rw-r--r--
rgrep.py
1.46
KB
-rwxr-xr-x
rgrep.pyc
1.84
KB
-rw-r--r--
rgrep.pyo
1.84
KB
-rw-r--r--
serve.py
1.12
KB
-rwxr-xr-x
serve.pyc
1.56
KB
-rw-r--r--
serve.pyo
1.56
KB
-rw-r--r--
setup.py
421
B
-rwxr-xr-x
setup.pyc
548
B
-rw-r--r--
setup.pyo
548
B
-rw-r--r--
suff.py
622
B
-rwxr-xr-x
suff.pyc
904
B
-rw-r--r--
suff.pyo
904
B
-rw-r--r--
svneol.py
2.86
KB
-rwxr-xr-x
svneol.pyc
2.83
KB
-rw-r--r--
svneol.pyo
2.76
KB
-rw-r--r--
texcheck.py
9.04
KB
-rwxr-xr-x
texcheck.pyc
8.18
KB
-rw-r--r--
texcheck.pyo
8.18
KB
-rw-r--r--
texi2html.py
68.19
KB
-rwxr-xr-x
texi2html.pyc
81.37
KB
-rw-r--r--
texi2html.pyo
81.37
KB
-rw-r--r--
treesync.py
5.65
KB
-rwxr-xr-x
treesync.pyc
5.85
KB
-rw-r--r--
treesync.pyo
5.85
KB
-rw-r--r--
untabify.py
1.19
KB
-rwxr-xr-x
untabify.pyc
1.55
KB
-rw-r--r--
untabify.pyo
1.55
KB
-rw-r--r--
which.py
1.59
KB
-rwxr-xr-x
which.pyc
1.59
KB
-rw-r--r--
which.pyo
1.59
KB
-rw-r--r--
win_add2path.py
1.58
KB
-rwxr-xr-x
win_add2path.pyc
2.02
KB
-rw-r--r--
win_add2path.pyo
2.02
KB
-rw-r--r--
xxci.py
2.73
KB
-rwxr-xr-x
xxci.pyc
3.93
KB
-rw-r--r--
xxci.pyo
3.93
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ftpmirror.py
#! /usr/bin/env python """Mirror a remote ftp subtree into a local directory tree. usage: ftpmirror [-v] [-q] [-i] [-m] [-n] [-r] [-s pat] [-l username [-p passwd [-a account]]] hostname[:port] [remotedir [localdir]] -v: verbose -q: quiet -i: interactive mode -m: macintosh server (NCSA telnet 2.4) (implies -n -s '*.o') -n: don't log in -r: remove local files/directories no longer pertinent -l username [-p passwd [-a account]]: login info (default .netrc or anonymous) -s pat: skip files matching pattern hostname: remote host w/ optional port separated by ':' remotedir: remote directory (default initial) localdir: local directory (default current) """ import os import sys import time import getopt import ftplib import netrc from fnmatch import fnmatch # Print usage message and exit def usage(*args): sys.stdout = sys.stderr for msg in args: print msg print __doc__ sys.exit(2) verbose = 1 # 0 for -q, 2 for -v interactive = 0 mac = 0 rmok = 0 nologin = 0 skippats = ['.', '..', '.mirrorinfo'] # Main program: parse command line and start processing def main(): global verbose, interactive, mac, rmok, nologin try: opts, args = getopt.getopt(sys.argv[1:], 'a:bil:mnp:qrs:v') except getopt.error, msg: usage(msg) login = '' passwd = '' account = '' if not args: usage('hostname missing') host = args[0] port = 0 if ':' in host: host, port = host.split(':', 1) port = int(port) try: auth = netrc.netrc().authenticators(host) if auth is not None: login, account, passwd = auth except (netrc.NetrcParseError, IOError): pass for o, a in opts: if o == '-l': login = a if o == '-p': passwd = a if o == '-a': account = a if o == '-v': verbose = verbose + 1 if o == '-q': verbose = 0 if o == '-i': interactive = 1 if o == '-m': mac = 1; nologin = 1; skippats.append('*.o') if o == '-n': nologin = 1 if o == '-r': rmok = 1 if o == '-s': skippats.append(a) remotedir = '' localdir = '' if args[1:]: remotedir = args[1] if args[2:]: localdir = args[2] if args[3:]: usage('too many arguments') # f = ftplib.FTP() if verbose: print "Connecting to '%s%s'..." % (host, (port and ":%d"%port or "")) f.connect(host,port) if not nologin: if verbose: print 'Logging in as %r...' % (login or 'anonymous') f.login(login, passwd, account) if verbose: print 'OK.' pwd = f.pwd() if verbose > 1: print 'PWD =', repr(pwd) if remotedir: if verbose > 1: print 'cwd(%s)' % repr(remotedir) f.cwd(remotedir) if verbose > 1: print 'OK.' pwd = f.pwd() if verbose > 1: print 'PWD =', repr(pwd) # mirrorsubdir(f, localdir) # Core logic: mirror one subdirectory (recursively) def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', repr(localdir) try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", repr(localdir) return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open(infofilename, 'r').read() except IOError, msg: text = '{}' try: info = eval(text) except (SyntaxError, NameError): print 'Bad mirror info in', repr(infofilename) info = {} subdirs = [] listing = [] if verbose: print 'Listing remote directory %r...' % (pwd,) f.retrlines('LIST', listing.append) filesfound = [] for line in listing: if verbose > 1: print '-->', repr(line) if mac: # Mac listing has just filenames; # trailing / means subdirectory filename = line.strip() mode = '-' if filename[-1:] == '/': filename = filename[:-1] mode = 'd' infostuff = '' else: # Parse, assuming a UNIX listing words = line.split(None, 8) if len(words) < 6: if verbose > 1: print 'Skipping short line' continue filename = words[-1].lstrip() i = filename.find(" -> ") if i >= 0: # words[0] had better start with 'l'... if verbose > 1: print 'Found symbolic link %r' % (filename,) linkto = filename[i+4:] filename = filename[:i] infostuff = words[-5:-1] mode = words[0] skip = 0 for pat in skippats: if fnmatch(filename, pat): if verbose > 1: print 'Skip pattern', repr(pat), print 'matches', repr(filename) skip = 1 break if skip: continue if mode[0] == 'd': if verbose > 1: print 'Remembering subdirectory', repr(filename) subdirs.append(filename) continue filesfound.append(filename) if info.has_key(filename) and info[filename] == infostuff: if verbose > 1: print 'Already have this version of',repr(filename) continue fullname = os.path.join(localdir, filename) tempname = os.path.join(localdir, '@'+filename) if interactive: doit = askabout('file', filename, pwd) if not doit: if not info.has_key(filename): info[filename] = 'Not retrieved' continue try: os.unlink(tempname) except os.error: pass if mode[0] == 'l': if verbose: print "Creating symlink %r -> %r" % (filename, linkto) try: os.symlink(linkto, tempname) except IOError, msg: print "Can't create %r: %s" % (tempname, msg) continue else: try: fp = open(tempname, 'wb') except IOError, msg: print "Can't create %r: %s" % (tempname, msg) continue if verbose: print 'Retrieving %r from %r as %r...' % (filename, pwd, fullname) if verbose: fp1 = LoggingFile(fp, 1024, sys.stdout) else: fp1 = fp t0 = time.time() try: f.retrbinary('RETR ' + filename, fp1.write, 8*1024) except ftplib.error_perm, msg: print msg t1 = time.time() bytes = fp.tell() fp.close() if fp1 != fp: fp1.close() try: os.unlink(fullname) except os.error: pass # Ignore the error try: os.rename(tempname, fullname) except os.error, msg: print "Can't rename %r to %r: %s" % (tempname, fullname, msg) continue info[filename] = infostuff writedict(info, infofilename) if verbose and mode[0] != 'l': dt = t1 - t0 kbytes = bytes / 1024.0 print int(round(kbytes)), print 'Kbytes in', print int(round(dt)), print 'seconds', if t1 > t0: print '(~%d Kbytes/sec)' % \ int(round(kbytes/dt),) print # # Remove files from info that are no longer remote deletions = 0 for filename in info.keys(): if filename not in filesfound: if verbose: print "Removing obsolete info entry for", print repr(filename), "in", repr(localdir or ".") del info[filename] deletions = deletions + 1 if deletions: writedict(info, infofilename) # # Remove local files that are no longer in the remote directory try: if not localdir: names = os.listdir(os.curdir) else: names = os.listdir(localdir) except os.error: names = [] for name in names: if name[0] == '.' or info.has_key(name) or name in subdirs: continue skip = 0 for pat in skippats: if fnmatch(name, pat): if verbose > 1: print 'Skip pattern', repr(pat), print 'matches', repr(name) skip = 1 break if skip: continue fullname = os.path.join(localdir, name) if not rmok: if verbose: print 'Local file', repr(fullname), print 'is no longer pertinent' continue if verbose: print 'Removing local file/dir', repr(fullname) remove(fullname) # # Recursively mirror subdirectories for subdir in subdirs: if interactive: doit = askabout('subdirectory', subdir, pwd) if not doit: continue if verbose: print 'Processing subdirectory', repr(subdir) localsubdir = os.path.join(localdir, subdir) pwd = f.pwd() if verbose > 1: print 'Remote directory now:', repr(pwd) print 'Remote cwd', repr(subdir) try: f.cwd(subdir) except ftplib.error_perm, msg: print "Can't chdir to", repr(subdir), ":", repr(msg) else: if verbose: print 'Mirroring as', repr(localsubdir) mirrorsubdir(f, localsubdir) if verbose > 1: print 'Remote cwd ..' f.cwd('..') newpwd = f.pwd() if newpwd != pwd: print 'Ended up in wrong directory after cd + cd ..' print 'Giving up now.' break else: if verbose > 1: print 'OK.' # Helper to remove a file or directory tree def remove(fullname): if os.path.isdir(fullname) and not os.path.islink(fullname): try: names = os.listdir(fullname) except os.error: names = [] ok = 1 for name in names: if not remove(os.path.join(fullname, name)): ok = 0 if not ok: return 0 try: os.rmdir(fullname) except os.error, msg: print "Can't remove local directory %r: %s" % (fullname, msg) return 0 else: try: os.unlink(fullname) except os.error, msg: print "Can't remove local file %r: %s" % (fullname, msg) return 0 return 1 # Wrapper around a file for writing to write a hash sign every block. class LoggingFile: def __init__(self, fp, blocksize, outfp): self.fp = fp self.bytes = 0 self.hashes = 0 self.blocksize = blocksize self.outfp = outfp def write(self, data): self.bytes = self.bytes + len(data) hashes = int(self.bytes) / self.blocksize while hashes > self.hashes: self.outfp.write('#') self.outfp.flush() self.hashes = self.hashes + 1 self.fp.write(data) def close(self): self.outfp.write('\n') # Ask permission to download a file. def askabout(filetype, filename, pwd): prompt = 'Retrieve %s %s from %s ? [ny] ' % (filetype, filename, pwd) while 1: reply = raw_input(prompt).strip().lower() if reply in ['y', 'ye', 'yes']: return 1 if reply in ['', 'n', 'no', 'nop', 'nope']: return 0 print 'Please answer yes or no.' # Create a directory if it doesn't exist. Recursively create the # parent directory as well if needed. def makedir(pathname): if os.path.isdir(pathname): return dirname = os.path.dirname(pathname) if dirname: makedir(dirname) os.mkdir(pathname, 0777) # Write a dictionary to a file in a way that can be read back using # rval() but is still somewhat readable (i.e. not a single long line). # Also creates a backup file. def writedict(dict, filename): dir, fname = os.path.split(filename) tempname = os.path.join(dir, '@' + fname) backup = os.path.join(dir, fname + '~') try: os.unlink(backup) except os.error: pass fp = open(tempname, 'w') fp.write('{\n') for key, value in dict.items(): fp.write('%r: %r,\n' % (key, value)) fp.write('}\n') fp.close() try: os.rename(filename, backup) except os.error: pass os.rename(tempname, filename) if __name__ == '__main__': main()
Close