Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: coding/scripts

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    256

    Question 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.

  2. #2
    Senior Member
    Join Date
    Jan 2003
    Posts
    120
    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.
    http://www.AntiOnline.com/sig.php?imageid=517

    the Open Source model doesn\'t offer any great benefit in
    terms of reliability and security. -Bill Gates

  3. #3
    Elite Hacker
    Join Date
    Mar 2003
    Posts
    1,407
    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.

  4. #4
    Senior Member
    Join Date
    Jun 2003
    Posts
    236
    The majority of exploit code is wirtten in c for the *nix platform
    That which does not kill me makes me stronger -- Friedrich Nietzche

  5. #5
    Senior Member
    Join Date
    Jul 2003
    Posts
    114
    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.

  6. #6
    Senior Member
    Join Date
    Jan 2003
    Posts
    120
    Originally posted here by j3r
    ...............This is to prevent 3v1l, clueless crackers...........
    heheh 3v1|
    http://www.AntiOnline.com/sig.php?imageid=517

    the Open Source model doesn\'t offer any great benefit in
    terms of reliability and security. -Bill Gates

  7. #7
    Senior Member
    Join Date
    May 2002
    Posts
    256
    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.

  8. #8
    Elite Hacker
    Join Date
    Mar 2003
    Posts
    1,407
    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

  9. #9
    Senior Member
    Join Date
    Oct 2003
    Posts
    111
    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.

  10. #10
    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
  •