Hatena::Groupptech

ぷちてく RSSフィード

Archive
 
ProfileProfile

2016-10-08

[spoiler] alive2017.com

03:06

screenshot

> http://alive2017.com

spoiler below


HEAD

$ HEAD http://alive2017.com
200 OK
Connection: close
Date: Sat, 08 Oct 2016 16:34:38 GMT
Accept-Ranges: bytes
Server: nginx
Vary: Accept-Encoding
Content-Length: 1562
Content-Type: text/html
Last-Modified: Tue, 27 Sep 2016 19:16:33 GMT
Client-Date: Sat, 08 Oct 2016 16:34:38 GMT
Client-Peer: 143.95.43.11:80
Client-Response-Num: 1
Ngpass_ngall: 1

$ 
Last-Modified: Tue, 27 Sep 2016 19:16:33 GMT

a month later -> ****

JavaScript

function getTimeRemaining(endtime) {
  var t = Date.parse(endtime) - Date.parse(new Date());
  var seconds = Math.floor((t / 1000) % 60);
  var minutes = Math.floor((t / 1000 / 60) % 60);
  var hours = Math.floor((t / (1000 * 60 * 60)) % 24);
  var days = Math.floor(t / (1000 * 60 * 60 * 24));
  return {
    'total': t,
    'days': days,
    'hours': hours,
    'minutes': minutes,
    'seconds': seconds
  };
}

function initializeClock(id, endtime) {
  var clock = document.getElementById(id);
  var daysSpan = clock.querySelector('.days');
  var hoursSpan = clock.querySelector('.hours');
  var minutesSpan = clock.querySelector('.minutes');
  var secondsSpan = clock.querySelector('.seconds');

  function updateClock() {
    var t = getTimeRemaining(endtime);

    daysSpan.innerHTML = t.days;
    hoursSpan.innerHTML = ('0' + t.hours).slice(-2);
    minutesSpan.innerHTML = ('0' + t.minutes).slice(-2);
    secondsSpan.innerHTML = ('0' + t.seconds).slice(-2);

    if (t.total <= 0) {
      clearInterval(timeinterval);
    }
  }

  updateClock();
  var timeinterval = setInterval(updateClock, 5555);
}

var deadline = "2016-10-27"
initializeClock('clockdiv', deadline);
http://alive2017.com/js/index.js
var deadline = "2016-10-27"

HTML

$ GET alive2017.com | sed -n '/<\!--/,/-->/p'
<!--
  CONTACT CONFIRMED
  PRINT TRANSMISSION
  48 51 24 2 21 03
  34 03 118 15
  51 30 26 N 0 7 39
  40 7128 74 0059
  35 6895 139 6917
  23 5505 46 6333
  39 0200 1 4821
  33 7206 116 2156
  TRANSMISSION INTERRUPTED
  ...LISTENING...
  ...LISTENING...
  NO SIGNAL DETECTED. RETRY IN 10s...
  RETRY IN 9s...
  RETRY IN 8s...
  RETRY IN 7s...
  RETRY IN 6s...
  RETRY IN 5s...
  RETRY IN 4s...
  RETRY IN 3s...
  RETRY IN 2s...
  RETRY IN 1s...
  SIGNAL DETECTED...CONNECTING
  CONTACT CONFIRMED
  PRINT TRANSMISSION
  RA 0h 42m 44s  Dec 41 16 9
  TRANSMISSION TERMINATED REMOTELY
  ...LISTENING...
  SIGNAL DETECTED...CONNECTING
  CONTACT CONFIRMED
  PRINT TRANSMISSION
  "ALIVE"
  TRANSMISSION TERMINATED REMOTELY
  ...LISTENING...
  ...LISTENING...
  NO SIGNAL DETECTED. RETRY IN 10s...
  RETRY IN 9s...
  RETRY IN 8s...
  RETRY IN 7s...
  RETRY IN 6s...
  RETRY IN 5s...
  RETRY IN 4s...
  RETRY IN 3s...
  RETRY IN 2s...
  RETRY IN 1s...
  NO SIGNAL DETECTED.
  START SLEEP ROUTINE
  WAKE DATE 2016-10-27
  //SHEP LOGGED OUT
  -->
http://alive2017.com
<!-- snip
  WAKE DATE 2016-10-27
snip -->
<!-- snip
  48 51 24 2 21 03
  34 03 118 15
  51 30 26 N 0 7 39
  40 7128 74 0059
  35 6895 139 6917
  23 5505 46 6333
  39 0200 1 4821
  33 7206 116 2156
snip -->

latitude-longitude

screenshot


APPENDIX

network/server

whois

COM

dig

$ dig ANY alive2017.com @8.8.8.8

; <<>> DiG 9.10.3-P4-Ubuntu <<>> ANY alive2017.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25399
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;alive2017.com.                 IN      ANY

;; ANSWER SECTION:
alive2017.com.          21553   IN      SOA     ns1.asoshared.com. root.localhost.localdomain. 2016092505 3600 7200 1209600 86400
alive2017.com.          21553   IN      A       143.95.43.11
alive2017.com.          21553   IN      MX      0 alive2017.com.
alive2017.com.          21553   IN      NS      ns1.asoshared.com.
alive2017.com.          21553   IN      NS      ns2.asoshared.com.
alive2017.com.          21553   IN      TXT     "v=spf1 +a +mx +ip4:65.99.237.53 +include:relay.mailchannels.net ~all"

;; Query time: 20 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Oct 09 02:32:52 JST 2016
;; MSG SIZE  rcvd: 263

lubuntu@lubuntu:~$ 
トラックバック - http://ptech.g.hatena.ne.jp/noromanba/20161008