nixawk / hello-python2 Goto Github PK
View Code? Open in Web Editor NEWPython libraries demos
Home Page: https://www.python.org/
Python libraries demos
Home Page: https://www.python.org/
just support RPC V2,not support RPC V3.
chang a little code as below code
#v3
def rpc_request(self):
"""Remote Procedure Call Request. If you want more, please use wireshark
to capture (rpcinfo -p 192.168.1.100) packaets.
"""
# Remote Procedure Call
rpc_Fragment_header = 0x80000028
rpc_XID = int(time.time())
rpc_Message_Type = 0 # Call
rpc_RPC_Version = 2
rpc_Program = 100000 # Portmap
rpc_Program_Version = 3
rpc_Procedure = 4 # Dump
rpc_Credentials_Flavor = 0 # AUTH_NULL
rpc_Credentials_Length = 0
rpc_Verifier_Flavor = 0 # AUTH_NULL
rpc_Verifier_Length = 0
# Portmap
portmap_Program_Version = 3
portmap_Procedure = 4 # Dump
proto = struct.pack(
# Remote Procedure Call
'>IIIIIIIIIII',
rpc_Fragment_header,
rpc_XID,
rpc_Message_Type,
rpc_RPC_Version,
rpc_Program,
rpc_Program_Version,
rpc_Procedure,
rpc_Credentials_Flavor,
rpc_Credentials_Length,
rpc_Verifier_Flavor,
rpc_Verifier_Length,
# portmap
#portmap_Program_Version,
#portmap_Procedure
)
return proto
unpack response data is diffcult~~
may you can help resolve this problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.