home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TAP YIPL
/
TAP_and_YIPL_Collection_CD.iso
/
PHREAK
/
GENERAL
/
THC_TS10.ZIP
/
DATFILE.DOC
< prev
next >
Wrap
Text File
|
1996-05-01
|
5KB
|
126 lines
/******************************************************************************
*
* NOTE
*
* This textfile describes the structure of the THC-SCAN DATFILE.
* You can rename it to THC-SCAN.H and use it as an C Header File.
* If you are programming nice tools for THC-SCAN you can write me an email
* to vh@campus.de and send me the program. If it is good i'll include it
* into the next version.
*
*
* The structure of the DataFile :
*
* Byte 1 & 2 are shortcuts of the program -> TS
* Byte 3 & 4 is the versionnumber of THC-SCAN
* Byte 5 - 27 this is the dialmask used for the scan
* Byte 28 scanmode used (see below: Scanmode numbers)
* Byte 29 - 30 minutes used for scanning altogether in this DAT file
* Byte 31 - 32 <Reserved>
* Byte 33 - 10032 are the data for the numbers (see below: Data structure)
* (the size of the datfile is either 42(one X in the dialmask),
* 132(XX),1032(XXX) or 10032(XXXX) bytes)
*
*
* Scanmode Numbers (byte no. 28) :
* 0 - not defined. (THC-SCAN version before 0.8a or converted TL datfile)
* 1 - Carrier Scan Mode used.
* 2 - Tone Scan Mode used.
* 3 - Carrier Scan Mode + Autonom/Manual Mode used.
* 4 - Tone Scan Mode + Autonom/Manual Mode used.
*
*
*
* Data Structure : Each byte-33 refers to phonenumber Ending. 1 Byte = 1 Number
* Byte 33 = 0000, Byte 34 = 0001, etc.
*
*
* IDentifications
* 0 # UnDialed
* 1 # OutRanged
* 8 * Busy (1)
* 16 # Excluded
* 24 Uninteresting
* 32 * Timeout
* 40 * Ringout
* 48 # Unused (Not available) number
* 56 Manual Dialed (AUTONOM MODE used)
* 64 * Carrier (autonom identified mode or a lost carriers)
* 72 * Carrier with Connect Data
* 80 * Carrier with Connect Data & Auto Hack Mode was enganged
* 88 Carrier with Connect Data & Manual Hack Mode was enganged
* 96 Carrier & Auto Hack Mode was enganged [not in use by now]
* 104 Carrier & Manual Hack Mode was enganged [not in use by now]
* 112 <reserved>
* 120 * Fax
* 128 # Voice (standard/other)
* 136 Voice Interesting
* 144 Voice Girl
* 152 Voice Asshole
* 160 <reserved>
* 168 * Tone (standard)
* 176 Tone (manually mode done) [in use now!]
* 184 <reserved>
* 192 # VMB (standard)
* 200 VMB (manually mode done) [in use now!]
* 208 <reserved>
* 216 <reserved>
* 224 # Customize 1 (manual)
* 232 # Customize 2 (manual)
* 240 # Customize 3 (manual)
* 248 # Unkown/Auto-Done (the other side picked up, and hanged up again later)
*
* * means the program can do this identification automatically
* if correctly set & configured & modem supports it
* # those can be indirectly identified or are set by program init.
* Not every modem can do this, nor can every user make it out how to do it ;-)
* All others must be identified manually.
*
* As you can notice, the step range is 8 ... this is for the rings.
* If 0-7 rings were detected on that numbers, this number is added the ID code.
* If the ring counter is greater as 7, it will be reset to 7.
* Example : 123 is a Fax which had 3 rings.
*
* (1) For BUSY this is special. If READIAL-BUSY in the config menu is set or
* you scan with -*:8x then for every try which was dialed with the result of
* busy, it will increase by one. when it has reached 7 (15 in the datafile)
* it won't never be dialed again. The only possibility to dial this is by
* directly scanning them with -*:15
*
******************************************************************************/
typedef unsigned char byte;
typedef unsigned int word;
struct thcscan_datfile_header {
/* Header 32 bytes */
char ProgramUsed[2]; /* 'TS' for THC-SCAN */
byte ReleaseNo; /* 0x00 = 0. would be */
byte RevisionNo; /* 0x09 = .9 v0.9 */
char Dialmask[23]; /* Dialmask used */
byte ModeUsed; /* Scanmode used with Datfile (see above) */
word Minutes; /* Minutes spent on scanning on this Datfile */
byte Reserved[2]; /* Reserved Bytes for future use */
/* Data is not defined here because this can be byte[10] to byte[10000] */
/* (use byte[10000] Data; and word DataSize; ) */
};
/*
{* Structure record for TURBO PASCAL added by THE ANALYST *}
Var thcscan_datfile_header : record
ProgramUsed : array[1..2] of char;
ReleaseNo : byte;
RevisionNo : byte;
Dialmask : array[1..23] of char;
ModeUsed : byte;
Minutes : word;
Reserved : array[1..2] of byte;
end;
{* thcscan_datfile_data is array[0..x] of byte, where x is either *}
{* 9, 99, 999 or 9999. (use 9999 and a size pointer) *}
*/
/* End Of File */