파이썬 알고리즘에 사용되는 함수
All, Any 파라미터로 iterable를 받아서 각 item들이 모두가 참일때 true를 반환하는 것이 all, 하나라도 참일때 true를 반환하는 것이 any이다. return all(r ==0 or c == 0 or matrix[r-1][c-1] == val for r, row in enumerate(matrix...
All, Any 파라미터로 iterable를 받아서 각 item들이 모두가 참일때 true를 반환하는 것이 all, 하나라도 참일때 true를 반환하는 것이 any이다. return all(r ==0 or c == 0 or matrix[r-1][c-1] == val for r, row in enumerate(matrix...
입출력 a = input() a = input("prompt") print("a" "b" "c") # abc print("a" + "b" + "c") # abc print("a","b","c") # ('a', 'b', 'c') x = "Hello" y = "World!" print(x,y) ...
함수 def function_name(parameter): return something def say_ho(): print("ho~~") say_ho() # ho~~ return값이 void면 indentation으로 다른 실행문을 계속 쓰면 된다. 함수를 탈출하고 싶으면 return 만 써도 된다.(break같은 느낌으로) ...
변수 변수 선언법 a, b = ('string','arr') (a,b) = 'string, 'arr' [a,b] = ['string', 'arr'] a = b = 'string' a = [1,2] b = a # b는 a가 가리키고 있는 object의 주소값을 가리키고 deep copy가 일어나지는 않습니다. ...
Python은 interpreter이다. Interpreter란 한 줄 한 줄 바로바로 해석하고 결과를 보여주는 언어이다. Scalar type int, float, bool, none, null atomic data type Non-scalar type string, tuple,...
# yum install gcc openssl-devel bzip2-devel libffi-devel # cd /usr/src # wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz # tar xzf Python-3.7.3.tgz # cd Python-3.7.3 # ./configure --e...
사용법 사용 흐름 msfconsole -> search -> use -> info -> show options -> set -> exploit -> meterpreter exploit을 할 때에는 플랫폼 -> 서비스 -> 코드를 선택하는 단계로 진행한다. 사용 명령어 use explo...
RegRipper Windows registry files에서 데이터를 추출하는 오픈소스 포렌식 도구이다. Registry Files Windows/system32/config에 파일들이 존재한다. SAM Security Account Manager라고 개인 계정에 관련한 정보를 다룬다. SECU...
Introduce to Usage Open source tool이고 The Sleuth Kit을 포함하고 있다. 새로운 case number를 기입하고 data source를 추가하여 examination을 시작한다. Default ingest Modules은 다음과 같다. Recent Activity Fil...
Image Physical image: bit-for-bit copy로 media에 있는 모든 것들을 copy한다. “deleted” data와 no longer accessible data도 포함하는 것이다. Logical image: viewable data(logical data)만 복사하는 것이다. 따라서 실제 데이터 사이즈보다 적은 ...