728x90
반응형
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | /** <a href="http://www.cpupk.com/decompiler">Eclipse Class Decompiler</a> plugin, Copyright (c) 2017 Chen Chao. **/ package javax.servlet.jsp; import java.io.IOException; import java.io.Writer; public abstract class JspWriter extends Writer { public static final int NO_BUFFER = 0; public static final int DEFAULT_BUFFER = -1; public static final int UNBOUNDED_BUFFER = -2; protected int bufferSize; protected boolean autoFlush; protected JspWriter(int bufferSize, boolean autoFlush) { this.bufferSize = bufferSize; this.autoFlush = autoFlush; } public abstract void newLine() throws IOException; public abstract void print(boolean paramBoolean) throws IOException; public abstract void print(char paramChar) throws IOException; public abstract void print(int paramInt) throws IOException; public abstract void print(long paramLong) throws IOException; public abstract void print(float paramFloat) throws IOException; public abstract void print(double paramDouble) throws IOException; public abstract void print(char[] paramArrayOfChar) throws IOException; public abstract void print(String paramString) throws IOException; public abstract void print(Object paramObject) throws IOException; public abstract void println() throws IOException; public abstract void println(boolean paramBoolean) throws IOException; public abstract void println(char paramChar) throws IOException; public abstract void println(int paramInt) throws IOException; public abstract void println(long paramLong) throws IOException; public abstract void println(float paramFloat) throws IOException; public abstract void println(double paramDouble) throws IOException; public abstract void println(char[] paramArrayOfChar) throws IOException; public abstract void println(String paramString) throws IOException; public abstract void println(Object paramObject) throws IOException; public abstract void clear() throws IOException; public abstract void clearBuffer() throws IOException; public abstract void flush() throws IOException; public abstract void close() throws IOException; public int getBufferSize() { return this.bufferSize; } public abstract int getRemaining(); public boolean isAutoFlush() { return this.autoFlush; } } | cs |
1 2 3 4 5 6 7 8 9 | import java.io.PrintWriter; boolean isSuccess = false; response.setContentType("text/html; charset=utf-8"); PrintWriter out = response.getWriter(); String strAddr = request.getRemoteAddr(); out.print("<script type=\"text/javascript\"> alert(\"접근권한이 없습니다.\\n(" + strAddr + ")\");\n/* " + strAddr + " */ </script>"); | cs |
728x90
반응형