[C++] Messenger service Mailslot

Results 1 to 5 of 5
  1. #1
    Sorcerer Supreme Sprayz is offline
    Member +Rank
    Nov 2006 Join Date
    Alive : Spain | Dead : Beer Vulcano HeavenLocation
    279Posts

    [C++] Messenger service Mailslot

    I googled it and i found the messenger service works with mailslots , i tried a pretty newbie Net sender
    with this function i made, but i found i can only use it in lan to mad my class...
    Code:
    int NetSend(char * to , char * Msg ,char * From ,char * faketo)
    {
    char path[MAX_PATH];
    char Msgfinal[MAX_PATH];
    HANDLE mailslot;
    DWORD written =0;
    sprintf( &path[0], "\\\\%s\\mailslot\\messngr",to);
    mailslot= CreateFile(path, GENERIC_WRITE,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
      
      int fromlen,faketolen,msglen;
      
      fromlen=strlen(From);
      faketolen=strlen(faketo);
      msglen=strlen(Msg)+faketolen+fromlen+3;
      
      memset(&Msgfinal,0, sizeof(Msgfinal));
      strcat(Msgfinal,From);
      Msgfinal[fromlen]=0;
    
      strcat(&Msgfinal[fromlen+1],faketo);
      Msgfinal[(fromlen+faketolen+1)]=0;
      
      
      strcat(&Msgfinal[fromlen+faketolen+2],Msg);
       
      WriteFile(mailslot,Msgfinal,msglen,&written,(LPOVERLAPPED)NULL);
    
       
       
        CloseHandle(mailslot);
    
    return written;
    }
    the question is ... How can i use it over the internet? i mean i dont know what format to output to the mailslot to make it work, i tried IP and domain but it only works wih LAN aliases :(

    Thanks in advantage.and sorry for my terrible english xD

    EDIT:Sry i know its messy but im still a nub :)
    EDIT2: the format is a formated char array(String) with the fields separated by null chars(0)

    "from"-NULL-"Faketo"-NULL-"Msg"
    Last edited by Sprayz; 23-12-06 at 12:19 PM.


  2. #2
    Grand Master username1 is offline
    Grand MasterRank
    Jul 2004 Join Date
    5,867Posts
    I think it works only over the LAN.

    Messenger service spammers over the Internet create the packets themselves and send them to broadcast addresses.

  3. #3
    Grand Master FragFrog is offline
    Grand MasterRank
    Aug 2004 Join Date
    The NetherlandsLocation
    5,629Posts
    It won't work over the internet, not ever. Only as Ytys said, if you are able to reverse engineer the packets and send them to adresses you specify will it work, not using the default messenger service.

  4. #4
    Grand Master username1 is offline
    Grand MasterRank
    Jul 2004 Join Date
    5,867Posts
    The packet format is very simple...

    I'm surprised those commercial advert bastards are actually selling programs to do this: http://www.ip-messenger.com

    Another example: http://www.wonderblaster.com
    It uses Net Send Technology that allows your ads to popup directly on the computer screens of millions of users worldwide.
    I literally ROFL'd for quite a few minutes.

    Edit: On http://www.wonderblaster.com/faq.html , it actually tells you how to block the messages
    Last edited by username1; 24-12-06 at 05:04 AM.

  5. #5
    Sorcerer Supreme Sprayz is offline
    Member +Rank
    Nov 2006 Join Date
    Alive : Spain | Dead : Beer Vulcano HeavenLocation
    279Posts
    LOL "Annoy thousands of ppl with our wonderful, cheap and bastard program" XDDDDD

    well, i gonna have to study hard for this 1 :D

    thx for those enlighting answers :)



Advertisement