Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

Sponsors


Library bitcoin

This library implements a minimal subset of the BitCoin protocol It currently supports the version handshake and processing Addr responses.

The library contains the following classes:

  • NetworkAddress - Contains functionality for encoding and decoding the
BitCoin network address structure.

  • Request - Classs containing BitCoin client requests
o Version - The client version exchange packet

  • Response - Class containing BitCoin server responses
o Version - The server version exchange packet o VerAck - The server version ACK packet o Addr - The server address packet o Inv - The server inventory packet

  • BCSocket - A buffering socket class

  • Helper - The primary interface to scripts

Authors:
Patrik Karlsson <patrik@cqure.net>
Andrew Orr <andrew@andreworr.ca>

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

Source: http://nmap.org/svn/nselib/bitcoin.lua

Functions

close (self)

Closes an open connection.

connect (self)

Establishes a connection.

recv (self, count)

Opposed to the socket:receive_bytes function, that returns at least x bytes, this function returns the amount of bytes requested.

send (self, data)

Sends data over the socket



Functions

close (self)

Closes an open connection.

Parameters

  • self:

Return values:

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

Establishes a connection.

Parameters

  • self:

Return values:

  1. Status (true or false).
  2. Error code (if status is false).
recv (self, count)

Opposed to the socket:receive_bytes function, that returns at least x bytes, this function returns the amount of bytes requested.

Parameters

  • self:
  • count: of bytes to read

Return values:

  1. true on success, false on failure
  2. data containing bytes read from the socket err containing error message if status is false
send (self, data)

Sends data over the socket

Parameters

  • self:
  • data:

Return values:

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

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]