Results 1 to 2 of 2

Thread: IDA script

  1. #1

    IDA script

    I wrote this script to remove align x from deadlisting, now when its executed, it comes into infinite loop, what am i doing wrong?


    #include <idc.idc>

    // noalign(0x4bd000,0x5a1cd0);

    // remove align x from deadlisting
    static noalign(from,to)
    {
    auto ea,i,j,x;

    for ( i = from; i < to; i++)
    {
    ea = i;

    ea = FindText(ea,SEARCH_DOWN | SEARCH_NEXT,0,0,"align ");

    if (ea != BADADDR)
    {
    MakeUnkn(ea,0);
    Message("%08lX: align x\n",ea);
    }

    }
    }

  2. #2
    Fixed

    #include <idc.idc>

    // noalign(0x4bd000,0x5a1cd0);

    // remove align x from deadlisting
    static noalign(from,to)
    {
    auto ea,i,j,x;

    ea = from;

    while ( ea <= to && ea != BADADDR)
    {

    ea = FindText(ea,SEARCH_DOWN | SEARCH_NEXT,0,0,"align ");

    MakeUnkn(ea,0);
    Message("%08lX: founded align x\n",ea);

    }


    }

Similar Threads

  1. PHPScriptExec & CloneDll script & TASM exports generator script
    By roxaz in forum Tools of Our Trade (TOT) Messageboard
    Replies: 1
    Last Post: July 18th, 2008, 17:36
  2. Another UPX script
    By BruceLee in forum OllyScript Plugin
    Replies: 1
    Last Post: June 15th, 2004, 05:57
  3. Help on script
    By Anonymous in forum OllyScript Plugin
    Replies: 1
    Last Post: April 29th, 2004, 04:02
  4. need this special script
    By caty in forum OllyScript Plugin
    Replies: 6
    Last Post: April 21st, 2004, 22:27
  5. Wise script
    By _Servil_ in forum Malware Analysis and Unpacking Forum
    Replies: 1
    Last Post: April 23rd, 2002, 22:21

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
  •