Messages - megatron [ switch to compact view ]

Pages: prev1 [2] 3 4 5next
6
Can anyone provide some link which has some details to unpack a creackme (Packed using UPX I think). It will be very helpful if it can  explain how the unpack of UPX works (instead of just giving steps to unpack it). I am more interested to know how it works.

A) Crackme.
B) Where's the solution for MY crackme?


i am asking about the same crackme :D in this thread...

7
For method #2, there's no reason to write function prototypes (and it's not required for neither C nor C++).

I got your point… but I have seen people almost “killing” others to prove that method#2 should have a forward declaration…. But I could not find a online link which can explain in depth that there is no need for forward declaration in method#2….

8
Yes that is a good approach and it is followed almost everywhere (“as far as I know”)...

This is my understanding from your answer:
1.   you only meant non-static methods in the .h file. 
2.   Static method signature does not required if static method definition is placed before caller method.

But I faced lot of question when I don’t put the declaration of a static method in case 2. I could not find a book or a link which says that this is not necessary (which I can send to a person to justify my point)

9
Good point… I have faced it so many time when IE crashes (don’t know the reason) and all the TABS are closed…

10
In the scenario 1 I must declare method on the top, but should I declare it in the scenario 2 also?

Scenario 1:
=========

Static void local_method(int param);

Void caller()
{
   local_method(1);
}

Static void local_method(int param)
{
   // doing something



Scenario 2:

/* I have define this method before caller, should I still declare its method signature above.
What is the benefit I will get if I declare it  on the top */
Static void local_method(int param)
{
   // doing something


Void caller()
{
   local_method(1);
}


Pages: prev1 [2] 3 4 5next
Go to full version