User forums > Using Code::Blocks

Can't find .out file

(1/2) > >>

chedRvendetR:
So apparently .out files are formed when programs are compiled, but for some reason I can't find it! I need to read the .out files for my programs so I can continue reading my book that shows how to interpret them. Please help.

Many thanks    8)

ollydbg:

--- Quote from: chedRvendetR on January 26, 2014, 03:16:02 am ---So apparently .out files are formed when programs are compiled, but for some reason I can't find it! I need to read the .out files for my programs so I can continue reading my book that shows how to interpret them. Please help.

Many thanks    8)

--- End quote ---
Please ask a good question, I mean you should state what you have done step by steps, and what the expect result, all should in details. Also, we need the OS, Compiler, C::B version information.

Without those information, how can we help you?

chedRvendetR:
So sorry! I've tried looking in the bin folders but have only found the 'file.exe' file and 'file.o' object file. I originally thought file.o was short for file.out until I searched up that it actually stood for .object.

The .out file should contain stuff that looks something like this:

reader@hacking:~/booksrc $ gcc firstprog.c
reader@hacking:~/booksrc $ 1s -1 a.out
-rwxr-xr-x 1 reader reader 6621 2007-09-06
22:16 a.out
reader@hacking:~/booksrc $ .a/a.out
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
reader@hacking:~/booksrc $

(This is an example of an .out file taken from 'Hacking: The Art of Exploitation')

OS = Windows Vista (32 bit)
Compiler = GCC
CB version = 10.05

BlueHazzard:
For me this explanation says nothing.... it seems that the out file is your executable file

what does the .out file should contain? Remember (and probably you should already know it, if you read a book like 'Hacking: The Art of Exploitation') that file extensions says nothing about a file (on unix).
And probably you should read a book for basic programming first... (compiling, linking, bash commands....)

[Edit:] and please update your c::b because 10.05 is really really really old..

greetings

chedRvendetR:
Yeah I don't have much experience with compilers and the like. I've had a problem with installing newer codeblocks versions but now I've successfully installed the latest one.

Here's a better example of what the .out file should contain:

reader@hacking:-booksrc $ objdump -D a.out |
grep -A20 main.:
08048374 <main>:
 8048374:          55                            push
%ebp
 8048375:          89 e5                         mov
%esp,%ebp
 8048377:          83 ec 08                     sub
$0x8,%esp
 804837a           83 e4 f0                      and
$0xfffffff0, %esp
 804837d:          b8 00 00 00 00             mov
$0x0,%eax
 8048382:          29 c4                         sub
%eax,%esp
 8048384:          c7 45 fc 00 00 00 00    movl
$0x0,0xfffffffc(%ebp)
 804838b:          83 7d fc 09                 cmpl
$0x9,0xfffffffc(%ebp)
 804838f:          7e 02                          jle

etc etc

I hope this example helps

Navigation

[0] Message Index

[#] Next page

Go to full version