Giter Club home page Giter Club logo

hello-python2's People

Contributors

nixawk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hello-python2's Issues

socket_rpcinfo.py

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.