!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/lib/python2.7/dist-packages/twisted/runner/   drwxr-xr-x
Free 9.72 GB of 29.4 GB (33.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     portmap.c (1.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Copyright (c) 2001-2004 Twisted Matrix Laboratories.
 * See LICENSE for details.

 * 
 */

/* portmap.c: A simple Python wrapper for pmap_set(3) and pmap_unset(3) */

#include <Python.h>
#include <rpc/rpc.h>
#include <rpc/pmap_clnt.h>

static PyObject * portmap_set(PyObject *self, PyObject *args)
{
    unsigned long program, version;
    int protocol;
    unsigned short port;
    
    if (!PyArg_ParseTuple(args, "llih:set", 
                  &program, &version, &protocol, &port))
        return NULL;

    pmap_unset(program, version);
    pmap_set(program, version, protocol, port);
    
    Py_INCREF(Py_None);
    return Py_None;
}

static PyObject * portmap_unset(PyObject *self, PyObject *args)
{
    unsigned long program, version;
    
    if (!PyArg_ParseTuple(args, "ll:unset",
                  &program, &version))
        return NULL;

    pmap_unset(program, version);
    
    Py_INCREF(Py_None);
    return Py_None;
}

static PyMethodDef PortmapMethods[] = {
    {"set", portmap_set, METH_VARARGS, 
     "Set an entry in the portmapper."},
    {"unset", portmap_unset, METH_VARARGS,
     "Unset an entry in the portmapper."},
    {NULL, NULL, 0, NULL}
};

void initportmap(void)
{
    (void) Py_InitModule("portmap", PortmapMethods);
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0046 ]--