예제 #1
0
        public PyObject Encode()
        {
            PyTuple res = new PyTuple();

            PyTuple main = new PyTuple();

            main.Items.Add(new PyInt(clueless));
            main.Items.Add(changes);

            res.Items.Add(main);
            res.Items.Add(nodesOfInterest);

            return res.As<PyObject>();
        }
예제 #2
0
        public PyObject Encode()
        {
            PyTuple res = new PyTuple();

            PyTuple main = new PyTuple();

            main.Items.Add(new PyInt(clueless));
            main.Items.Add(changes);

            res.Items.Add(main);
            res.Items.Add(nodesOfInterest);

            return(res.As <PyObject>());
        }
예제 #3
0
        public PyObject Encode()
        {
            PyTuple res = new PyTuple();

            res.Items.Add(new PyString(serverChallenge));

            PyTuple extra = new PyTuple();

            extra.Items.Add(new PyBuffer(func_marshaled_code));
            extra.Items.Add(new PyBool(verification));

            res.Items.Add(extra);

            if (context == null)
            {
                res.Items.Add(new PyDict());
            }
            else
            {
                res.Items.Add(context);
            }

            PyDict info = new PyDict();

            info.Set("macho_version", new PyInt(macho_version));
            info.Set("boot_version", new PyFloat(boot_version));
            info.Set("boot_build", new PyInt(boot_build));
            info.Set("boot_codename", new PyString(boot_codename));
            info.Set("boot_region", new PyString(boot_region));
            info.Set("cluster_usercount", new PyInt(cluster_usercount));
            info.Set("proxy_nodeid", new PyInt(proxy_nodeid));
            info.Set("user_logonqueueposition", new PyInt(user_logonqueueposition));
            info.Set("challenge_responsehash", new PyString(challenge_responsehash));

            res.Items.Add(info);

            return(res.As <PyObject>());
        }