Forums: Apache-slasher.c - Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Apache-slasher.c working win32 apache exploit ?

#16 User is offline   320X 

  • Master Sergeant
  • Icon
  • Group: Members
  • Posts: 473
  • Joined: 13-December 03

Post icon  Posted 14 December 2003 - 07:29 AM

use vc++ to compile it you dont need to add any lib in the linker
0

#17 User is offline   Train25 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 82
  • Joined: 30-November 03

Posted 14 December 2003 - 02:43 PM

dont know if its just the code or lack of sleep but i tried compiling it in cgywin and this is the error i got...

$ gcc -o apache apache.c
In file included from apache.c:28:
/usr/include/stdlib.h:201: error: syntax error before "__strto
/usr/include/stdlib.h:474: error: syntax error before "malloc"
/usr/include/stdlib.h:476: error: syntax error before "calloc"
/usr/include/stdlib.h:482: error: syntax error before "realloc
/usr/include/stdlib.h:482: error: syntax error before "__ptr"
/usr/include/stdlib.h:484: error: syntax error before "__ptr"
/usr/include/stdlib.h:603: error: syntax error before "__PMT"
/usr/include/stdlib.h:612: error: syntax error before "bsearch
/usr/include/stdlib.h:618: error: syntax error before "__PMT"


Can someone lead me in the right direction here on what i am missing?

-----------------------------------------
EDIT

My lib was screwed ... all is good now
0

#18 User is offline   ismael86 

  • Private
  • Icon
  • Group: Members
  • Posts: 3
  • Joined: 04-January 04

Posted 04 January 2004 - 05:30 AM

I compiled it on Linux(GCC). It compiled fine. Now it try the exploit but it does not work?
Apache 1.3.x (Win32) Chunked Encoding Exploit
By Matthew Murphy (mattmurphy@kc.rr.com) and
Steven Fruchter (steven_fruchter@hotmail.com)

Target hostname: 192.168.1.5
Target port: 80
Use brute-force mode [Y/N]: y
Request filename: /news/index.html
connect() failed

It runs on Apache/1.3.22
0

#19 User is offline   nowhere 

  • Specialist
  • Icon
  • Group: Specialist
  • Posts: 131
  • Joined: 11-August 03

Posted 12 January 2004 - 06:39 AM

can anyone help me?

i try to compile it with cygwin, but i get many errors

$ gcc Apache-Slasher.c -o slasher
Apache-Slasher.c:1: error: syntax error before '-' token
Apache-Slasher.c:2:10: too many decimal points in number
Apache-Slasher.c:2:16: too many decimal points in number
Apache-Slasher.c:4:38: too many decimal points in number
Apache-Slasher.c:13:9: warning: multi-character character constant
Apache-Slasher.c:16: warning: integer constant is too large for "long" type
Apache-Slasher.c:18:27: missing terminating ' character
Apache-Slasher.c:18:27: warning: character constant too long for its type
Apache-Slasher.c:41:31: too many decimal points in number
Apache-Slasher.c:63:24: missing terminating ' character
Apache-Slasher.c:63:24: warning: character constant too long for its type
Apache-Slasher.c:86:5: missing terminating ' character
Apache-Slasher.c:90:12: missing terminating ' character
Apache-Slasher.c:90:12: warning: character constant too long for its type
Apache-Slasher.c:91:3: missing terminating " character
Apache-Slasher.c:92:69: missing terminating ' character
Apache-Slasher.c:93:21: missing terminating " character
Apache-Slasher.c:95:3: missing terminating " character
Apache-Slasher.c:97:27: missing terminating " character
Apache-Slasher.c:108: error: syntax error at '@' token
Apache-Slasher.c:113: error: syntax error at '@' token
Apache-Slasher.c:477:14: missing terminating " character
Apache-Slasher.c: In function `main':
Apache-Slasher.c:478: error: syntax error before "chunked"
Apache-Slasher.c:478: error: stray '\' in program
Apache-Slasher.c:478: error: stray '\' in program
Apache-Slasher.c:478:12: missing terminating " character
Apache-Slasher.c:527: error: `SIGTERM' undeclared (first use in this function)
Apache-Slasher.c:527: error: (Each undeclared identifier is reported only once
Apache-Slasher.c:527: error: for each function it appears in.)
Apache-Slasher.c:532:2: warning: no newline at end of file
0

#20 User is offline   the 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 30
  • Joined: 22-December 03

Posted 12 January 2004 - 07:44 AM

did any get any results using it??
greetz
0

#21 User is offline   Feanor 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 57
  • Joined: 24-December 03

Posted 22 January 2004 - 06:15 AM

got problems when compiling
--------------------Configuration: apachechunk - Win32 Debug--------------------
Compiling...
apachechunk.cpp
C:\ftp\dmcompilercpp\bin\apachechunk.cpp(168) : error C2664: 'ReadConsoleA' : cannot convert parameter 4 from 'int *' to 'unsigned long *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\ftp\dmcompilercpp\bin\apachechunk.cpp(172) : error C2664: 'ioctlsocket' : cannot convert parameter 3 from 'int *' to 'unsigned long *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\ftp\dmcompilercpp\bin\apachechunk.cpp(175) : error C2664: 'WriteConsoleA' : cannot convert parameter 4 from 'int *' to 'unsigned long *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\ftp\dmcompilercpp\bin\apachechunk.cpp(331) : error C2664: '_beginthread' : cannot convert parameter 1 from 'unsigned long (__cdecl *)(void *)' to 'void (__cdecl *)(void *)'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing cl.exe.

apachechunk.obj - 4 error(s), 0 warning(s)


more or less the same errors in VC++ ,DC++ and Digital Mars Compiler .

help from anybody?
0

#22 User is offline   Reaper527 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 131
  • Joined: 14-January 04

Posted 22 January 2004 - 01:11 PM

i was able to compile it just fine, and the program runs, haven't tested it out on a server yet.
0

#23 User is offline   Feuerstein 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 47
  • Joined: 26-August 03

Posted 03 February 2004 - 09:58 AM

i have a damn

Error: Unresolved external '__beginthread' referenced from APACHE-SLASHER.OBJ


from that f*cking Borland Turbo Incremental Link 5.00 using borland c++ 5

any ideas ?
0

#24 User is offline   Nexcess 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 154
  • Joined: 13-September 03

Posted 03 February 2004 - 07:07 PM

Feuerstein, on Feb 3 2004, 05:58 PM, said:

any ideas ?

Ignore the all for hisself cow guy because he's not a mod/admin? :)


Oh well.. thats just my idea :P
0

#25 User is offline   Feuerstein 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 47
  • Joined: 26-August 03

Posted 07 February 2004 - 02:40 PM

omg, i think i've to sleep a bit ;)

compiling with '-WM' option - enabling multitasking - works. :D
0

#26 User is offline   net_runner 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 113
  • Joined: 10-August 03

Posted 08 February 2004 - 02:29 PM

first i tried compiling as it and didnt work
then i tried konh suggestion and it worked perfectly...

it was only a new line problem? i cant see any else..

thankz axl, thankz konh
0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting