EMO Style ForumPro - Hos Geldiniz
Giriş yap

Şifremi unuttum

Istatistikler
Toplam 203 kayıtlı kullanıcımız var
Son kaydolan kullanıcımız: posta59

Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Tarıyıcı
 Kapı
 Indeks
 Üye Listesi
 Profil
 SSS
 Arama
Arama
 
 

Sonuç :
 


Rechercher çıkıntı araştırma

RSS akısı


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 


Anahtar-kelime

pointer  

Kimler hatta?
Toplam 4 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 4 Misafir

Yok

[ Bütün listeye bak ]


Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
» İnternetten Para Kazandıran Oyun ! Ödeme Alt Limiti Yok ! DEV KONU
Cuma Ağus. 29, 2014 8:33 am tarafından Hello EMO

» goldenchase.net maden yaparak para kazanma
Cuma Ağus. 29, 2014 8:18 am tarafından Hello EMO

» etichal hacker görsel egitim seti
Çarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO

» KO TBL Source C#
Ptsi Ara. 09, 2013 6:36 am tarafından Hello EMO

» x86 Registers
C.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de WYD
Çarş. Tem. 10, 2013 7:25 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de CS Metodo²
Çarş. Tem. 10, 2013 7:23 am tarafından Hello EMO

» [Tutorial] Aprendendo basico deASM OLLYDBG
Çarş. Tem. 10, 2013 7:22 am tarafından Hello EMO

» Basic C# DLL injector
Ptsi Tem. 08, 2013 7:48 am tarafından Hello EMO

Reklam

EbenezerFix v7 kaynak kodları. (Cüceloper)

Önceki başlık Sonraki başlık Aşağa gitmek

EbenezerFix v7 kaynak kodları. (Cüceloper)

Mesaj tarafından Hello EMO Bir Salı Nis. 27, 2010 11:16 am

Kod:
// ebenezerfix.cpp: ebenezer saldiri fixleme
//

#pragma comment (lib, "Ws2_32.lib") 
#pragma comment(lib, "wsock32")
#include "stdafx.h"
#include "log.h"
#include <winbase.h>
#include <winsock2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <malloc.h>
#include <string.h>
#include <iterator>
#include <sstream>
#include <fstream>
#include <Urlmon.h>
#include <AtlBase.h>
#include <windows.h>
#include <iostream>
#include <conio.h>
#include <tlhelp32.h>
#include <tchar.h>
#include <time.h>
#include <vector>
#include <cstring>
#include <ctype.h>
#include <cstdio>
using namespace std;
typedef struct {
    const char *userip;
    SOCKET n, d;
} conn_info;
HWND MainWindowHandle = 0;
bool InitWindowApp(HINSTANCE instanceHandle, int Show);
void xconsole2(char text, char *color);
void print( char* output, int color );
void start_console();
void xconsole(const char *text,char *color)
{
    if(color == "white"){
      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
    }

    if(color == "green"){
      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_GREEN);
    }

    if(color == "red"){
      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_RED);
    }

  char consoleStringBuffer[2000];

  HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
  DWORD dwChars;     

  sprintf(consoleStringBuffer, text);

  WriteConsole(hOut, consoleStringBuffer, 

  (DWORD)strlen(consoleStringBuffer), &dwChars, NULL);

  }
void xconsole2(char text,char *color)
{
    if(color == "white"){
      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
    }

    if(color == "green"){
      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_GREEN);
    }

    if(color == "red"){
      SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_RED);
    }

  HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
  DWORD dwChars;     

  WriteConsole(hOut, (const char*)text,  1, &dwChars, NULL);

  }

void xconsole_prox(const char *text, char *color)
{
  CTime cur = CTime::GetCurrentTime();
  char *text2 = (char *)malloc(256);
  sprintf(text2," - %d:%d:%d",cur.GetHour(),cur.GetMinute(),cur.GetSecond());
  xconsole("(","white");
  xconsole("Bilgi","green");
  xconsole(text2,"white");
  xconsole("): ","white");
  xconsole(text,color);
  xconsole("\r\n","white");

}
void xconsole_attacker(const char *text, char *color)
{
  CTime cur = CTime::GetCurrentTime();
  char *text2 = (char *)malloc(256);
  sprintf(text2," - %d:%d:%d",cur.GetHour(),cur.GetMinute(),cur.GetSecond());
  xconsole("(","white");
  xconsole("Saldiri","red");
  xconsole(text2,"white");
  xconsole("): ","white");
  xconsole(text,color);
  xconsole("\r\n","white");

}
void diemfdie (const char *info,LPVOID lpThreadParameter,int banmode,int reply,int dumpmode,char *dumpetto)
{
    char *text = (char *)malloc(256);
    conn_info *pi = (conn_info*)lpThreadParameter;
    sprintf(text,"Birisi saldirmayi denedi (%s) %s!",info,pi->userip);
    xconsole_attacker(text,"red");
    sprintf(text,"%s: %s\r\n",info,pi->userip);
    write_attackerlog(text);
    if (dumpmode == 1) {
        write_dumplog(dumpetto);
    }
    if (reply == 1) {
        send(pi->n, "\nBaska kapiya baby\n",21,0);
    }
    closesocket(pi->d);
    closesocket(pi->n);
    if (banmode == 1) {
            char banit[54];
            sprintf(banit,"ipfw add 319 deny all from %s to any",pi->userip);
            system(banit);
    }

}
DWORD WINAPI reader(LPVOID lpThreadParameter)
{
    conn_info *ci = (conn_info*)lpThreadParameter;
    char buf[65536];
    int n = SOCKET_ERROR;
    int totalBytes;
    totalBytes=0;
    while ((n = recv(ci->n, buf, sizeof(buf), 0)) > 0) {
    totalBytes+=n; 
        if (n == WSAECONNRESET || n == SOCKET_ERROR) {
            char *text = (char *)malloc(256);
            sprintf(text,"Baglanti kapandi: %s\r\n",ci->userip);
            write_connectlog(text);
            closesocket(ci->n);
            closesocket(ci->d);
            return 0;
        }
        if ((n > 500) || (strlen(buf) > 500)) {
            unsigned char niyazi;
            niyazi = 0;
            char osman[256];
            int i,z;
                for (i = 0; i <= 254 ; i++)
                {
                    niyazi++;
                    for (z = 0; z <= 256 ; z++) {
                        osman[z] = niyazi;
                        if (z > 255) {
                            if (strstr(buf,osman)>0) {
                                diemfdie("KOCrash Serial",lpThreadParameter,1,0,1,buf);
                                return 0;
                                }
                            }
                    }
            }
        }
        if (strstr(buf,"ozoCozo")!=NULL) {
            diemfdie("KoServerkiller v2",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if (strstr(buf,"ko-cuce")!=NULL) {
            diemfdie("KoServerkiller v2",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if (strstr(buf,"Port Monitor")!=NULL) {
            diemfdie("KoServerkiller v2",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if (strstr(buf,"aa55FF00020055aa")!=NULL) {
            diemfdie("KoServerkiller v2.1",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if (strstr(buf,"51189241204")!=NULL) {
            diemfdie("KoServerkiller v2.1",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if ((atoi(buf) > 5000) || (strlen(buf) > 5000)) {
            diemfdie("KOCrash",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if ((n > 1300) && (totalBytes > 16000)) {
            diemfdie("Toplam paket",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if (n > 9000) {
            diemfdie("Büyük paket",lpThreadParameter,1,1,0,NULL);
            return 0;
        }
        if ((strstr(buf,"ªU")==NULL) && (strstr(buf,"Uª")==NULL)) {
            diemfdie("Bilinmeyen paket",lpThreadParameter,0,0,1,buf);
            return 0;
        }
        if (n <= 9000) {
                if ((strstr(buf,"ªU")!=NULL) || (strstr(buf,"Uª")!=NULL)) {
                    send(ci->d, buf, n, 0);
                }
        }
    }
    char *text = (char *)malloc(256);
    sprintf(text,"Baglanti kapandi: %s\r\n",ci->userip);
    write_connectlog(text);
    closesocket(ci->n);
    closesocket(ci->d);
    return 0;
}

DWORD WINAPI writer(LPVOID lpThreadParameter)
{
    conn_info *ci = (conn_info*)lpThreadParameter;

    char buf[65536];
    int z = SOCKET_ERROR;
    while ((z = recv(ci->d, buf, sizeof(buf), 0)) > 0) {
                send(ci->n, buf, z, 0); 
    }

    closesocket(ci->n);
    closesocket(ci->d);
    return 0;
}

int main(int argc, char* argv[])
{
    AllocConsole();
    SetConsoleTitle("EbenezerFix v7 - 23.04.2009");
    xconsole_prox("www.sopvp.com", "white");
    SetWindowText(FindWindow(NULL, "GameServer Ver - 20041111"), "GameServer Ver - 20090423 & EbenezerFix v7 linked");
    SetWindowText(FindWindow(NULL, "GameServer Ver - 20090120"), "GameServer Ver - 20090423 & EbenezerFix v7 linked");
    if (argc < 4) {
        xconsole_prox("Kullanici bazli degisiklik saptanmadi!","white");
        xconsole_prox("Kullanim: ebenezerfix [acilacak port] [baglanilacak ip] [baglanilacak port].","white");
        xconsole_prox("Normal ayarlarla aciliyor.","white");
        argv[1] = "12777";
        argv[2] = "127.0.0.1";
        argv[3] = "16366";
    }
    else {
        xconsole_prox("Kullanici ayarlari algilandi.","white");
        xconsole_prox("Kullanici ayarlariyla aciliyor.","white");
    }
    char *text = (char *)malloc(256);
    sprintf(text,"EbenezerFix portu: %i",atoi(argv[1]));
    xconsole_prox(text, "white");
    sprintf(text,"Arka plan Ebenezer IP: %s",argv[2]);
    xconsole_prox(text, "white");
    sprintf(text,"Arka plan Ebenezer Port: %i",atoi(argv[3]));
    xconsole_prox(text, "white");
    WORD wVersionRequested;
    WSADATA wsaData;
 
    wVersionRequested = MAKEWORD( 2, 2 );
    WSAStartup( wVersionRequested, &wsaData );

    SOCKET s = socket(AF_INET, SOCK_STREAM, 0);

    sockaddr_in sin;
    sin.sin_addr.S_un.S_addr = INADDR_ANY;
    sin.sin_family = AF_INET;
    sin.sin_port = htons(atoi(argv[1]));
    if (bind(s, (sockaddr*)&sin, sizeof(sin)) != 0) {
        sprintf(text,"Port acilamiyor %i", atoi(argv[1]));
        xconsole_prox(text,"red");       
        return 1;
    }
    xconsole_prox("Sistem suanda aktif.","white");
    listen(s, 5);
    int ss = sizeof(sin);
    SOCKET n;
    while ((n = accept(s, (sockaddr*)&sin, &ss)) != -1) {
        char *userip = (char *)malloc(16);
        sprintf(userip,"%i.%i.%i.%i",sin.sin_addr.S_un.S_un_b.s_b1,sin.sin_addr.S_un.S_un_b.s_b2,sin.sin_addr.S_un.S_un_b.s_b3,sin.sin_addr.S_un.S_un_b.s_b4);
        sprintf(text,"Client baglantisi alindi: %s\r\n",userip);
        write_connectlog(text);
        SOCKET d = socket(AF_INET, SOCK_STREAM, 0);
        sin.sin_family = AF_INET;
        sin.sin_addr.S_un.S_addr = inet_addr(argv[2]);
        sin.sin_port = htons(atoi(argv[3]));
        if (connect(d, (sockaddr*)&sin, sizeof(sin)) != 0) {
            sprintf(text,"Client baglanti alindi fakat Ebenezere baglanilamadi: %s:%i\r\n",argv[2], atoi(argv[3]));
            write_connectlog(text);
            closesocket(n);
        } else {
          sprintf(text,"Ebenezer baglantisi gerceklesti: %s:%i\r\n", argv[2], atoi(argv[3]));
            write_connectlog(text);
            conn_info *cinfo = new conn_info;
            cinfo->userip = userip;
            cinfo->n = n;
            cinfo->d = d;
            DWORD id;
            CreateThread(NULL, 0, reader, cinfo, 0, &id);
            CreateThread(NULL, 0, writer, cinfo, 0, &id);
        }
    }
    closesocket(s);

    return 0;





Kod:
//log.h: loglama fonksiyonları
inline void write_connectlog( LPCTSTR logstr )
{
    CFile LOG;
    CTime cur = CTime::GetCurrentTime();
    CRITICAL_SECTION g_LogFile_critical;
    char strLogFile[50];        memset(strLogFile, 0x00, 50);
    InitializeCriticalSection( &g_LogFile_critical );
    char strLog[256];    memset(strLog, 0x00, 256);
    wsprintf(strLog, "[%d:%d:%d] %s", cur.GetHour(), cur.GetMinute(), cur.GetSecond(), logstr);
    wsprintf(strLogFile, ".\\Log\\baglanti-%d-%d-%d.txt", cur.GetYear(), cur.GetMonth(), cur.GetDay());
    LOG.Open(strLogFile, CFile::modeWrite | CFile::modeCreate | CFile::modeNoTruncate | CFile::shareDenyNone);
    LOG.SeekToEnd();
    EnterCriticalSection( &g_LogFile_critical );
    LOG.Write(strLog,strlen(strLog));
    LeaveCriticalSection( &g_LogFile_critical );
    LOG.Close();
    if(LOG != CFile::hFileNull) LOG.Close();
    DeleteCriticalSection(&g_LogFile_critical);
};
inline void write_attackerlog( LPCTSTR logstr )
{
    CFile LOG;
    CTime cur = CTime::GetCurrentTime();
    CRITICAL_SECTION g_LogFile_critical;
    InitializeCriticalSection( &g_LogFile_critical );
    char strLogFile[50];        memset(strLogFile, 0x00, 50);
    char strLog[256];    memset(strLog, 0x00, 256);
    wsprintf(strLog, "[%d:%d:%d] %s", cur.GetHour(), cur.GetMinute(), cur.GetSecond(), logstr);
    wsprintf(strLogFile, ".\\Log\\saldiri-%d-%d-%d.txt", cur.GetYear(), cur.GetMonth(), cur.GetDay());
    LOG.Open(strLogFile, CFile::modeWrite | CFile::modeCreate | CFile::modeNoTruncate | CFile::shareDenyNone);
    LOG.SeekToEnd();
    EnterCriticalSection( &g_LogFile_critical );
    LOG.Write(strLog,strlen(strLog));
    LeaveCriticalSection( &g_LogFile_critical );
    if(LOG != CFile::hFileNull) LOG.Close();
    DeleteCriticalSection(&g_LogFile_critical);
};
inline void write_dumplog ( LPCTSTR dumpstr ) 
{
    CFile DUMP;
    CTime cur = CTime::GetCurrentTime();
    CRITICAL_SECTION g_DumpFile_critical;
    InitializeCriticalSection( &g_DumpFile_critical );
    char strDumpFile[50]; memset(strDumpFile,0x00,50);
    char strDump[16384]; memset(strDump,0x00,16384);
    wsprintf(strDump,"[%d:%d:%d] %s",cur.GetHour(), cur.GetMinute(), cur.GetSecond(), dumpstr);
    wsprintf(strDumpFile, ".\\Log\\dump-%d-%d-%d.txt",cur.GetYear(), cur.GetMonth(), cur.GetDay());
    DUMP.Open(strDumpFile, CFile::modeWrite | CFile::modeCreate | CFile::modeNoTruncate | CFile::shareDenyNone);
    DUMP.SeekToEnd();
    EnterCriticalSection ( &g_DumpFile_critical );
    DUMP.Write(strDump,strlen(strDump));
    LeaveCriticalSection( &g_DumpFile_critical );
    if (DUMP != CFile::hFileNull) DUMP.Close();
    DeleteCriticalSection( &g_DumpFile_critical );
}
inline void write_charlog ( LPCTSTR charastr ) 
{
    CFile CHARA;
    CTime cur = CTime::GetCurrentTime();
    CRITICAL_SECTION g_CharaFile_critical;
    InitializeCriticalSection( &g_CharaFile_critical );
    char strCharaFile[50]; memset(strCharaFile,0x00,50);
    char strChara[16384]; memset(strChara,0x00,16384);
    wsprintf(strChara,"[%d:%d:%d] %s",cur.GetHour(), cur.GetMinute(), cur.GetSecond(), charastr);
    wsprintf(strCharaFile, ".\\Log\\char-%d-%d-%d.txt",cur.GetYear(), cur.GetMonth(), cur.GetDay());
    CHARA.Open(strCharaFile, CFile::modeWrite | CFile::modeCreate | CFile::modeNoTruncate | CFile::shareDenyNone);
    CHARA.SeekToEnd();
    EnterCriticalSection ( &g_CharaFile_critical );
    CHARA.Write(strChara,strlen(strChara));
    LeaveCriticalSection( &g_CharaFile_critical );
    if (CHARA != CFile::hFileNull) CHARA.Close();
    DeleteCriticalSection( &g_CharaFile_critical );
}
inline void write_accountlog ( LPCTSTR charastr ) 
{
    CFile ACCOUNT;
    CTime cur = CTime::GetCurrentTime();
    CRITICAL_SECTION g_AccountFile_critical;
    InitializeCriticalSection( &g_AccountFile_critical );
    char strAccountFile[50]; memset(strAccountFile,0x00,50);
    char strAccount[16384]; memset(strAccount,0x00,16384);
    wsprintf(strAccount,"[%d:%d:%d] %s",cur.GetHour(), cur.GetMinute(), cur.GetSecond(), charastr);
    wsprintf(strAccountFile, ".\\Log\\account-%d-%d-%d.txt",cur.GetYear(), cur.GetMonth(), cur.GetDay());
    ACCOUNT.Open(strAccountFile, CFile::modeWrite | CFile::modeCreate | CFile::modeNoTruncate | CFile::shareDenyNone);
    ACCOUNT.SeekToEnd();
    EnterCriticalSection ( &g_AccountFile_critical );
    ACCOUNT.Write(strAccount,strlen(strAccount));
    LeaveCriticalSection( &g_AccountFile_critical );
    if (ACCOUNT != CFile::hFileNull) ACCOUNT.Close();
    DeleteCriticalSection( &g_AccountFile_critical );



Hello Kitty
vs
eMoStyLe



avatar
Hello EMO
EMO Team
EMO Team

Cinsiyet : Erkek
Burçlar : Yay
Yılan
Mesaj Sayısı : 935
Puan : 256493
Rep Puanı : 18
Doğum tarihi : 28/11/89
Kayıt tarihi : 21/07/09
Yaş : 27
Nerden : EMO WorlD
İş/Hobiler : RCE Student / Game Hacking / Learn Beginner C#,C++,Delphi
Lakap : EMO

Kullanıcı profilini gör http://emostyle.myforumpro.com

Sayfa başına dön Aşağa gitmek

Önceki başlık Sonraki başlık Sayfa başına dön


 
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz