GRAYBYTE WORDPRESS FILE MANAGER7445

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib64/python2.7/Demo/pdist/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib64/python2.7/Demo/pdist//README
Filesystem, RCS and CVS client and server classes
=================================================

*** See the security warning at the end of this file! ***

This directory contains various modules and classes that support
remote file system operations.

CVS stuff
---------

rcvs			Script to put in your bin directory
rcvs.py			Remote CVS client command line interface

cvslib.py		CVS admin files classes (used by rrcs)
cvslock.py		CVS locking algorithms

RCS stuff
---------

rrcs			Script to put in your bin directory
rrcs.py			Remote RCS client command line interface

rcsclient.py		Return an RCSProxyClient instance
			(has reasonable default server/port/directory)

RCSProxy.py		RCS proxy and server classes (on top of rcslib.py)

rcslib.py		Local-only RCS base class (affects stdout &
			local work files)

FSProxy stuff
-------------

sumtree.py		Old demo for FSProxy
cmptree.py		First FSProxy client (used to sync from the Mac)
FSProxy.py		Filesystem interface classes

Generic client/server stuff
---------------------------

client.py		Client class
server.py		Server class

security.py		Security mix-in class (not very secure I think)

Other generic stuff
-------------------

cmdfw.py		CommandFrameWork class
			(used by rcvs, should be used by rrcs as well)


Client/Server operation
-----------------------

The Client and Server classes implement a simple-minded RPC protocol,
using Python's pickle module to transfer arguments, return values and
exceptions with the most generality.  The Server class is instantiated
with a port number on which it should listen for requests; the Client
class is instantiated with a host name and a port number where it
should connect to.  Once a client is connected, a TCP connection is
maintained between client and server.

The Server class currently handles only one connection at a time;
however it could be rewritten to allow various modes of operations,
using multiple threads or processes or the select() system call as
desired to serve multiple clients simultaneously (when using select(),
still handling one request at a time).  This would not require
rewriting of the Client class.  It may also be possible to adapt the
code to use UDP instead of TCP, but then both classes will have to be
rewritten (and unless extensive acknowlegements and request serial
numbers are used, the server should handle duplicate requests, so its
semantics should be idempotent -- shrudder).

Even though the FSProxy and RCSProxy modules define client classes,
the client class is fully generic -- what methods it supports is
determined entirely by the server.  The server class, however, must be
derived from.  This is generally done as follows:

	from server import Server
	from client import Client

	# Define a class that performs the operations locally
	class MyClassLocal:
		def __init__(self): ...
		def _close(self): ...

	# Derive a server class using multiple inheritance
	class MyClassServer(MyClassLocal, Server):
		def __init__(self, address):
			# Must initialize MyClassLocal as well as Server
			MyClassLocal.__init__(self)
			Server.__init__(self, address)
		def _close(self):
			Server._close()
			MyClassLocal._close()

	# A dummy client class
	class MyClassClient(Client): pass

Note that because MyClassLocal isn't used in the definition of
MyClassClient, it would actually be better to place it in a separate
module so the definition of MyClassLocal isn't executed when we only
instantiate a client.

The modules client and server should probably be renamed to Client and
Server in order to match the class names.


*** Security warning: this version requires that you have a file
$HOME/.python_keyfile at the server and client side containing two
comma- separated numbers.  The security system at the moment makes no
guarantees of actuallng being secure -- however it requires that the
key file exists and contains the same numbers at both ends for this to
work.  (You can specify an alternative keyfile in $PYTHON_KEYFILE).
Have a look at the Security class in security.py for details;
basically, if the key file contains (x, y), then the security server
class chooses a random number z (the challenge) in the range
10..100000 and the client must be able to produce pow(z, x, y)
(i.e. z**x mod y).

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 15 2024 08:34:37
root / root
0755
FSProxy.py
7.645 KB
April 19 2020 21:13:39
root / root
0644
FSProxy.pyc
12.495 KB
April 10 2024 04:58:46
root / root
0644
FSProxy.pyo
12.495 KB
April 10 2024 04:58:46
root / root
0644
RCSProxy.py
4.612 KB
April 10 2024 04:57:37
root / root
0755
RCSProxy.pyc
7.569 KB
April 10 2024 04:58:46
root / root
0644
RCSProxy.pyo
7.569 KB
April 10 2024 04:58:46
root / root
0644
README
4.164 KB
April 19 2020 21:13:39
root / root
0644
client.py
4.598 KB
April 19 2020 21:13:39
root / root
0644
client.pyc
6.566 KB
April 10 2024 04:58:46
root / root
0644
client.pyo
6.566 KB
April 10 2024 04:58:46
root / root
0644
cmdfw.py
4.532 KB
April 19 2020 21:13:39
root / root
0644
cmdfw.pyc
5.116 KB
April 10 2024 04:58:46
root / root
0644
cmdfw.pyo
5.116 KB
April 10 2024 04:58:46
root / root
0644
cmptree.py
5.643 KB
April 19 2020 21:13:39
root / root
0644
cmptree.pyc
5.979 KB
April 10 2024 04:58:46
root / root
0644
cmptree.pyo
5.979 KB
April 10 2024 04:58:46
root / root
0644
cvslib.py
9.937 KB
April 19 2020 21:13:39
root / root
0644
cvslib.pyc
12.832 KB
April 10 2024 04:58:46
root / root
0644
cvslib.pyo
12.832 KB
April 10 2024 04:58:46
root / root
0644
cvslock.py
6.612 KB
April 19 2020 21:13:39
root / root
0644
cvslock.pyc
8.359 KB
April 10 2024 04:58:46
root / root
0644
cvslock.pyo
8.359 KB
April 10 2024 04:58:46
root / root
0644
mac.py
0.344 KB
April 19 2020 21:13:39
root / root
0644
mac.pyc
0.584 KB
April 10 2024 04:58:46
root / root
0644
mac.pyo
0.584 KB
April 10 2024 04:58:46
root / root
0644
makechangelog.py
2.918 KB
April 10 2024 04:57:37
root / root
0755
makechangelog.pyc
3.049 KB
April 10 2024 04:58:46
root / root
0644
makechangelog.pyo
3.049 KB
April 10 2024 04:58:46
root / root
0644
rcsbump
0.728 KB
April 10 2024 04:57:37
root / root
0755
rcsclient.py
1.761 KB
April 19 2020 21:13:39
root / root
0644
rcsclient.pyc
2.051 KB
April 10 2024 04:58:46
root / root
0644
rcsclient.pyo
2.051 KB
April 10 2024 04:58:46
root / root
0644
rcslib.py
10.076 KB
April 19 2020 21:13:39
root / root
0644
rcslib.pyc
11.277 KB
April 10 2024 04:58:46
root / root
0644
rcslib.pyo
11.277 KB
April 10 2024 04:58:46
root / root
0644
rcvs
0.114 KB
April 10 2024 04:57:37
root / root
0755
rcvs.py
13.324 KB
April 10 2024 04:57:37
root / root
0755
rcvs.pyc
14.079 KB
April 10 2024 04:58:46
root / root
0644
rcvs.pyo
14.079 KB
April 10 2024 04:58:46
root / root
0644
rrcs
0.114 KB
April 10 2024 04:57:37
root / root
0755
rrcs.py
3.898 KB
April 10 2024 04:57:37
root / root
0755
rrcs.pyc
5.497 KB
April 10 2024 04:58:46
root / root
0644
rrcs.pyo
5.497 KB
April 10 2024 04:58:46
root / root
0644
security.py
1.066 KB
April 19 2020 21:13:39
root / root
0644
security.pyc
1.642 KB
April 10 2024 04:58:46
root / root
0644
security.pyo
1.642 KB
April 10 2024 04:58:46
root / root
0644
server.py
4.474 KB
April 19 2020 21:13:39
root / root
0644
server.pyc
5.831 KB
April 10 2024 04:58:46
root / root
0644
server.pyo
5.831 KB
April 10 2024 04:58:46
root / root
0644
sumtree.py
0.506 KB
April 19 2020 21:13:39
root / root
0644
sumtree.pyc
0.882 KB
April 10 2024 04:58:46
root / root
0644
sumtree.pyo
0.882 KB
April 10 2024 04:58:46
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF