Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python3.6 /
site-packages /
lxml /
html /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-02-12 23:54
ElementSoup.py
319
B
-rw-r--r--
2011-09-25 16:58
__init__.py
63.37
KB
-rw-r--r--
2018-03-13 20:13
_diffcommand.py
2.08
KB
-rw-r--r--
2017-09-17 07:43
_html5builder.py
3.17
KB
-rw-r--r--
2012-09-28 19:13
_setmixin.py
1.08
KB
-rw-r--r--
2016-05-05 07:08
builder.py
4.21
KB
-rw-r--r--
2011-09-25 16:58
clean.cpython-36m-x86_64-linux-gnu.so
276.84
KB
-rwxr-xr-x
2022-04-18 17:59
clean.py
26.44
KB
-rw-r--r--
2022-04-18 17:58
defs.py
4.11
KB
-rw-r--r--
2022-04-18 17:58
diff.cpython-36m-x86_64-linux-gnu.so
371.45
KB
-rwxr-xr-x
2022-04-18 17:59
diff.py
29.79
KB
-rw-r--r--
2017-05-01 14:11
formfill.py
9.46
KB
-rw-r--r--
2017-06-03 16:47
html5parser.py
8.43
KB
-rw-r--r--
2017-09-17 07:43
soupparser.py
9.96
KB
-rw-r--r--
2017-09-17 07:43
usedoctest.py
249
B
-rw-r--r--
2011-09-25 16:58
Save
Rename
from __future__ import absolute_import import optparse import sys import re import os from .diff import htmldiff description = """\ """ parser = optparse.OptionParser( usage="%prog [OPTIONS] FILE1 FILE2\n" "%prog --annotate [OPTIONS] INFO1 FILE1 INFO2 FILE2 ...", description=description, ) parser.add_option( '-o', '--output', metavar="FILE", dest="output", default="-", help="File to write the difference to", ) parser.add_option( '-a', '--annotation', action="store_true", dest="annotation", help="Do an annotation") def main(args=None): if args is None: args = sys.argv[1:] options, args = parser.parse_args(args) if options.annotation: return annotate(options, args) if len(args) != 2: print('Error: you must give two files') parser.print_help() sys.exit(1) file1, file2 = args input1 = read_file(file1) input2 = read_file(file2) body1 = split_body(input1)[1] pre, body2, post = split_body(input2) result = htmldiff(body1, body2) result = pre + result + post if options.output == '-': if not result.endswith('\n'): result += '\n' sys.stdout.write(result) else: f = open(options.output, 'wb') f.write(result) f.close() def read_file(filename): if filename == '-': c = sys.stdin.read() elif not os.path.exists(filename): raise OSError( "Input file %s does not exist" % filename) else: f = open(filename, 'rb') c = f.read() f.close() return c body_start_re = re.compile( r"<body.*?>", re.I|re.S) body_end_re = re.compile( r"</body.*?>", re.I|re.S) def split_body(html): pre = post = '' match = body_start_re.search(html) if match: pre = html[:match.end()] html = html[match.end():] match = body_end_re.search(html) if match: post = html[match.start():] html = html[:match.start()] return pre, html, post def annotate(options, args): print("Not yet implemented") sys.exit(1)