Results 1 to 4 of 4

Thread: Adding functionality to RASAPI32.DLL

  1. #1
    profdracula
    Guest

    Question Adding functionality to RASAPI32.DLL

    Hi evrybdy!

    I am a lil confuzd 'bout adding functionality to RASAPI32.DLL. What I'm trying to do is this;

    I want to store entered username and password to a file(when 'Connect'-button at the Dialup DlgBox is clicked). Using SICE, i found out that at virtual-address 7F892D5A, ECX contains the password. Before this there is a call to GetDlgItemTextA. Similarly I found the VA where UserName is stored. I also found the cave for adding my own code at file-offset=0002158E(.text)
    or at VA 7F8A158E. Now what I know is this: I know where in memory values are stored, and i know where can my add my own code. Now how can I hijack code from 7F892D5A to my own cave, and what must I do to write memory contents to a file? I think I'll have to use CreateFileA and WriteFile. But how? Can anybody guide me?

    Thnx in advance.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    Peres
    Guest
    Before you hijack and cause terror, you must be sure that your virtual address (7F892D5A) belongs to a routine which doesn't get called from other points in RASAPI32. You will do some funny damage if you start writing files on your hard disk whenever that routine gets called...

    Peres
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  3. #3
    profdracula
    Guest

    Any suggestions?

    Thanx Peres!

    This routine is called once only, when Connect-button is hit. So what next?
    Can u tell me precisely, what am i supposed to do? I mean, my own thought post-mortem procedure was: Jumping from 7F892D5A(push ecx) to my cave,Writing ECX contents to a file, restore disturbed instructions(because of jump to cave) and jump back. Is'nt that what I'm supposed to do?
    Last edited by profdracula; August 1st, 2004 at 14:18.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  4. #4
    Peres
    Guest
    Your idea is right, but you should first determine what you need in order to support your brand-new routine. You could need room for globals as well as new import functions. Just write some code using CreateFile and such - as you said in your first post - and you'll see.

    Peres
    I promise that I have read the FAQ and tried to use the Search to answer my question.

Similar Threads

  1. RE: Adding mouse functionality
    By LOUZEW in forum Tools of Our Trade (TOT) Messageboard
    Replies: 5
    Last Post: April 25th, 2005, 02:44
  2. adding functionality
    By qweasdzxc in forum Mini Project Area
    Replies: 10
    Last Post: September 16th, 2003, 20:15
  3. adding functionality project...
    By ZaiRoN in forum Mini Project Area
    Replies: 4
    Last Post: June 12th, 2002, 12:18
  4. Adding functionality: any pearls of wisdom?
    By myAvatar in forum Malware Analysis and Unpacking Forum
    Replies: 2
    Last Post: August 18th, 2001, 19:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •