WEB开发网
开发学院网络安全安全技术 用GetHashes软件获取Windows系统Hash密码值 阅读

用GetHashes软件获取Windows系统Hash密码值

 2008-12-02 13:34:59 来源:WEB开发网   
核心提示: 安天365团队(http://www.antian365.com)欢迎社会各界朋友提供安全事件线索,将免费为提供线索的朋友进行安全检测,用GetHashes软件获取Windows系统Hash密码值(7),附录1 str_to_key()函数str_to_key()函数,的C语言描述程序:#

安天365团队(http://www.antian365.com)欢迎社会各界朋友提供安全事件线索,将免费为提供线索的朋友进行安全检测。

附录1 str_to_key()函数

str_to_key()函数,的C语言描述程序:
#include
#include
#include
/*
* 读取形如"AABBCCDDEEFF"这样的16进制数字串,主调者自己进行形参的边界检查
*/
static void readhexstring ( const unsigned char *src, unsigned char *dst, unsigned int len )
{
unsigned int i;
unsigned char str[3];
str[2] = '';
for ( i = 0; i < len; i++ )
{
str[0] = src[ i * 2   ];
str[1] = src[ i * 2 + 1 ];
dst[i] = ( unsigned char )strtoul( str, NULL, 16 );
}
return;
} /* end of readhexstring */
/*
* from The Samba Team's source/libsmb/smbdes.c
*/
static void str_to_key ( const unsigned char *str, unsigned char *key )
{
unsigned int i;
key[0] = str[0] >> 1;
key[1] = ( ( str[0] & 0x01 ) << 6 ) | ( str[1] >> 2 );
key[2] = ( ( str[1] & 0x03 ) << 5 ) | ( str[2] >> 3 );
key[3] = ( ( str[2] & 0x07 ) << 4 ) | ( str[3] >> 4 );
key[4] = ( ( str[3] & 0x0F ) << 3 ) | ( str[4] >> 5 );
key[5] = ( ( str[4] & 0x1F ) << 2 ) | ( str[5] >> 6 );
key[6] = ( ( str[5] & 0x3F ) << 1 ) | ( str[6] >> 7 );
key[7] = str[6] & 0x7F;
for ( i = 0; i < 8; i++ )
{
key[i] = ( key[i] << 1 );
}
return;
} /* end of str_to_key */
int main ( int argc, char * argv[] )
{
unsigned int i;
unsigned char buf_0[21];
unsigned char buf_1[24];
if ( argc != 2 )
{
fprintf( stderr, "Usage: %s n", argv[0] );
return( EXIT_FAILURE );
}
memset( buf_0, 0, sizeof( buf_0 ) );
memset( buf_1, 0, sizeof( buf_1 ) );
i = strlen( argv[1] ) / 2;
readhexstring( argv[1], buf_0, i );
for ( i = 0; i < sizeof( buf_0 ); i++ )
{
fprintf( stderr, "%02X", buf_0[i] );
}
fprintf( stderr, "n" );
str_to_key( buf_0, buf_1 );
str_to_key( buf_0 + 7, buf_1 + 8 );
str_to_key( buf_0 + 14, buf_1 + 16 );
for ( i = 0; i < sizeof( buf_1 ); i++ )
{
fprintf( stderr, "%02X", buf_1[i] );
}
fprintf( stderr, "n" );
return( EXIT_SUCCESS );
} /* end of main */

附录2 相关免费资源

(1)在线Hash密码值破解:http://hash.insidepro.com/

(2)在线生成Hash密码值:http://www.insidepro.com/hashes.php?lang=eng

(3)免费字典下载:http://www.insidepro.com/eng/download.shtml

(4)SAMInside http://www.insidepro.com/download/saminside.zip

(5)PasswordsPro http://www.insidepro.com/download/passwordspro.zip

(6)Extreme GPU Bruteforcer http://www.insidepro.com/download/egb.zip

(7)Gethashes工具

http://www.antian365.com/bbs/attachment.php?aid=464&k=2f319ed67b141d944d8b0c9514df17b7&t=1228015436

上一页  2 3 4 5 6 7 

Tags:GetHashes 软件 获取

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接