// Sheetz0r.CPP  v1.1
// Sheetz0r
// by Phractal
// This little scrap of code is a program that is used to aid you in your
// wardialing efforts. If you scan manually, which seems to be the safest
// way nowadays, it's tedious to write every number down so you remember
// what is special about that number, be it a PBX, outdial, VMB, carrier,
// loop, or some weird mystery tones, or even the clandestine DATU line.
//
// After running the program, all the numbers should be ready for you in a
// list format in numbers.txt in whatever directory you ran this from.
//
// SHOULD WORK ON ALL OS's, EVEN THE REALLY CRAPPY ONES
//
// Remember, this is C++, not C, if using unix, use g++ to compile, not gcc.
//
// shell~$ g++ sheetz0r -o sheetz0r.cpp
// shell~$ sheetz0r
//
// Also, this has a bug, if you are scanning lets say 0000 thry 9999, don't
// type in 0000, type 0001. It tends not to like entries that end in zero.
//
// It also doesn't like scans that are like 0501 thru 0599 and 0801 thru 0899
// Anyone is open to contribute to this program, as long as I maintain credit
// for original program.
//
// NOTES FOR VERSION 1.1
//
// * Changed the interface a little bit, instead of the spaces thing, just
// fill in the prompts, should make it easier.
//
// Had no trouble with 0000 - 9999 (Because of different compiler, perhaps?)
// some other computers might have problems, though.
// also had no problems with 0501 - 0599 or 0801 - 0899, once again,
// you might.
//
// This version also saves to numbers.txt instead of scans.txt  Why? I
// honestly don't know.
// -The Visual Assassin
//
// Kudos to Visual Assassin for actually trying to improve upon my horrbile
// programming skillz, now the program is k-rad. I added a few insignificant
// things, like main() having a return of 31337, what better way to waste
// segments of memory?
// -Phractal
//
#include <stdio.h>
#include <fstream.h>
#include <iostream.h>

int main(int arg, char* pszArgs[])
{
// Set c, c1, c2, and NPA
ofstream outStream("numbers.txt");
outStream<<"********************Sheetz0r V. 1.1********************\n\n";
cout<<"********************Sheetz0r V.1.1********************\n\n\n\n";
int npa;
cout<<"Enter NPA (e.g. 800): ";
cin>>npa;

int c1;
cout<<"Enter exchange (e.g. 555): ";
cin>>c1;

int c2;
cout<<"Enter beginning numbers (e.g. 0000): ";
cin>>c2;

int c3;
cout<<"Enter finish numbers (e.g. 9999): ";
cin>>c3;

cout<<"\n\n\n\n\n\n"<<"Check out numbers.txt!";

int c;
   for (c = c2; c <= c3; c++)
   {
      if (c<1000)
      {
         if (c<100)
         {
            if (c<10)
            {
            outStream<<npa<<"-"<<c1<<"-"<<"000"<<c<<endl;
            }
         else
         outStream<<npa<<"-"<<c1<<"-"<<"00"<<c<<endl;
         }
      else
      outStream<<npa<<"-"<<c1<<"-"<<"0"<<c<<endl;
      }
   else
   outStream<<npa<<"-"<<c1<<"-"<<c<<endl;
   }
outStream<<"\n\n\n\n\n\n\n\n\n\n\n";
outStream<<"********************http://phonelosers.net*********************";
outStream<<"********************http://texaspla.cjb.net********************";
   return 31337;
}

