![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbtrb5C%2Fbtrftn7JWAt%2Fx6KVtz0aCZDx3x9zuSgWP1%2Fimg.png)
https://www.hackerrank.com/challenges/breaking-best-and-worst-records/problem Breaking the Records | HackerRank Given an array of Maria's basketball scores all season, determine the number of times she breaks her best and worst records. www.hackerrank.com Algorithms > Implementation 점수 배열이 주어지면 최저점과 최고점이 갱신되는 횟수를 각각 저장하여 배열로 리턴한다. 코드 int* breakingRecords(int scores_count, int* scores, int* resul..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbJSZtU%2FbtrfpCx5DYv%2FtkMwTRHlewYmGYdpk9rHu1%2Fimg.png)
https://www.hackerrank.com/challenges/runningtime/problem Running Time of Algorithms | HackerRank The running time of Algorithms in general and Insertion Sort in particular. www.hackerrank.com Algorithms > Sorting 배열이 주어지면 해당 배열을 정렬하여 shift 횟수를 리턴한다. 코드 int runningTime(int arr_count, int* arr) { int *temp = arr; int val, res = 0; for(int i = 1; i < arr_count; i++){ val = temp[i]; int j = i - 1; ..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdgZovq%2FbtrfpghfheK%2F39ZoVPH30afTf4pbuA6rc0%2Fimg.png)
https://webhacking.kr/challenge/web-05/ Challenge 5 webhacking.kr 초기 화면은 이렇다. Login을 누르면 위와 같은 화면이 뜨고, Join을 누르면 이렇게 알림창이 뜬다. Join을 눌렀을 때 회원가입 페이지로 이동하는 것이 목표일 것 같다. url창에서 login.php를 지워보았다. 이런 식으로 php 파일 목록을 확인할 수 있다. join.php에 접근해보았다. bye라는 알림이 뜨고 까만 화면으로 넘어갔다. 이 페이지의 소스코드를 확인해보았다. 굉장히 긴 텍스트가 나열되어있다. 아래는 전체 코드를 개행해 정리한 것이다. 아래 사이트를 이용했다. https://www.strictly-software.com/unpack-javascript < ht..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdzEnov%2FbtrfpP4uPNZ%2FBWsF48vbQvkAyeQqENjUv1%2Fimg.png)
https://webhacking.kr/challenge/web-03/ Challenge 3 webhacking.kr 메인 화면은 위와 같다. 칸을 클릭하면 검정색 칸으로 변한다. 이렇게 노노그램을 풀고 solved를 눌러보았다. 이런 화면이 나온다. admin을 입력값으로 넣어보니 아래처럼 등록되었다. 혹시나 해서 sql injection을 시도했는데 되지 않았다. 그래서 일단은 input 박스가 있던 화면으로 돌아가 burp suite로 가져와보았다. 여기서 저 answer 부분에 ' or 1=1 #을 넣고 보내보았다. Clear!