2012-06-03

フィッシングサイトへ誘導する Twitter ダイレクトメッセージにご注意!

Gmail のメールボックスにこんなメッセージが。



メッセージ自体は Twitter サイトから送られた、ダイレクトメッセージ受け取り通知。ダイレクトメッセージの本文として「Hello some person is posting very bad things about you...(あなたの悪口を言っている人がいますよ…)」とある。

本文内のリンクは TinyURL の短縮 URL で、展開してみると、なぜかロシアのドメイン。
http://hotro.ru?*****

クリックしてみると(真似しないこと)、リダイレクトされて次は
http://itvtitetr.com/re.login/w/?&session_timed_out
というサイト。画面はこんなの。



「Your session has timed out, please re-login.(セッションがタイムアウトしたから、もっかいログインしなおして。)」とのメッセージで Twitter 風のログイン画面…。あやしすぎる…。明らかにフィッシングサイトかと。

で紹介されている DM メッセージを総合すると、メッセージには

(Hello|Hi|Hey) (someone|somebody|this user|some person) is (making|saying|posting) (horrible|nasty|very bad|really bad|terrible) (things|rumors) about you... <短縮 URL>

みたいな法則性がある模様。
ちょっと長くなるけど、全部組み合わせてみると、こんな感じ。
  • Hello someone is making horrible things about you...
  • Hello someone is making horrible rumors about you...
  • Hello someone is making nasty things about you...
  • Hello someone is making nasty rumors about you...
  • Hello someone is making very bad things about you...
  • Hello someone is making very bad rumors about you...
  • Hello someone is making really bad things about you...
  • Hello someone is making really bad rumors about you...
  • Hello someone is making terrible things about you...
  • Hello someone is making terrible rumors about you...
  • Hello someone is saying horrible things about you...
  • Hello someone is saying horrible rumors about you...
  • Hello someone is saying nasty things about you...
  • Hello someone is saying nasty rumors about you...
  • Hello someone is saying very bad things about you...
  • Hello someone is saying very bad rumors about you...
  • Hello someone is saying really bad things about you...
  • Hello someone is saying really bad rumors about you...
  • Hello someone is saying terrible things about you...
  • Hello someone is saying terrible rumors about you...
  • Hello someone is posting horrible things about you...
  • Hello someone is posting horrible rumors about you...
  • Hello someone is posting nasty things about you...
  • Hello someone is posting nasty rumors about you...
  • Hello someone is posting very bad things about you...
  • Hello someone is posting very bad rumors about you...
  • Hello someone is posting really bad things about you...
  • Hello someone is posting really bad rumors about you...
  • Hello someone is posting terrible things about you...
  • Hello someone is posting terrible rumors about you...
  • Hello somebody is making horrible things about you...
  • Hello somebody is making horrible rumors about you...
  • Hello somebody is making nasty things about you...
  • Hello somebody is making nasty rumors about you...
  • Hello somebody is making very bad things about you...
  • Hello somebody is making very bad rumors about you...
  • Hello somebody is making really bad things about you...
  • Hello somebody is making really bad rumors about you...
  • Hello somebody is making terrible things about you...
  • Hello somebody is making terrible rumors about you...
  • Hello somebody is saying horrible things about you...
  • Hello somebody is saying horrible rumors about you...
  • Hello somebody is saying nasty things about you...
  • Hello somebody is saying nasty rumors about you...
  • Hello somebody is saying very bad things about you...
  • Hello somebody is saying very bad rumors about you...
  • Hello somebody is saying really bad things about you...
  • Hello somebody is saying really bad rumors about you...
  • Hello somebody is saying terrible things about you...
  • Hello somebody is saying terrible rumors about you...
  • Hello somebody is posting horrible things about you...
  • Hello somebody is posting horrible rumors about you...
  • Hello somebody is posting nasty things about you...
  • Hello somebody is posting nasty rumors about you...
  • Hello somebody is posting very bad things about you...
  • Hello somebody is posting very bad rumors about you...
  • Hello somebody is posting really bad things about you...
  • Hello somebody is posting really bad rumors about you...
  • Hello somebody is posting terrible things about you...
  • Hello somebody is posting terrible rumors about you...
  • Hello this user is making horrible things about you...
  • Hello this user is making horrible rumors about you...
  • Hello this user is making nasty things about you...
  • Hello this user is making nasty rumors about you...
  • Hello this user is making very bad things about you...
  • Hello this user is making very bad rumors about you...
  • Hello this user is making really bad things about you...
  • Hello this user is making really bad rumors about you...
  • Hello this user is making terrible things about you...
  • Hello this user is making terrible rumors about you...
  • Hello this user is saying horrible things about you...
  • Hello this user is saying horrible rumors about you...
  • Hello this user is saying nasty things about you...
  • Hello this user is saying nasty rumors about you...
  • Hello this user is saying very bad things about you...
  • Hello this user is saying very bad rumors about you...
  • Hello this user is saying really bad things about you...
  • Hello this user is saying really bad rumors about you...
  • Hello this user is saying terrible things about you...
  • Hello this user is saying terrible rumors about you...
  • Hello this user is posting horrible things about you...
  • Hello this user is posting horrible rumors about you...
  • Hello this user is posting nasty things about you...
  • Hello this user is posting nasty rumors about you...
  • Hello this user is posting very bad things about you...
  • Hello this user is posting very bad rumors about you...
  • Hello this user is posting really bad things about you...
  • Hello this user is posting really bad rumors about you...
  • Hello this user is posting terrible things about you...
  • Hello this user is posting terrible rumors about you...
  • Hello some person is making horrible things about you...
  • Hello some person is making horrible rumors about you...
  • Hello some person is making nasty things about you...
  • Hello some person is making nasty rumors about you...
  • Hello some person is making very bad things about you...
  • Hello some person is making very bad rumors about you...
  • Hello some person is making really bad things about you...
  • Hello some person is making really bad rumors about you...
  • Hello some person is making terrible things about you...
  • Hello some person is making terrible rumors about you...
  • Hello some person is saying horrible things about you...
  • Hello some person is saying horrible rumors about you...
  • Hello some person is saying nasty things about you...
  • Hello some person is saying nasty rumors about you...
  • Hello some person is saying very bad things about you...
  • Hello some person is saying very bad rumors about you...
  • Hello some person is saying really bad things about you...
  • Hello some person is saying really bad rumors about you...
  • Hello some person is saying terrible things about you...
  • Hello some person is saying terrible rumors about you...
  • Hello some person is posting horrible things about you...
  • Hello some person is posting horrible rumors about you...
  • Hello some person is posting nasty things about you...
  • Hello some person is posting nasty rumors about you...
  • Hello some person is posting very bad things about you...
  • Hello some person is posting very bad rumors about you...
  • Hello some person is posting really bad things about you...
  • Hello some person is posting really bad rumors about you...
  • Hello some person is posting terrible things about you...
  • Hello some person is posting terrible rumors about you...
  • Hi someone is making horrible things about you...
  • Hi someone is making horrible rumors about you...
  • Hi someone is making nasty things about you...
  • Hi someone is making nasty rumors about you...
  • Hi someone is making very bad things about you...
  • Hi someone is making very bad rumors about you...
  • Hi someone is making really bad things about you...
  • Hi someone is making really bad rumors about you...
  • Hi someone is making terrible things about you...
  • Hi someone is making terrible rumors about you...
  • Hi someone is saying horrible things about you...
  • Hi someone is saying horrible rumors about you...
  • Hi someone is saying nasty things about you...
  • Hi someone is saying nasty rumors about you...
  • Hi someone is saying very bad things about you...
  • Hi someone is saying very bad rumors about you...
  • Hi someone is saying really bad things about you...
  • Hi someone is saying really bad rumors about you...
  • Hi someone is saying terrible things about you...
  • Hi someone is saying terrible rumors about you...
  • Hi someone is posting horrible things about you...
  • Hi someone is posting horrible rumors about you...
  • Hi someone is posting nasty things about you...
  • Hi someone is posting nasty rumors about you...
  • Hi someone is posting very bad things about you...
  • Hi someone is posting very bad rumors about you...
  • Hi someone is posting really bad things about you...
  • Hi someone is posting really bad rumors about you...
  • Hi someone is posting terrible things about you...
  • Hi someone is posting terrible rumors about you...
  • Hi somebody is making horrible things about you...
  • Hi somebody is making horrible rumors about you...
  • Hi somebody is making nasty things about you...
  • Hi somebody is making nasty rumors about you...
  • Hi somebody is making very bad things about you...
  • Hi somebody is making very bad rumors about you...
  • Hi somebody is making really bad things about you...
  • Hi somebody is making really bad rumors about you...
  • Hi somebody is making terrible things about you...
  • Hi somebody is making terrible rumors about you...
  • Hi somebody is saying horrible things about you...
  • Hi somebody is saying horrible rumors about you...
  • Hi somebody is saying nasty things about you...
  • Hi somebody is saying nasty rumors about you...
  • Hi somebody is saying very bad things about you...
  • Hi somebody is saying very bad rumors about you...
  • Hi somebody is saying really bad things about you...
  • Hi somebody is saying really bad rumors about you...
  • Hi somebody is saying terrible things about you...
  • Hi somebody is saying terrible rumors about you...
  • Hi somebody is posting horrible things about you...
  • Hi somebody is posting horrible rumors about you...
  • Hi somebody is posting nasty things about you...
  • Hi somebody is posting nasty rumors about you...
  • Hi somebody is posting very bad things about you...
  • Hi somebody is posting very bad rumors about you...
  • Hi somebody is posting really bad things about you...
  • Hi somebody is posting really bad rumors about you...
  • Hi somebody is posting terrible things about you...
  • Hi somebody is posting terrible rumors about you...
  • Hi this user is making horrible things about you...
  • Hi this user is making horrible rumors about you...
  • Hi this user is making nasty things about you...
  • Hi this user is making nasty rumors about you...
  • Hi this user is making very bad things about you...
  • Hi this user is making very bad rumors about you...
  • Hi this user is making really bad things about you...
  • Hi this user is making really bad rumors about you...
  • Hi this user is making terrible things about you...
  • Hi this user is making terrible rumors about you...
  • Hi this user is saying horrible things about you...
  • Hi this user is saying horrible rumors about you...
  • Hi this user is saying nasty things about you...
  • Hi this user is saying nasty rumors about you...
  • Hi this user is saying very bad things about you...
  • Hi this user is saying very bad rumors about you...
  • Hi this user is saying really bad things about you...
  • Hi this user is saying really bad rumors about you...
  • Hi this user is saying terrible things about you...
  • Hi this user is saying terrible rumors about you...
  • Hi this user is posting horrible things about you...
  • Hi this user is posting horrible rumors about you...
  • Hi this user is posting nasty things about you...
  • Hi this user is posting nasty rumors about you...
  • Hi this user is posting very bad things about you...
  • Hi this user is posting very bad rumors about you...
  • Hi this user is posting really bad things about you...
  • Hi this user is posting really bad rumors about you...
  • Hi this user is posting terrible things about you...
  • Hi this user is posting terrible rumors about you...
  • Hi some person is making horrible things about you...
  • Hi some person is making horrible rumors about you...
  • Hi some person is making nasty things about you...
  • Hi some person is making nasty rumors about you...
  • Hi some person is making very bad things about you...
  • Hi some person is making very bad rumors about you...
  • Hi some person is making really bad things about you...
  • Hi some person is making really bad rumors about you...
  • Hi some person is making terrible things about you...
  • Hi some person is making terrible rumors about you...
  • Hi some person is saying horrible things about you...
  • Hi some person is saying horrible rumors about you...
  • Hi some person is saying nasty things about you...
  • Hi some person is saying nasty rumors about you...
  • Hi some person is saying very bad things about you...
  • Hi some person is saying very bad rumors about you...
  • Hi some person is saying really bad things about you...
  • Hi some person is saying really bad rumors about you...
  • Hi some person is saying terrible things about you...
  • Hi some person is saying terrible rumors about you...
  • Hi some person is posting horrible things about you...
  • Hi some person is posting horrible rumors about you...
  • Hi some person is posting nasty things about you...
  • Hi some person is posting nasty rumors about you...
  • Hi some person is posting very bad things about you...
  • Hi some person is posting very bad rumors about you...
  • Hi some person is posting really bad things about you...
  • Hi some person is posting really bad rumors about you...
  • Hi some person is posting terrible things about you...
  • Hi some person is posting terrible rumors about you...
  • Hey someone is making horrible things about you...
  • Hey someone is making horrible rumors about you...
  • Hey someone is making nasty things about you...
  • Hey someone is making nasty rumors about you...
  • Hey someone is making very bad things about you...
  • Hey someone is making very bad rumors about you...
  • Hey someone is making really bad things about you...
  • Hey someone is making really bad rumors about you...
  • Hey someone is making terrible things about you...
  • Hey someone is making terrible rumors about you...
  • Hey someone is saying horrible things about you...
  • Hey someone is saying horrible rumors about you...
  • Hey someone is saying nasty things about you...
  • Hey someone is saying nasty rumors about you...
  • Hey someone is saying very bad things about you...
  • Hey someone is saying very bad rumors about you...
  • Hey someone is saying really bad things about you...
  • Hey someone is saying really bad rumors about you...
  • Hey someone is saying terrible things about you...
  • Hey someone is saying terrible rumors about you...
  • Hey someone is posting horrible things about you...
  • Hey someone is posting horrible rumors about you...
  • Hey someone is posting nasty things about you...
  • Hey someone is posting nasty rumors about you...
  • Hey someone is posting very bad things about you...
  • Hey someone is posting very bad rumors about you...
  • Hey someone is posting really bad things about you...
  • Hey someone is posting really bad rumors about you...
  • Hey someone is posting terrible things about you...
  • Hey someone is posting terrible rumors about you...
  • Hey somebody is making horrible things about you...
  • Hey somebody is making horrible rumors about you...
  • Hey somebody is making nasty things about you...
  • Hey somebody is making nasty rumors about you...
  • Hey somebody is making very bad things about you...
  • Hey somebody is making very bad rumors about you...
  • Hey somebody is making really bad things about you...
  • Hey somebody is making really bad rumors about you...
  • Hey somebody is making terrible things about you...
  • Hey somebody is making terrible rumors about you...
  • Hey somebody is saying horrible things about you...
  • Hey somebody is saying horrible rumors about you...
  • Hey somebody is saying nasty things about you...
  • Hey somebody is saying nasty rumors about you...
  • Hey somebody is saying very bad things about you...
  • Hey somebody is saying very bad rumors about you...
  • Hey somebody is saying really bad things about you...
  • Hey somebody is saying really bad rumors about you...
  • Hey somebody is saying terrible things about you...
  • Hey somebody is saying terrible rumors about you...
  • Hey somebody is posting horrible things about you...
  • Hey somebody is posting horrible rumors about you...
  • Hey somebody is posting nasty things about you...
  • Hey somebody is posting nasty rumors about you...
  • Hey somebody is posting very bad things about you...
  • Hey somebody is posting very bad rumors about you...
  • Hey somebody is posting really bad things about you...
  • Hey somebody is posting really bad rumors about you...
  • Hey somebody is posting terrible things about you...
  • Hey somebody is posting terrible rumors about you...
  • Hey this user is making horrible things about you...
  • Hey this user is making horrible rumors about you...
  • Hey this user is making nasty things about you...
  • Hey this user is making nasty rumors about you...
  • Hey this user is making very bad things about you...
  • Hey this user is making very bad rumors about you...
  • Hey this user is making really bad things about you...
  • Hey this user is making really bad rumors about you...
  • Hey this user is making terrible things about you...
  • Hey this user is making terrible rumors about you...
  • Hey this user is saying horrible things about you...
  • Hey this user is saying horrible rumors about you...
  • Hey this user is saying nasty things about you...
  • Hey this user is saying nasty rumors about you...
  • Hey this user is saying very bad things about you...
  • Hey this user is saying very bad rumors about you...
  • Hey this user is saying really bad things about you...
  • Hey this user is saying really bad rumors about you...
  • Hey this user is saying terrible things about you...
  • Hey this user is saying terrible rumors about you...
  • Hey this user is posting horrible things about you...
  • Hey this user is posting horrible rumors about you...
  • Hey this user is posting nasty things about you...
  • Hey this user is posting nasty rumors about you...
  • Hey this user is posting very bad things about you...
  • Hey this user is posting very bad rumors about you...
  • Hey this user is posting really bad things about you...
  • Hey this user is posting really bad rumors about you...
  • Hey this user is posting terrible things about you...
  • Hey this user is posting terrible rumors about you...
  • Hey some person is making horrible things about you...
  • Hey some person is making horrible rumors about you...
  • Hey some person is making nasty things about you...
  • Hey some person is making nasty rumors about you...
  • Hey some person is making very bad things about you...
  • Hey some person is making very bad rumors about you...
  • Hey some person is making really bad things about you...
  • Hey some person is making really bad rumors about you...
  • Hey some person is making terrible things about you...
  • Hey some person is making terrible rumors about you...
  • Hey some person is saying horrible things about you...
  • Hey some person is saying horrible rumors about you...
  • Hey some person is saying nasty things about you...
  • Hey some person is saying nasty rumors about you...
  • Hey some person is saying very bad things about you...
  • Hey some person is saying very bad rumors about you...
  • Hey some person is saying really bad things about you...
  • Hey some person is saying really bad rumors about you...
  • Hey some person is saying terrible things about you...
  • Hey some person is saying terrible rumors about you...
  • Hey some person is posting horrible things about you...
  • Hey some person is posting horrible rumors about you...
  • Hey some person is posting nasty things about you...
  • Hey some person is posting nasty rumors about you...
  • Hey some person is posting very bad things about you...
  • Hey some person is posting very bad rumors about you...
  • Hey some person is posting really bad things about you...
  • Hey some person is posting really bad rumors about you...
  • Hey some person is posting terrible things about you...
  • Hey some person is posting terrible rumors about you...
あと、フィッシングサイトも、
  • itvtitetr.com
  • itvitter.com
  • rititter.com
  • ltvvitter.com
  • rtwitteri.com
  • utvvitter.com
  • twltteri.com
  • tvivvitter.com
  • twititre.com
がある由。

フィッシングサイトにログイン情報を入力すると、その Twitter アカウントが乗っ取られてしまい、さらに別のユーザーへダイレクトメールを送る踏み台として、自身のアカウントが使われてしまいます。なので、こんなダイレクトメッセージがもし来ても、絶対にリンクをクリックしないこと。

あともしログイン情報を入力してしまっても、すぐに Twitter 自体のパスワードを変更して、ダイレクトメッセージ等送っていないか確認するのがよいかと。送っていたのを確認したら、「ごめん!それ開かず削除して」と謝罪メッセージを送るのがよさそうです。

2012-05-27

Blogger ブログ移行用、MovableType 形式のエクスポートデータの日付を変換するツール

最近投稿のタイトルが長くなってきている気がするのだけれど、まあ、表題の通り。


このツールで自動的にしてくれること:
  • 日本標準時(JST)をグリニッジ標準時(GMT)に変換。 (例: 5/5 08:34 → 5/4 23:34)
  • 24 時間制の時刻を 12 時間表記に。 (例: 23:34 → 11:34 PM)
  • 0 時台は 12 時台へ書き換え(Blogger の仕様)。 (例: 0:12 AM → 12:12 AM)

他のブログサービスのブログデータを Blogger へ移行するときに使用する、エクスポートファイル変換ツール MovableType2Blogger へデータを送る前に、こちらで日時変換を行っておくのがいいかと。






ちなみに、けっこうどうでもいいことだけれど、このツールのコードはこちら。
<script type="text/javascript">
<!--
function getGMTDate(s) {
  var d = new Date(s);
  var h = d.getUTCHours();
  var a;
  if (h > 11) {
    a = "PM";
    h -= 12;    
  } else {
    a = "AM";
  }
  if (h == 0) {
    h = 12;
  }
  return getDecimalNumber(d.getUTCMonth() + 1) + "/" + getDecimalNumber(d.getUTCDate()) + "/" + d.getUTCFullYear() + " " + getDecimalNumber(h) + ":" + getDecimalNumber(d.getUTCMinutes()) + ":" + getDecimalNumber(d.getUTCSeconds()) + " " + a;
}
function getDecimalNumber(n) {
  if (n >= 0 && n < 10) {
    return "0" + n;
  } else {
    return "" + n;
  }
}
function changeDate() {
  var raw = document.getElementById("datechangerin").value;
  var rslt = raw.replace(/^DATE: (.*)$/gm, function(a, b) {return "DATE: " + getGMTDate(b);});
  document.getElementById("datechangerout").value = rslt;
}
function selectResult() {
  document.getElementById('datechangerout').select();
}
//-->
</script>
<form action="" onsubmit="changeDate();return false;">
  <textarea id="datechangerin" name="" rows="10" cols="30"></textarea>
  <input type="submit" value="変換" />
  <textarea id="datechangerout" name="" rows="10" cols="30" readonly="readonly"></textarea>
  <input type="button" onclick="selectResult();" value="全選択" />
</form>
何かの参考になれば幸い。

2012-05-26

Google マップでクリックした場所の住所と緯度・経度と郵便番号を表示するプログラム


あと郵便番号までわかったら最高なんですけどね・・・。
という一言に、勝手に触発されて作ってみたのが上のマップ。

Google Maps API から緯度・経度情報を取得して、それを JSONP でグルーブテクノロジーの郵便番号検索 API に送り、返ってきた郵便番号を再び Google Maps API でマップ上に情報を表示する…というのが基本的な処理の流れ。

あとは、オートコンプリートの検索窓を付けたり、マーカー、インフォボックス、メッセージの表示方法を API リファレンスを見ながらちょこちょこ変更。

参考にしたのが、以下のサイト。
で、肝心のコードがこちら。
<input id="searchTextField" type="text" size="50" />
<div id='map' style='width:600px; height:600px;'><br></div>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&libraries=places"></script>
<script type='text/javascript'><!--
var ad = "";
var ll = "";
var map = new google.maps.Map(document.getElementById("map"), {
  zoom: 12,
  center: new google.maps.LatLng(35.689479,139.691778),
  mapTypeId: google.maps.MapTypeId.ROADMAP
});
google.maps.event.addListener(map, 'click', function(mouseEvent) {
  getAddress(mouseEvent.latLng);
});
var input = document.getElementById('searchTextField');
var autocomplete = new google.maps.places.Autocomplete(input);
autocomplete.bindTo('bounds', map);
var infowindow = new google.maps.InfoWindow();
var marker = new google.maps.Marker({map: map});
google.maps.event.addListener(autocomplete, 'place_changed', function() {
  var place = autocomplete.getPlace();
  if (place.geometry) {
    if (place.geometry.viewport) {
      infowindow.close();
      map.fitBounds(place.geometry.viewport);
    } else {
      map.setCenter(place.geometry.location);
    }
  }
});
function getAddress(latlng) {
  var geocoder = new google.maps.Geocoder();
  geocoder.geocode({
    latLng: latlng
  }, function(results, status) {
    if (status == google.maps.GeocoderStatus.OK) {
      if (results[0].geometry) {
        ad = results[0].formatted_address.replace(/^日本, /, '');
        var ad2;
        if (ad.match(/^([^0-9]+)/)) {
          ad2 = RegExp.$1;  
        }
        ll = latlng;
        var s = document.createElement("script");
        s.charset = "utf-8";
        s.src = 'http://api.postalcode.jp/v1/zipsearch?word=' + encodeURIComponent(ad2) + '&callback=showPostalCode';
s.charset = 'utf-8';
        document.body.appendChild(s);
      }
    } else {
      alert(status);
    }
  });
}
function showPostalCode(data) {
  var l = ll.toUrlValue();
  var p = formatCode(data.zipcode.a1.zipcode);
  marker.setPosition(ll);
  infowindow.setContent(((p)? "<span style=\"color:red;\">" + p + "</span><br />": "") + ad + "<br />" + "<a style=\"color:green;\" href=\"https://maps.google.co.jp/maps?q=" + l + "\" target=\"_blank\">" + l + "</a>");
  infowindow.open(map, marker);
}
function formatCode(c) {
  return (c.match(/(\d{3})(\d{4})/))? "〒" + RegExp.$1 + "-" + RegExp.$2: "";
}
//-->
</script>
とりあえず、Firefox と Chrome では動作を確認。IE は知らない。

Google Maps API、初めて触ってみたものの、なかなか手軽で面白い。地図を使ったウェブアプリ、何かアイデアが浮かんだら作ってみてもいいかも…。

Zenback - Everyone's Related Posts