Friday, April 15, 2011

Difference between Path traversal vs directory listing?

What are the differences between path traversal and directory listing?


Path Traversal:
1. This is issue with input validation


2. Attacker can able to access all the files, provided he knows the exact file name


3. Attacker  may access all files even if it is for root folder


Directory listing:


1. This is issue with system configuration


2. Attacker can able to access all files, provided he knows the FOLDER name


3. Attacker may access limited files depends up on configuration and folder permissions.

Wednesday, April 6, 2011

What is .dbc file?



 


dbc file is database connect descriptor file which stores database connection information used by application tier to connect to database. This file is located in $FND_TOP/secure and also called as FND_SECURE

 


 




Tuesday, April 5, 2011

Interview Question

I have a number of roses for sale. The first buyer bought half of my roses
then I gave him additional one for free. The second buyer bought half of the remaining roses then I gave him additional one also for free. The third
buyer also bought half of the remaining roses then I gave him additional one also for free, this time all of my roses has been sold out.
How many roses do I have?

Interview Question

#include

#define f(a,b) a##b
#define g(a) #a
#define h(a) g(a)

int main()
{
printf("%s",g(f(1,2)));
printf("t%s",h(f(1,2)));
return 0;

}

Facebook Interview Question

A non-negative integer is called heavy if the average value of its
digits in decimal representation exceeds 7. Assume that 0 has average
value of its digits equal to 0.


Ex: 5989 (5+4+8+9)/4 = 6.5 is less than 7 it is not heavy

Interview Question

How many trailing zeros are there in in n!

Global Scholar Interview Question

Given an input string which consists of spaces. Replace all the spaces with %20.

Monday, April 4, 2011

Hibernate Interview Question

What are the advantages of hibernate over jdbc

Friday, April 1, 2011