You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

AxNetwork

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

AxNetwork

The ActiveXperts Network component is a simple COM based API for using (secure) TCP/UDP client protocols, including: * Dns - Query servers running a domain name service (DNS). More » * Ftp(s) - Read web pages, analyze content. Supports HTTP-Post, proxies, SSL and more. * Http(s) - Read web pages, analyze content. Supports HTTP-Post, proxies, SSL and more. * Icmp - See if you can reach another computer and determine how long it takes. * IPtoCountry - Translates IP addresses to countries. Use it for web log analysis, marketing purposes, etc. * Ntp - Query NTP time servers and retrieve the actual date and time. * Radius - Networking protocol to provide centralized authentication and authorization management. * Rsh - Run commands or scripts on a remote UNIX or LINUX computer through RSH. * Scp - Securely transfer files between two computers using the SSH (Secure SHell) protocol. * Sftp - Allows secure network file transfer over an insecure network, such as the Internet. * Snmp - Use SNMP operations Get, GetNext, Set and Trap; supports SNMP v1, SNMP v2c and SNMP v3. * Snmp Trap - Send/receive SNMP traps to/from SNMP agents (v1, v2c, v3) in the network. * Snmp MIB - Load a MIB database into memory and iterate over all objects and view all properties. * Ssh - Run commands or scripts on LINUX computer in a secure way using SSH. * Tcp - Write your own TCP-based client/server applications or Telnet application. * Tftp - Get/put files from/to a remote TFTP host. * TraceRoute - Tracks the route packets taken from an IP network on their way to a given host. * Udp - Create your UDP-based client/server applications; create UDP-based broadcast application. * VMware - Get performance data from a VMware host and its virtual machines. * Wake-On-LAN - Wake up (power-up) machines on your LAN, based on their MAC address. * Xen -Get performance data from a Citrix Xen host and its virtual machines.

6.1.2.5031
nugetNuGet
Version published
Maintainers
1
Created
Source

ActiveXperts Network Component is a Network Communication component for Windows developers.

  • Easy to use API
  • Supporting IPv4 and IPv6
  • Supporting all common TCP and UDP protocols
  • Single DLL, 64-bit and 32-bit
  • Samples available in C#, VB, ASP.NET, HTML, PHP, Javascript, Delphi and more

How to use

Find a stand-alone windows installer here

Or download the full package which includes a number of working examples for C#, VB.Net, ASP.NET, C++, etc.. here: ActiveXperts Download Area

Simple C# code snippet opens an SSH session to a remote SSH host and executes a command

using System; using System.IO; using AxNetwork;

namespace SshDemo { class SshDemo { [STAThread] static void Main(string[] args) { AxNetwork.Ssh objSsh = new AxNetwork.Ssh(); // Create instance of COM Object string strDemoHost = "ssh.activexperts-labs.com", strDemoUser = "axnetwork", strDemoPassword = "topsecret";

  // A license key is required to unlock this component after the trial period has expired.
  // Call 'Activate' with a valid license key as its first parameter. Second parameter determines whether to save the license key permanently 
  // to the registry (True, so you need to call Activate only once), or not to store the key permanently (False, so you need to call Activate
  // every time the component is created). For details, see manual, chapter "Product Activation".
  /*
  objSsh.Activate( "XXXXX-XXXXX-XXXXX", false );
  */

  // Display component information
  Console.WriteLine("ActiveXperts Network Component {0}\nBuild: {1}\nModule: {2}\nLicense Status: {3}\nLicense Key: {4}\n", objSsh.Version, objSsh.Build, objSsh.Module, objSsh.LicenseStatus, objSsh.LicenseKey);

  // Set Logfile (optional, for debugging purposes)
  objSsh.LogFile = Path.GetTempPath() + "Ssh.log";
  Console.WriteLine("Log file used: {0}\n", objSsh.LogFile);

  objSsh.Host = ReadInput("Enter host/IP address", strDemoHost, false);
  Console.WriteLine("Host: {0}", objSsh.Host);
  if (objSsh.Host == strDemoHost)
  {
    objSsh.UserName = strDemoUser;
    objSsh.Password = strDemoPassword;
    objSsh.PrivateKeyFile = "";
  }
  else
  {
    objSsh.UserName = ReadInput("Enter Login", strDemoUser, false);
    objSsh.Password = ReadInput("Enter Password (Optional)", strDemoPassword, true);
    objSsh.PrivateKeyFile = ReadInput("Enter private key file (Optional)", "", true);
  }

  Console.WriteLine("UserName: {0}", objSsh.UserName);
  Console.WriteLine("Password: {0}", objSsh.Password);

  // objSsh.Port = 22;	// Default port: 22
  objSsh.AcceptHostKey = true;        // Automatically accept and store the host key if it is changed or unknown

  objSsh.ConnectTimeout = 30000;

  Console.WriteLine("OpenSession...");
  objSsh.OpenSession();
  Console.WriteLine("OpenSession, result: {0}: ({1})", objSsh.LastError.ToString(), objSsh.GetErrorDescription(objSsh.LastError));
  if (objSsh.ProtocolError != "")
    Console.WriteLine("ProtocolError: {0}", objSsh.ProtocolError);

  while (objSsh.IsSessionOpened())
  {
    objSsh.Command = ReadInput("Enter command (type 'QUIT!' to quit)", @"ls", true);
    if (objSsh.Command == "QUIT!")
      break;

    Console.WriteLine("Command: {0}", objSsh.Command);
    Console.WriteLine("ExecuteCommand...");
    objSsh.ExecuteCommand();
    Console.WriteLine("ExecuteCommand, result: {0}: ({1})", objSsh.LastError.ToString(), objSsh.GetErrorDescription(objSsh.LastError));
    if (objSsh.ProtocolError != "")
      Console.WriteLine("ProtocolError: {0}", objSsh.ProtocolError);
    if (objSsh.LastError == 0)
    {
      Console.WriteLine("STDERR: ");
      Console.WriteLine(objSsh.StdErr);
      Console.WriteLine("STDOUT: ");
      Console.WriteLine(objSsh.StdOut);
    }
  }

  objSsh.CloseSession();
  Console.WriteLine("CloseSession, result: {0}: ({1})", objSsh.LastError.ToString(), objSsh.GetErrorDescription(objSsh.LastError));

  Console.WriteLine("Ready.");		
  System.Threading.Thread.Sleep(3000); // Sleep for 3 second before exit
}

static private string ReadInput(string strTitle, string strDefaultValue, bool bAllowEmpty)
{
  String strInput, strReturn = "";

  if (strDefaultValue == "") Console.WriteLine("{0}:", strTitle);
  else Console.WriteLine("{0}, leave blank to use: {1}", strTitle, strDefaultValue);

  do
  {
    Console.Write("  > ");
    strInput = Console.ReadLine();
    if (strInput.Length > 0)
      strReturn = strInput;
  } while (strReturn == "" && !bAllowEmpty && strDefaultValue == "");

  if (strReturn == "") return strDefaultValue;
  else return strReturn;
}
}

}

Support

Any questions or need an extension of the trial period? Please send us an email at: support@activexperts.com

Pricing and purchasing

This product is a fully functional 30 day trail.

Find more information about pricing and how to purchase or our sales page: ActiveXperts Customer Services

Keywords

SSH

FAQs

Package last updated on 14 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.