görsel arayüz güçlendirildi, bir kaç hata vardı onuda fixledim, mesaj %80 gidiyor fakat gateway'den kaynaklanan düşük bir ihtimal gitmeme oranıda var..
SMS BUFFER 1
winsock fonksiyonları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, 0x33, 0x35, 0x30, //content length [orjinal: 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 };
main GUIKod:HANDLE main_thread, hConsole; 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) { fprintf(stderr, "%s", "nret error!! [SMS CLIENT]"); MessageBoxA(0, "nret error", 0, 0); WSACleanup(); TerminateProcess(GetCurrentProcess(), 0); } //host ismini aktar.. gethostname((char *)sms_paket->host_ismi, sizeof(sms_paket->host_ismi)); 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); }else printf("\nconnect ok.. gateway ile baglanti saglandi (%s)\n", sms_paket->host_ismi); 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]) { SuspendThread(main_thread); //thread durdur.. 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); printf("paket gonderildi (%d byte)\n", sizeof(peer0_0) + strlen(gonderilecek_paket)); VirtualFree(gonderilecek_paket, strlen(gonderilecek_paket), MEM_DECOMMIT); //hafızayı serbest bırak.. Sleep(sms_paket->socket_time); closesocket(kSock); //socketi kapat } DWORD WINAPI secim_baslat() { WIN32_MAIN_GUI(); //GUI'yi aç return 0; } 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; DWORD thread_id, thread_id2; HANDLE h_thread = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)secim_baslat, 0, 0, &thread_id2); Sleep(3000); hConsole = GetStdHandle (STD_OUTPUT_HANDLE); SetConsoleTextAttribute (hConsole, FOREGROUND_INTENSITY | FOREGROUND_INTENSITY); printf("GATEWAY IP:%s (tum operatorler icin gecerli)\n", sms_paket.gateway_ip); WaitForSingleObject(h_thread, INFINITE); //thread sonlanana kadar bekle.. }
DOWNLOAD: http://www.0x66.org/FREE_SMS.rarKod:#include <stdio.h> #include <windows.h> #define CR1 0x0005 #define EDIT_TEL 0x0006 #define EDIT_MSJ 0x0007 #define MAX_BUFFER 0x100 typedef struct SMS_PAKET { char *gateway_ip; unsigned short port; char telefon_no[0x10]; char mesaj_paket[0x6E]; //110 hane unsigned char host_ismi[0x1E]; unsigned short socket_time; }SMS_V; extern void SMS_GONDER(LPVOID sms_paket_); HWND hEdit_telefon, hEdit_mesaj; extern HANDLE hConsole; void paket_kontrol(LPCSTR paket) { bool durum_kir = false; for(size_t s = 0; s < strlen(paket); s++) { for(BYTE t = 0x30; t < 0x39; t++) if((BYTE)paket[s]==t) { durum_kir = true; } if(durum_kir == false) { MessageBoxA(0, "sayi icerikli karakter giriniz!", 0, 0); TerminateProcess(GetCurrentProcess(), 0); break; } durum_kir = false; } } DWORD thread_id; LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; char data[64]; HDC hdc; PAINTSTRUCT ps; LPSTR szMessage[2] = {"Telefon no (+90)", "SMS mesaj gir:"}; switch (message) { case WM_CREATE: break; case WM_COMMAND: if(wParam == CR1) { SMS_PAKET sms_v; GetWindowTextA(hEdit_telefon, sms_v.telefon_no, sizeof(sms_v.telefon_no)); GetWindowTextA(hEdit_mesaj, sms_v.mesaj_paket, sizeof(sms_v.mesaj_paket)); paket_kontrol(sms_v.telefon_no); //paketi kontrol et.. sms_v.gateway_ip = "204.197.244.59"; sms_v.port = 80; sms_v.socket_time = 0x500; SetConsoleTextAttribute (hConsole, FOREGROUND_RED | FOREGROUND_INTENSITY); SMS_GONDER((LPVOID)&sms_v); //sms gönder printf("\n<< MESAJ GONDERILDI >>"); SetConsoleTextAttribute (hConsole, FOREGROUND_GREEN| FOREGROUND_INTENSITY); printf("\t (%s, %s)", sms_v.mesaj_paket, sms_v.telefon_no); } break; case WM_DESTROY: PostQuitMessage(0); break; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); TextOut(hdc, 10, 10, szMessage[0], strlen(szMessage[0])); TextOut(hdc, 10, 40, szMessage[1], strlen(szMessage[1])); EndPaint(hWnd, &ps); break; case WM_CLOSE: break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } DWORD WINAPI WIN32_MAIN_GUI() { HINSTANCE hInstance; hInstance = GetModuleHandle(0); WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = 0; wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(16); wcex.lpszMenuName = 0; wcex.lpszClassName = "DLL"; wcex.hIconSm = 0; RegisterClassEx(&wcex); HWND hWnd = CreateWindowEx(WS_EX_TOPMOST, "DLL", "FREE SMS GUI (By CODEST)", WS_OVERLAPPED | WS_SYSMENU | WS_MINIMIZEBOX, CW_USEDEFAULT, 0, 290, 190, NULL, NULL, hInstance, NULL); HWND hButtonCrP = CreateWindowEx ( 0, "BUTTON", "<< YOLLA >>", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 9, 100, 100, 20, hWnd, (HMENU)CR1, NULL, 0); hEdit_telefon = CreateWindowEx( NULL, "Edit", 0, WS_BORDER | WS_CHILD | WS_VISIBLE, 120, 10, 100, 20, hWnd, (HMENU)EDIT_TEL, hInstance, NULL); //EDIT olustur hEdit_mesaj = CreateWindowEx( NULL, "Edit", 0, WS_BORDER | WS_CHILD | WS_VISIBLE | SS_BLACKRECT, 120, 40, 150, 100, hWnd, (HMENU)EDIT_MSJ, hInstance, NULL); //EDIT olustur ShowWindow(hWnd, SW_SHOW); UpdateWindow(hWnd); MSG msg; while(GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0; }
ALTERNATIF: http://hotfile.com/dl/127755080/9ee8...S_(7).rar.html








Alıntı





