sane-project-website/old-archive/2000-09/0022.html

164 wiersze
6.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: little tool for cracking VxDs (or: how to write</TITLE>
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
<META NAME="Subject" CONTENT="Re: little tool for cracking VxDs (or: how to write a driver without...)">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: little tool for cracking VxDs (or: how to write a driver without...)</H1>
<!-- received="Sun Sep 3 03:02:13 2000" -->
<!-- isoreceived="20000903100213" -->
<!-- sent="Sun, 03 Sep 2000 11:56:10 +0200" -->
<!-- isosent="20000903095610" -->
<!-- name="Jochen Eisinger" -->
<!-- email="jochen.eisinger@gno.de" -->
<!-- subject="Re: little tool for cracking VxDs (or: how to write a driver without...)" -->
<!-- id="39B2203A.79209993@gno.de" -->
<!-- inreplyto="39AFF605.CB1B428C@gno.de" -->
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20little%20tool%20for%20cracking%20VxDs%20(or:%20how%20to%20write%20a%20driver%20without...)&In-Reply-To=&lt;39B2203A.79209993@gno.de&gt;"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Sep 03 2000 - 02:56:10 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0023.html">Jochen Eisinger: "Re: (Mustek_pp SM4800P)"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0021.html">Arnaud Calvo: "Re: Plustek (was: Re: test)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0008.html">Jochen Eisinger: "little tool for cracking VxDs (or: how to write a driver without...)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0030.html">Anatoly V. Vdovichev: "Re: little tool for cracking VxDs (or: how to write a driver without...)"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0030.html">Anatoly V. Vdovichev: "Re: little tool for cracking VxDs (or: how to write a driver without...)"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#22">[ date ]</A>
<A HREF="index.html#22">[ thread ]</A>
<A HREF="subject.html#22">[ subject ]</A>
<A HREF="author.html#22">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi!
<BR>
<P>With the help of this little tool, I captured the whole port IO of the
<BR>
TWAIN driver for the ScanMagic 1200 ED Plus (ASIC 1015, CCD 01)... in a
<BR>
few days, there will be a new version of the mustek_pp backend :)
<BR>
<P>-- jochen
<BR>
<P><P><EM>&gt;
</EM><BR>
<EM>&gt; Hi!
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Since most of my work consists of reversing stupid TWAIN drivers, I've
</EM><BR>
<EM>&gt; written a little (hopefully) handy tool:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; it's called vxd (because it works on VXDs :) Since TWAIN drivers (for
</EM><BR>
<EM>&gt; the parallel port) need to access the parallel port, they all come with
</EM><BR>
<EM>&gt; a ring-0 DLL, a so called VxD, that handles the port IO.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; In my case, this VxD implements similiar commands to sanei_pa4s2. If I
</EM><BR>
<EM>&gt; can log the calls to these functions I basically know how to operate the
</EM><BR>
<EM>&gt; scanner. To do this, I just need to disassemble the VxD, add some lines
</EM><BR>
<EM>&gt; of code and assemble it again. Unfurtonally, a) I don't have neither
</EM><BR>
<EM>&gt; masm nor the win98-ddk (both needed to compile a windows driver) b) the
</EM><BR>
<EM>&gt; output of normal disassemblers just won't assemble :-(
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; So I wrote a tool (vxd) to disassemble a VxD in form, I can assemble it
</EM><BR>
<EM>&gt; again using NASM (avoiding the whole damn microsoft stuff :)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; This tool won't work for any VxD:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; - it must be pure 32bit PM code
</EM><BR>
<EM>&gt; - only one segment (LCODE/LDATA)
</EM><BR>
<EM>&gt; - no VxD service table
</EM><BR>
<EM>&gt; - no stupid tricky code
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; but it works for the vxd I want to crack...
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; however I don't know, whether this tool works because of two things:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; a) you still need the link.exe from microsoft to produce the VxD
</EM><BR>
<EM>&gt; b) I don't have windows (which is needed to run link.exe &amp; test the
</EM><BR>
<EM>&gt; resulting VxD)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; furthermore, I'm still looking for these &quot;some lines of code&quot; that log
</EM><BR>
<EM>&gt; the function calls (after all, I'm not really experienced in writing
</EM><BR>
<EM>&gt; windows code...) when I've figured out some good code, I'll let you
</EM><BR>
<EM>&gt; know...
</EM><BR>
<EM>&gt;
</EM><BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20little%20tool%20for%20cracking%20VxDs%20(or:%20how%20to%20write%20a%20driver%20without...)&In-Reply-To=&lt;39B2203A.79209993@gno.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0023.html">Jochen Eisinger: "Re: (Mustek_pp SM4800P)"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0021.html">Arnaud Calvo: "Re: Plustek (was: Re: test)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0008.html">Jochen Eisinger: "little tool for cracking VxDs (or: how to write a driver without...)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0030.html">Anatoly V. Vdovichev: "Re: little tool for cracking VxDs (or: how to write a driver without...)"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0030.html">Anatoly V. Vdovichev: "Re: little tool for cracking VxDs (or: how to write a driver without...)"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#22">[ date ]</A>
<A HREF="index.html#22">[ thread ]</A>
<A HREF="subject.html#22">[ subject ]</A>
<A HREF="author.html#22">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sun Sep 03 2000 - 03:03:09 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>