Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ Forerunner - Fast And Extensible Network Scanning Library Featuring Multithreading, Ping Probing, And Scan Fetchers

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Forerunner - Fast And Extensible Network Scanning Library Featuring Multithreading, Ping Probing, And Scan Fetchers


๐Ÿ’ก Newskategorie: IT Security Nachrichten
๐Ÿ”— Quelle: feedproxy.google.com


The Forerunner library is a fast, lightweight, and extensible networking library created to aid in the development of robust network centric applications such as: IP Scanners, Port Knockers, Clients, Servers, etc. In it's current state, the Forerunner library is able to both synchronously and asynchronously scan and port knock IP addresses in order to obtain information about the device located at that endpoint such as: whether the IP is online, the physical MAC address, and etc. The library is a completely object oriented and event based library meaning that scan data is contained within specially crafted "scan" objects which are designed to handle all data from results to exceptions.

Requirements
  • .NET Framework 4.6.1

Features
Method Description Usage
Scan Scan a single IP for information Scan("192.168.1.1");
ScanRange Scan a range of IPs for information ScanRange("192.168.1.1", "192.168.1.255")
ScanList Scan a list of IPs for information ScanList("192.168.1.1, 192.168.1.2, 192.168.1.3")
PortKnock Ping every port of a single IP PortKnock("192.168.1.1");
PortKnockRange Ping every port in a range of IPs PortKnockRange("192.168.1.1", "192.168.1.255");
PortKnockList Ping every port using a list of IPs PortKnockList("192.198.1.1, 192.168.1.2, 192.168.1.3");
IsHostAlive Ping a host N times for X milliseconds IsHostAlive("192.168.1.1", 5, 1000);
GetAveragePingResponse Get average ping response for a host GetAveragePingResponse("192.168.1.1", 5, 1000);
IsPortOpen Ping individual ports via TCP & UDP IsPortOpen("192.168.1.1", 45000, new TimeSpan(1000), false);

Examples

IP Scanning
Scanning a network is a commonplace task in this digital age and so I have taken the liberty to make this as simple as possible for any future programmer whom may wish to do such a thing in an easy way. The Forerunner library is completely object oriented, thus making it ideal for plug and play situations; the object for IP scanning is called an IPScanObject and it actually contains quite a few properties:
  • Address (String)
  • IP (IPAddress)
  • Ping (Long)
  • Hostname (String)
  • MAC (String)
  • isOnline (Bool)
  • Errors (Exception)
With the object in mind, let's try and create a new object and perform a scan using it. There are multiple ways to go about this, however, the simplest way to get started is to first create a new Scanner object so we can access our scanning methods. Next, create an IPScanObject and then set it to the Scan method with the IP you would like to enumerate; for example:

Synchronous
using System;
using Forerunner; // Remember to import our library.

namespace Example
{
class Program
{
static void Main(string[] args)
{
// Our IP we would like to scan.
string ip = "192.168.1.1";

// Create a new scanner object.
Scanner s = new Scanner();

// Create a new scan object and perform a scan.
IPScanObject result = s.Scan(ip);

// Output that we have finished the scan.
if (result.Errors != null)
Console.WriteLine("[x] An error occurred during the scan.");
else
Console.WriteLine("[+] " + ip + " has been successfully scanned!")

// Allow the user to exit at any time.
Console.Read();
}
}
}
Another way, which is my preferred method of operation, is to create a Scanner object and subscribe to the Event Handlers of things like ScanAsyncProgressChanged or ScanAsyncComplete, that way I have full control over my async methods; I can control how they're progress states affect my application and so on; for example:

Asynchronous
using System;
using System.Threading.Tasks;
using Forerunner; // Remember to import our library.

namespace Example
{
class Program
{
static void Main(string[] args)
{
// Our IP we would like to scan.
string ip = "192.168.1.1";

// Setup our scanner object.
Scanner s = new Scanner();
s.ScanAsyncProgressChanged += new ScanAsyncProgressChangedHandler(ScanAsyncProgressChanged);
s.ScanAsyncComplete += new ScanAsyncCompleteHandler(ScanAsyncComplete);

// Start a new scan task with our ip.
TaskFactory task = new TaskFactory();
task.StartNew(() => s.ScanAsync(ip));

// Allow the user to exit at any time.
Console.Read();
}

static void ScanAsyncProgressChanged(object sender, ScanAsyncProgressChangedEve ntArgs e)
{
// Do something here with e.Progress, or you could leave this event
// unsubscribed so you wouldn't have to do anything.
}

static void ScanAsyncComplete(object sender, ScanAsyncCompleteEventArgs e)
{
// Do something with the IPScanObject aka e.Result.
if (e.Result.Errors != null)
Console.WriteLine("[x] An error occurred during the scan.");
else
Console.WriteLine("[+] " + e.Result.IP + " has been successfully scanned!")
}
}
}

Port Knocking
I know what you're thinking. Port knocking? Yes, and no. The term doesn't mean port knocking in the traditional sense of connecting through a predefined set of ports, but rather just checking if any ports are actually open. It's literally "knocking" on a port in every sense of the word by trying to connect to each port and sending data. Just like with IP scanning, port knocking uses a custom object which is called a "Port Knock Scan Object" or PKScanObject for short. The PKScanObject actually contains a list of PKServiceObjects which in turn hold our port data; the service object contains the following properties:
  • IP (String)
  • Port (Int)
  • Protocol (PortType)
  • Status (Bool)
Port knocking is in similar fashion with IP scanning. First, create a Scanner object. Next, create a new PKScanObject and set it to the PortKnock method with the IP of your choosing, then display your results; for example:

Synchronous
using System;
using Forerunner; // Remember to import our library.

namespace Example
{
class Program
{
static void Main(string[] args)
{
// Our IP we would like to scan.
string ip = "192.168.1.1";

// Create a new scanner object.
Scanner s = new Scanner();

// Create a new scan object and perform a scan.
PKScanObject result = s.PortKnock(ip);

// Output that we have finished the scan.
if (result.Errors != null)
Console.WriteLine("[x] An error occurred during the scan.");
else
Console.WriteLine("[+] " + ip + " has been successfully scanned!")

// Display our results.
foreach (PKServiceObject port in result.Services)
{
Console.WriteLine("[+] IP: " + port .IP + " | " +
"Port: " + port.Port.ToString() + " | " +
"Protocol: " + port.Protocol.ToString() + " | " +
"Status: " + port.Status.ToString());
}

// Allow the user to exit at any time.
Console.Read();
}
}
}
Lastly, I will show you a simple example of port knocking asynchronously. It is essentially the same as port knocking synchronously except for the fact that you can use events to your advantage. You can get progress updates without having to worry about UIs crashing or systems being in a locked state; for example:

Asynchronous
using System;
using System.Threading.Tasks;
using Forerunner; // Remember to import our library.

namespace Example
{
class Program
{
static void Main(string[] args)
{
// Our IP we would like to scan.
string ip = "192.168.1.1";

// Setup our scanner object.
Scanner s = new Scanner();
s.PortKnockAsyncProgressChanged += new PortKnockAsyncProgressChangedHandler(PortKnockAsyncProgressChanged);
s.PortKnockAsyncComplete += new PortKnockAsyncCompleteHandler(PortKnockAsyncComplete);

// Start a new scan task with our ip.
TaskFactory task = new TaskFactory();
task.StartNew(() => s.PortKnockAsync(ip));

// Allow the user to exit at any time.
Console.Read();
}

static void PortKnockAsyncProgressChanged(ob ject sender, PortKnockAsyncProgressChangedEventArgs e)
{
// Display our progress so we know the ETA.
if (e.Progress == 99)
{
Console.Write(e.Progress.ToString() + "%...");
Console.WriteLine("100%!");
}
else
Console.Write(e.Progress.ToString() + "%...");
}

static void PortKnockAsyncComplete(object sender, PortKnockAsyncCompleteEventArgs e)
{
// Tell the user that the port knock was complete.
Console.WriteLine("[+] Port Knock Complete!");

// Check if we resolved an error.
if (e.Result == null)
Console.WriteLine("[X] The port knock did not return any data!");
else
{
// Check if we have any ports recorded.
if (e.Result.Services.Count == 0)
Console.WriteLine("[!] No ports were open during the knock.");
else
{
// Display our ports and their details.
foreach (PKServiceObject port in e.Result.Services)
{
Console.WriteLine("[+] IP: " + port.IP + " | " +
"Port: " + port.Port.ToString() + " | " +
"Protocol: " + port.Protocol.ToString() + " | " +
"Status: " + port.Status.ToString());
}
}
}
}
}
}

Credits
Icon: monkik
https://www.flaticon.com/authors/monkik


...



๐Ÿ“Œ Garmin Forerunner 735XT und Forerunner 45: Black Friday-Schnรคppchen fรผr Lรคufer bei Amazon


๐Ÿ“ˆ 43.07 Punkte

๐Ÿ“Œ Amazon Last Minute-Angebote: Garmin Forerunner 735XT und Forerunner 45 zu Top-Preisen


๐Ÿ“ˆ 43.07 Punkte

๐Ÿ“Œ Garmin Forerunner 55 und Forerunner 945 LTE neu vorgestellt


๐Ÿ“ˆ 43.07 Punkte

๐Ÿ“Œ Garmin Forerunner 55 und Forerunner 945 LTE: Neue GPS-Tracker fรผr Lรคufer


๐Ÿ“ˆ 43.07 Punkte

๐Ÿ“Œ Garmin Forerunner 255 und Forerunner 955 fรผr Lรคufer und Triathleten vorgestellt


๐Ÿ“ˆ 43.07 Punkte

๐Ÿ“Œ CVE-2020-9026 | Eltex NTP-RG-1402G 1v10 3.25.3.32 Ping ping.cmd PING os command injection


๐Ÿ“ˆ 39.86 Punkte

๐Ÿ“Œ Simple Scan: A Scanning Solution for People Who Donโ€™t Scan Often


๐Ÿ“ˆ 34.8 Punkte

๐Ÿ“Œ BitWings Reveals the First Smartphone Featuring Data and Call Encryption, Neural Technology, and Biometric Scanning


๐Ÿ“ˆ 29.81 Punkte

๐Ÿ“Œ Vulnerability Scanning with OpenVAS 9 part 3: Scanning the Network


๐Ÿ“ˆ 29.4 Punkte

๐Ÿ“Œ ARP-Scan Command To Scan The Local Network


๐Ÿ“ˆ 28.73 Punkte

๐Ÿ“Œ Most Useful Linux Ping Command (Ping Utility) With Examples


๐Ÿ“ˆ 26.57 Punkte

๐Ÿ“Œ XFDB-14094 | PHP-Ping php-ping.php host privileges management (Nessus ID 11966 / SBV-3320)


๐Ÿ“ˆ 26.57 Punkte

๐Ÿ“Œ Wie ist mein Ping: So messt ihr euren Ping


๐Ÿ“ˆ 26.57 Punkte

๐Ÿ“Œ Linux Kernel up to 3.10.19 Ping Socket Read Call net/ipv4/ping.c ping_recvmsg null pointer dereference


๐Ÿ“ˆ 26.57 Punkte

๐Ÿ“Œ Ping -- Know the Target (Ping Pong)!


๐Ÿ“ˆ 26.57 Punkte

๐Ÿ“Œ CVE-2020-9027 | Eltex NTP-RG-1402G 1v10 3.25.3.32 Ping ping.cmd TRACE os command injection


๐Ÿ“ˆ 26.57 Punkte

๐Ÿ“Œ Europol Probing IS Setting Up of Social Network


๐Ÿ“ˆ 24.93 Punkte

๐Ÿ“Œ Rsdl - Subdomain Scan With Ping Method


๐Ÿ“ˆ 24.77 Punkte

๐Ÿ“Œ Using Nmap For Ping Scan + Other Tools to Use


๐Ÿ“ˆ 24.77 Punkte

๐Ÿ“Œ Differences Between Web Application Scanning Tools when Scanning for XSS and SQLi - AppSecUSA 2017


๐Ÿ“ˆ 24.72 Punkte

๐Ÿ“Œ Use your iPhone to scan and fax documents with this multipurpose scanning app


๐Ÿ“ˆ 24.38 Punkte

๐Ÿ“Œ Unimap - Scan Only Once By IP Address And Reduce Scan Times With Nmap For Large Amounts Of Data


๐Ÿ“ˆ 24.05 Punkte

๐Ÿ“Œ Garmin Forerunner 55 and 945 LTE announced: GPS sports watches for new and connected runners


๐Ÿ“ˆ 23.68 Punkte

๐Ÿ“Œ Dynamic Security Scanning in a CI: ZAP Scanning with Jenkins


๐Ÿ“ˆ 23.65 Punkte

๐Ÿ“Œ Vulnerability Scanning with OpenVAS 9 part 2: Vulnerability Scanning


๐Ÿ“ˆ 23.65 Punkte

๐Ÿ“Œ Ten Best Network Scanning Tools for Network Security


๐Ÿ“ˆ 23.33 Punkte

๐Ÿ“Œ Vulnerability Scanning: How Often Should I Scan?


๐Ÿ“ˆ 23.31 Punkte

๐Ÿ“Œ Vulnerability Scanning with OpenVAS 9 part 4: Custom scan configurations


๐Ÿ“ˆ 23.31 Punkte

๐Ÿ“Œ Python Multithreading: Benefits, Use Cases, and Comparison


๐Ÿ“ˆ 23.15 Punkte

๐Ÿ“Œ What Should You Know About Multithreading and Concurrency Before Interviews?


๐Ÿ“ˆ 23.15 Punkte











matomo