You are viewing our Forum Archives. To view or take place in current topics click here.

Useful?

YES
71.43% (5 votes)
NO
28.57% (2 votes)

Total Votes: 7

#11. Posted:
F64_Rx
  • Winter 2017
Status: Offline
Joined: Jul 29, 201113Year Member
Posts: 1,237
Reputation Power: 114
Status: Offline
Joined: Jul 29, 201113Year Member
Posts: 1,237
Reputation Power: 114
nice tool should help alot with people making ghost tools and so
#12. Posted:
Bitwise
  • Resident Elite
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
F64_Rx wrote nice tool should help alot with people making ghost tools and so


You clearly have no idea what this is. Why post? "Nice tool" bahahahaha.

Also, I like this script#sokewl

#include<idc.idc>

static LabelFunction(name,binary)
{
    auto function;
    for(function=0;function != BADADDR;function = function + 0x04)
    {
        function = FindBinary(function,SEARCH_DOWN,binary);
        if(function == BADADDR)
        {
            Message("%s could not be found in memory (%08X)\n", name, BADADDR);
            break;
        }
        else
        {
            auto math = GetFunctionAttr(function, FUNCATTR_START);
            MakeUnknown(math, GetFunctionAttr(math, FUNCATTR_END), 0x00);
            MakeCode(math);
            MakeFunction(math, GetFunctionAttr(math, FUNCATTR_END));
            MakeNameEx(math, name, 0x00);
            auto fgt;
            for(fgt = math;fgt != GetFunctionAttr(math, FUNCATTR_END);fgt = fgt + 0x04)
            {
                MakeComm(fgt, sprintf("%04X #OpBitwise", DecodeInstruction(fgt).ea));
            }
            Jump(math);
            Message("%s found in memory (%08X)\n", name, math);
            break;
        }
    }
}

static main()
{
    LabelFunction("SV_GameSendServerCommand", " 7D 69 40 2E 7D 43 51 D6  7C 6A 5A 14");
    LabelFunction("SV_DropClient", "60 E6 FA 00 7D 69 40 2E  7D 43 31 D6 7C 6A 5A 14");
}


Pretty cool! You know how IW like to update functions alot? There for, increasing size? With this function you don't have to input the length, gets it for you ;). Also made it get the start off the function too , only 2 params needed

What it looks like;
[ Register or Signin to view external links. ]
#13. Posted:
IDA
  • Powerhouse
Status: Offline
Joined: Sep 21, 201311Year Member
Posts: 454
Reputation Power: 26
Status: Offline
Joined: Sep 21, 201311Year Member
Posts: 454
Reputation Power: 26
Bitwise wrote
F64_Rx wrote nice tool should help alot with people making ghost tools and so


You clearly have no idea what this is. Why post? "Nice tool" bahahahaha.

Also, I like this script#sokewl

#include<idc.idc>

static LabelFunction(name,binary)
{
    auto function;
    for(function=0;function != BADADDR;function = function + 0x04)
    {
        function = FindBinary(function,SEARCH_DOWN,binary);
        if(function == BADADDR)
        {
            Message("%s could not be found in memory (%08X)\n", name, BADADDR);
            break;
        }
        else
        {
            auto math = GetFunctionAttr(function, FUNCATTR_START);
            MakeUnknown(math, GetFunctionAttr(math, FUNCATTR_END), 0x00);
            MakeCode(math);
            MakeFunction(math, GetFunctionAttr(math, FUNCATTR_END));
            MakeNameEx(math, name, 0x00);
            auto fgt;
            for(fgt = math;fgt != GetFunctionAttr(math, FUNCATTR_END);fgt = fgt + 0x04)
            {
                MakeComm(fgt, sprintf("%04X #OpBitwise", DecodeInstruction(fgt).ea));
            }
            Jump(math);
            Message("%s found in memory (%08X)\n", name, math);
            break;
        }
    }
}

static main()
{
    LabelFunction("SV_GameSendServerCommand", " 7D 69 40 2E 7D 43 51 D6  7C 6A 5A 14");
    LabelFunction("SV_DropClient", "60 E6 FA 00 7D 69 40 2E  7D 43 31 D6 7C 6A 5A 14");
}


Pretty cool! You know how IW like to update functions alot? There for, increasing size? With this function you don't have to input the length, gets it for you ;). Also made it get the start off the function too , only 2 params needed

What it looks like;
[ Register or Signin to view external links. ]


Also If you wouldn't mind, I'm struggling updating things like the playerstate and StatEntry, mind explaining how later ?
#14. Posted:
Bitwise
  • Resident Elite
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
IDA wrote
Bitwise wrote
F64_Rx wrote nice tool should help alot with people making ghost tools and so


You clearly have no idea what this is. Why post? "Nice tool" bahahahaha.

Also, I like this script#sokewl

#include<idc.idc>

static LabelFunction(name,binary)
{
    auto function;
    for(function=0;function != BADADDR;function = function + 0x04)
    {
        function = FindBinary(function,SEARCH_DOWN,binary);
        if(function == BADADDR)
        {
            Message("%s could not be found in memory (%08X)\n", name, BADADDR);
            break;
        }
        else
        {
            auto math = GetFunctionAttr(function, FUNCATTR_START);
            MakeUnknown(math, GetFunctionAttr(math, FUNCATTR_END), 0x00);
            MakeCode(math);
            MakeFunction(math, GetFunctionAttr(math, FUNCATTR_END));
            MakeNameEx(math, name, 0x00);
            auto fgt;
            for(fgt = math;fgt != GetFunctionAttr(math, FUNCATTR_END);fgt = fgt + 0x04)
            {
                MakeComm(fgt, sprintf("%04X #OpBitwise", DecodeInstruction(fgt).ea));
            }
            Jump(math);
            Message("%s found in memory (%08X)\n", name, math);
            break;
        }
    }
}

static main()
{
    LabelFunction("SV_GameSendServerCommand", " 7D 69 40 2E 7D 43 51 D6  7C 6A 5A 14");
    LabelFunction("SV_DropClient", "60 E6 FA 00 7D 69 40 2E  7D 43 31 D6 7C 6A 5A 14");
}


Pretty cool! You know how IW like to update functions alot? There for, increasing size? With this function you don't have to input the length, gets it for you ;). Also made it get the start off the function too , only 2 params needed

What it looks like;
[ Register or Signin to view external links. ]


Also If you wouldn't mind, I'm struggling updating things like the playerstate and StatEntry, mind explaining how later ?


You have my preset code? *cough*findByte*cough*
#15. Posted:
IDA
  • Powerhouse
Status: Offline
Joined: Sep 21, 201311Year Member
Posts: 454
Reputation Power: 26
Status: Offline
Joined: Sep 21, 201311Year Member
Posts: 454
Reputation Power: 26
Bitwise wrote
IDA wrote
Bitwise wrote
F64_Rx wrote nice tool should help alot with people making ghost tools and so


You clearly have no idea what this is. Why post? "Nice tool" bahahahaha.

Also, I like this script#sokewl

#include<idc.idc>

static LabelFunction(name,binary)
{
    auto function;
    for(function=0;function != BADADDR;function = function + 0x04)
    {
        function = FindBinary(function,SEARCH_DOWN,binary);
        if(function == BADADDR)
        {
            Message("%s could not be found in memory (%08X)\n", name, BADADDR);
            break;
        }
        else
        {
            auto math = GetFunctionAttr(function, FUNCATTR_START);
            MakeUnknown(math, GetFunctionAttr(math, FUNCATTR_END), 0x00);
            MakeCode(math);
            MakeFunction(math, GetFunctionAttr(math, FUNCATTR_END));
            MakeNameEx(math, name, 0x00);
            auto fgt;
            for(fgt = math;fgt != GetFunctionAttr(math, FUNCATTR_END);fgt = fgt + 0x04)
            {
                MakeComm(fgt, sprintf("%04X #OpBitwise", DecodeInstruction(fgt).ea));
            }
            Jump(math);
            Message("%s found in memory (%08X)\n", name, math);
            break;
        }
    }
}

static main()
{
    LabelFunction("SV_GameSendServerCommand", " 7D 69 40 2E 7D 43 51 D6  7C 6A 5A 14");
    LabelFunction("SV_DropClient", "60 E6 FA 00 7D 69 40 2E  7D 43 31 D6 7C 6A 5A 14");
}


Pretty cool! You know how IW like to update functions alot? There for, increasing size? With this function you don't have to input the length, gets it for you ;). Also made it get the start off the function too , only 2 params needed

What it looks like;
[ Register or Signin to view external links. ]


Also If you wouldn't mind, I'm struggling updating things like the playerstate and StatEntry, mind explaining how later ?


You have my preset code? *cough*findByte*cough*


Ahhh thanks, if I need more help then I'll ask ;)
#16. Posted:
F64_Rx
  • TTG Senior
Status: Offline
Joined: Jul 29, 201113Year Member
Posts: 1,237
Reputation Power: 114
Status: Offline
Joined: Jul 29, 201113Year Member
Posts: 1,237
Reputation Power: 114
Bitwise wrote
F64_Rx wrote nice tool should help alot with people making ghost tools and so


You clearly have no idea what this is. Why post? "Nice tool" bahahahaha.

Also, I like this script#sokewl

#include<idc.idc>

static LabelFunction(name,binary)
{
    auto function;
    for(function=0;function != BADADDR;function = function + 0x04)
    {
        function = FindBinary(function,SEARCH_DOWN,binary);
        if(function == BADADDR)
        {
            Message("%s could not be found in memory (%08X)\n", name, BADADDR);
            break;
        }
        else
        {
            auto math = GetFunctionAttr(function, FUNCATTR_START);
            MakeUnknown(math, GetFunctionAttr(math, FUNCATTR_END), 0x00);
            MakeCode(math);
            MakeFunction(math, GetFunctionAttr(math, FUNCATTR_END));
            MakeNameEx(math, name, 0x00);
            auto fgt;
            for(fgt = math;fgt != GetFunctionAttr(math, FUNCATTR_END);fgt = fgt + 0x04)
            {
                MakeComm(fgt, sprintf("%04X #OpBitwise", DecodeInstruction(fgt).ea));
            }
            Jump(math);
            Message("%s found in memory (%08X)\n", name, math);
            break;
        }
    }
}

static main()
{
    LabelFunction("SV_GameSendServerCommand", " 7D 69 40 2E 7D 43 51 D6  7C 6A 5A 14");
    LabelFunction("SV_DropClient", "60 E6 FA 00 7D 69 40 2E  7D 43 31 D6 7C 6A 5A 14");
}


Pretty cool! You know how IW like to update functions alot? There for, increasing size? With this function you don't have to input the length, gets it for you ;). Also made it get the start off the function too , only 2 params needed

What it looks like;
[ Register or Signin to view external links. ]

well it clearly is a tool that helps you find offsets
#17. Posted:
TGK
  • TTG Senior
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
F64_Rx wrote
Bitwise wrote
F64_Rx wrote nice tool should help alot with people making ghost tools and so


You clearly have no idea what this is. Why post? "Nice tool" bahahahaha.

Also, I like this script#sokewl

#include<idc.idc>

static LabelFunction(name,binary)
{
    auto function;
    for(function=0;function != BADADDR;function = function + 0x04)
    {
        function = FindBinary(function,SEARCH_DOWN,binary);
        if(function == BADADDR)
        {
            Message("%s could not be found in memory (%08X)\n", name, BADADDR);
            break;
        }
        else
        {
            auto math = GetFunctionAttr(function, FUNCATTR_START);
            MakeUnknown(math, GetFunctionAttr(math, FUNCATTR_END), 0x00);
            MakeCode(math);
            MakeFunction(math, GetFunctionAttr(math, FUNCATTR_END));
            MakeNameEx(math, name, 0x00);
            auto fgt;
            for(fgt = math;fgt != GetFunctionAttr(math, FUNCATTR_END);fgt = fgt + 0x04)
            {
                MakeComm(fgt, sprintf("%04X #OpBitwise", DecodeInstruction(fgt).ea));
            }
            Jump(math);
            Message("%s found in memory (%08X)\n", name, math);
            break;
        }
    }
}

static main()
{
    LabelFunction("SV_GameSendServerCommand", " 7D 69 40 2E 7D 43 51 D6  7C 6A 5A 14");
    LabelFunction("SV_DropClient", "60 E6 FA 00 7D 69 40 2E  7D 43 31 D6 7C 6A 5A 14");
}


Pretty cool! You know how IW like to update functions alot? There for, increasing size? With this function you don't have to input the length, gets it for you ;). Also made it get the start off the function too , only 2 params needed

What it looks like;
[ Register or Signin to view external links. ]

well it clearly is a tool that helps you find offsets

It's clearly a script. How idiotic can you get?
#18. Posted:
Bitwise
  • Resident Elite
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
F64_Rx wrote
Bitwise wrote
F64_Rx wrote nice tool should help alot with people making ghost tools and so


You clearly have no idea what this is. Why post? "Nice tool" bahahahaha.

Also, I like this script#sokewl

#include<idc.idc>

static LabelFunction(name,binary)
{
    auto function;
    for(function=0;function != BADADDR;function = function + 0x04)
    {
        function = FindBinary(function,SEARCH_DOWN,binary);
        if(function == BADADDR)
        {
            Message("%s could not be found in memory (%08X)\n", name, BADADDR);
            break;
        }
        else
        {
            auto math = GetFunctionAttr(function, FUNCATTR_START);
            MakeUnknown(math, GetFunctionAttr(math, FUNCATTR_END), 0x00);
            MakeCode(math);
            MakeFunction(math, GetFunctionAttr(math, FUNCATTR_END));
            MakeNameEx(math, name, 0x00);
            auto fgt;
            for(fgt = math;fgt != GetFunctionAttr(math, FUNCATTR_END);fgt = fgt + 0x04)
            {
                MakeComm(fgt, sprintf("%04X #OpBitwise", DecodeInstruction(fgt).ea));
            }
            Jump(math);
            Message("%s found in memory (%08X)\n", name, math);
            break;
        }
    }
}

static main()
{
    LabelFunction("SV_GameSendServerCommand", " 7D 69 40 2E 7D 43 51 D6  7C 6A 5A 14");
    LabelFunction("SV_DropClient", "60 E6 FA 00 7D 69 40 2E  7D 43 31 D6 7C 6A 5A 14");
}


Pretty cool! You know how IW like to update functions alot? There for, increasing size? With this function you don't have to input the length, gets it for you ;). Also made it get the start off the function too , only 2 params needed

What it looks like;
[ Register or Signin to view external links. ]

well it clearly is a tool that helps you find offsets


No it isn't you retard. Why would you even reply trying to correct me on something you know nothing about? A "tool" is an application. I an not be bother to type out the difference's...shouldn't really ever have it, its common sense?

[ Register or Signin to view external links. ] is the definition off an application.
[ Register or Signin to view external links. ] is the definition off a script.

You can write a script to create an application, yes. But in this case it's not. This here is a script (created in the scripting language IDC) to be loaded into an application for use. IDA comes with 2 plugins, an IDC plugin and a Python plugin. You can do what you can in the IDC script with a Python script (In IDA I am talking about here...)
#19. Posted:
SSJ4_Dwack
  • Challenger
Status: Offline
Joined: Nov 11, 201113Year Member
Posts: 153
Reputation Power: 12
Status: Offline
Joined: Nov 11, 201113Year Member
Posts: 153
Reputation Power: 12
Bitwise wrote .....


Use this to set function types:


// Set compiler type to MS Visual C++
SetCharPrm(INF_COMPILER, COMP_MS);
// Setup calling convention and memory model
SetCharPrm(INF_MODEL, 0x33);

// Set the function type

// SetType( long ea, string typeString)
// The string must have the closing ';' like in C
// Also, you cannot use custom data types unless they are already in
// the IDA database for that idb file.

// IE, you cannot use a struct type unless it its already defined in the structures view

SetType(0x6d18, "void* sub_6D18(void* ptrData, void* ptrData2);");
#20. Posted:
Bitwise
  • Resident Elite
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
SSJ4_Dwack wrote
Bitwise wrote .....


Use this to set function types:


// Set compiler type to MS Visual C++
SetCharPrm(INF_COMPILER, COMP_MS);
// Setup calling convention and memory model
SetCharPrm(INF_MODEL, 0x33);

// Set the function type

// SetType( long ea, string typeString)
// The string must have the closing ';' like in C
// Also, you cannot use custom data types unless they are already in
// the IDA database for that idb file.

// IE, you cannot use a struct type unless it its already defined in the structures view

SetType(0x6d18, "void* sub_6D18(void* ptrData, void* ptrData2);");


I feel annoyed with myself. I thought I search all over the documentation for that... But thanks a lot for that.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.