2014/05/28

продлить получение обновлений для системы безопасности Windows XP на ближайшие пять лет, т.е. до апреля 2019 года

Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\SYSTEM\WPA\PosReady] 
"Installed"=dword:00000001

Какое низкое коварство
Полуживого обновлять…
Ему реестр поправлять,
Печально подносить апдейты,
Вздыхать и думать про себя:
Когда же я снесу тебя?

http://habrahabr.ru/post/200260/

2014/01/30

hash(salt + password) vs hash(password + salt)

http://habrahabr.ru/post/210760/#comment_7257224


Loki3000,30 января 2014 в 13:08#
злоумышленник может предвычислить заранее хеш(соль) и далее считать хеш(соль)+хеш(пароль) уже куда быстрее (практически с той же скоростью, что и просто хеш(пароль))

А можно этот момент более подробно? Я не понял как поможет вычисление хаша соли при поиске хэша соли+пароля

torkve,30 января 2014 в 13:18#
Например, md5 действует последовательно. То есть, когда вы считаете хэш от каких-то данных, это можно представить в виде:

hasher = new MD5Hash()
for piece in data:
hasher.feed(piece)
return hasher.getvalue()
Соответственно, при каждой «кормёжке» объекта хэшера данными, он вычисляет следующее состояние хэша. Если данные всегда начинаются с известной соли, то можно в качестве начального состояния хэшера брать всегда одинаковый хэшер (с заданным состоянием), куда уже скормили соль, и просто перебирать пароли, как будто соли нет вообще.

2013/07/08

dummy sendmail

[psumkin@psumkin-pc] ~
$ ls -l /usr/sbin/sendmail 
lrwxrwxrwx 1 root root 19 Oct 11  2012 /usr/sbin/sendmail -> /opt/dummy-sendmail

[psumkin@psumkin-pc] ~
$ cat /usr/sbin/sendmail 
#!/bin/sh
# should be placed as /usr/sbin/sendmail

prefix="/var/mail/dummy-sendmail"
mkdir -p $prefix
date=`date \+\%Y\%m\%d\%H\%M\%N`
name="$prefix/$date.eml"
while read line
do
echo $line >> $name
done
chmod 666 $name

[psumkin@psumkin-pc] ~
$ 

Навеяно habrahabr: Sendmail-заглушка для Linux

2013/06/10

MySQL and JSON

common_schema is a framework for MySQL server administration.

common_schema provides with:

  • A function library (text functions, security routines, execution and flow control, more...)
  • A set of informational and analysis views (security, schema design, processes, transactions, more...)
  • QueryScript interpreter, allowing for server side scripting.
  • rdebug: a debugger and debugging API for MySQL stored routines (alpha)

It introduces SQL based tools which simplify otherwise complex shell and client scripts, allowing the DBA to be independent of operating system, installed packages and dependencies.

It is a self contained schema, compatible with all MySQL >= 5.1 servers. Installed by importing the schema into the server, there is no need to configure nor compile. No special plugins are required, and no changes to your configuration.

common_schema has a small footprint (under 1MB).

common_schema supports MySQL 5.1, 5.5, 5.6. It supports Percona Server & MariaDB.

common_schema 2.0 is licensed under the GPL license. Older versions are relesed under the New BSD License.

  • extract_json_value(): Extract value from JSON notation via XPath. This function is CPU intensive.
  • get_option(): Extract value from options dictionary based on key. The dictionary is similar in format to Python's dictionary or to JavaScript's shallow JSON object.