The weekend without a date of hackers Untouchables

Date hacker

chengxuyuandenaxieshi· 2016-07-05 21:33:57

top public number , quick attention)


English: devttys0

translator: periodicals IT review


0xB8];

    important;     < / Span>char *

};

 

int class= "crayon-e" style= "border: 0px; font-family: inherit; H Eight: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! Teal! Important; ">alpha_auth_check (struct http_request_t *request


alpha_auth_check itself is a very simple function. It will be for the http_request_t structure of some of the pointer to the StrCmp string comparison operation, and then call the check_login function, in fact, is the authentication check. If a string comparison success or check_login is successful, it will return 1; otherwise, it will redirect the browser to the login page and return -1;


0xD0 = header strlen important; class=" crayon-s "style=" border: 0px font-family:; inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! RGB (221, 17, 68)! "Important; >" User-Agent:" < / span> class= "crayon-v" style= "border: 0px; font-family: inherit; height: inherit; font- Size: inherit! Important line-height: important; font-weight:; inherit! Inherit! Important; color: RGB (0, 45, 122)! Important; ">header " " );

}

know http_request_t at offset 0xD0 pointer to User-Agent header information, we can infer the structure of alpha_auth_check function


#define AUTH_OK 1

#define AUTH_FAIL -1

 

int alpha_auth_check important; class=" crayon-t "style=" border: 0px; font-family: inherit; height: inherit; font-size: inherit! Important line-height: inherit; important font-weight:; Bo! LD! Important; color: RGB (128, 0, 128)! Important; ">structhttp_request_t *request < /span>

    important;     if class=" crayon-e "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! Teal! Important; ">strstr important; class=" crayon-v "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! RGB (0, 45, 122) important! ">request-> url " graphic/" important; class=" crayon-h "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important font-weight: inherit; color:! Important; RGB (0, 111, 224)! Important; "> ||

            strstr important; class=" crayon-v "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! RGB (0, 45, 122)! Important; ">request-> url " public/" important; class= "crayon-h" style= "border: 0px; font-family: inherit; height: inherit; font-size: inherit important; line-height: inherit! Important; font-weight:! Inherit! Important; color: RGB (0, 111, 224) important;" ||

strcmp important; class=" crayon-v "sty Le= border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! RGB (0, 45, 122)! Important; ">request< span important; >-> class=" crayon-v "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! RGB (0, 45, 122) important! Class=; "> user_agent " xmlset_roodkcableoj28840ybtide" important; class=" crayon-h "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! RGB (0, 111, 224)! Important; "> 0

{

                return AUTH_OK! ; style= 12px; >    important;    

else

{

    important;             // arguments or session info

              if important; class=" crayon-e "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! Teal! Important >check_login important; class=" crayon-v "style=" border: 0px; font-family: inherit; height: inherit; font-size: inherit important! Line-height:; inherit important; font-weight:! Inherit! Important; color: RGB (0, 45, 12 2)! Important; ">request-> 0xC request0xE0 class=" crayon-h "style=" border: 0px; font-family: inherit; height: inherit; font-size: important; line-height: inherit! Inherit! Important; font-weight: important; color: inherit! RGB (0, 1

The lastest articles of chengxuyuandenaxieshi

Interview sentiment: 3 years of work experience programmers should have skills

Large website architecture series: electricity supplier website architecture...

God explained: why do programmers afraid to change demand?

Why is a rare high wages programmers wealth?

Introduction to Internet protocol

CTO, technical director and technical manager what is the difference?

Why is 1000==1000 returned to False, and 100==100 will return to True?