본문 바로가기
조회 수 944 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
** from /var/log/messages
------------------8<--------------------
Dec  7 16:53:28 sglab kernel: rtc_cmos 00:04: setting system clock to 2014-12-07 08:53:22 UTC (1417942402) <--- timestamp and system clock has +8 hours difference (GMT+8)
[...]
Dec  7 16:53:28 sglab ntpd[1017]: ntpd 4.2.6p5@1.2349-o Sat Nov 23 18:21:48 UTC 2013 (1)
Dec  7 16:53:28 sglab ntpd[1018]: proto: precision = 0.060 usec
Dec  7 16:53:28 sglab ntpd[1018]: 0.0.0.0 c01d 0d kern kernel time sync enabled
Dec  7 16:53:28 sglab ntpd[1018]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Dec  7 16:53:28 sglab ntpd[1018]: Listen and drop on 1 v6wildcard :: UDP 123
Dec  7 16:53:28 sglab ntpd[1018]: Listen normally on 2 lo 127.0.0.1 UDP 123
Dec  7 16:53:28 sglab ntpd[1018]: Listen normally on 3 eth0 192.168.122.167 UDP 123
Dec  7 16:53:28 sglab ntpd[1018]: Listen normally on 4 lo ::1 UDP 123
Dec  7 16:53:28 sglab ntpd[1018]: Listen normally on 5 eth0 fe80::20c:29ff:fe08:b367 UDP 123
Dec  7 16:53:28 sglab ntpd[1018]: peers refreshed
Dec  7 16:53:28 sglab ntpd[1018]: Listening on routing socket on fd #22 for interface updates
Dec  7 16:53:31 sglab ntpd[1018]: 0.0.0.0 c016 06 restart
Dec  7 16:53:31 sglab ntpd[1018]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Dec  7 16:53:31 sglab ntpd[1018]: 0.0.0.0 c011 01 freq_not_set
Dec  7 16:53:38 sglab ntpd[1018]: 0.0.0.0 c614 04 freq_mode <--------- no clock_step so timestamp above was correct
------------------8<--------------------

** Note: check time difference in Ruby

require 'date'
date1 = DateTime.new(2014,12,7,8,53,22)
date2 = DateTime.new(2014,12,7,16,53,28)
puts ((date2 - date1) * 24 * 60 * 60).to_i #<-- diff in sec
puts ((date2 - date1) * 24 * 60).to_f #<-- diff in min
puts ((date2 - date1) * 24).to_f #<-- diff in hour

[OUTPUT]
28806
480.1
8.001666666666667 <------- 8 hours difference


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
20 How to Decrypt SSL and TLS Traffic using Wireshark (test with sample file) file Hojung 2015.01.23 2615
19 자바스크립트 난독화 기법 / 분석 방법론 (정리예정) Hojung 2015.01.05 1637
18 Base64 encode/decode with OpenSSL Hojung 2015.01.04 1493
17 Convert ascii to hex and vice versa (hexdump, od, xxd, echo -e) Hojung 2015.01.04 1216
16 Simple ruby script to de-obfuscate with XOR string Hojung 2015.01.01 838
15 Installing yara on CentOS and test with Ruby script Hojung 2014.12.31 2140
14 Installing Yara for ruby on Mac Hojung 2014.12.31 902
13 How to find the original email sender (check X-Originating-IP or Received headers) Hojung 2014.12.29 1011
12 Links for FireEye Deployment Check Hojung 2014.12.11 2804
» Get timezone info from system logs which is /var/log/messages Hojung 2014.12.07 944
10 Analysing NTPd logs file Hojung 2014.12.07 1607
9 Sguil with tcpreplay (Security Onion) file Hojung 2014.12.01 2503
8 Wireshark settings for traffic analysis file Hojung 2014.11.29 1236
7 Security Onion with Snort and Snorby (pulledpork and snort with offline pcap included) file Hojung 2014.11.24 3818
6 Snort on Ubuntu 14 (Barnyard2, PulledPork, BASE, Snort with pcap) file Hojung 2014.11.22 3597
5 How to install Snorby in Kali (snort) file Hojung 2014.11.21 11125
4 install geoiplookup on Mac Hojung 2014.08.06 3131
3 DDoS 공격대응 가이드 Hojung 2014.07.29 4274
2 DDoS 분석도구 설치 및 분석 (tcpdstat, ngrep, httpry) Hojung 2014.07.25 3609
1 Perl script to push samples to Virustotal Hojung 2014.02.20 1406
Board Pagination ‹ Prev 1 Next ›
/ 1

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5