Library nrpc

A minimalistic library to support Domino RPC

Summary ------- The library currently only supports user enumeration and uses chunks of captured data to do so.

Overview -------- The library contains the following classes:

o DominoPacket - The packet class holding the packets sent between the client and the IBM Lotus Domino server

o Helper - A helper class that provides easy access to the rest of the library

Example ------- The following sample code illustrates how scripts can use the Helper class to interface the library:

 helper = nrpc.Helper:new(host, port)
 status, err = nrpc:Connect()
 status, res = nrpc:isValidUser("Patrik Karlsson")
 status, err = nrpc:Close()

Author:

  • Patrik Karlsson <patrik@cqure.net>

Copyright © Same as Nmap--See https://nmap.org/book/man-legal.html

Source: https://svn.nmap.org/nmap/nselib/nrpc.lua

Functions

__tostring (self)

converts the packet to a string

connect (self)

Connects the socket to the Domino server

disconnect (self)

Disconnects from the Lotus Domino Server

isValidUser (self, username)

Attempt to check whether the user exists in Domino or not

new (self, host, port)

Creates a new Helper instance

new (self, host, port)

Creates a new Helper instance

read (self, domsock)

Reads a packet from the socket

Functions

__tostring (self)

converts the packet to a string

Parameters

self
 
connect (self)

Connects the socket to the Domino server

Parameters

self
 

Return values:

  1. status true on success, false on failure
  2. err error message if status is false
disconnect (self)

Disconnects from the Lotus Domino Server

Parameters

self
 

Return values:

  1. status true on success, false on failure
  2. err error message if status is false
isValidUser (self, username)

Attempt to check whether the user exists in Domino or not

Parameters

self
 
username
string containing the user name to guess

Return values:

  1. status true on success false on failure
  2. domino_id if it exists and status is true err if status is false
new (self, host, port)

Creates a new Helper instance

Parameters

self
 
host
table as received by the script action method
port
table as received by the script action method
new (self, host, port)

Creates a new Helper instance

Parameters

self
 
host
table as received by the script action method
port
table as received by the script action method
read (self, domsock)

Reads a packet from the socket

Parameters

self
 
domsock
socket connected to the server

Return values:

  1. Status (true or false).
  2. Error code (if status is false).