Results 1 to 3 of 3

Thread: Compiling problems

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Nov 2009
    Posts
    1

    Default Compiling problems

    I'm trying to compile some of the milw0rm exploits on bt4 and getting a lot of errors, I'm assuming I'm missing libraries, is this the case if so what libraries do I need to compile the .c files or is there something else I'm missing? Here is the output I'm getting:

    3094.c:19:24: error: sys/agpio.h: No such file or directory
    3094.c: In function âusageâ:
    3094.c:50: warning: incompatible implicit declaration of built-in function âprintfâ
    3094.c: At top level:
    3094.c:57: warning: âstruct kinfo_procâ declared inside parameter list
    3094.c:57: warning: its scope is only this definition or declaration, which is probably not what you want
    3094.c: In function âget_procâ:
    3094.c:62: error: âKERN_PROCâ undeclared (first use in this function)
    3094.c:62: error: (Each undeclared identifier is reported only once
    3094.c:62: error: for each function it appears in.)
    3094.c:63: error: âKERN_PROC_PIDâ undeclared (first use in this function)
    3094.c:65: error: invalid application of âsizeofâ to incomplete type âstruct kinfo_procâ
    3094.c:68: warning: incompatible implicit declaration of built-in function âprintfâ
    3094.c: In function âmainâ:
    3094.c:79: error: storage size of âkpâ isnât known
    3094.c:81: warning: incompatible implicit declaration of built-in function âprintfâ
    3094.c:118: warning: format â%xâ expects type âunsigned intâ, but argument 2 has type âvoid *â
    3094.c:120: error: âAGP_DEVICEâ undeclared (first use in this function)

    I'm relatively new to all this so don't be to harsh the command I'm running is gcc 3094.c -o 3094

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Re-read the rules that you agreed to when you signed up. Furthermore it is your job to post in the correct section of the forums the freakin how to section and or bug's and fixes section is not for your questions on how to do basic linux compilation. Furthermore Do not create more than one post on the same topic!
    I would suggest a long look at google and the search function here. It at the top of every page.
    Also welcome to the forums.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Developer
    Join Date
    Mar 2007
    Posts
    6,126

    Default

    many of the C exploits on milw0rm are made to compile on Windows. Also many of the exploits on Milw0rm have a flaw in the coding which makes the exploit fail and needs to be fixed. This is what many exploit coders do to prevent misuse of public exploits. The theory is that is you are using exploits you should know enough code to fix it which in my opinion is a fantastic philosophy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •