自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

WebInspect:強大的網(wǎng)頁程序掃描器

安全
SPI Dynamics' WebInspect應用程序安全評估工具幫你識別已知和未知的網(wǎng)頁層漏洞。它還能檢測到Web服務器的配置屬性,以及進行常見的網(wǎng)頁攻擊,例如參數(shù)注入、跨網(wǎng)站腳本、目錄游走等等。

SPI Dynamics' WebInspect應用程序安全評估工具幫你識別已知和未知的網(wǎng)頁層漏洞。它還能檢測到Web服務器的配置屬性,以及進行常見的網(wǎng)頁攻擊,例如參數(shù)注入、跨網(wǎng)站腳本、目錄游走等等。

下載試用版鏈接:https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-201-200^9570_4000_313

>>去網(wǎng)絡安全工具百寶箱看看其它安全工具

有趣的WebInspect的加密方法

從去年開始,我開始關注這款優(yōu)秀的WEB application漏洞掃描軟件,這東西除了速度比較慢以外,其它的功能真是不錯。我當時研究了一下,被它的用來驗證license的那幾個dll給嚇住了,里面霍然寫著一串RSA的key,我就認為這東西除了暴力破解,應該沒有其它方法。最近研究了一下RSA算法,正打算用它練練手。結果我仔細研究一下這東西,發(fā)現(xiàn)居然出奇的簡單,令我真是感到非常不可思議。

WebInspect在你注冊后,會給你發(fā)一個key文件,這個就是所謂的注冊文件,里面有你的注冊信息,然后webinspect在啟動的時候會把它解密,讀出里面的信息,所用的加密函數(shù)是hostinfo.crypt,這個函數(shù)即用來加密也用來解密,所謂的加密無非就是簡單的xor了一下,我也寫了一個程序,來調(diào)用這個crypt:

  1. #include "stdafx.h"  
  2. #include   
  3. #include   
  4.  
  5. int Crypt (  
  6.               int encrypt,  
  7.               int key,  
  8.               int keysize,  
  9.               int msg,  
  10.               int msgsize);  
  11.  
  12. typedef int(WINAPI* pCrypt) (  
  13.               int encrypt,  
  14.               int key,  
  15.               int keysize,  
  16.               int msg,  
  17.               int msgsize);  
  18.  
  19. void main(int argc, char* argv[])  
  20. {  
  21.        HINSTANCE m_hDll;  
  22.        pCrypt m_crypt;  
  23.        FILE *stream;  
  24.        FILE *fout;  
  25.        int numread;  
  26.        char key[50];  
  27.        char msg[2048];  
  28.        memset((void *)msg,0,2048);  
  29.        m_hDll=LoadLibrary("hostinfo.dll");  
  30.        if (m_hDll < (HINSTANCE) HINSTANCE_ERROR)  
  31.        {  
  32.               m_hDll = NULL;  
  33.               return;  
  34.        }  
  35.        m_crypt = (pCrypt)GetProcAddress(m_hDll, "crypt");  
  36.        if( (stream = fopen( "mmm1.key""r+b" )) != NULL )  //這里是我的原始注冊文件  
  37.     {  
  38.               numread = fread( key, sizeofchar ), 50, stream );//頭上50字節(jié)是key  
  39.               if (numread != -1)   
  40.                      printf("key is : %s",key);  
  41.          
  42.               numread = fread( msg, sizeofchar ), 2048, stream );//剩下的是加密后的內(nèi)容  
  43.               if (numread != -1){   
  44.                             m_crypt(1,(int )key,50,(int )msg,numread); //參數(shù)1的值等于1的,是解密  
  45.                             if( (fout = fopen( "mmm1.txt""w+t" )) != NULL )  
  46.                             {  
  47.                                    fwrite(key,sizeof(char),50,fout);                          
  48.                                    fwrite(msg,sizeof(char),numread,fout);  
  49.                                    fclose(fout);  
  50.                             }  
  51.                             printf("msg is : %s",msg);  
  52.               }  
  53.               fclose(stream);  
  54.                 
  55.        }  
  56.  
  57.        return ;  

#p#

運行一下,我們得到了mmm1.txt,它的內(nèi)容如下:

  1. //下面是文件內(nèi)容  
  2.  
  3. 33383131352E31313131363839383135                  SPI License File  
  4.  
  5. Company=xxx ltd.  
  6.  
  7. Contact=xxx xxx-  
  8.  
  9. Address1=xxx#  
  10.  
  11. Address2=  
  12.  
  13. City=xxx  
  14.  
  15. State=  
  16.  
  17. PostalCode=xxx  
  18.  
  19. Country=CHN  
  20.  
  21. Phone=xxxx  
  22.  
  23. Fax=  
  24.  
  25. EMail=  
  26.  
  27. [Start IP Range]  
  28.  
  29. 216.183.127.201 216.183.127.201  
  30.  
  31. [End IP Range]  
  32.  
  33. MaxPageCount=0  
  34.  
  35. MaxIssueCount=0  
  36.  
  37. ValidFrom=5/8/2004  
  38.  
  39. ValidTo=5/23/2007  
  40.  
  41. RequireHTTPSFeedback=True  
  42.  
  43. VerificationURL=https://download.spidynamics.com/spiXMLVulDB/spiXMLVulDB.asp  
  44.  
  45. MaxABS=20  
  46.  
  47. MaxGlobal=10  
  48.  
  49. IPCount=1  
  50.  
  51. IPScanCount=0  
  52.  
  53. Product=  
  54.  
  55. ProductionKey=True  
  56.  
  57. MacIDs=  
  58.  
  59. IPScanned=216.183.127.201:19  
  60.  
  61. End SPI License File  
  62. //結束 

#p#

需要注意的是”Start IP Range”,這里修改一下,比如把216.183.127.201 216.183.127.201改成 0.0.0.0 255.255.255.255,還有個地方要改一下IPCount,把1改成一個較大的數(shù),這個是用來控制你掃描的IP總數(shù)的。做了這兩下修改(需要注意的是這個是unix格式的文本文件,windows下存的時候要小心),我們就要把它加密回去,呵呵,同樣用hostinfo.crypt(這是crypt嗎?應該叫encode才對):

  1. #include "stdafx.h"  
  2. #include   
  3. #include   
  4.  
  5. int Crypt (  
  6.               int encrypt,  
  7.               int key,  
  8.               int keysize,  
  9.               int msg,  
  10.               int msgsize);  
  11.  
  12. typedef int(WINAPI* pCrypt) (  
  13.               int encrypt,  
  14.               int key,  
  15.               int keysize,  
  16.               int msg,  
  17.               int msgsize);  
  18.  
  19. void main(int argc, char* argv[])  
  20. {  
  21.        HINSTANCE m_hDll;  
  22.        pCrypt m_crypt;  
  23.        FILE *stream;  
  24.        FILE *fout;  
  25.        int numread;  
  26.        char key[50];  
  27.        char msg[2048];  
  28.        memset((void *)msg,0,2048);  
  29.        m_hDll=LoadLibrary("hostinfo.dll");  
  30.        if (m_hDll < (HINSTANCE) HINSTANCE_ERROR)  
  31.        {  
  32.               m_hDll = NULL;  
  33.               return;  
  34.        }  
  35.        m_crypt = (pCrypt)GetProcAddress(m_hDll, "crypt");  
  36.        if( (stream = fopen( "mmm1.txt""r+b" )) != NULL )  
  37.     {  
  38.               numread = fread( key, sizeofchar ), 50, stream );  
  39.               if (numread != -1)   
  40.                      printf("key is : %s",key);  
  41.          
  42.               numread = fread( msg, sizeofchar ), 2048, stream );  
  43.               if (numread != -1){   
  44.                             m_crypt(0,(int )key,50,(int )msg,numread);// //參數(shù)1的值等于0的,是加密  
  45.                             if( (fout = fopen( "mmm2.key""w+b" )) != NULL )  
  46.                             {  
  47.                                    fwrite(key,sizeof(char),50,fout);                          
  48.                                    fwrite(msg,sizeof(char),numread,fout);  
  49.                                    fclose(fout);  
  50.                             }  
  51.                               
  52.               }  
  53.               fclose(stream);  
  54.                 
  55.        }  
  56.        return ;  

這樣我們得到了mmm2.key,放到webinspect里驗證一下,果然沒問題,但是改過的key在線升級的時候會無效,所以正確的辦法是申請一個試用的key,在線把程序升級好,再用這個修改后的key.

 

責任編輯:佚名 來源: 網(wǎng)絡整理
相關推薦

2010-12-01 13:05:11

Nikto

2021-09-05 06:01:41

網(wǎng)絡掃描器sx安全工具

2019-01-31 11:01:57

2010-12-22 21:57:00

Angry IP Sc

2016-05-13 17:07:00

Docker安全

2015-11-11 14:08:07

2011-02-17 18:51:10

2009-03-25 11:21:02

2016-08-17 09:18:11

2013-04-25 13:31:01

漏洞掃描器Nessus 5.2

2013-08-14 10:24:38

2013-11-08 14:39:32

2010-12-09 11:01:58

2021-05-31 08:54:30

RustScanRust端口掃描器

2015-01-06 11:50:40

安全掃描器IBM Appscan

2021-04-09 08:00:00

容器開發(fā)云原生

2015-11-26 11:33:54

掃描器

2011-03-23 13:44:24

2011-03-23 13:20:41

漏洞掃描器Unix

2011-01-11 10:29:46

點贊
收藏

51CTO技術棧公眾號