Help!! Compiler Troubles!!!
Results 1 to 3 of 3

Thread: Help!! Compiler Troubles!!!

Threaded View

  1. #1
    Senior Member wolfman1984's Avatar
    Join Date
    Aug 2007
    Location
    fangtastic.org
    Posts
    191

    Help!! Compiler Troubles!!!

    Ok. For those of you cool cats playing the hax.tor.hu hacker challenge, some of you may recognize this code. For those of you who are past this challenge, you will probably laugh at how newbish this questions is going to be.

    The Wolfman needs your help trying to compile the following C program in windows:

    I have followed the instructions in the comments, more specifically this:
    Code:
    // To compile: cl.exe /DWIN32 /DHAVE_REMOTE crack-mssql.c /link wpcap.lib 
    wsock32.lib
    //You need a Windows C Compiler, I use MS Visual C++ Toolkit 2003
    //You must have Microsoft Platform SDK and WinPCap Libraries installed.
    When I compile, I receive the following errors:

    Code:
    C:\PROGRA~1\MIA4C6~1\bin>cl.exe /DWIN32 /DHAVE_REMOT crack-mssql.c /link wpcap.lib
    
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
    Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
    
    
    crack-mssql.c
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(1) : error C2059: syntax error : 'constant'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(38) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(39) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(41) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(42) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(42) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(43) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(44) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(46) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(48) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(50) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(51) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(52) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(53) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(53) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(56) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(59) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(59) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(60) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(74) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(75) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(78) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(79) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(84) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(85) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(86) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(88) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(91) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(92) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(99) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(101) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(109) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(110) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(110) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(113) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(114) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(116) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(118) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(119) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(120) : error C2041: illegal digit '9' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(120) : error C2059: syntax error : 'constant'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(120) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(121) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(122) : error C2041: illegal digit '8' for base '8'
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(122) : error C2014: preprocessor command must start as first nonwhite space
    c:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\pcap.h(123) : error C2041: illegal digit '8' for base '8'
    crack-mssql.c(14) : error C2061: syntax error : identifier 'u_char'
    crack-mssql.c(15) : error C2059: syntax error : 'constant'
    crack-mssql.c(17) : error C2061: syntax error : identifier 'tlen'
    crack-mssql.c(17) : error C2059: syntax error : ';'
    crack-mssql.c(18) : error C2061: syntax error : identifier 'identification'
    crack-mssql.c(18) : error C2059: syntax error : ';'
    crack-mssql.c(19) : error C2061: syntax error : identifier 'flags_fo'
    crack-mssql.c(19) : error C2059: syntax error : ';'
    crack-mssql.c(20) : error C2061: syntax error : identifier 'ttl'
    crack-mssql.c(20) : error C2059: syntax error : ';'
    crack-mssql.c(21) : error C2061: syntax error : identifier 'proto'
    crack-mssql.c(21) : error C2059: syntax error : ';'
    crack-mssql.c(22) : error C2061: syntax error : identifier 'crc'
    crack-mssql.c(22) : error C2059: syntax error : ';'
    crack-mssql.c(23) : error C2061: syntax error : identifier 'saddr'
    crack-mssql.c(23) : error C2059: syntax error : ';'
    crack-mssql.c(24) : error C2061: syntax error : identifier 'daddr'
    crack-mssql.c(24) : error C2059: syntax error : ';'
    crack-mssql.c(25) : error C2061: syntax error : identifier 'op_pad'
    crack-mssql.c(25) : error C2059: syntax error : ';'
    crack-mssql.c(26) : error C2059: syntax error : '}'
    crack-mssql.c(30) : error C2061: syntax error : identifier 'u_short'
    crack-mssql.c(31) : error C2061: syntax error : identifier 'dport'
    crack-mssql.c(31) : error C2059: syntax error : ';'
    crack-mssql.c(32) : error C2061: syntax error : identifier 'len'
    crack-mssql.c(32) : error C2059: syntax error : ';'
    crack-mssql.c(33) : error C2061: syntax error : identifier 'crc'
    crack-mssql.c(33) : error C2059: syntax error : ';'
    crack-mssql.c(34) : error C2059: syntax error : '}'
    crack-mssql.c(37) : error C2061: syntax error : identifier 'u_char'
    crack-mssql.c(38) : error C2061: syntax error : identifier 'byte2'
    crack-mssql.c(38) : error C2059: syntax error : ';'
    crack-mssql.c(39) : error C2059: syntax error : '}'
    crack-mssql.c(42) : error C2061: syntax error : identifier 'u_char'
    crack-mssql.c(43) : error C2061: syntax error : identifier 'byte2'
    crack-mssql.c(43) : error C2059: syntax error : ';'
    crack-mssql.c(44) : error C2059: syntax error : '}'
    crack-mssql.c(47) : error C2061: syntax error : identifier 'u_char'
    crack-mssql.c(48) : error C2061: syntax error : identifier 'byte2'
    crack-mssql.c(48) : error C2059: syntax error : ';'
    crack-mssql.c(49) : error C2059: syntax error : '}'
    crack-mssql.c(52) : error C2061: syntax error : identifier 'u_char'
    crack-mssql.c(53) : error C2061: syntax error : identifier 'byte2'
    crack-mssql.c(53) : error C2059: syntax error : ';'
    crack-mssql.c(54) : error C2059: syntax error : '}'
    crack-mssql.c(56) : error C2143: syntax error : missing '{' before '*'
    crack-mssql.c(59) : error C2143: syntax error : missing ')' before '*'
    crack-mssql.c(59) : error C2143: syntax error : missing '{' before '*'
    crack-mssql.c(59) : error C2059: syntax error : 'type'
    crack-mssql.c(60) : error C2059: syntax error : ')'
    crack-mssql.c(77) : error C2065: 'pcap_if_t' : undeclared identifier
    crack-mssql.c(77) : error C2065: 'alldevs' : undeclared identifier
    crack-mssql.c(77) : warning C4552: '*' : operator has no effect; expected operator with side-effect
    crack-mssql.c(78) : error C2065: 'd' : undeclared identifier
    crack-mssql.c(78) : warning C4552: '*' : operator has no effect; expected operator with side-effect
    crack-mssql.c(79) : error C2143: syntax error : missing ';' before 'type'
    crack-mssql.c(80) : error C2143: syntax error : missing ';' before 'type'
    crack-mssql.c(80) : fatal error C1003: error count exceeds 100; stopping compilation
    I have attached both the crack-mssql.c file and my pcap.h header file.

    Any suggestions would be greatly appreciated.
    Attached Files Attached Files
    I AM... THE WOLFMAN!!
    The Wolfman's Homepage: http://www.fangtastic.org
    Do you dig the Wolfman?? Sign his Ghoulbook or listen to him Howl

Similar Threads

  1. Criminal IT: Should you trust the Internet?
    By SDK in forum Miscellaneous Security Discussions
    Replies: 4
    Last Post: January 28th, 2005, 04:54 PM
  2. Advanced C++, generic programming & STL
    By progme in forum Other Tutorials Forum
    Replies: 11
    Last Post: November 2nd, 2003, 03:43 PM
  3. Help with C++ compiler (newbie)
    By corndog420 in forum Programming Security
    Replies: 10
    Last Post: August 22nd, 2003, 04:37 AM
  4. C++ portability guide
    By tampabay420 in forum Programming Security
    Replies: 2
    Last Post: February 14th, 2003, 01:36 PM
  5. windres resource compiler
    By ele5125 in forum Programming Security
    Replies: 1
    Last Post: November 3rd, 2002, 10:29 PM

Posting Permissions

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

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides