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.10
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 /
lib /
pypy /
lib_pypy /
pyrepl /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
925
B
-rw-r--r--
cmdrepl.py
4
KB
-rw-r--r--
commands.py
9.83
KB
-rw-r--r--
completer.py
2.91
KB
-rw-r--r--
completing_reader.py
9.23
KB
-rw-r--r--
console.py
2.5
KB
-rw-r--r--
copy_code.py
2.75
KB
-rw-r--r--
curses.py
1.6
KB
-rw-r--r--
fancy_termios.py
1.82
KB
-rw-r--r--
historical_reader.py
10.07
KB
-rw-r--r--
input.py
3.47
KB
-rw-r--r--
keymap.py
5.96
KB
-rw-r--r--
keymaps.py
4.3
KB
-rw-r--r--
module_lister.py
2.18
KB
-rw-r--r--
pygame_console.py
11.7
KB
-rw-r--r--
pygame_keymap.py
7.59
KB
-rw-r--r--
python_reader.py
13.86
KB
-rw-r--r--
reader.py
20.38
KB
-rw-r--r--
readline.py
16.48
KB
-rw-r--r--
simple_interact.py
2.94
KB
-rw-r--r--
unicodedata_.py
3.31
KB
-rw-r--r--
unix_console.py
19.17
KB
-rw-r--r--
unix_eventqueue.py
3.01
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : input.py
# Copyright 2000-2004 Michael Hudson-Doyle <micahel@gmail.com> # # All Rights Reserved # # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appear in all copies and # that both that copyright notice and this permission notice appear in # supporting documentation. # # THE AUTHOR MICHAEL HUDSON DISCLAIMS ALL WARRANTIES WITH REGARD TO # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER # RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF # CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # (naming modules after builtin functions is not such a hot idea...) # an KeyTrans instance translates Event objects into Command objects # hmm, at what level do we want [C-i] and [tab] to be equivalent? # [meta-a] and [esc a]? obviously, these are going to be equivalent # for the UnixConsole, but should they be for PygameConsole? # it would in any situation seem to be a bad idea to bind, say, [tab] # and [C-i] to *different* things... but should binding one bind the # other? # executive, temporary decision: [tab] and [C-i] are distinct, but # [meta-key] is identified with [esc key]. We demand that any console # class does quite a lot towards emulating a unix terminal. from pyrepl import unicodedata_ class InputTranslator(object): def push(self, evt): pass def get(self): pass def empty(self): pass class KeymapTranslator(InputTranslator): def __init__(self, keymap, verbose=0, invalid_cls=None, character_cls=None): self.verbose = verbose from pyrepl.keymap import compile_keymap, parse_keys self.keymap = keymap self.invalid_cls = invalid_cls self.character_cls = character_cls d = {} for keyspec, command in keymap: keyseq = tuple(parse_keys(keyspec)) d[keyseq] = command if self.verbose: print d self.k = self.ck = compile_keymap(d, ()) self.results = [] self.stack = [] def push(self, evt): if self.verbose: print "pushed", evt.data, key = evt.data d = self.k.get(key) if isinstance(d, dict): if self.verbose: print "transition" self.stack.append(key) self.k = d else: if d is None: if self.verbose: print "invalid" if self.stack or len(key) > 1 or unicodedata_.category(key) == 'C': self.results.append( (self.invalid_cls, self.stack + [key])) else: # small optimization: self.k[key] = self.character_cls self.results.append( (self.character_cls, [key])) else: if self.verbose: print "matched", d self.results.append((d, self.stack + [key])) self.stack = [] self.k = self.ck def get(self): if self.results: return self.results.pop(0) else: return None def empty(self): return not self.results
Close