📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  [IDC] Create a database from scratch

Topic created on: June 26, 2008 08:13 CDT by prc600 .

Hi, hello to all of you!

I have just start on IDC and I just want to make a automatic system realizing this:

(IDA is launched and empty: GO by your own option), at launch of idc:

1 - Request User select a binary file (OK, no prob)
2 - This file is loaded with a set options, processor, type of segment.

My problem, is that: if I use loadfile or try to createsegment, I have the message: "Attempt to call a database related function ...."

So, it's possible to create a Database first from the scratch in IDC?

I'm sorry if the answer is trivial but I'm searching in  IDA Help.

Enjoy your day.

  cseagle     June 26, 2008 10:33.40 CDT
loadfile is used to load a file into an existing database which, in your case, you do not have.  I don't think there is a way to actually create a database from IDC.

What are you trying to accomplish that IDA doesn't already do for you when it creates a new database?

  prc600   June 27, 2008 01:40.05 CDT
I just try to make a super auto disassembling script for a firmware  and I think it will be cool that you launch the idc, pick the file and IDA make all for you without pass by OPEN, it's not really a problem, it's just to make more simpliest.

Thanks for your answer!

  cseagle     June 27, 2008 11:29.00 CDT
Writing a loader is your best bet.  The effect is the same since you still need to choose a file.  Using IDA's file>open would be a much more natural way to go.

  nezumi     June 27, 2008 15:59.57 CDT
prc600
>I just try to make a super auto disassembling script
> for a firmware  and I think it will be cool that
> you launch the idc, pick the file and IDA make all
> for you without pass by OPEN, it's not really a problem,
> it's just to make more simpliest.
yep, it's not a problem. it's simple.
use command line keys.

IDA command line switches ▄
IDA is started with one of the following command lines:

idag input-file        (Windows: start graphical interface)
idaw input-file        (Windows: start text interface)
idax input-file        (MS DOS : start text interface)
ida2 input-file        (OS/2   : start text interface)

You may specify a file mask instead of the file name.

There a special "batch" mode when IDA can be used to analyze files in the unattended mode. See details below.

The following command line switches are allowed:

-a     disable auto analysis
-A     autonomous mode. IDA will not display dialog boxes. Designed to be used together with -S switch.
-b#### loading address (hex)
-B     batch mode. IDA will generate .IDB and .ASM files automatically
-c     disassemble a new file (delete the old database)
-ddirective  configuration directive which should be processed at the first  pass. Example:-dVPAGESIZE=8192
-Ddirective A configuration directive which should be processed at the second pass.
-i#### program entry point (hex)
-M     disable mouse (text only)
-O#### options to pass to plugins
-o#### specify the output database (implies -c)
-p#### processor type
-P+    pack database
-P-    do not pack database (see Abort command)
-R     load MS Windows exe file resources
-S###  execute IDC file. Note that IDA always executes IDA.IDC file if it exists.

  prc600   June 30, 2008 03:10.50 CDT
Thanks for all these answers, I go to check this!

Note: Registration is required to post to the forums.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit