
blind sql injection을 이용해야 한다. ascii가 필터링 되기 때문에, ord를 대신 사용한다. substr은 left, mid, right로 대체한다. =은 in이나 like 또는 between로 대체하면 된다. 싱글쿼터도 막아놓아서 char를 이용해야 한다. 아래와 같이 입력해 pw의 길이가 8임을 알아냈다. char(97,100,109,105,110)은 admin을 뜻한다. pw를 구하기 위해 파이썬으로 자동화 프로그램을 작성했다. import socket for i in range(1,9): for j in range(48,123): if 58

https://www.acmicpc.net/problem/1546 1546번: 평균 첫째 줄에 시험 본 과목의 개수 N이 주어진다. 이 값은 1000보다 작거나 같다. 둘째 줄에 세준이의 현재 성적이 주어진다. 이 값은 100보다 작거나 같은 음이 아닌 정수이고, 적어도 하나의 값은 0보 www.acmicpc.net 코드 import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); float[] score = new float[n]; float ..

https://www.acmicpc.net/problem/2753 2753번: 윤년 연도가 주어졌을 때, 윤년이면 1, 아니면 0을 출력하는 프로그램을 작성하시오. 윤년은 연도가 4의 배수이면서, 100의 배수가 아닐 때 또는 400의 배수일 때이다. 예를 들어, 2012년은 4의 배수이면서 www.acmicpc.net 코드 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int year = scanner.nextInt(); if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0..

기초 문법 (2) 배열 - 배열: 인덱스를 이용해 자료형이 같은 데이터를 관리하는 것 자료형[] 배열이름 = new 자료형[배열크기]; 자료형[] 배열이름 = {데이터1, 데이터2, 데이터3, ...}; - 배열 활용 예시 package pjtTest; import java.util.Scanner; public class MainClass { public static void main(String[] args) { // 배열을 이용한 학사관리 String[] name = {"박찬호", "이승엽", "박병호", "이병규", "류현진"}; int[] score = new int[5]; Scanner scanner = new Scanner(System.in); System.out.printf("%s의 점수를 ..