Thread: BuYS: Make yourself win!!!
-
03-29-2011, 10:55 PM #1Garage Member
- Join Date
- Sep 2010
- Location
- Chennai
- Posts
- 83
- Blog Entries
- 1
- Thanks
- 16
- Thanked 55 Times in 18 Posts
BuYS: Make yourself win!!!
Alright.. this one is a bit tough coz i am gonna imply some rules on how to solve this ...
Take the program:
#include<stdio.h>
main(int argc, char **argv)
{
int flag;
char buffer[80];
strcpy(buffer,argv[1]);
if(flag==0x41414141)
printf("you lose\n");
}
The point is to make this program print "you win" .. An obvious solution is to overwrite the ret address with the address of your code that prints "you win" . I dont want that.. Infact doing by *the new* way is much more simpler.. You can even try your own methods but i dont want the above solution ...
So think different ..try hard..
-
03-30-2011, 07:41 AM #2Garage Hyper Addict



- Join Date
- Jul 2010
- Location
- irc.freenode.net #g4h
- Posts
- 649
- Thanks
- 139
- Thanked 272 Times in 110 Posts
sebas_phoenix, before starting new question it's expected to close the last one. You have already received couple of replies for your last question, so please post the replies for that question in that thread.
http://www.garage4hackers.com/showth...ding-functions[*] To follow the path: look to the master, follow the master, walk with the master, see through the master,
------> become the master!!! <------
[*] Everyone has a will to WIN but very few have the will to prepare to WIN
[*] Invest yourself in everything you do, there's fun in being serious
-
03-30-2011, 11:12 PM #3Garage Member
- Join Date
- Sep 2010
- Location
- Chennai
- Posts
- 83
- Blog Entries
- 1
- Thanks
- 16
- Thanked 55 Times in 18 Posts
-
03-31-2011, 02:34 PM #4
hey, can you be a bit more specific,regarding *the new* way?
All it takes, is persistence.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
04-01-2011, 01:26 AM #5Garage Member
- Join Date
- Sep 2010
- Location
- Chennai
- Posts
- 83
- Blog Entries
- 1
- Thanks
- 16
- Thanked 55 Times in 18 Posts
Think non-executable stack.. if u are able to defeat it..
try getting a root shell (uid=0,gid=0) coz using this particular technique drops privileges before giving a shell.. and i wont be online for some days..sem exams
so you need to wait a lil bit for my reply to ur pm's



LinkBack URL
About LinkBacks



Reply With Quote

Poizon Web Exploiter 2.0
Yesterday, 10:34 PM in Tools & Scripts