본문 바로가기

ping, traceroute, netstat 명령어 ping [-c 횟수] [-s 패킷크기] 호스트 주소 traceroute 호스트 주소 인터페이스가 하나가 아닌 경우traceroute -i 인터페이스명 호스트주소 netstat 일반적인 사용법netstat -nrMSS는 패킷 조각의 최대 크기irtt는 패킷 윈도우 크기 netstat네트워크의 인터넷 접속 상태와 소켓 상태를 보여줌 netstat -t인터넷 상태만 보여줌 netstat -i새로운 커널 라우팅 테이블 화면을 출력MTU: Maximum Transmission Unit 최대 전송 단위Met: Metric 값RX: 전송 받은 패킷TX: 전송 보내는 패킷DRP: 버려진 패킷OVR: 과다 넘침으로 인한 유실된 패킷 더보기
webview가 중지해 있을 때도 cpu를 많이 소비하는 경우 @Override public void onPause() { super.onPause(); /* pause timer of the webview, if not, high CPU during on pause */ page.pauseTimers(); }public void onResume() { /* reactive timer */ super.onResume(); page.resumeTimers(); } 더보기
압축 파일의 패스워드 찾기 root@bt:~/Desktop# vi unzip.py import zipfile zFile = zipfile.ZipFile('evil.zip') zip된 파일 열기 passFile = open('dictionary.txt') dictionary 파일 열기 for line in passFile.readlines(): password = line.strip('\n') try: zFile.extractall(pwd=password) 사전에서 가지고 온 패스워드를 인자로 전달 print '[+] Password = ' + password + '\n' exit(0) except Exception, e: pass root@bt:~/Desktop# python unzip.py [+] Password = secret.. 더보기