Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
libreoffice /
program /
[ HOME SHELL ]
Name
Size
Permission
Action
classes
[ DIR ]
drwxr-xr-x
opencl
[ DIR ]
drwxr-xr-x
opengl
[ DIR ]
drwxr-xr-x
__pycache__
[ DIR ]
drwxr-xr-x
resource
[ DIR ]
drwxr-xr-x
services
[ DIR ]
drwxr-xr-x
shell
[ DIR ]
drwxr-xr-x
types
[ DIR ]
drwxr-xr-x
wizards
[ DIR ]
drwxr-xr-x
bootstraprc
111
B
-rw-r--r--
fundamentalrc
2.3
KB
-rw-r--r--
gdbtrace
334
B
-rw-r--r--
intro-highres.png
120.46
KB
-rw-r--r--
intro.png
81.45
KB
-rw-r--r--
java-set-classpath
1.98
KB
-rwxr-xr-x
libacclo.so
1.53
MB
-rw-r--r--
libaffine_uno_uno.so
18.46
KB
-rw-r--r--
libanalysislo.so
369.12
KB
-rw-r--r--
libanimcorelo.so
178.95
KB
-rw-r--r--
libavmediagst.so
88.44
KB
-rw-r--r--
libbiblo.so
549.3
KB
-rw-r--r--
libbinaryurplo.so
183.61
KB
-rw-r--r--
libbootstraplo.so
562
KB
-rw-r--r--
libcached1.so
287.47
KB
-rw-r--r--
libcairocanvaslo.so
561.63
KB
-rw-r--r--
libchartcontrollerlo.so
3.1
MB
-rw-r--r--
libchartcorelo.so
3.71
MB
-rw-r--r--
libclewlo.so
26.2
KB
-rw-r--r--
libcmdmaillo.so
71.02
KB
-rw-r--r--
libcollator_data.so
1.33
MB
-rw-r--r--
libcuilo.so
4.25
MB
-rw-r--r--
libdatelo.so
79.31
KB
-rw-r--r--
libdbahsqllo.so
127.68
KB
-rw-r--r--
libdbalo.so
3.07
MB
-rw-r--r--
libdeploymentgui.so
374.12
KB
-rw-r--r--
libdict_ja.so
1.01
MB
-rw-r--r--
libdict_zh.so
2.17
MB
-rw-r--r--
libdlgprovlo.so
195.52
KB
-rw-r--r--
libembobj.so
436.16
KB
-rw-r--r--
libemboleobj.so
271.47
KB
-rw-r--r--
libexpwraplo.so
241.23
KB
-rw-r--r--
libfilelo.so
754.09
KB
-rw-r--r--
libgcc3_uno.so
71.13
KB
-rw-r--r--
libgraphicfilterlo.so
55.02
KB
-rw-r--r--
libhwplo.so
552.07
KB
-rw-r--r--
libi18nlangtag.so
143.26
KB
-rw-r--r--
libicglo.so
143.02
KB
-rw-r--r--
libindex_data.so
530.42
KB
-rw-r--r--
libintrospectionlo.so
179.36
KB
-rw-r--r--
libinvocadaptlo.so
46.93
KB
-rw-r--r--
libinvocationlo.so
118.92
KB
-rw-r--r--
libjvmaccesslo.so
34.63
KB
-rw-r--r--
libjvmfwklo.so
139.79
KB
-rw-r--r--
libldapbe2lo.so
71.05
KB
-rw-r--r--
liblocaledata_en.so
355.09
KB
-rw-r--r--
liblocaledata_es.so
303.06
KB
-rw-r--r--
liblocaledata_euro.so
2.42
MB
-rw-r--r--
liblocaledata_others.so
3.43
MB
-rw-r--r--
libloglo.so
143.78
KB
-rw-r--r--
liblog_uno_uno.so
18.4
KB
-rw-r--r--
liblosessioninstalllo.so
42.88
KB
-rw-r--r--
liblwpftlo.so
1.14
MB
-rw-r--r--
libmergedlo.so
76.92
MB
-rw-r--r--
libmigrationoo2lo.so
46.96
KB
-rw-r--r--
libmigrationoo3lo.so
63.03
KB
-rw-r--r--
libmozbootstraplo.so
50.98
KB
-rw-r--r--
libmsformslo.so
545.05
KB
-rw-r--r--
libmswordlo.so
2.58
MB
-rw-r--r--
libnamingservicelo.so
30.7
KB
-rw-r--r--
libOGLTranslo.so
291.23
KB
-rw-r--r--
libooxlo.so
5.4
MB
-rw-r--r--
libpcrlo.so
1.46
MB
-rw-r--r--
libpdffilterlo.so
264.98
KB
-rw-r--r--
libpdfimportlo.so
496.91
KB
-rw-r--r--
libpdfiumlo.so
3.96
MB
-rw-r--r--
libPresentationMinimizerlo.so
399.56
KB
-rw-r--r--
libPresenterScreenlo.so
1.11
MB
-rw-r--r--
libpricinglo.so
95.18
KB
-rw-r--r--
libprotocolhandlerlo.so
59
KB
-rw-r--r--
libproxyfaclo.so
34.83
KB
-rw-r--r--
libpythonloaderlo.so
30.9
KB
-rw-r--r--
libpyuno.so
284.05
KB
-rw-r--r--
libreflectionlo.so
207.3
KB
-rw-r--r--
libreglo.so
111.19
KB
-rw-r--r--
libsal_textenclo.so
1.62
MB
-rw-r--r--
libscdlo.so
38.95
KB
-rw-r--r--
libscfiltlo.so
5.01
MB
-rw-r--r--
libsclo.so
17.44
MB
-rw-r--r--
libscnlo.so
144.11
KB
-rw-r--r--
libscriptframe.so
212.08
KB
-rw-r--r--
libscuilo.so
731.23
KB
-rw-r--r--
libsdbtlo.so
111.28
KB
-rw-r--r--
libsddlo.so
35.01
KB
-rw-r--r--
libsdfiltlo.so
727.05
KB
-rw-r--r--
libsdlo.so
7.55
MB
-rw-r--r--
libsduilo.so
534.95
KB
-rw-r--r--
libskialo.so
6.71
MB
-rw-r--r--
libslideshowlo.so
1.96
MB
-rw-r--r--
libsmdlo.so
34.91
KB
-rw-r--r--
libsmlo.so
1.78
MB
-rw-r--r--
libsolverlo.so
107.37
KB
-rw-r--r--
libstaroffice-0.0-lo.so.0
2.4
MB
-rw-r--r--
libstocserviceslo.so
143.66
KB
-rw-r--r--
libstoragefdlo.so
52.81
KB
-rw-r--r--
libstorelo.so
114.69
KB
-rw-r--r--
libsvgfilterlo.so
846.44
KB
-rw-r--r--
libswdlo.so
34.91
KB
-rw-r--r--
libswlo.so
18.46
MB
-rw-r--r--
libswuilo.so
2.29
MB
-rw-r--r--
libt602filterlo.so
127.34
KB
-rw-r--r--
libtextconv_dict.so
285.95
KB
-rw-r--r--
libtextconversiondlgslo.so
87.08
KB
-rw-r--r--
libucpchelp1.so
416.31
KB
-rw-r--r--
libucpcmis1lo.so
1.49
MB
-rw-r--r--
libucpdav1.so
485.31
KB
-rw-r--r--
libucpftp1.so
224.05
KB
-rw-r--r--
libucpgio1lo.so
172.06
KB
-rw-r--r--
libucppkg1.so
219.53
KB
-rw-r--r--
libuno_cppuhelpergcc3.so.3
1.04
MB
-rw-r--r--
libuno_cppu.so.3
195.29
KB
-rw-r--r--
libunoidllo.so
411.19
KB
-rw-r--r--
libunopkgapp.so
131.48
KB
-rw-r--r--
libuno_purpenvhelpergcc3.so.3
26.51
KB
-rw-r--r--
libuno_salhelpergcc3.so.3
34.67
KB
-rw-r--r--
libuno_sal.so.3
404.99
KB
-rw-r--r--
libunsafe_uno_uno.so
14.34
KB
-rw-r--r--
libuuresolverlo.so
38.78
KB
-rw-r--r--
libvbaobjlo.so
2.53
MB
-rw-r--r--
libvbaswobjlo.so
2.15
MB
-rw-r--r--
libvclplug_genlo.so
612.59
KB
-rw-r--r--
libvclplug_gtk3lo.so
2.11
MB
-rw-r--r--
libwpftcalclo.so
95.57
KB
-rw-r--r--
libwpftdrawlo.so
620.03
KB
-rw-r--r--
libwpftimpresslo.so
71.26
KB
-rw-r--r--
libwpftwriterlo.so
372.93
KB
-rw-r--r--
libwriterfilterlo.so
2.99
MB
-rw-r--r--
libwriterlo.so
200
KB
-rw-r--r--
libwriterperfectlo.so
83.02
KB
-rw-r--r--
libxmlreaderlo.so
54.63
KB
-rw-r--r--
libxmlsecurity.so
693.91
KB
-rw-r--r--
libxsec_xmlsec.so
354.02
KB
-rw-r--r--
lounorc
1.03
KB
-rw-r--r--
mailmerge.py
16.69
KB
-rw-r--r--
msgbox.py
8.34
KB
-rw-r--r--
officehelper.py
3.21
KB
-rw-r--r--
oosplash
42.23
KB
-rwxr-xr-x
opencltest
14.23
KB
-rwxr-xr-x
pagein-calc
24
B
-rw-r--r--
pagein-common
244
B
-rw-r--r--
pagein-draw
24
B
-rw-r--r--
pagein-impress
24
B
-rw-r--r--
pagein-writer
24
B
-rw-r--r--
pythonloader.py
6.62
KB
-rw-r--r--
pythonloader.unorc
182
B
-rw-r--r--
pyuno.so
14.18
KB
-rw-r--r--
redirectrc
50
B
-rw-r--r--
regmerge
26.32
KB
-rwxr-xr-x
regview
14.24
KB
-rwxr-xr-x
scalc
63
B
-rwxr-xr-x
scriptforge.py
117.14
KB
-rw-r--r--
sdraw
63
B
-rwxr-xr-x
senddoc
13.93
KB
-rwxr-xr-x
services.rdb
9.53
KB
-rw-r--r--
setuprc
32
B
-rw-r--r--
simpress
66
B
-rwxr-xr-x
smath
63
B
-rwxr-xr-x
soffice
6.57
KB
-rwxr-xr-x
soffice.bin
14.15
KB
-rwxr-xr-x
sofficerc
1.26
KB
-rw-r--r--
swriter
65
B
-rwxr-xr-x
types.rdb
56.1
KB
-rw-r--r--
uno
1.48
KB
-rwxr-xr-x
uno.bin
74.46
KB
-rwxr-xr-x
unoinfo
1.27
KB
-rwxr-xr-x
unopkg
3.12
KB
-rwxr-xr-x
unopkg.bin
14.15
KB
-rwxr-xr-x
unorc
239
B
-rw-r--r--
uri-encode
14.15
KB
-rwxr-xr-x
versionrc
993
B
-rw-r--r--
xpdfimport
54.35
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : msgbox.py
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # prepare Python environment - Add the path of this class from os import path from sys import modules from sys import path as syspath # pyUNO program itself import uno, unohelper # UNO GUI toolkit from com.sun.star.awt.WindowClass import TOP, SIMPLE from com.sun.star.awt.PushButtonType import STANDARD as standard from com.sun.star.awt.PushButtonType import OK as ok from com.sun.star.awt.PushButtonType import CANCEL as cancel from com.sun.star.awt.PushButtonType import HELP as help from com.sun.star.awt.TextAlign import CENTER as center from com.sun.star.awt.TextAlign import LEFT as left from com.sun.star.awt.TextAlign import RIGHT as right # used UNO listeners from com.sun.star.awt import XActionListener class MsgBox(unohelper.Base): """Inspect UNO object, link to sdk and recursive calls""" def __init__(self, aContext): """acontext : a Valid UNO context """ self.VERSION = '0.1' self.ctx = aContext self.smgr = aContext.ServiceManager # UI Dialog object self.dialog=None # List of opened Listeners self.lst_listeners={} #UI parameters self.ButtonSize = 50 self.boxSize = 200 self.lineHeight = 10 self.fromBroxSize = False self.numberOfLines = -1 self.Buttons = [] self.Response = '' return ##################################################### # GUI definition # ##################################################### def _createBox(self): """Create the Box""" # computes parameters of the message dialog if self.numberOfLines == -1: #calculate numberOfLines = len(self.message.split(chr(10))) else: numberOfLines = self.numberOfLines numberOfButtons = len(self.Buttons) self.ButtonSpace = self.ButtonSize/2 if self.fromBroxSize: # button size is calculated from boxsize size = (2 * self.boxSize) / (3 * numberOfButtons + 1) self.ButtonSize = size self.ButtonSpace = self.ButtonSize/2 else: # boxsize is calculated from buttonsize self.boxSize = numberOfButtons * (self.ButtonSize + self.ButtonSpace) + self.ButtonSpace # create the dialog model and set the properties dialog_model = self.smgr.createInstanceWithContext( 'com.sun.star.awt.UnoControlDialogModel', self.ctx) dialog_model.PositionX = 50 dialog_model.Step = 1 dialog_model.TabIndex = 7 dialog_model.Width = self.boxSize#numberOfButtons * (self.ButtonSize + # self.ButtonSpace) + 25 dialog_model.Height = 10 + self.lineHeight * numberOfLines + 10 + 12 + 10 dialog_model.PositionY = 63 dialog_model.Sizeable = True dialog_model.Closeable = False dialog = self.smgr.createInstanceWithContext( 'com.sun.star.awt.UnoControlDialog', self.ctx) # label Label0 label = dialog_model.createInstance( 'com.sun.star.awt.UnoControlFixedTextModel') label.PositionX = 10 label.TabIndex = 9 label.Width = dialog_model.Width - label.PositionX label.Height = self.lineHeight* numberOfLines label.PositionY = 10 label.Align = left label.MultiLine = True label.Label = self.message dialog_model.insertByName('Label0', label) nb = 0 for buttonName in self.Buttons: nb +=1 button = dialog_model.createInstance( 'com.sun.star.awt.UnoControlButtonModel') button.PositionX = nb * self.ButtonSpace + (nb-1)* self.ButtonSize button.TabIndex = 8 button.Height = 12 button.Width = self.ButtonSize button.PositionY = 10 + label.Height + 10 button.PushButtonType = standard if nb == 1: button.DefaultButton = True else: button.DefaultButton = False button.Label = buttonName dialog_model.insertByName('Btn' + str(nb), button ) if not dialog.getModel(): dialog.setModel(dialog_model) # UNO toolkit definition toolkit = self.smgr.createInstanceWithContext('com.sun.star.awt.Toolkit', self.ctx) a_rect = uno.createUnoStruct( 'com.sun.star.awt.Rectangle' ) a_rect.X = 50 dialog.setTitle ( self.title ) a_rect.Width = 270 a_rect.Height = 261 a_rect.Y = 63 win_descriptor = uno.createUnoStruct('com.sun.star.awt.WindowDescriptor') win_descriptor.Type = TOP win_descriptor.ParentIndex = -1 win_descriptor.Bounds = a_rect peer = toolkit.createWindow( win_descriptor ) dialog.createPeer( toolkit, peer ) return dialog def _addListeners(self): """Add listeners to dialog""" nb = 0 for buttonName in self.Buttons: nb +=1 a_control = self.dialog.getControl('Btn'+str(nb)) the_listener = ButtonListener(self) a_control.addActionListener(the_listener) self.lst_listeners['Btn'+str(nb)] = the_listener return def _removeListeners(self): """ remove listeners on exiting""" nb = 0 for buttonName in self.Buttons: nb +=1 a_control = self.dialog.getControl('Btn'+str(nb)) a_control.removeActionListener(self.lst_listeners['Btn'+str(nb)]) return def show(self, message, decoration, title): self.message = message self.decoration = decoration self.title = title # Create GUI self.dialog = self._createBox() self._addListeners() #execute the dialog --> blocking call self.dialog.execute() #end --> release listeners and dispose dialog self._removeListeners() self.dialog.dispose() return self.Response def addButton(self, caption): self.Buttons.append(caption) return def renderFromBoxSize(self, size = 150): self.boxSize = size self.fromBroxSize = True return def renderFromButtonSize(self, size = 50): self.ButtonSize = size self.fromBroxSize = False return class ButtonListener(unohelper.Base, XActionListener): """Stops the MessageBox, sets the button label as returned value""" def __init__(self, caller): self.caller = caller def disposing(self, eventObject): pass def actionPerformed(self, actionEvent): button = actionEvent.Source self.caller.Response = button.Model.Label self.caller.dialog.endExecute() return ### TEST if __name__ == '__main__': # get the uno component context from the PyUNO runtime localContext = uno.getComponentContext() # create the UnoUrlResolver resolver = localContext.ServiceManager.createInstanceWithContext( "com.sun.star.bridge.UnoUrlResolver", localContext ) # connect to the running office # LibO has to be launched in listen mode as # ./soffice "--accept=socket,host=localhost,port=2002;urp;" ctx = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" ) myBox = MsgBox(ctx) myBox.addButton("Yes") myBox.addButton("No") myBox.addButton("May be") myBox.renderFromBoxSize(150) myBox.numberOflines = 2 print(myBox.show("A very long message A very long message A very long message A very long message A very long message A very long message A very long message A very long message A very long message A very long message " + chr(10)+chr(10)+"Do you agree ?",0,"Dialog title")) myBox = MsgBox(ctx) myBox.addButton("oK") myBox.renderFromButtonSize() myBox.numberOflines = 2 print(myBox.show("A small message",0,"Dialog title")) # vim: set shiftwidth=4 softtabstop=4 expandtab:
Close