Railsbin – The vulnerable pastebin service!

User:

Title: exec query

Content:

public static ResultSet executeQuery(String query) {
		try {
//			System.out.println("Executing " + query);
			Statement s = conn.createStatement();
			return s.executeQuery(query);
		} catch (Exception e) {
			e.printStackTrace();
			System.err.println(query);
			return null;
		}
	}

Edit | Back