[SecureCRT] Row,Cols 일괄 변경
C:\PortableApps\cmd_linux_x86\bin\find D:\settings\securecrt -print -name “*.ini” -exec C:\PortableApps\cmd_linux_x86\bin\sed -i -e “s/^D:\”Cols\”=.*/D:\”Cols\”=00000064/g” -e “s/^D:\”Rows\”=.*/D:\”Rows\”=0000001c/g” {} ; C:\PortableApps\cmd_linux_x86\bin\find D:\settings\securecrt -name “sed*” -exec rm -f {} ;
[SecureCRT] Row,Cols 일괄 변경 더 읽기"
[Fortify] FPR 파일 내부 분석
FPR을 ZiP파일로 이름 변경 후 압축을 풀면 아래와 같은 파일들이 풀어진다. <ExternalMetadata> <src-archive> <src-xrefdata> attachments.xml audit.fvdl audit.properties audit.xml audit.fvdl.mac filtertemplate.xml metatable VERSION 이 중 중요한 파일은… ■ FVDL(Fortify Vulnerability Definition Language) 파일은 모든 취약점의 상세 정보와 분석결과가 명시되어 있으나 Critical, High 취약점 갯수 등의 취약점 요약 정보는 없다. ■ audit.xml에는 Suppressed 된 취약점의 목록이 명시되어
[Fortify] SCA Filter 옵션 사용방법
■ 개요 Suppressed된 취약점의 IID만 취합하여 재 빌드 시 해당 IID들의 취약점은 무시한다. ■ 사용 방법 1. fpr_report.sh 스크립트를 사용하여 suppressed_list를 뽑아낸다. bash -c “./fpr_report.sh webgoat.fpr” 2. 스캔 시에 -filter 옵션을 주어 해당 Suppressed 목록은 분석결과에서 필터링 시킨다. sourceanalyzer -b WebGoat5.0 -filter webgoat_suppressed_list.txt -scan -f WebGoat5.0.fpr ■ 필터파일
[Fortify] SCA Filter 옵션 사용방법 더 읽기"
[Fortify] SCA MBS(Mobile Build Session) 사용방법
■ 개요 SCA 모바일 빌드 세션(MBS)을 사용하면 개발자 PC등의 컴퓨터에서 프로젝트를 빌드하고 더 나은 하드웨어를 갖춘 다른 컴퓨터에서 프로젝트를 스캔할 수 있다. MBS를 사용하면 원본 컴퓨터에서 변환을 수행한 다음 빌드 세션을 더 잘 갖추어진 컴퓨터로 이동하여 스캔을 수행할 수 있다. 개발자는 자신의 컴퓨터에서 빌드을 실행하고 하나의 강력한 컴퓨터만 사용하여 대규모 스캔을 실행할 수 있다. ■
[Fortify] SCA MBS(Mobile Build Session) 사용방법 더 읽기"
리눅스 캐쉬 비우기 (메모리 확보)
# 플러싱 하기 (반드시 먼저 실행할 것!!) sync # pagecache 비우기 sysctl -w vm.drop_caches=1 # dentries, inodes 비우기 sysctl -w vm.drop_caches=2 # pagecache, dentries, inodes 모두 비우기 sysctl -w vm.drop_caches=3 # pagecache, dentries, inodes 캐쉬 시작 sync echo 0 > cat /proc/sys/vm/drop_caches # crontab -e (매시간 마다 실행) 0 * * * * /usr/bin/sync &&
MySQL 커맨드 라인에서 쿼리 실행
mysql -u gateone -p<패스워드> MODOOS \ –batch \ –disable-column-names \ –execute \ “SELECT DEVID, ( SELECT GNAME FROM ONE_GROUP WHERE ONE_GROUP.GID=ONE_DEVICE.GID ) FROM ONE_DEVICE ORDER BY DEVID ASC;”
sshd에 banner 넣기
1. /etc/banner 편집 WARNING: Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected. 2. vi /etc/ssh/sshd_config Banner /etc/banner 구문 추가 3. sshd 재시작
[ffmpeg] 동영상의 특정 구간을 MP3로 변환하기
@ECHO OFF REM 00:00:00 → 시:분:초 SET “START_TIME=00:02:25” SET “FINISH_TIME=00:03:45” SET FN_START_TIME=%START_TIME::=% SET FN_FINISH_TIME=%FINISH_TIME::=% @ECHO ON ffmpeg -y -ss %START_TIME% -to %FINISH_TIME% -i “filename.mp4” -vn -acodec libmp3lame -ac 2 -ab 192k -f mp3 “%FN_START_TIME%-%FN_FINISH_TIME%.mp3” @PAUSE
[ffmpeg] 동영상의 특정 구간을 MP3로 변환하기 더 읽기"
postfix 기본 설정
$ vi /etc/postfix/main.cf 후 아래 항목들을 수정 후 추가한다. myhostname = smtp.example.com inet_interfaces = all mynetworks_style = subnet mynetworks = 10.10.10.0/24, 127.0.0.0/8 # service postfix restart or # systemctl restart postfix
docker 기본 명령어
※ container는 VM 프로세스 개념, image는 docker image file 개념. ■docker container 확인 docker ps docker ps -a (죽은 docker container까지 확인) docker ps –format "table {{.Names}}\t{{.Ports}}" docker name과 port만 출력 ■docker 쉘로 진입 docker exec -i -t <CONTAINER ID or Name> /bin/bash ■docker container 로그 열람 docker logs <CONTAINER ID or Name> docker logs
React Native 설치
설명: https://academy.realm.io/kr/posts/react-native/ 웹페이지; https://facebook.github.io/react-native/ 1. node.js(npm 포함) 설치 https://nodejs.org/ko/download/ 2. React Native 설치 npm install -g react-native-cli 3. Android SDK 설치 https://developer.android.com/studio/index.html#command-tools 에서 다운로드 받아 설치 후… mkdir %HOMEPATH%\.android echo.>> %HOMEPATH%\.android\repositories.cfg 4. React Native 구동 테스트 프로젝트를 생성할 디렉토리로 이동 후… react-native init AwesomeProject cd AwesomeProject react-native start 후 다른 창을 열어서… react-native run-android
[Fortify] SSC app.properties 파일 기본 설정
vi ~/.fortify/ssc/conf/app.properties # Lucene index location on filesystem searchIndex.location=/root/.fortify # Minimal value for password strength score acceptable for saving new password password.strength.min.score=0
[Fortify] SSC app.properties 파일 기본 설정 더 읽기"
[youtube-dl] 유튜브 다운로드 스크립트
사용방법: 1. ./youtube_urls.txt 편집 2. nohup ./download_youtube.sh -f &
[youtube-dl] 유튜브 다운로드 스크립트 더 읽기"
