LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2009, 02:25 PM   #1
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Rep: Reputation: 15
C examples for reverse engineering


I need code examples for programs in C at least with 300 lines it doesn't have to be advance code the simpler the better. I need this program for my reverse engineering class. If you can tell me a where I can find this or if you can send me a program and don't mind that it would be use to reverse engineering as a learning example. Thanks a lot.
 
Old 03-24-2009, 03:14 PM   #2
xhypno
Member
 
Registered: Sep 2004
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by darkangel29 View Post
I need code examples for programs in C at least with 300 lines it doesn't have to be advance code the simpler the better. I need this program for my reverse engineering class. If you can tell me a where I can find this or if you can send me a program and don't mind that it would be use to reverse engineering as a learning example. Thanks a lot.
Reverse engineering is a taboo topic in the Edu community. I highly doubt you would be taking any class on it at a univeristy world wide. And under that thought, this post would violate the sites ToS for content related to Hacking/Cracking.
 
Old 03-24-2009, 03:38 PM   #3
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Original Poster
Rep: Reputation: 15
Well I guess you are misinformed and outdated because I am taking a class about it at my university at the Polytechnic University of Puerto Rico it is an elective in computer security. Reverse engineering has nothing to do with hacking or much less cracking and all I ask was for a small c source code to use as an example

Last edited by darkangel29; 03-24-2009 at 03:42 PM.
 
Old 03-24-2009, 03:43 PM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Quote:
Reverse engineering is a taboo topic in the Edu community. I highly doubt you would be taking any class on it at a univeristy world wide. And under that thought, this post would violate the sites ToS for content related to Hacking/Cracking.
It ain't as taboo as you think it is. At my Uni we have a course on Security and that course covers things like reverse engineering and cracking. In fact, most of the assignments are to perform some classic exploits. It's really quite important for white hats to know how black hats operate.

As for the original question, I suspect the professor wants everyone to write a simple but nontrivial program and then will distribute the binaries out and challenge the class to find out what each program is trying to accomplish. In that case, I recommend the OP to do something himself (300 lines is really not that big, at least for C). I personally think it's a fun to compete against your classmates (I don't like the cutthroat competition outside of class that some Unis suffer from, but controlled in-class competition is different).

Last edited by tuxdev; 03-24-2009 at 03:46 PM.
 
Old 03-24-2009, 03:59 PM   #5
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Original Poster
Rep: Reputation: 15
Yes I know writing a 300 line c is easy but I have tests this week and very little time to sit down and code and since the professor authorize us to look for one on the internet I thought that I could save some time and use it to actually study
 
Old 03-24-2009, 04:05 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Grab anything from the kernel source-code libraries. A google search will produce any number of examples.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse engineering in firebird brevleq Linux - Software 1 10-01-2008 12:39 PM
Reverse Engineering for Portability dlublink Linux - Software 1 11-23-2005 01:43 PM
Reverse Engineering tools hari_s_82 Linux - Newbie 0 10-13-2004 06:58 AM
reverse engineering walterw Programming 3 01-18-2003 04:15 PM
Reverse engineering the kernel lolmc Linux - General 7 07-05-2002 11:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration