what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

twgen.c

twgen.c
Posted Jul 31, 2002
Authored by tracewar

Class a/b/c ip list generator.

tags | tool, scanner
systems | unix
SHA-256 | cab6ef757f8875a2ca483e53e574b580bfad6bc37676c6d0f66b6c4194a221b6

twgen.c

Change Mirror Download
/*
just a little helpful tool i built when i was bored.
made by tracewar, thanks to asssaf qB-D
*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int x = 0,y = 0,j = 0,z = 0;
FILE *cool;
char lol[10000];
int main(int argc, char **argv){
if(argc == 1){
printf("CLASS A/B/C IP-LIST Generator by TraceWar.\n");
printf("usage: %s [CLASS-A] [CLASS-B] [CLASS-C]\n",argv[0]);
return(0);}
if(argc == 2){
printf("Generating [CLASS-A] IP-list...\n");
z = atoi(argv[1]);
for(x = 0;x < 256;x++){
for(y = 0;y < 256;y++){
for(j = 0;j < 256;j++){
sprintf(lol, "%d.%d.%d.%d",z,x,y,j);
cool = fopen("classa.txt", "aw+");
fprintf(cool, lol);
fprintf(cool,"\n");
fclose(cool);}}}
system("ls -al classa.txt");
return(0);}
if(argc == 3){
printf("Generating [CLASS-B] IP-list...\n");
z = atoi(argv[1]);
j = atoi(argv[2]);
for(x = 0;x < 256;x++){
for(y = 0;y < 256;y++){
sprintf(lol, "%d.%d.%d.%d",z,j,x,y);
cool = fopen("classb.txt", "aw+");
fprintf(cool, lol);
fprintf(cool,"\n");
fclose(cool);}}
system("ls -al classb.txt");
return(0);}
if(argc == 4){
printf("Generating [CLASS-C] IP-list...\n");
z = atoi(argv[1]);
j = atoi(argv[2]);
x = atoi(argv[3]);
for(y = 0;y < 256;y++){
sprintf(lol, "%d.%d.%d.%d",z,j,x,y);
cool = fopen("classc.txt", "aw+");
fprintf(cool, lol);
fprintf(cool,"\n");
fclose(cool);}
system("ls -al classc.txt");
return(0);}
return(0);}
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    27 Files
  • 13
    Aug 13th
    18 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close