Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.546.892 Times

MassResolve 0.1

  Date Added: September 13, 2010  |  Visits: 538


Report Broken Link
Printer Friendly Version

Product Homepage
Download (80 downloads)

MassResolve application performs reverse DNS lookups for network blocks or an input file. The requests can be performed mulit-threaded. Usage: ./res < subnet or filename to resolve > < forks > Code: /* MassResolve (C) 2000 John Anderson ( This program performs reverse dns lookups for network blocks or an input file and supports multi threading. */ #include < stdio.h> #include < fcntl.h> #include < netdb.h> #include < signal.h> #include < sys/time.h> #include < unistd.h> #include < netinet/in.h> #include < netinet/ip.h> #include < netinet/ip_icmp.h> #include < errno.h> #include < string.h> #include < getopt.h> #include < setjmp.h> char * rlookup (u_long ip) { static char hostname[256]; struct hostent *host; struct sockaddr_in addr; addr.sin_addr.s_addr = ip; host = gethostbyaddr ((char *) &addr.sin_addr, sizeof (addr.sin_addr), AF_INET); if (host == NULL) { printf ("%s does not resolve.n", inet_ntoa (ip)); fflush (stdout); } else { printf ("%s resolves to %sn", inet_ntoa (ip), host->h_name); fflush (stdout); } } int maxforq = 0; int main (int argc, char **argv) { int pid, k, j, frk, i, mforks; char *pt; char mehost[200], sv[3]; FILE *inp; mforks = 64; /* default */ if (argv[1] == NULL) { printf ("Usage: %s n", argv[0]); exit (0); } if (!argv[2] == NULL) { mforks = atoi (argv[2]); } /* printf ("Resolving all hosts in %s with %d threadsn", argv[1], mforks); */ if((inp=fopen(argv[1],"r"))!=NULL) { while(fgets(mehost,sizeof(mehost),inp)) { sscanf(mehost,"%sn",mehost); frk = fork (); if (frk == 0) { fflush (stdout); rlookup (inet_addr (mehost)); exit (0); } else { /* frk = 0 */ maxforq++; if (maxforq > mforks) { wait (NULL); // waiting until the child died maxforq--; } } } fclose(inp); exit(0); } pt = strchr (argv[1], .); if (pt == NULL) { /* ANET */ for (k = 0; k <= 255; k++) { for (j = 0; j <= 255; j++) { for (i = 1; i <= 255; i++) { frk = fork (); if (frk == 0) { snprintf (mehost, sizeof (mehost), "%s.%u.%u.%u", argv[1], k, j, i); fflush (stdout); rlookup (inet_addr (mehost)); exit (0); } else { /* frk = 0 */ maxforq++; if (maxforq > mforks) { wait (NULL); // waiting until the child died maxforq--; } } } } } fprintf (stderr, "%u ", j); } else { pt++; pt = strchr (pt, .); if (pt == NULL) { /* BNET */ for (j = 0; j <= 255; j++) { for (i = 1; i <= 255; i++) { frk = fork (); if (frk == 0) { snprintf (mehost, sizeof (mehost), "%s.%u.%u", argv[1], j, i); fflush (stdout); rlookup (inet_addr (mehost)); exit (0); } else { maxforq++; if (maxforq > mforks) { wait (NULL); // waiting until the child died maxforq--; } } } } fprintf (stderr, "%u ", j); } else { /* CNET */ pt++; pt = strchr (pt, .); if (pt != NULL) /* Single host? */ { rlookup (inet_addr (argv[1])); } else { for (i = 1; i <= 255; i++) { frk = fork (); if (frk == 0) { snprintf (mehost, sizeof (mehost), "%s.%u", argv[1], i); fflush (stdout); rlookup (inet_addr (mehost)); exit (0); } else { maxforq++; if (maxforq > mforks) { wait (NULL); // waiting until the child died maxforq--; } } } fprintf (stderr, "!! %u !!", k); } } } }. John The Ripper MPI Patch

Requirements: No special requirements
Platforms: Linux
Keyword: Argv Char Dns Lookups Include Input Massresolve Network Network Blocks Networking Null Reverse Dns Reverse Dns Lookups System
Users rating: 0/10

License: Freeware Size: 4.1 KB
More Reviews or Write Review

Networking Tools  -  ifstat 1.1
ifstat is a tool to report network interface bandwith just like vmstat/iostat do for other system counters. It can monitor local interfaces by polling the kernel counters, or remote hosts interfaces using SNMP. fstat gathers these statistics...
19.46 KB  
DNS Tools  -  RIR to DNS converter 0.1
RIR to DNS converter is a tool to convert Regional Internet Registry data to a DNS country lookup zone. You can use it to build your own DNS zone for looking up country codes from IP addresses. It uses data directly from RIPE, ARIN, APNIC,...
614.4 KB  
Mail Clients  -  Korallenriff 0.2.2 Beta
Korallenriff is a program that collects input from different network sources and stores their data into one database. For example, it can receive POP3 mail or can fetch NNTP groups and store the received messages in a database. One can then, for...
20.48 KB  
Network Monitors  -  AdapterWatch 1.00
AdapterWatch displays useful information about your network adapters: IP addresses, Hardware address, WINS servers, DNS servers, MTU value, Number of bytes received or sent, The current transfer speed, and more. In addition, it displays general...
37 KB  
DNS Tools  -  DynDNS 3.6.6
DynDNS was originally founded to provide quality dynamic DNS services to the Internet and we continue to offer our free Dynamic DNS. In addition, we offer other services that might be of interest to a home user. DynDNS is a focused and savvy DNS...
36.86 KB  
Libraries  -  Net::DNS::TestNS 1.09
Net::DNS::TestNS is a Perl extension for simulating simple Nameservers. SYNOPSIS use Net::DNS::TestNS; ABSTRACT Class for setting up "simple DNS" servers. Class to setup a number of nameservers that respond to specific DNS queries...
16.38 KB  
Remote Computing Tools  -  Network Scan OS Info 1.0
The program for reception of information on available computer in network (the name of the computer, its IP address, operating system, available network disks and more).
225.28 KB  
Networking Tools  -  NSTX 1.1
NSTX (the Nameserver Transfer Protocol) makes it possible to create IP tunnels using DNS queries and replies for IP packet encapsulation where IP traffic other than DNS isnt possible. You need to have the ethertap-dev up and running on both...
20.48 KB  
Remote Computing Tools  -  Corner Bowl Log Manager
The Corner Bowl Log Manager application was designed to be a network-wide log monitoring, consolidation, auditing and reporting tool enabling System Administrators to proactively monitor their networks while satisfying regulatory agency auditing...
Server Tools  -  DnsSpeeder 2.80
DnsSpeeder is a lightweight and freeware networking tool running as a DNS proxy/server, therefore speeding up your Internet connection. DnsSpeeder accepts client’s dns requests and looks up the ip addresses of the requested domain at local...
1.89 MB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  IPv6 CARE 3.2b
IPv6 CARE, "IPv6 Compliant Automatic Runtime Environment", is a Linux tool able to patch ipv6-agnostic programs on-the-fly ('patch' mode). It can also generate a diagnosis about the IPv6 compliance of an application ('check' mode).
409.6 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
Networking Tools  -  gvrpad 0.1
gvrpad is a daemon that makes GVRP announcements of all VLAN interfaces on a FreeBSD system. GVRP is the GARP VLAN Registration Protocol, defined in IEEE 802.1Q (VLANS); GARP is the Generic Attribute Registration Protocol, defined in 802.1D...
15.36 KB  
Networking Tools  -  Cheops 0.61
Cheops is an Open Source Network User Interface. It is designed to be the network equivalent of a swiss-army knife, unifying your network utilities. Cheops is for the network what a file manager is for your filesystem..
317.44 KB  
Networking Tools  -  dynacc 0.5.0
Dynacc aims to be a Pakage which gives you control other your Internet Connection. It runs a linux router/host which provides MASQ services and HTTP proxying for a LAN. It gives you the Power to define users/groups which are allowed to make...
122.88 KB  
Networking Tools  -  ssh tunnel on demand 1.0
ssh tunnel on demand provides a script that creates an SSH tunnel on demand. ssh tunnel on demand is a script that makes it possible for a user to create an SSH tunnel to a server and connect to it without needing an account on the box or any...
13.31 KB  
Networking Tools  -  strongSwan 4.1.5
strongSwan is an OpenSource IPsec implementation for the Linux operating system. strongSwan is an OpenSource IPsec implementation for the Linux operating system. In order to have a stable IPsec platform to base our future extensions of the X.509...
1.7 MB