-
November 17th, 2003, 11:18 PM
#1
coding/scripts
Ok, to start off, I am trying to learn programming etc. by reading a few books. Now the real question...I have noticed that people post scripts in the forums (not just here) that show how vulnerabilities or patches to programs. The problem is, I dont know how to tell which program (c++ vb etc) that it should be compiled in. I also thought, maybe the scripts that are being written are to be executed in Linux (something else I am learning). Any easy way to tell?....and no, Im not trying to "hack" anything, I just think it would be great to really use some open source programs and even be able to write my own....would be great if they started teaching programming with my comp science degree.....only a few more months till that. Thanks
Sex is like \"Social Security\". You get a little each month, but it\'s not enough to live on.
-
November 17th, 2003, 11:25 PM
#2
Senior Member
Well, to tell the differences in language you need to know some basic syntax of each language. As for what operationg system it compiles and runs on, for me i just look at the code and you can usually tell by what file systems it modifies or if it includes any OS specific header files or packages.
But just as a cardinal rule dont cut, paste and run any code that you dont know what it does. especially if it is an exploit. Because you could really jack up your OS.
-
November 17th, 2003, 11:31 PM
#3
I think that for the most part people post what prog language there code is written in and what platform it runs on. Maybe I just haven't been noticing anything lately. A lot of times if you just see one piece of code in a language and memorize it and what language it came from, it is pretty easy to tell which prog language most things are written in.
They all seem to be pretty distinct to me. As for platform, just use java, it is platform independent.
-
November 18th, 2003, 12:09 AM
#4
The majority of exploit code is wirtten in c for the *nix platform
That which does not kill me makes me stronger -- Friedrich Nietzche
-
November 18th, 2003, 12:19 AM
#5
This is mostly a "me to" for kr4y3's post, but there are a couple of extra points that I'd like to add.
1) Most exploits don't actually work out of the box. This is to prevent 3v1l, clueless crackers from using them. Usually it's a trivial change to get them working.
2) I've posted quite a bit of code to various forums, and much of it is for communications purposes only. That is to say, it has not been tested, and is there just to convey the general idea of a program. Often, this is written in pseudocode, which is not in any language in particular.
-
November 18th, 2003, 04:56 AM
#6
Senior Member
Originally posted here by j3r
...............This is to prevent 3v1l, clueless crackers...........
heheh 3v1|
-
November 18th, 2003, 06:17 AM
#7
Just to comment on what S3cur|ty4ng31 wrote, the coding in c, you cant just run the code in linux correct, you need to have C installed on the box? Sorry if im sounding stupid....
Sex is like \"Social Security\". You get a little each month, but it\'s not enough to live on.
-
November 18th, 2003, 06:26 AM
#8
You have to have a compiler such as gcc, http://gcc.gnu.org
although that is not the only option, I'm sure that is what almost everyone here uses and it will suit you just fine
-
November 18th, 2003, 02:44 PM
#9
Senior Member
Another side-note to mention, going along with the don't cut and paste idea....
Most code that you do cut and paste...probably won't work on your box. A lot of code carries system sensitive variables, in that, most of them are customized to work on someone else's box. You'll find that out when you try to compile them, and then get the, "Line 3, char 5 undefined variable" when you go look at the line 3 it will have "' 'Insert something here"
Another important thing to mention, is that some code is meant specifically for a certain *NIX variant. Meaning that Redhat code, may not work with FreeBSD (this all depends if you are allowed to run Linux binaries in BSD...and even then its sketchy).
After awhile you'll begin to notice elemental differences in between different programming languages, its much like spoken languages...in that Russian sure don't look like English. Much the like, C sure don't look like ASM
Have fun, and happy learning!
Creating further mindless stupidity....through mindless automation.
-
November 18th, 2003, 08:52 PM
#10
Member
I am smelling a RAT, if he is "learning" programming then why DOESN'T HE KNOW ANYTHING(syntax)LANGUAGE.......
I rest my case........R.I.P.
Beware, you who seek first and final principles, for you are
trampling the garden of an angry God and he awaits you just beyond the last theorem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|