+ Konuyu Cevapla
Toplam 3 sonuçtan 1 ile 3 arasındakiler gösteriliyor.

Konu: free SMS sender

      
  1. #1
    Forum Lvl 150
    codest - ait Kullanıcı Resmi (Avatar)
    Üyelik Tarihi
    13.02.2008
    Bulunduğu yer
    Ankara
    Mesajlar
    114

    Standart free SMS sender

    internette bulduğum bedava SMS gateway'i kullanarak can sıkıntısından yazdım aslında, web üzerinden çalışıyordu fakat her nedense 3-4 atılan sms'ten 1'i iletiliyordu, sorunsuz çalışıyor şu an..


    kodlar:

    SMS için 1. buffer

    Kod:
    char peer0_0[] = {
    0x50, 0x4f, 0x53, 0x54, 0x20, 0x2f, 0x77, 0x6f, 
    0x72, 0x6c, 0x64, 0x77, 0x69, 0x64, 0x65, 0x2f, 
    0x73, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x72, 0x65, 
    0x65, 0x5f, 0x73, 0x6d, 0x73, 0x5f, 0x74, 0x6f, 
    0x5f, 0x74, 0x75, 0x72, 0x6b, 0x65, 0x79, 0x2f, 
    0x73, 0x6d, 0x73, 0x2f, 0x75, 0x73, 0x73, 0x6d, 
    0x73, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2e, 
    0x70, 0x68, 0x70, 0x20, 0x48, 0x54, 0x54, 0x50, 
    0x2f, 0x31, 0x2e, 0x31, 0x0d, 0x0a, 0x48, 0x6f, 
    0x73, 0x74, 0x3a, 0x20, 0x77, 0x77, 0x77, 0x2e, 
    0x66, 0x72, 0x65, 0x65, 0x73, 0x6d, 0x73, 0x63, 
    0x72, 0x61, 0x7a, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 
    0x0d, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 
    0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x6b, 0x65, 
    0x65, 0x70, 0x2d, 0x61, 0x6c, 0x69, 0x76, 0x65, 
    0x0d, 0x0a, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 
    0x72, 0x3a, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 
    0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x66, 0x72, 
    0x65, 0x65, 0x73, 0x6d, 0x73, 0x63, 0x72, 0x61, 
    0x7a, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 
    0x6f, 0x72, 0x6c, 0x64, 0x77, 0x69, 0x64, 0x65, 
    0x2f, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x66, 0x72, 
    0x65, 0x65, 0x5f, 0x73, 0x6d, 0x73, 0x5f, 0x74, 
    0x6f, 0x5f, 0x74, 0x75, 0x72, 0x6b, 0x65, 0x79, 
    0x2f, 0x73, 0x6d, 0x73, 0x2f, 0x73, 0x75, 0x63, 
    0x63, 0x65, 0x73, 0x73, 0x5f, 0x75, 0x73, 0x2e, 
    0x70, 0x68, 0x70, 0x0d, 0x0a, 0x43, 0x6f, 0x6e, 
    0x74, 0x65, 0x6e, 0x74, 0x2d, 0x4c, 0x65, 0x6e, 
    0x67, 0x74, 0x68, 0x3a, 0x20, 
    
    0x32, 0x35, 0x30, //content length [örnek: 31 37 30]
    
    0x0d, 0x0a, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2d, 
    0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3a, 
    0x20, 0x6d, 0x61, 0x78, 0x2d, 0x61, 0x67, 0x65, 
    0x3d, 0x30, 0x0d, 0x0a, 0x4f, 0x72, 0x69, 0x67, 
    0x69, 0x6e, 0x3a, 0x20, 0x68, 0x74, 0x74, 0x70, 
    0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x66, 
    0x72, 0x65, 0x65, 0x73, 0x6d, 0x73, 0x63, 0x72, 
    0x61, 0x7a, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x0d, 
    0x0a, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x67, 
    0x65, 0x6e, 0x74, 0x3a, 0x20, 0x4d, 0x6f, 0x7a, 
    0x69, 0x6c, 0x6c, 0x61, 0x2f, 0x35, 0x2e, 0x30, 
    0x20, 0x28, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 
    0x73, 0x20, 0x4e, 0x54, 0x20, 0x36, 0x2e, 0x31, 
    0x3b, 0x20, 0x57, 0x4f, 0x57, 0x36, 0x34, 0x29, 
    0x20, 0x41, 0x70, 0x70, 0x6c, 0x65, 0x57, 0x65, 
    0x62, 0x4b, 0x69, 0x74, 0x2f, 0x35, 0x33, 0x35, 
    0x2e, 0x31, 0x20, 0x28, 0x4b, 0x48, 0x54, 0x4d, 
    0x4c, 0x2c, 0x20, 0x6c, 0x69, 0x6b, 0x65, 0x20, 
    0x47, 0x65, 0x63, 0x6b, 0x6f, 0x29, 0x20, 0x43, 
    0x68, 0x72, 0x6f, 0x6d, 0x65, 0x2f, 0x31, 0x33, 
    0x2e, 0x30, 0x2e, 0x37, 0x38, 0x32, 0x2e, 0x31, 
    0x31, 0x32, 0x20, 0x53, 0x61, 0x66, 0x61, 0x72, 
    0x69, 0x2f, 0x35, 0x33, 0x35, 0x2e, 0x31, 0x0d, 
    0x0a, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 
    0x2d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x61, 
    0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 
    0x6f, 0x6e, 0x2f, 0x78, 0x2d, 0x77, 0x77, 0x77, 
    0x2d, 0x66, 0x6f, 0x72, 0x6d, 0x2d, 0x75, 0x72, 
    0x6c, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 
    0x0d, 0x0a, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 
    0x3a, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 
    0x74, 0x6d, 0x6c, 0x2c, 0x61, 0x70, 0x70, 0x6c, 
    0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 
    0x78, 0x68, 0x74, 0x6d, 0x6c, 0x2b, 0x78, 0x6d, 
    0x6c, 0x2c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 
    0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x78, 0x6d, 
    0x6c, 0x3b, 0x71, 0x3d, 0x30, 0x2e, 0x39, 0x2c, 
    0x2a, 0x2f, 0x2a, 0x3b, 0x71, 0x3d, 0x30, 0x2e, 
    0x38, 0x0d, 0x0a, 0x41, 0x63, 0x63, 0x65, 0x70, 
    0x74, 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 
    0x6e, 0x67, 0x3a, 0x20, 0x67, 0x7a, 0x69, 0x70, 
    0x2c, 0x64, 0x65, 0x66, 0x6c, 0x61, 0x74, 0x65, 
    0x2c, 0x73, 0x64, 0x63, 0x68, 0x0d, 0x0a, 0x41, 
    0x63, 0x63, 0x65, 0x70, 0x74, 0x2d, 0x4c, 0x61, 
    0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 
    0x74, 0x72, 0x2d, 0x54, 0x52, 0x2c, 0x74, 0x72, 
    0x3b, 0x71, 0x3d, 0x30, 0x2e, 0x38, 0x2c, 0x65, 
    0x6e, 0x2d, 0x55, 0x53, 0x3b, 0x71, 0x3d, 0x30, 
    0x2e, 0x36, 0x2c, 0x65, 0x6e, 0x3b, 0x71, 0x3d, 
    0x30, 0x2e, 0x34, 0x0d, 0x0a, 0x41, 0x63, 0x63, 
    0x65, 0x70, 0x74, 0x2d, 0x43, 0x68, 0x61, 0x72, 
    0x73, 0x65, 0x74, 0x3a, 0x20, 0x49, 0x53, 0x4f, 
    0x2d, 0x38, 0x38, 0x35, 0x39, 0x2d, 0x39, 0x2c, 
    0x75, 0x74, 0x66, 0x2d, 0x38, 0x3b, 0x71, 0x3d, 
    0x30, 0x2e, 0x37, 0x2c, 0x2a, 0x3b, 0x71, 0x3d, 
    0x30, 0x2e, 0x33, 0x0d, 0x0a, 0x43, 0x6f, 0x6f, 
    0x6b, 0x69, 0x65, 0x3a, 0x20, 0x62, 0x73, 0x61, 
    0x75, 0x3d, 0x31, 0x33, 0x31, 0x33, 0x38, 0x38, 
    0x33, 0x36, 0x39, 0x32, 0x30, 0x35, 0x36, 0x36, 
    0x34, 0x34, 0x36, 0x33, 0x39, 0x34, 0x3b, 0x20, 
    0x50, 0x48, 0x50, 0x53, 0x45, 0x53, 0x53, 0x49, 
    0x44, 0x3d, 0x6d, 0x38, 0x76, 0x70, 0x65, 0x35, 
    0x74, 0x6f, 0x69, 0x36, 0x34, 0x39, 0x62, 0x31, 
    0x39, 0x72, 0x6a, 0x71, 0x67, 0x76, 0x31, 0x38, 
    0x64, 0x31, 0x30, 0x36, 0x3b, 0x20, 0x5f, 0x5f, 
    0x75, 0x74, 0x6d, 0x61, 0x3d, 0x32, 0x33, 0x33, 
    0x36, 0x34, 0x30, 0x37, 0x37, 0x2e, 0x31, 0x39, 
    0x38, 0x36, 0x32, 0x33, 0x37, 0x31, 0x34, 0x33, 
    0x2e, 0x31, 0x33, 0x31, 0x33, 0x38, 0x38, 0x32, 
    0x33, 0x37, 0x33, 0x2e, 0x31, 0x33, 0x31, 0x33, 
    0x38, 0x38, 0x39, 0x36, 0x35, 0x36, 0x2e, 0x31, 
    0x33, 0x31, 0x33, 0x38, 0x39, 0x35, 0x39, 0x35, 
    0x33, 0x2e, 0x33, 0x3b, 0x20, 0x5f, 0x5f, 0x75, 
    0x74, 0x6d, 0x62, 0x3d, 0x32, 0x33, 0x33, 0x36, 
    0x34, 0x30, 0x37, 0x37, 0x2e, 0x31, 0x31, 0x2e, 
    0x31, 0x30, 0x2e, 0x31, 0x33, 0x31, 0x33, 0x38, 
    0x39, 0x34, 0x38, 0x36, 0x34, 0x3b, 0x20, 0x5f, 
    0x5f, 0x75, 0x74, 0x6d, 0x63, 0x3d, 0x32, 0x33, 
    0x33, 0x36, 0x34, 0x30, 0x37, 0x37, 0x3b, 0x20, 
    0x5f, 0x5f, 0x75, 0x74, 0x6d, 0x7a, 0x3d, 0x32, 
    0x33, 0x33, 0x36, 0x34, 0x30, 0x37, 0x37, 0x2e, 
    0x31, 0x33, 0x31, 0x33, 0x38, 0x38, 0x32, 0x33, 
    0x37, 0x34, 0x2e, 0x31, 0x2e, 0x31, 0x2e, 0x75, 
    0x74, 0x6d, 0x63, 0x73, 0x72, 0x3d, 0x28, 0x64, 
    0x69, 0x72, 0x65, 0x63, 0x74, 0x29, 0x7c, 0x75, 
    0x74, 0x6d, 0x63, 0x63, 0x6e, 0x3d, 0x28, 0x64, 
    0x69, 0x72, 0x65, 0x63, 0x74, 0x29, 0x7c, 0x75, 
    0x74, 0x6d, 0x63, 0x6d, 0x64, 0x3d, 0x28, 0x6e, 
    0x6f, 0x6e, 0x65, 0x29, 0x0d, 0x0a, 0x0d, 0x0a };
    KODLAR
    Kod:
    #include <WinSock2.h>
    #pragma comment(lib, "ws2_32.lib")
    #include <Windows.h>
    #include <stdio.h>
    #include <conio.h>
    
    typedef struct SMS_PAKET {
    	char *gateway_ip;
    	unsigned short port;
    	char telefon_no[0x10];
    	char mesaj_paket[0x6E]; //110 hane
    	unsigned short socket_time;
    }SMS_V;
    
    
    char*peer0_1 = "2F6BCC8=&8465F9BD=%2B90&C59A535=";
    
    char *peer0_2 = "&BDB49CB=";
    char *peer0_3 = "&B1=Send+SMS&reff=http%3A%2F%2Fwww.freesmscraze.com%2Fworldwide%2Fsend_free_sms_to_turkey%2Fsms%2Fsuccess_us.php";
    
    
    char *paket_olustur(SMS_V *sms_paket, SIZE_T paket_boyut) {
    	char *gonderilecek_paket; 
    	gonderilecek_paket = (char *)VirtualAlloc(0, paket_boyut, 
    											  MEM_COMMIT, PAGE_READWRITE);
    
    	strcpy(gonderilecek_paket, peer0_1);
    	strcat(gonderilecek_paket, sms_paket->telefon_no);
    	strcat(gonderilecek_paket, peer0_2);
    	strcat(gonderilecek_paket, sms_paket->mesaj_paket);
    	strcat(gonderilecek_paket, peer0_3);	
    	return (char *)gonderilecek_paket;
    }
    
    void SMS_GONDER(LPVOID sms_paket_) {
    
    	SMS_PAKET *sms_paket = (SMS_PAKET *)sms_paket_;
    	WSADATA wsdata;
    	WORD wsver = MAKEWORD(2,0);
    	int nret = WSAStartup(wsver, &wsdata);
    	if(nret !=NULL) {
    		MessageBoxA(0, "nret error", 0, 0);
    		WSACleanup(); TerminateProcess(GetCurrentProcess(), 0);
    	}
    
    	SOCKET kSock = socket(AF_INET, SOCK_STREAM, 0);
    	if(kSock == INVALID_SOCKET) {
    		MessageBoxA(0, "socket error", 0, 0);
    		WSACleanup(); closesocket(kSock); TerminateProcess(GetCurrentProcess(), 0);
    	}
    
    	sockaddr_in sin;
    	sin.sin_addr.s_addr=inet_addr(sms_paket->gateway_ip);
    	sin.sin_port=htons(sms_paket->port);
    	sin.sin_family=AF_INET;
    
    
    	if(connect(kSock, (sockaddr *)&sin, sizeof(sin)) !=0) {
    		WSACleanup();
    		MessageBoxA(0, "connect error", 0, 0); 
    		closesocket(kSock); TerminateProcess(GetCurrentProcess(), 0);
    	}
    
    
    	BYTE onerilmeyen_karakter[] = {'$', '!', ':', '(', ')', ',', '.', '^', '"'};
    	for(size_t s = 0; s < strlen(sms_paket->mesaj_paket); s++) {
    		for(short i=0; i< sizeof(onerilmeyen_karakter); i++) {
    			if(sms_paket->mesaj_paket[s] == onerilmeyen_karakter[i]) {
    				MessageBoxA(0, "Önerilmeyen karakter ve türkçe harf kullanmak yasaktır [$, !, ?, :, (, ), ü, ö, ş] vb", 0, 0); 
    				TerminateProcess(GetCurrentProcess(), 0); } //uygulamayı kapat
    		}
    	} 
    
    
    	char *gonderilecek_paket = paket_olustur(sms_paket, 
    	sizeof(peer0_1) + sizeof(sms_paket->telefon_no) + sizeof(peer0_2) + sizeof(sms_paket->mesaj_paket) + sizeof(peer0_3)); //adresi gönder
    	
    	send(kSock, peer0_0, sizeof(peer0_0), 0);
    
    	send(kSock, gonderilecek_paket, strlen(gonderilecek_paket), 0);
    	VirtualFree(gonderilecek_paket, strlen(gonderilecek_paket), MEM_DECOMMIT); //hafızayı serbest bırak..
    	Sleep(sms_paket->socket_time); closesocket(kSock); //socketi kapat
    }
    
    int main ( void ) {
    	SetConsoleTitleA("\nFREE SMS - ## PROGRAMMED BY CODEST ##"); //konsol title değiştir
    	SMS_PAKET sms_paket;
    	sms_paket.gateway_ip = "204.197.244.59";
    	sms_paket.port = 80;
    	sms_paket.socket_time = 0x500;
    
    while(1) {
    	
    	HANDLE hConsole;
    	hConsole = GetStdHandle (STD_OUTPUT_HANDLE);
    
    	SetConsoleTextAttribute
    				(hConsole, FOREGROUND_INTENSITY | FOREGROUND_INTENSITY);
    	printf("GATEWAY IP:%s (tum operatorler icin gecerli)\n", sms_paket.gateway_ip);
    	printf("telefon numarasini giriniz[+90]:"); 
    	SetConsoleTextAttribute
    	(hConsole, FOREGROUND_RED | FOREGROUND_INTENSITY);
    	gets(sms_paket.telefon_no);
    
    	bool durum_kir = false;
    	for(size_t s = 0; s < strlen(sms_paket.telefon_no); s++) {
    		for(BYTE t = 0x30; t < 0x39; t++)
    			if((BYTE)sms_paket.telefon_no[s]==t) {
    				durum_kir = true;
    			}
    		if(durum_kir == false) {
    			MessageBoxA(0, "sayi icerikli karakter giriniz!", 0, 0); break; }
    		durum_kir = false;
    	} 
    
    	SetConsoleTextAttribute
    	(hConsole, FOREGROUND_GREEN | FOREGROUND_INTENSITY);
    		printf("\n\nconnect ok.. gateway ile baglanti saglandi\n");
    		printf("(turkce karakter haric)mesaj giriniz ::>"); 
    			SetConsoleTextAttribute
    			(hConsole, FOREGROUND_BLUE | FOREGROUND_INTENSITY);
    			gets(sms_paket.mesaj_paket);
    
    	DWORD thread_id;
    	HANDLE t_handle = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)SMS_GONDER, (LPVOID)&sms_paket, 0, &thread_id);
    	CloseHandle(t_handle);
    	printf("\n\n\n\n << MESAJ GONDERILDI >>\n");
      }
    }
    DOWNLOAD: http://hotfile.com/dl/127453945/efef313/Debug.rar
    Konu codest tarafından (21-08-2011 Saat 09:06 PM ) değiştirilmiştir.

  2. #2

    Standart Cevap: free SMS sender

    c goruyuno hayla c kullanan kaldımı ya (gelişmedigi için diorum)

    ülke farkediyomu tr dısı ici filan

  3. #3
    Forum Lvl 150
    codest - ait Kullanıcı Resmi (Avatar)
    Üyelik Tarihi
    13.02.2008
    Bulunduğu yer
    Ankara
    Mesajlar
    114

    Standart Cevap: free SMS sender

    Alıntı besimbicer Nickli Üyeden Alıntı Mesajı göster
    c goruyuno hayla c kullanan kaldımı ya (gelişmedigi için diorum)

    ülke farkediyomu tr dısı ici filan
    http://www.onlineoyun.gen.tr/threads...free-SMS-beta3 beta3'ü çıkardım dostum burdan yak bi zahmet tekrar sorarsan burdan cevaplayım, bunu hortlatmıyalım

+ Konuyu Cevapla

Benzer Konular

  1. Çalışan Free Bot Varmı..?
    Konuyu Açan: Cyrus, Forum: SRO Diğer Konular.
    Cevap: 0
    Son Mesaj : 24-12-2010, 06:20 PM
  2. Free ReaLms - Jobs [MesLekLeR]
    Konuyu Açan: ScofieLd, Forum: Free Realms.
    Cevap: 1
    Son Mesaj : 02-08-2009, 09:37 AM
  3. Free Realms Nedir?
    Konuyu Açan: ScofieLd, Forum: Free Realms.
    Cevap: 2
    Son Mesaj : 29-07-2009, 10:03 PM
  4. Free Realms - Mağaralar
    Konuyu Açan: Minarytha, Forum: Free Realms.
    Cevap: 0
    Son Mesaj : 29-07-2009, 09:52 PM
  5. 9DragonS free MMORPG
    Konuyu Açan: Haberci, Forum: Resimler ve Videolar.
    Cevap: 0
    Son Mesaj : 28-07-2009, 04:44 AM

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Mesaj Yazma Yetkiniz Var
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  
Refleksoloji