본문 바로가기

전체 글166

6개월 치 업무를 하루만에 끝내는 업무 자동화 - 1 Interpreter 컴퓨터에게 101010으로 해석 해주는 놈 x = 변수(변할수 있는 값) (Value) x = 5 x = "String" 뭐 이런식 String의 인덱싱 리스트 컴퓨터가 이해할수있도록 코드를 짜서 반복작업을 시키기위해서 코드를 배우는 거임 Boolean = True or False for i in range(5): if(i%2 == 0): print(i) 0 2 4 이렇게 나옴 연산자: 사칙연산이라고 많이 들어보셨을텐데요, 사칙연산은 덧셈, 뺄셈, 곱셈, 나눗셈을 말하는 것인데, 우리는 여기서 더 나아가서 코딩에서 사용되는 연산자를 몇 개 더 알아볼게요. 특히 변수와 같이 사용하는 경우가 많으니, "코딩 기초 개념 이해하기 - 변수"를 먼저 보고 오시면 더 이해가 잘 되실거에요. 가.. 2022. 2. 23.
Troubleshooting and Debugging - Week 1 Binary search TCP Dump and Wireshark can show us ongoing network connections ps top free show us the number the type of resourece 어떻게 작동하는지 알 수 없는 바이너리 파일을 받고, 그 파일이 어떻게 작동하는지 등을 다양한 방법을 통해 알아내야함. ​ 바이너리 분석은 다양한 기술과 기법을 활용해 더 많은 정보를 얻어야 하고, 대부분의 경우 소스코드가 없으므로 소스코드가 아닌 다른 형태의 코드를 읽어야 함. ​ 바이너리를 분석할 때도 코드를 읽음 - '역어셈블 처리 과정' 이용 (역어셈블 : 기계어 코드를 사람이 해석하기 쉬운 어셈블리 언어로 변환) ​ strace itrace == library cal.. 2022. 2. 22.
Introduction to Git and Github - Week 4 Collaboration ToolPull request create 한다음, allow 받으면 merge 됨 == 같이 collaborate 하는 거 github 통해서fork == creating new 갈라짐, for our user , include file, commit history  그럼 우리 branch 에 올라가고 , 이제 pull request 해서 master branch 에 merge 하면 되는 식  만약 pull request allow 못받고 comment 받은 상황이라면, 그 pull request파일 수정 하고 다시 올려야함  github의 commit tab에   Squashing Changeshttps://docs.github.com/en/pull-requests/colla.. 2022. 2. 20.
Introduction to Git and Github - Week 3 Working with remotes -> Github 쓰면 가능각각 개발자들이 로컬에 git 을 두고 중간에 upload 하는거를 remote 라고 함 -> 이 작업을 통해, 다른 개발자들이 server에 접근해서 코드를 real time 으로 sync 하고 뭐 하는식 으로 일을 함 Github저렇게 내 로컬컴퓨터를 쉐어 서버로 두려면, 호스팅 해야되고 하니까 귀찮아서 github라는 서로 git을 공유 하는 centeral server service 가 나옴github에서 코드 가져와서 내 로컬 컴퓨터로 돌리는식 bitbucket or gitlab 같은 비슷한게 많음repository size에 따라 돈 charging 함 github account 만든다음, 내 repo 만들어서 코드 쉐어하고, 다.. 2022. 2. 18.
Introduction to Git and Github - Week 2 Using git locally What is the Branches in git? git commit -a HEAD는 어떤 커밋 하나를 가르키고 있는 것이다. (참고로 커밋이 저장되는 곳은 repository이므로 HEAD는 repository에서 커밋을 가르킨다.) 보통 가장 최근에 한 커밋을 가르킨다. 그렇기 때문에 가장 최근에 한 커밋에 HEAD가 나타나는 것을 볼 수 있다. [출처] [Git/GitHub] 18. HEAD와 git reset|작성자 미니밍 "}_##]Head can be a commit in a different branch of the project 브랜치(branch)란 하나의 코드 관리 흐름을 나타내는 것​으로 '나뭇가지'라는 뜻을 가진다.​커밋을 할 때, 첫번째로 해준 커.. 2022. 2. 16.
Introduction to Git and Github - Week 1 How to use Version Control Systems(VCS) Git == repository 나눠서, command 입력해가지고 github 에 있는 storage control 하는 software 인듯github == Code sharing 할수있는 platform Version controlautomation script 계속 접할 것임.그리고 administration role 할때 documentation control 이나 이런게 엄청 중요한 걸 알게 될 거임새로운 code implement 했을때 잘 못될 경우를 대비해서 VCS 를 쓰는 거임. diff and patch Git == Tracking of chaging  diffing files파일 두개 comparison  하개 .. 2022. 2. 16.
Quiz Week 5 - Python Creating new instances of class objects can be a great way to keep track of values using attributes associated with the object. The values of these attributes can be easily changed at the object level. The following code illustrates a famous quote by George Bernard Shaw, using objects to represent people. Fill in the blanks to make the code satisfy the behavior described in the quote.  # “If you.. 2022. 2. 15.
Quiz week 4 - Python The format_address function separates out parts of the address string into new strings: house_number and street_name, and returns: "house number X on street named Y". The format of the input string is: numeric house number, followed by the street name which may contain numbers, but never by themselves, and could be several words long. For example, "123 Main Street", "1001 1st Ave", or "55 North .. 2022. 2. 15.
Quiz: Week 4 - Python The is_palindrome function checks if a string is a palindrome. A palindrome is a string that can be equally read from left to right or right to left, omitting blank spaces, and ignoring capitalization. Examples of palindromes are words like kayak and radar, and phrases like "Never Odd or Even". Fill in the blanks in this function to return True if the passed string is a palindrome, False if not... 2022. 2. 15.
Quiz 3 week - Python Question 1Fill in the blanks of this code to print out the numbers 1 through 7. number = 1while number 7:    print(number, end=" ")    number += 1 ---------------------------------------------------------------------------------------------------------------------------------- The show_letters function should print out each letter of a word on a separate line. Fill in the blanks to make that hap.. 2022. 2. 15.
Google Python Automation Certification - Week 6 Python Script 쓸때 Research 잘 해야함 input will be event class event랑 evolved 되어잇는 모든 elements sorted() , return the new list it's sorted sort fucntion 쓰면, 리스트안 value 들 값 순서대로 정리함, 정의 되어있는 벨류값을 바꾸진 않음 key 쓰면 sort 할때 어떤 기준으로 정렬 할지 알려주는거? sort() Parameters By default, sort() doesn't require any extra parameters. However, it has two optional parameters: reverse - If True, the sorted list is reversed (or.. 2022. 2. 9.
Introduction to Cisco Cloud Collaboration Introduction to Cisco Cloud Collaboration CUCM = customer가 infra를 cloud로 옮기고 싶을때 쓰는 서비스 (Hosted by Cisco) HCS = Cisco UCM Cloud connectivity 비슷한건데 (Hosted by cisco service provider partner, verizon,, etc) Cisco Webex Phone, Pool, Autoprovisioning.. etc which is already in the cisco CUCM Webex Meeting = Meeting Webex Teams = Microsoft Team 이랑 비슷하게 everyone can access with their device. Webex Call.. 2022. 2. 8.
Google Python Automation Certification - Week 5 OOP Introduction Object Oriented Programming class apple instance Copy, Delete 뭐이런 거 하는거를 method, function이라고 함 help("") 치면 class help document 나옴 class Apple: pass color = "" flavor = "" jonagold = Apple() jonagold.color = "red" jonagold.flavor = "sweet" print(jonagold.color.upper()) print(jonagold.flavor.lower()) golden = Apple() golden.color = "gold" golden.flavor = "sower" print(golden.color.. 2022. 2. 5.
Google Python Automation Certification - Week 4 Data Type String, List, Dictionary 1. What is String? Data Type in Python. = Empty String = Using + sign is Concatenating(사슬같이 잇다, 연결시키다) = len(pet) = number of character So it is very important to know how to use them. def double_word(word): return word *2 + str(len(word)*2) #return 에다가 print 안쓰고 그냥 word string에 연산 가능. len function은 str 로 감싸줘야 functioning 함 print(double_word("hello")) # Should .. 2022. 2. 3.
Google Python Automation Certification - Week 3 Loops while loops,for loops, recursion(반복, 되풀이) x = 0 while x < 5: print("Not there yet, x=" + str(x)) x = x + 1 print("x=" + str(x)) 총 5번 , 0,1,2,3,4 반복함 def attempts(n): x = 1 while x 2022. 2. 2.
Google Python Automation Certification - Week 2 Syntax = 그냥 코드 쓰는거, 컴퓨터한테 뭐 할지 알려주는거 Data Type String = 문자열 (str) integer = 정수형 (int) Float = 소수형 type()하면 무슨 타입인지 확인 가능 variables = container of data lowercase and upercase are different value. function def greeting(name) = parameter print("Hi " + name) 즉 function쓸때, pamameter (== arguments) 대로 쓰면 그 function이 발생함 return returning value 하려면, 예를 들어서 function 돌려서 나온 결과값을 나중에 쓰려고 저장 하려면 return func.. 2022. 2. 1.
Google Python Automation Certification - Week 1 IT automation 에서 Tool Kit 에 Tools 를 많이 늘려가는게 정말 중요한 과정이다 Programming = recipe 임, 컴퓨터한테 뭐 시킬지 In Programming Semantic 이라는 말은 어디선가 많이 들어보고 많이 봤다. 하지만 그게 정확히 무슨 의미인지는 잘 이해가 안갔다. 그래. 시맨틱 웹. 그래. 의미가 있는 웹. 그렇게는 알고 있다. 단어 뜻은 안다. 하지만 정말로 제대로 이해한 것 같지는 않았다. ​ 간단히 이해할 수 있는 예제가 있다. 어떤 프로그램 오류가 있다. 그런데 이건 Syntax Error 가 있지는 않아서 컴파일이 잘 된다. 그런데 오류가 있다. 내가 바라는대로 작동을 안하고 이상하게 작동을 한다. 프로그래머들이 흔히 말하는, 제일 짜증나는 종류의.. 2022. 2. 1.
Object Oriented Programming 다시 클래스 : 함수 , 변수들의 합 오브젝트 : 클래스를 이용해서 만들어낸 물체 클래스 == 빵 만들 때 빵 틀 오브젝트(인스턴스) == 빵 self.name = name이라는 이미 만들어진 변수를 불러와서 self 오브젝트 안에 넣는 것 사람 3명을 예로 들어보자 각각의 이름들을 받아와서 나는 누구누구다 라는 프로그램을 짜고 싶을때 name 이라는 변수를 , person() object를 만들때 할당하고싶으면 여기서 __init__ 함수를 써야함 __init__함수는 self를 첫 인자로 받고 그다음 새로쓸 변수들을 설정 해줄수 있다 즉 미리 만들어진 person() 이라는 클래스에 , 객체를 만들때 __init__ 함수를 써서, 값을 받아오고, 그 값을 통해 이제 person() 안에 종속된 오브젝트가 .. 2022. 1. 26.
Devops - 1 지속적 통합(Continuous Integration) : 개발자가 만든 변경 사항에 대해 빌드및 테스트를 해보고 저장소를 관리 함으로써, 빠르게 버그를 발견하고 품질 보장 지속적 배포(Continuous Delivery) : 개발 된 결과물의 산출물을 자동으로 자동화된 파이프라인에 올려서 배포 및 운영 -> 데브옵스를 적용함에 있어 가장 기본 아무리 자동화된 파이프라인이 가지고 있더라도, 소프트웨어가 클수록 빌드 및 테스트 단계에서 병목 현상이 발생하게 되는데 마이크로 서비스(Micro-services)를 여러개로 쪼개서 빌드타임과 배포 타임을 줄일수 있음 IaC(Infrastructure as Code) : 인프라에도 서비스 배포에 따라 코드로써 자동화가 필요함 Monitoring & Logging .. 2022. 1. 24.
와이어샤크 - 1 실무에서도 와이어 샤크를 제일 많이씀 여러용도로 사용1. 침해대응 분석 - 모니터링 (로그분석을 하다 보면 나왔던 패킷 분석) - IPS/IDS 장비에서 분석 되었던 패킷 샘플들을 가져와서 읽어보는 대 사용, 실시간으로는 잘 안함2. 모의 해킹 - 지나가는 클라이언트, 개인PC에서 서버로 가는 값들이 제대로 암호화 되는가에 대한 관점3. 애플리케이션 - 패킷분석 어떤점들이 노출 되는지, 확인4. 포렌식 분석 - 침해 대응 관점에서 보게 되는 것 winpcap - 패킷 드라이브 (모니터링 모드, 다른 PC 즉 같은 대역에서 발생되는 패킷들을 받아 분석 용)와이어 샤크 자체만으로 모든 패킷을 분석 할수 없기 때문에 winpcap이라는 모듈을 설치해서 같이 사용 dumpcap - dump 패킷들 저장merge.. 2022. 1. 18.