Remove NMAP routines from msgapi

This commit is contained in:
alexhudson
2007-05-04 09:37:24 +00:00
parent 39db173e32
commit 876724ad05
7 changed files with 50 additions and 188 deletions
-23
View File
@@ -551,28 +551,6 @@ msgapi_IcsSubscribe(PyObject *self, PyObject *args)
return PyLong_FromUnsignedLong(guid);
}
PyDoc_STRVAR(NmapChallenge_doc,
"NmapChallenge(s) -> string response\n\
\n\
Return the response string for an NMAP challenge string s.\n\
s is of the format \"NMAP <40c0cbb0hostname441444a4>\".");
static PyObject *
msgapi_NmapChallenge(PyObject *self, PyObject *args)
{
unsigned char *salt;
unsigned int len=33;
unsigned char buf[len];
if (!PyArg_ParseTuple(args, "s", &salt)) {
return NULL;
}
MsgNmapChallenge(salt, buf, len);
return Py_BuildValue("s", buf);
}
extern PyObject *msgapi_GetConfigProperty(PyObject *, PyObject *);
PyMethodDef MsgApiMethods[] = {
@@ -590,7 +568,6 @@ PyMethodDef MsgApiMethods[] = {
{"ImportIcs", msgapi_ImportIcs, METH_VARARGS | METH_STATIC, ImportIcs_doc},
{"IcsSubscribe", msgapi_IcsSubscribe, METH_VARARGS | METH_STATIC, IcsSubscribe_doc},
{"IcsImport", msgapi_IcsImport, METH_VARARGS | METH_STATIC, IcsImport_doc},
{"NmapChallenge", msgapi_NmapChallenge, METH_VARARGS | METH_STATIC, NmapChallenge_doc},
{"GetConfigProperty", msgapi_GetConfigProperty, METH_VARARGS | METH_STATIC, GetConfigProperty_doc},
{"GetUnprivilegedUser", msgapi_GetUnprivilegedUser, METH_VARARGS | METH_STATIC, GetUnprivilegedUser_doc},
{NULL, NULL, 0, NULL}