eXeLab
eXeL@B ВИДЕОКУРС !

ВИДЕОКУРС ВЗЛОМ
выпущен 2 июля!


УЗНАТЬ БОЛЬШЕ >>
Домой | Статьи | RAR-cтатьи | FAQ | Форум | Скачать | Видеокурс
Новичку | Ссылки | Программирование | Интервью | Архив | Связь

Русский / Russian English / Английский

Сейчас на форуме: (+1 невидимый пользователь)
 · Начало · Статистика · Регистрация · Поиск · ПРАВИЛА ФОРУМА · Язык · RSS · SVN ·

 eXeL@B —› WorldWide —› help needed old dos program
. 1 . 2 . >>
Посл.ответ Сообщение

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 31 марта 2007 00:19 New!
Цитата · Личное сообщение · #1

I have two dos programs they are similar. Under the option CODIFY, first program have posibbilyty to save file to disk and second one dont have that option. Is t posible to insert that option in first program?


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 31 марта 2007 07:15 New!
Цитата · Личное сообщение · #2

If you give a chance to download your program(s), I'd try to excise and anatomise it. Having not these programs I can't evulse "saving options" from first program and fit it onto second so snug as you want.

Ранг: 54.0 (постоянный)
Статус: Участник

Создано: 31 марта 2007 07:19 · Поправил: n1kto New!
Цитата · Личное сообщение · #3

correct me, but you say what first program HAS an option? you mean the second one? or you want additional option to the first. about adding it's not impossible, but very close to the program, how it was been written, packed or has overlays, and other params. also, most of such tasks (except the simpliest) are not a cost-free. if you ready to pay, went to the www.rentacoder.com http://www.rentacoder.com (for example) and you will be helped.

ps. yes, need to look to the program

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 31 марта 2007 14:58 New!
Цитата · Личное сообщение · #4

Chingachguk

Here you can download files.
rapidshare.com/files/23649112/GRAPH5.ZIP.html
First read read me file for instructions


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 31 марта 2007 23:07 New!
Цитата · Личное сообщение · #5

hi again, du13!

I've started to deviscerate your tool. It's needed a little time to prepare my brain for real good slicing and dicing it. If you will have a patience, I shall probably finish it.

But first scope of mine has realized next questions:

1) Why don't you just send your "file" (or some critical data from memory - I've not figure out all features of your programs yet) to printer? I mean - just choose option "4. Print sock file" in L362C3.EXE and revel it? To relief your possible troubles with it I attached some tool of mine that can help you to emulate "Printer" device (int 17h). If you start it correctly, you'd obtain your data in "C:\graph5\L362C3\SOCK\ALPH.LOG" file, like I did, see:

Sock file name: PR Page 1
Machine type: L362E - 200 needles 03-31-07
Alternate stitch: no Oil program: 5 22:52:50
Sole: yes 1 / .50 - 150 / 200 LONATI Computer Sock File List
...

2) I've founded that there is usage of parallel printer port (LPT) in your program. Does your program use any devices? Which they are? I don't mean full description of what, but resources of them - like ports area (for LPT it is 0278-027E - for example). It would has been some "machine for writing magnet card tracks" which was connected to your computer via COM or LPT ports;

3) Let's imagine that I hooked "PUT FILE ON TAPE" process and I'm going to store it into some file. But the data might be converted into some special format (prepared to send) for this "TAPE device". If I dump it right now, it would be a bunch of crap (I should hooked it before data was converted) or something like that. Please clarify my eerie suspicion before I dig inside.

Good luck

{ Атач доступен только для участников форума } - Hook_171.arj

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 1 апреля 2007 01:28 New!
Цитата · Личное сообщение · #6

Your wright, the data is sent to device that saves to magnetic tape, i wont to eliminate that process and send directly to mc. Because of that i need file saved on disk. the option 4 is in other program that have save to disk option. And option 3 in l362c3 . In booth programs is save to tape or magnetc unit option.

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 1 апреля 2007 01:34 New!
Цитата · Личное сообщение · #7

I need just to implement save to disk option in l362c3 like it is in l304e8s


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 1 апреля 2007 01:51 New!
Цитата · Личное сообщение · #8

ok, you mean that data stream _right_before_ "PUT FILE ON TAPE" subprogram can be saved onto the file like in l304e8s, don't you? Anon-anon, I shall see it... or shan't. At least, give me a chance to unlock inter mortis.

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 1 апреля 2007 11:58 New!
Цитата · Личное сообщение · #9

Yes thats right.
l304e8s saves that file in cod directory con extension *.co.


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 1 апреля 2007 23:24 New!
Цитата · Личное сообщение · #10

du13,

I'm still studing with your programs. I've found both procedures (which proceed "send data to adapter" and "send data to disk") in both modules.

But still there is question number ONE:

ARE YOU SURE THAT YOU CAN'T USE OPTION "print sock file"?

If printing this file is the same as storing data to the disk - in this case IT'S MUCH EASIER to use my tool and print your file right to the disk (instead of printing it).

Please pay attention on this question!

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 2 апреля 2007 06:37 New!
Цитата · Личное сообщение · #11

Your question is ok but i think they are not the same because print file is sent to printer and that file that is neded buy the machine is realy assembled file of pr.sks for processor motorola 6809. ad it goes in .co format.


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 2 апреля 2007 19:52 New!
Цитата · Личное сообщение · #12

ok, man. But you should have real patience waiting for my solution. Because I just have to:

1) Find both algos (store in file/sending to device) - done;
2) Figure out output data format, the difference between storage process (onto file) and sending data to device (not done yet);
3) Some other unexpectable difficulties (who can predict them?).

I also have next 2 questions:

1) Is it possible to you working like I do (ananlizing codes/debug apps)? In this case I'd help you to reverse apps and I'd help you to write necessary (additional) code onto second apps. It's really important question because I just don't know what this (storing) data is, what is data format, etc.

2) What's about next idea: if I hook the sending data process (to device) and I dump it, would it be enough for you aims? I mean, for example, if "send to SMU ADAPTER" means writing some data onto... say some "device" or LPT port, I'd hook it and dump onto file (instead of writing data to device). I talk about redirect of data stream. Would it be enough for you satisfaction on not?

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 2 апреля 2007 23:22 New!
Цитата · Личное сообщение · #13

Belive me i had tried by my own, I have used olydbg to trace but my programming skills are on very lov level (meaning using of resource hacker and editing any textual file, but codes are way that i understand but dont have time to learn).
I have patience. The second idea is looks fine.
you can try it like this,
Use l304e8s, first save file to disk, example pr.co
then catch file using your hook program and finaly just compare them if they are te same broblem is solved.

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 2 апреля 2007 23:25 New!
Цитата · Личное сообщение · #14

And the first idea is good tell me what i need from tools?


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 3 апреля 2007 00:41 · Поправил: Chingachguk New!
Цитата · Личное сообщение · #15

The main problem is (as I see it) that I just am not familiar with your program. I am not advanced user, I am even not a simple user of it - I just don't understand the problem.

First I assuranced that program doesn't even try to use any resources (like LPT/COM ports) when I choose "SMU Adapter". So I can't try to hook any data stream - program checks some data in memory and reports about error.

Also I've discovered that (after finalizing option "Enter/Update file") program REALLY modifies file "PR.SKS" (writes (new?) 025Fh bytes onto this file).

So we can conclude that your changes really can be stored onto *.SKS file. The problem, as I see it - how to "compile" (how to force program to) some *.CO-format files from *.SKS (what are allowed in "L304E8S").

As I had realized this idea, I tried to use new (updated) *.SKS file from "C:\graph5\L362C3\SOCK" directory (which had been updated by L362C3.EXE) by "L304E8S.EXE" program. I just put it onto the same catalog ("C:\graph5\L304E8S\SOCK") and tried to use it. But I catch the message:

- INVALID PASSWORD FOR L304 SOCK FILE !! -

By this method I wanted use "L304E8S.EXE" for producing *.CO-file from *.SKS. But the method failed.

I have to think little bit more. Please try to acknowledge my thought:

"The problem, as I see it - how to "compile" (how to force program to) some *.CO-format files from *.SKS"

And also:

"Why I can't just compile *.CO from *.SKS file by "L304E8S.EXE" - ?

PS Tools: if you really wanna study programs, you have to have Sice&IDA. For this programs you have to have debugger which can trace DOS programs (I use to use Sice because it more universal, don't know about Olly) and disasm tool (IDA is more universal too). But I wanna aware you - this way can scars your mind untill you reach out the success (you have to have really infinity patience).

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 3 апреля 2007 19:33 New!
Цитата · Личное сообщение · #16

ok you cant just copy file from 362 to 304 they have diferent strucure. because they are for diferent type of mc.
In original soft pack on lpt1 goes protection and on lpt2 goes smu adp. smu adp is control device for magnetic tape unit. I wont to transfer program directly without smu and tape recorder,(that opton wasnt enabled by producer) and because of that i need to save that file on disk and after send it with cable conection.

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 3 апреля 2007 19:38 New!
Цитата · Личное сообщение · #17

"Why I can't just compile *.CO from *.SKS file by "L304E8S.EXE" - ?
maybe you have copied sks file from 362?
copy files that i have originaly sent you.

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 3 апреля 2007 19:40 New!
Цитата · Личное сообщение · #18

- INVALID PASSWORD FOR L304 SOCK FILE !! -
Yes this error is shown when you wont to codify .sks from 362 in 304 program

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 3 апреля 2007 19:46 New!
Цитата · Личное сообщение · #19

this is file for 304 co is codified and sks just copy in your sock dir in 304 prog.
now j have to send program to smu and cath it with your tool. If the files are the same you are sucseded.

{ Атач доступен только для участников форума } - pr.zip


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 3 апреля 2007 21:59 New!
Цитата · Личное сообщение · #20

hi again, man!

Now I suppose it'd be hard (but with real chances) way (also I don't have much time to study it all day around).

Let's chop next trouble:

> and on lpt2 goes smu adp. smu adp is control device for magnetic tape unit. I wont to transfer program
> directly without smu and tape recorder,(that opton wasnt enabled by producer)

As I proposed to you, I could hook "the sending data process to SMU Adapter" and just dump it. But I found that program (I mean 362) just doesn't try to send data onto this device (device should be connected via LPT2 as you explaind above). In one hand I see this option in "362", it is not disabled (but don't work really), in another hand - you said that "this option wasn't enabled". Is it stub program (without real functionallity)?

If this is not stub, I hath next way: I ought enable this option (after it program must try to send data via LPT2 to device) and dump this data stream. But here we do have one problem: this data stream may have some another structure (for example - some specific commands, etc).

Please, explain your last message more detailed. I do have (from your first pack) good files which are working ok:

C:\graph5\L304E8S\SOCK\pr.SKS (25 600 bytes size) - works OK with L304E8S.EXE;

C:\graph5\L362C3\SOCK\pr.SKS (37 634 bytes size) - works OK with L362C3.EXE;

But then I try to handle file from L362C3\SOCK\ by L304E8S.EXE it failed (with messages have been shown above). As you said, they have different structure. But we don't have to forget that you want use the storage procedure from 304 for 362, don't we?

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 3 апреля 2007 22:07 New!
Цитата · Личное сообщение · #21

Yes just storage procedure nothing else. becouse moving anything else maybe can change the structure of coded(assembled) file .co.
Please make a dump from 304 with your tool and post it.


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 4 апреля 2007 22:18 New!
Цитата · Личное сообщение · #22

du13,

by some reasons, I can't download your last attachment. Please, upload it onto some servers like rapidshare.de and post here direct link.

Also I'd like to ask you: did you mean that I have to:

1) use your file from attachment in 304 prg;
2) try to print it (and catch the data by my tool?) OR try to send it to device?

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 5 апреля 2007 18:49 New!
Цитата · Личное сообщение · #23

I have meant that you send file to device and catch it with your tool. You have told me that you can configure your tool to catch that file?

In that attachment isn't anything important, please post cached file.


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 5 апреля 2007 21:43 New!
Цитата · Личное сообщение · #24

hi again!

Please, upload you last attachment (pr.zip) onto some other site (like you did it before - rapidshare.com). I just can't download pr.zip from this forum.

Also do you mean that I have to try "send data to device" by 304 program (and catch it)? Or try to print it by 304 (and also catch by my tool)? I'll try both methods, but in 362 this method has failed.


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 6 апреля 2007 09:58 · Поправил: Chingachguk New!
Цитата · Личное сообщение · #25

++

Yesterday I found some interesting code about working with device (in 362). This procedure can be called from "Send data to SMU Adapter" procedure, but it doesn't appear. Next time I devote to dig inside of it, to find out the possibility to force program to send data to device.

Also I've found that my machince doesn't have LPT2 port (at least it says windows, but can we trust her anyway?...). May be it's a root of the evil.

+++

No, it seems very strange procedure (I've called her - see attachment), it obviously does have some codes about LPT ports, but I couldn't force this procedure to use LPT... May be next time...


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 6 апреля 2007 18:37 New!
Цитата · Личное сообщение · #26

screenshot

{ Атач доступен только для участников форума } - ProcessingPattern.gif


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 6 апреля 2007 21:27 · Поправил: Chingachguk New!
Цитата · Личное сообщение · #27

++++

Ahha, I was little bit madness when I belived that BPIO 278'd give LPT port usage... Yeah! The program (both programs!) uses LPT ports!

So when I used "send data to SMU adapter" program tried to use LPT port! Next ports are in list: 27Ch,27Dh,27Eh. Programs check some device via:

in AL,27Eh
test AL,20h

So I can try to hook sending data to LPT port (== to device).

It seems like a ray in the bottom of abyss but I can be in the begin of dreadful maze...

PS please acknowledge that it's still important to you!

Now I think that I can hook the data stream to this "SMU adapter" and dump it onto the file. Would it be enough for you?

+++++

Little bit news.

If I choose "Format type" option before send data to SMU, program obviously sends some packet to LPT port:

Data: "FOR",0,0..0 (total 15 bytes and CRC - LRC)

Next program does some calculations (some "progress counters" in green and yellow - about several seconds) and after it - message "DCU unavaible".

After sending "FOR" (format?) command program doesn't use LPT ports, but I suppose it can be explain by some reasons like bad data or some data absence (not LPT's failure).

So I suppose that there are some chances to dump data stream to LPT...

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 9 апреля 2007 13:51 New!
Цитата · Личное сообщение · #28

When you send format tape command it sends instructions to format tape IE deletes all data previously recorded on data cassette

Ранг: 23.8 (новичок)
Статус: Участник

Создано: 9 апреля 2007 13:52 New!
Цитата · Личное сообщение · #29

Chingachguk

Thanks for your hard work.


Ранг: 113.0 (ветеран)
Статус: Участник

Создано: 9 апреля 2007 16:25 New!
Цитата · Личное сообщение · #30

;)

ps If you'd like to continue, I'd do some next researches (I talk about to overcome "DCU unavaible" error).
. 1 . 2 . >>
 eXeL@B —› WorldWide —› help needed old dos program

Оригинальный DVD-ROM: eXeL@B DVD !

Вы находитесь на форуме сайта EXELAB.RU
Проект ReactOS