Sign in to follow this  
Followers 0
natas

Toneloc 1.10 Source Code

35 posts in this topic

m2mike contacted Minor Threat, the creator of Toneloc and got him to dig up the Toneloc 1.10 source code! He was willing to let us distribute it as well so I have posted it on oldskoolphreak.com.

It will be interesting to see if anyone comes up with some improvements, mods or newer dialers based off it!!!!!

Enjoy!

Toneloc 1.10 Source Code

0

Share this post


Link to post
Share on other sites

Since all the code is in C, porting toneloc over to linux would be fun (gcc is your friend). You would probably need to import some different libraries to do it (dos.h and conio.h for example).

What is the linux equivalent? asm/io.h?

I don't have the time or the tools to do this myself right now, but it would be nice to see someone take this on. It might require a slight re-write of the source, but it is certainly possible.

0

Share this post


Link to post
Share on other sites

i'm really surprised no ones made a linux wardialer yet. i agree with m2mike and i think it would be awesome if toneloc was ported to linux. (or even something that is just based off of it)

0

Share this post


Link to post
Share on other sites

there's a couple wardialers for linux. w000w00 made one, and a site i think called 0xdeadbeef had one.

0

Share this post


Link to post
Share on other sites
there's a couple wardialers for linux. w000w00 made one, and a site i think called 0xdeadbeef had one.

Yeah, but none of the *NIX wardialers I've seen come close to ToneLoc... ToneLoc is like the mother of all wardialers. Props go out to Minor Threat for still saving the source code after all these years! I must admit, the ToneLoc source code is cleanly written compared to THC-Scan. Trying to understand THC-Scan's source code is like looking through a bell can of a large neighborhood and trying to figure out who's wires are who's...

Edited by vox
0

Share this post


Link to post
Share on other sites
i'm really surprised no ones made a linux wardialer yet.

Yeah, but none of the *NIX wardialers I've seen come close to ToneLoc... ToneLoc is like the mother of all wardialers.

It may be the "mother," but it's ordinary.

Edited by nazareth2
0

Share this post


Link to post
Share on other sites
I don't have the time or the tools to do this myself right now, but it would be nice to see someone take this on.  It might require a slight re-write of the source, but it is certainly possible.

I think a lot of us are short on free time. What we should do is organize a group of programmers and assign seperate source files to each. Of course the dependency hierarchy for the entire program would have to be determined before we would start assigning files. I hereby volunteer my programming skills to the cause.

Edited by Caustiq
0

Share this post


Link to post
Share on other sites

Has anyone attemped compiling the source through a modern compiler?

Oh yeah, and if you can port ToneLoc to Linux, think of the things you can do utilizing asterisk's AGI scripting language! You could have ToneLoc interface with the AGI scripting language to do backspoofs on the found modem numbers and log the CNAM info along with the carrier output!

Edited by vox
0

Share this post


Link to post
Share on other sites
Has anyone attemped compiling the source through a modern compiler?

Since most of them include dos.h or other win32 dependent headers, I didn't bother attempting just yet.

Edited by Caustiq
0

Share this post


Link to post
Share on other sites
I don't have the time or the tools to do this myself right now, but it would be nice to see someone take this on.  It might require a slight re-write of the source, but it is certainly possible.

I think a lot of us are short on free time. What we should do is organize a group of programmers and assign seperate source files to each. Of course the dependency hierarchy for the entire program would have to be determined before we would start assigning files. I hereby volunteer my programming skills to the cause.

i could help with that a little bit. count me in if anything goes down .. or up :)

0

Share this post


Link to post
Share on other sites

The comments in the source are hilarious.

And I believe that the possible applications for this with asterisk could be extremely beneficial and awesome...

It might even be possible to spoof the caller ID everytime you dial out as the number that you're dialing. I wouldn't know how to go about doing such a thing, but it's just a thought. ^_^

0

Share this post


Link to post
Share on other sites

here is something Minor Threat had to say about the source, that may possibly help you guys out if your trying to compile it

There doesn't appear to be a Makefile, but there are a few DOS batch files that I think I used to compile it.  Some of it was in assembly also (the modem stuff), so you might need turbo assembler.  (Maybe not since the .OBJ files are there).
0

Share this post


Link to post
Share on other sites

I have almost coding skillz, 'cept a bit of perl, but if someone ports it, I'd be EXTREMELY HAPPY.

:|

0

Share this post


Link to post
Share on other sites

The linux war dialer known as ward can be had here:

http://www.0xdeadbeef.info/code/ward.c

I wonder if compiling toneloc under linux could be as simple as deleting the "#include dos.h" and replacing it with ward's headers. I don't have a working linux install right now or else I probably would have already compiled all the source under linux just to see if I could do it. I know there are some live cd's that come with gcc (Auditor for example). I might go that route soon. As a test, someone should try to see if they can get uart.c to compile since it only uses stdio.h and dos.h. Perhaps substitute asm/io.h and signal.h? inportb and outportb would then have to be replaced with inb and outb. That would probably be a good place to start since it might be easy to get it to compile.

*Edit*

http://www.binrev.com/forums/index.php?act=ST&f=19&t=12013

http://www.binrev.com/forums/index.php?showtopic=12153

Have a look in the CODE section for something to play with. See if you can get that code to compile with gcc. More to come.

The following may be useful:

http://techpubs.sgi.com/library/tpl/cgi-bi...ming.html#ss2.1

If you wish to recompile the original Toneloc source, then you can get the original Turbo C compiler here: http://community.borland.com/article/0%2C1...20841%2C00.html

Edited by m2mike
0

Share this post


Link to post
Share on other sites

http://www.sandroid.org/TurboC/functionlist.html

TurboC Usage

Porting Borland Turbo C source code to GNU gcc

Oh joy.

http://poli.cs.vsb.cz/c/help/allbcpp.htm

http://www.boutell.com/lsm/lsmbyid.cgi/001100

Hopefully, it won't be long now.

*Edit*

In case I haven't made things clear, what must basically happen is all of this source (which was written in Turbo C), must be converted to C or C++. In other words, gcc must be able to compile it. Are there any Turbo C compilers for linux? Unfortunately, no, but that doesn't matter as there are too many dos dependent headers in the code anyway.

There are two or more ways to go about this. You can get bloodshed C++ which is a free C/C++ IDE that runs under Windows or you can do it under linux with Kwrite or whatever you want really. Either way is very pretty as it is all GUI.

I will be working on this as soon as I can find the time.

Edited by m2mike
0

Share this post


Link to post
Share on other sites

What license was this released under? GPL I assume.

0

Share this post


Link to post
Share on other sites

After trying to compile ward.c I get the compiler error:

'In function 'listgen': undefined reference to 'pow'

Is pow a function in any of the following libraries or is it a programming error?

#include <fcntl.h>

#include <math.h>

#include <signal.h>

#include <stdarg.h>

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#include <termios.h>

#include <unistd.h>

#include <sys/time.h>

0

Share this post


Link to post
Share on other sites

I have posted some code in the General Code section if someone wants to take a look. At this point, some of it compiles and some of it doesn't. Please give me feedback on compiling with gcc. Give any such feedback over in the code section under the appropriate thread. If you can help with the re-writing, then please post here or contact me.

At this point, I need to find a way to code certain dos exclusive functions under linux.

Specifically, I need to find a way to do findnext and findfirst which is under dos.h and dir.h. Is there a linux equivalent?

I also need to find a version of string.h that has the strupr function, although everywhere I have looked so far does not have the strupr function in any replacement string.h that I have seen. strupr is a function that is in DOS compatible string.h files. strupr is a non-existent function in standard string.h files. Someone give me a url if you have it.

*Edit*

The strupr function has been implemented where needed.

Right now, I am tackling all of the simple command line programs that can be done rather quickly. I should mention that while not all of these programs are completely gcc compatible yet, you might get them to compile with Turbo C under DOS or any other compiler that uses DOS exclusive functions in the standard libraries.

If you are having any crashes or any bugs, keep in mind that void main has been changed to int main in most of the code. It might be a good idea to make it gint main, but I don't know yet. Someone inform me if necessary.

By the way, I just noticed that the source for prescan.exe seems to be missing. If I have overlooked it, then let me know.

Edited by m2mike
0

Share this post


Link to post
Share on other sites

Well, so far 4 programs have been successfully converted so they can be compiled by gcc.

Those programs are MERGE.C (a.k.a. Tmerge), TLREPORT.C, TLREPLAC.C, and TLOG.C. All can be found in the General Code section of these forums.

All DOS specific headers were removed and standard libraries are being used to implement what used to be DOS specific functions. They all compile (some of them with a warning or two) and they should be tested by anyone who wants to do some beta testing.

Sample .dat files can be found in the original Toneloc binaries archive. There is also one in the source archive.

I am still working out some compile errors on the others. Toneloc.C will have to be re-worked quite a bit.

The fossil driver code will probably be completely removed.

All DESQview related code will be done away with. http://en.wikipedia.org/wiki/DESQview

All graphics will have to be re-done with ncurses (linux friendly). The alternative might be to use the conio 2 library which can be had from here: http://conio.sourceforge.net/ I don't know how this is going to be done yet.

CXL video will be removed for linux and DOS for that matter.

Various procedures will be re-written.

Stay tuned.

*Edit*

By the way, has anyone compiled this code with an old compiler just to find out if you can make new binaries under DOS? I probably would have done this already, but I couldn't do it with any of Borland's "antique" software.

Also, check out wikipedia: http://en.wikipedia.org/wiki/Toneloc

Edited by m2mike
0

Share this post


Link to post
Share on other sites

Update:

The following programs from Toneloc are compiling successfully under linux with gcc:

MERGE.C (a.k.a. Tmerge), TLREPORT.C, TLREPLAC.C, TLOG.C, MIRROR.C, TEXTMAP.C, TLSUMM.C, and TCONVERT.C.

TCONVERT.C and TLSUMM.C will only compile with gcc under linux at the moment. The way to use it under Dos is cygwin. Compile with -Wall as an option on the command line.

I might also mention that the version of gcc I am using is the one that is on the latest AUDITOR cd.

If you want to compile the code as it is, you need Turbo C 3.0 or later. I can't get Turbo C 2.01 to do it. Version 2.01 is available from the "antique software" section on borland's website if you want to experiment with it.

Edited by m2mike
0

Share this post


Link to post
Share on other sites

man it looks like you are making some serious progress! have you been posting your status on any other sites besides this forum? have you been getting any help from anyone at all?

0

Share this post


Link to post
Share on other sites

Does anyone know where I can get TV.LIB? This file seems to be necessary in order to get Toneloc to compile under Turbo C 3.0. I can't seem to find it.

I have discovered something that I should have looked at already. I have taken the original Toneloc exe's and looked at them with a hex editor. It seems that they have all been compressed. The header is saying PKLITE Copr. 1990-91 PKWARE Inc. All Rights Reserved. It seems that these programs were compressed. This is very disappointing as it probably removed the header info that may have indicated what compiler was used to compile the source.

Edited by m2mike
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0