GithubHelp home page GithubHelp logo

digitalisx / security Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 5.0 99.99 MB

Digitalis's Security Lab

Home Page: http://digitalisx.tistory.com

Python 42.87% C++ 0.13% C 30.02% Makefile 0.14% JavaScript 13.34% HTML 6.73% YARA 0.10% Java 2.73% TypeScript 3.95%
mbr python forensics

security's People

Contributors

digitalisx avatar sindyketh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

security's Issues

types 패키지 및 dev-dependencies

일반적으로 Typescript는 API에 대한 Type정보를 제공하기 때문에 보다 안정적으로 코딩이 가능
그러나 외부 라이브러리의 경우에는, Type에 대한 정보가 포함되지 않은 경우가 많음

types: 타입 정보가 작성되지 않은 라이브러리를 위한 타입정보 관리 패키지

types가 없을 경우에, npm에서 라이브러리에 해당하는 types를 다운로드 해야 함
그리고 이를 package.json에서는 dev-dependencies에 기재해야 함

Typescript Non-Null Assertion Operator (!)

정식적으로는 non-null assertion operator라고 명명한다.
해당 데이터에 null이나 undefined가 담기지 않을 것이니 이에 대한 문제를 야기하지 말라는 의미,
타입에 대한 강한 검증을 무시하고 수행할 때 유용하게 사용된다.

SQLite JSON Object Query

  1. 4772-6837이라는 테이블에서 json형태인 data 컬럼에서 해당 Key의 Value만 뽑아오기
    SELECT json_extract(data, '$.OCR_text') FROM "4772-6837"
    SELECT json_extract(data, '$.labels') FROM "4772-6837"

  2. 테이블과 지정한 데이터 중 Null이 아닌 데이터의 개수를 반환하기 (count)
    SELECT count(json_extract(data, '$.OCR_text')) FROM "4772-6837"

  3. 데이터 중 null 또는 empty 상태의 데이터들 불러오기
    SELECT id, data FROM "4772-6837" WHERE json_extract(data, '$.OCR_text') is NULL or json_extract(data, '$.OCR_text') = ''

Text : 630/633 (0.978264644)
Document : 415/633 (0.674246121951807)
Paper : 299/633 (0.578133050602005)
Receipt : 33/633 (0.676646577575758)
Error : 3/633 (1 Directory, 2 Files)

확인 결과, 타 파일과 달리 Public Access 상태가 아닌 것으로 확인됨

AWS S3 개념 및 API

Bucket == 연관 Object들을 포괄하는 최상위 디렉토리
Object == 파일

Key == Bucket 내에서 Object가 가지는 경로
Development/Projects.xls
Finance/statement1.pdf
Private/taxdocument.pdf

제공 API
listObjects() - Object들 1000개 단위로 나열 (NextToken으로 다음 페이지 로드)
getObject() - Key에 따라 Object 정보 가져옴 (Body, Content-Type)
putObject() - 지정하는 Key에 맞게 Buffer의 데이터를 Object형태로 S3에 업로드함 (파일 업로드)
deleteObject() - 지정하는 Key에 맞게 Object를 삭제함

레퍼런스 : https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html

Variable name 작성 및 Camel Case

다른 함수에서 사용되더라도 동일한 변수를 사용할 경우, 그 이름을 통일할 것 (Scope에 관계 없이)
일반적으로 Camel Case (단봉낙타, 낙타의 혹처럼 특정 부분만 대문자로 사용하기 때문)
userExpire, pathIterator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.