<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>melnikov.net.ru</title>
	<atom:link href="http://melnikov.net.ru/feed/" rel="self" type="application/rss+xml" />
	<link>http://melnikov.net.ru</link>
	<description></description>
	<lastBuildDate>Mon, 22 Feb 2010 00:38:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=9.1.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>USB stuff and velcro at cover of my laptop</title>
		<link>http://melnikov.net.ru/usb-stuff-and-velcro-at-cover-of-my-laptop/</link>
		<comments>http://melnikov.net.ru/usb-stuff-and-velcro-at-cover-of-my-laptop/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 00:38:39 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[inEnglish]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/?p=100</guid>
		<description><![CDATA[I&#8217;m still using old Compaq Evo laptop. It has 14.1&#8243; LCD (so compact) but with with 1400 x 1050 resolution (full specs are here). Hi resolution is critical for me because I often use remote desktop on different hosts, and there are still only rare cases when remote desktop size is higher than my; so [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still using old Compaq Evo laptop. It has 14.1&#8243; LCD (so compact) but with with 1400 x 1050 resolution (<a href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00342808">full specs are here</a>). Hi resolution is critical for me because I often use remote desktop on different hosts, and there are still only rare cases when remote desktop size is higher than my; so remote desctop almost always fit to my local desktop without scrolling.</p>
<p>CPU and memory is not quite big, but Ubuntu Linux still works good enough.</p>
<p>This model has changeable &laquo;multiport&raquo; module on the cover, with WiFi and Bluetooth modules available (some time ago; for now such spare module is rare thing). I bought my Evo with WiFi module, just to found that it works BAD under Windows, and almost not supported in Linux.</p>
<p>But, good news was that &laquo;multiport&raquo; connector is just USB interface. So, I (with help of my friend with soldering skill mutch better than my) was able to place USB type-A female connector on laptop cover.</p>
<p>Next logical step was to use polyurethane glue to put pieces of 50mm (2&#8243;) &#8216;loops&#8217; part of velcro hooks-and-loops fastener to the cover surface, and &#8216;hooks&#8217; pieces on various usb devices I&#8217;m using.</p>
<p>On this photo you could see how my laptop looks now. There are D-Link USB hub, in which WiFi card (TP-Link) and wireless mouse (Logitech &#8216;Nano&#8217; series) are connected. Also there are two spare sockets on hub (there are extender n one of them), usually used for attaching memory sticks, card readers and 4G-modem when I need them.</p>
<p><a href="http://melnikov.net.ru/wp-content/uploads/2010/02/velkroed_laptop.jpg"><img src="http://melnikov.net.ru/wp-content/uploads/2010/02/velkroed_laptop-282x300.jpg" alt="" title="velkro&#039;ed_laptop" width="282" height="300" class="alignnone size-medium wp-image-103" /></a></p>

	Tags: <a href="http://melnikov.net.ru/tag/diy/" title="DIY" rel="tag">DIY</a>, <a href="http://melnikov.net.ru/tag/hardware/" title="hardware" rel="tag">hardware</a>, <a href="http://melnikov.net.ru/tag/inenglish/" title="inEnglish" rel="tag">inEnglish</a>, <a href="http://melnikov.net.ru/tag/it/" title="IT" rel="tag">IT</a>, <a href="http://melnikov.net.ru/tag/laptop/" title="laptop" rel="tag">laptop</a>, <a href="http://melnikov.net.ru/tag/usb/" title="USB" rel="tag">USB</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/usb-stuff-and-velcro-at-cover-of-my-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Проблема с wpa_supplicant и ndiswrapper</title>
		<link>http://melnikov.net.ru/problema-s-wpa_supplicant-i-ndiswrapper/</link>
		<comments>http://melnikov.net.ru/problema-s-wpa_supplicant-i-ndiswrapper/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 22:28:58 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[wiFi Debian Ubuntu]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/problema-s-wpa_supplicant-i-ndiswrapper/</guid>
		<description><![CDATA[Некоторое время назад попытался использовать в Ubuntu wifi-USB-карточку TP-Link TL-WN821N (чип Atheros Otus, ID 0cf3:9170). Она вполне стабильно работает через ndiswrapper (1.54-2ubuntu1) c драйвером от Windows, но только на нешифрованных соединениях.  Что происходит при попытке подключения к точкам доступа, работающим в режиме WPA, расписано в красках в соотв. багрепортах и в Debian и в [...]]]></description>
			<content:encoded><![CDATA[<p>Некоторое время назад попытался использовать в Ubuntu wifi-USB-карточку TP-Link TL-WN821N (чип Atheros Otus, ID 0cf3:9170). Она вполне стабильно работает через ndiswrapper (1.54-2ubuntu1) c драйвером от Windows, но только на нешифрованных соединениях. <span id="more-98"></span> Что происходит при попытке подключения к точкам доступа, работающим в режиме WPA, расписано в красках в соотв. багрепортах и в <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471905">Debian</a> и в <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/207446/comments/81">Ubuntu</a>.</p>
<p>Про самостоятельную сборку пропатченного wpa_supplicant все написано по ссылке на юбунтовский ЛанчПад. Добавлю только, что при сборке в Ubuntu Karmic пришлось добавить следующие пакеты: <code>build-essential quilt debhelper libpcsclite-dev libssl-dev libdbus-1-dev libnl-dev</code>.</p>
<p>Вот <a href="http://melnikov.net.ru/f/wpa_supplicant.bz2">бинарник пропатченного (добавлено usleep(100000) wpa_supplicant версии 0.6.9-3ubuntu1</a> для Ubuntu Karmic Koala i386. Должен находится в /sbin.</p>
<p>Добавлено: после тестирования в моем случае убедился, что патч решает проблему, и <a href="http://http://w1.fi/bugz/show_bug.cgi?id=342">запостил баг в апстрим</a>.</p>

	Tags: <a href="http://melnikov.net.ru/tag/wifi-debian-ubuntu/" title="wiFi Debian Ubuntu" rel="tag">wiFi Debian Ubuntu</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/problema-s-wpa_supplicant-i-ndiswrapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Все модемы у операторов GSM в Питере залочены</title>
		<link>http://melnikov.net.ru/modeli-modemov-u-operatorov-gsm/</link>
		<comments>http://melnikov.net.ru/modeli-modemov-u-operatorov-gsm/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 07:28:43 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[GPRS]]></category>
		<category><![CDATA[GSM]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[SPb]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/modeli-modemov-u-operatorov-gsm/</guid>
		<description><![CDATA[В связи с задачей недорого купить USB-GPRS-модем, обежал вчера офисы продаж ОПСОСов большой тройки (МТС, МегаФон, БиЛайн). МТС и MegaFon продают Huawei E1550, Билайн &#8212; ZTE MF100. Продавцы в салонах говорят &#8212; все залочены, т.е. будут работать только со &#171;своим&#187; оператором. Может, врут или говорят по заученному, но скорее правда. Мне же нужен модем, не [...]]]></description>
			<content:encoded><![CDATA[<p>В связи с задачей недорого купить USB-GPRS-модем, обежал вчера офисы продаж ОПСОСов большой тройки (МТС, МегаФон, БиЛайн). МТС и MegaFon продают Huawei E1550, Билайн &#8212; ZTE MF100. Продавцы в салонах говорят &#8212; все залочены, т.е. будут работать только со &laquo;своим&raquo; оператором. Может, врут или говорят по заученному, но скорее правда. Мне же нужен модем, не привязанный к сети конкретного ОПСОСа, чтобы он мог работать в любой сети с любой симкой.</p>
<p>Розничные цены на модемы (точнее, комплекты модем+SIM-карта) операторы занижают, а модемы привязывают к своим сетям. Незалоченные модемы в питерской рознице продаются дороже раза в два.</p>
<p>Однако, порыв в инете, понимаю, что прогноз по разлочке по обоим вариантам в целом позитивный, так что в ближайшее время буду брать. Скорее всего от МТС &#8212; ценник самый дешевый, 900р., у остальных по 1150р.</p>
<p>PS: кстати, &laquo;обежал&raquo; &#8212; это я не от желания побегать. Просто по телефону решить этот вопрос оказалось нереально. У МТС, например, принципиально не связывают по телефону с конкретным центром обслуживания.. Короче, ОПСОСы &#8212; они такие и есть.</p>

	Tags: <a href="http://melnikov.net.ru/tag/gprs/" title="GPRS" rel="tag">GPRS</a>, <a href="http://melnikov.net.ru/tag/gsm/" title="GSM" rel="tag">GSM</a>, <a href="http://melnikov.net.ru/tag/mobile/" title="mobile" rel="tag">mobile</a>, <a href="http://melnikov.net.ru/tag/modem/" title="modem" rel="tag">modem</a>, <a href="http://melnikov.net.ru/tag/spb/" title="SPb" rel="tag">SPb</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/modeli-modemov-u-operatorov-gsm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>APC SmartUPS battery calibration</title>
		<link>http://melnikov.net.ru/apc-smartups-battery-calibration/</link>
		<comments>http://melnikov.net.ru/apc-smartups-battery-calibration/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 09:43:00 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[ups]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/?p=76</guid>
		<description><![CDATA[
Shutdown your UPS monitoring software.
Contact your UPS directly using some terminal program such as minicom with the settings 2400 8N1 (2400 baud, 8 bits, no parity, 1 stop bit). Be extremely careful what you send to your UPS as certain characters may cause it to power down or may even cause damage to the UPS.
Try [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Shutdown your UPS monitoring software.</li>
<li>Contact your UPS directly using some terminal program such as minicom with the settings 2400 8N1 (2400 baud, 8 bits, no parity, 1 stop bit). Be extremely careful what you send to your UPS as certain characters may cause it to power down or may even cause damage to the UPS.</li>
<li>Try sending to the UPS an upper case &#8216;Y&#8217; (without quotes and return at the end; the same applyes to all following commands). It should respond with &#8216;SM&#8217;. If you fat finger the &#8216;Y&#8217; and enter &#8216;y&#8217; instead, no cause for alarm, you will simply get the APC copyright notice.</li>
<li>When you are sure you are properly connected send an upper case &#8216;D&#8217;. This will put the UPS into calibration mode, and it will drain the battery down to 25% capacity (35% for a Matrix) at which point it will go back on the mains. In doing so, it will recompute the runtime calibration.</li>
<li>(If you wish to abort the calibration, enter a second &#8216;D&#8217; command.)</li>
<li>When you are done, restart your monitoring software.</li>
</ol>
<p>Notes:</p>
<ul>
<li>Does not apply to voltage-signalling or dumb UPSes such as the older BackUPS models.</li>
<li>In a future release of apcupsd this procedure will be replaced by a daemon operation.</li>
<li>Do not run the recalibration command more than once or twice per year as discharging these kinds of batteries tends to shorten their life span.</li>
<li>While recalibrating you should supply a load of about 30 to 35% but not more than 50%. You can determine the load by looking at the output of the apcaccess status command while apcupsd is running.</li>
</ul>

	Tags: <a href="http://melnikov.net.ru/tag/ups/" title="ups" rel="tag">ups</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/apc-smartups-battery-calibration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>virtualBox: raw partition access</title>
		<link>http://melnikov.net.ru/virtualbox-raw-partition-access/</link>
		<comments>http://melnikov.net.ru/virtualbox-raw-partition-access/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 15:22:27 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[virtualBox]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/?p=71</guid>
		<description><![CDATA[Now i&#8217;m migrating from Windows XP to Ubuntu Linux. For some time I will need both OSes to work with minimal time to switch between. As solution, I decide to setup VirtualBox on Windows, and run Ubuntu inside virtual machine. This is quite common situation, but one detail is specifical: Ubuntu is alreday set up [...]]]></description>
			<content:encoded><![CDATA[<p>Now i&#8217;m migrating from Windows XP to Ubuntu Linux. For some time I will need both OSes to work with minimal time to switch between. As solution, I decide to setup VirtualBox on Windows, and run Ubuntu inside virtual machine. This is quite common situation, but one detail is specifical: Ubuntu is alreday set up on separate hard drive partition. So I need to run VirtualBox virtual machine from &laquo;raw&raquo; partition.</p>
<p>The trick was simple &#8212; all steps described in VirtualBox User Manual, see chapter 9.9.</p>
<p>I done such steps:</p>
<p><code>(pathtovboxprogramfolder)\VBoxManage internalcommands listpartitions -rawdisk \\.\PhysicalDrive0</code></p>
<p>which gives:</p>
<p><code>Number  Type   StartCHS       EndCHS      Size (MiB)  Start (Sect)<br />
1       0x07  0   /1  /1   694 /239/63          5131           63<br />
5       0x83  695 /1  /1   1023/239/63          9856     10508463<br />
6       0x82  1023/1  /1   1023/239/63          1026     30693663<br />
7       0x07  1023/1  /1   1023/239/63        136611     32795343</code></p>
<p>Partitions Ubuntu VM needs access are 5 (root fs) and 6 (swap). Next command makes special .vmdk file for such partitions:</p>
<p><code>(pathtovboxprogramfolder)\VBoxManage internalcommands createrawvmdk -filename (pathtovboxdisksfolder>)\raw5and6.vmdk -rawdisk \\.\PhysicalDrive0 -partitions 5,6</code></p>
<p>And, for last, this .vmdk file could be registered with VirtualBox &laquo;Virtual Disk Manager&raquo; and used for VM.</p>

	Tags: <a href="http://melnikov.net.ru/tag/virtualbox/" title="virtualBox" rel="tag">virtualBox</a>, <a href="http://melnikov.net.ru/tag/virtualization/" title="virtualization" rel="tag">virtualization</a>, <a href="http://melnikov.net.ru/tag/windows/" title="windows" rel="tag">windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/virtualbox-raw-partition-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen and serial port problem</title>
		<link>http://melnikov.net.ru/xen-and-serial-port-problem/</link>
		<comments>http://melnikov.net.ru/xen-and-serial-port-problem/#comments</comments>
		<pubDate>Thu, 08 May 2008 22:22:58 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/xen-and-serial-port-problem/</guid>
		<description><![CDATA[By default (on Debian system) Xen uses ttyS0 as serial console, and that causes conflict with kernel module 8250.ko. I personally met this trying to setup &#8216;nut&#8217; package for UPS handling. The solution was found on XenSource page. Actually you just need to add # xenkopt=xencons=ttyS16 line to /boot/grub/menu.lst, do &#8216;update-grub&#8217; and reboot.

	Tags: Debian, grub, [...]]]></description>
			<content:encoded><![CDATA[<p>By default (on Debian system) Xen uses ttyS0 as serial console, and that causes conflict with kernel module 8250.ko. I personally met this trying to setup &#8216;nut&#8217; package for UPS handling. The solution was found on <a href="http://wiki.xensource.com/xenwiki/InstallationNotes#head-6a5e9fa2353809fcb0265dfb42daee2b29b45ada">XenSource page</a>. Actually you just need to add <code># xenkopt=xencons=ttyS16</code> line to /boot/grub/menu.lst, do &#8216;update-grub&#8217; and reboot.</p>

	Tags: <a href="http://melnikov.net.ru/tag/debian/" title="Debian" rel="tag">Debian</a>, <a href="http://melnikov.net.ru/tag/grub/" title="grub" rel="tag">grub</a>, <a href="http://melnikov.net.ru/tag/serial/" title="serial" rel="tag">serial</a>, <a href="http://melnikov.net.ru/tag/xen/" title="xen" rel="tag">xen</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/xen-and-serial-port-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Tech Days: I win &#171;Solaris Internals&#187; book</title>
		<link>http://melnikov.net.ru/sun-tech-days-i-win-solaris-internals-book/</link>
		<comments>http://melnikov.net.ru/sun-tech-days-i-win-solaris-internals-book/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 14:57:05 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/sun-tech-days-i-win-solaris-internals-book/</guid>
		<description><![CDATA[ Now I am on Sun Tech Days at St-Petersburg. Just 10 minutes ago I win the Solaris book authographed by Ian Murdok, creator of Debian Linux, currently Sun employee working on Sloaris), who is one of the speakers of this event. The site of the book is here.
Wifi coverage is everywhere in the building, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://img232.imageshack.us/img232/9652/solarisinternalsen2.jpg" alt="boot" class="alignright" /> Now I am on Sun Tech Days at St-Petersburg. Just 10 minutes ago I win the Solaris book authographed by Ian Murdok, creator of Debian Linux, currently Sun employee working on Sloaris), who is one of the speakers of this event. The site of the book is <a href="http://www.solarisinternals.com/wiki/index.php/Solaris_Internals">here</a>.</p>
<p>Wifi coverage is everywhere in the building, so I could write it right now. The whole event is very well organized and very interesting, so thanks to Sun Microsystems! </p>

	Tags: <a href="http://melnikov.net.ru/tag/debian/" title="Debian" rel="tag">Debian</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/sun-tech-days-i-win-solaris-internals-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSHd: hide daemon version and OS info</title>
		<link>http://melnikov.net.ru/sshd-hide-daemon-version-and-os-info-2/</link>
		<comments>http://melnikov.net.ru/sshd-hide-daemon-version-and-os-info-2/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 11:49:22 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/sshd-hide-daemon-version-and-os-info-2/</guid>
		<description><![CDATA[Oftenly network services give away information on what platform thay run. If you look what SSH daemon replies on your telnet request, you&#8217;ll see string like this probably:
SSH-1.99-OpenSSH_3.8.1p1 Gentoo-8.2.4
It is obvious that as on of security measures it is good idea to may harder for attacker to gain any information about system we protect; for [...]]]></description>
			<content:encoded><![CDATA[<p>Oftenly network services give away information on what platform thay run. If you look what SSH daemon replies on your telnet request, you&#8217;ll see string like this probably:</p>
<blockquote><p>SSH-1.99-OpenSSH_3.8.1p1 Gentoo-8.2.4</p></blockquote>
<p>It is obvious that as on of security measures it is good idea to may harder for attacker to gain any information about system we protect; for example, well-known <a href="http://iptables-tutorial.frozentux.net/iptables-tutorial.html#Nmap">Linux Iptables Tutorial</a> says: &laquo;The best thing to do, is to give as little material as possible for the attacker to get a proper fingerprint on.&raquo; I could imagine only one reason for such unsecure behaviour of SSH service: to allow collect statistic information. But if you are admin of this host, you know what OS is there. If you are not, it&#8217;s not your business, right?</p>
<p>In most OSes and distros there is no command-line or config file option to turn off such verbosity. So, at first, there are the one way to do this: get sshd source, patch it, compile it, and install it. And you should do this after each security update.</p>
<p>But we could apply the simple patch right on the sshd binary executable, because we know exactly what to change. SSH daemon is written in C, so all the text strings are plain text strings, starting at fixed offset fron begin of file are ended by zero-byte. We could easily modyfy such string, if it is unique in binary file an if new text will be no longer than original one. At the and we will put a zero byte, it will be interpreted as the end.</p>
<p>What exactly would we like our SSH to answer? Theoretcally, it should be anything starting with &#8216;SSH&#8217;, but in practice there are some restrictions. There are different ssh server implementations, and many clients use that banner string to recognize specific servers with specific bugs (i.e, if you have Putty (ssh client), look to &laquo;Connection&raquo;>&raquo;SSH&raquo;>&raquo;Bugs&raquo; screen in settings window). <a href="http://forums.bitvise.com/lofiversion/index.php/t139.html">This topic on commercial SSH implementation forum</a> states that minimal safe string would be &#8216;SSH-2.0-0&#8242;. My own expirience is limited, but there was no problem with such banner string.</p>
<p>Searching for tool, my first look was at unix utility &#8217;sed&#8217;, but it is wrong tool for this job. As <a href="http://sed.sourceforge.net/sedfaq6.html#s6.5">sed documentation</a> says:</p>
<blockquote><p>Specifically, use awk or perl if you need to: (&#8230;)  handle binary data (control characters). (perl: binmode)</p></blockquote>
<p>So, I use perl one-liner (look at &#8216;perlrun&#8217; for more explanation):</p>
<p><code>PERLIO=':raw'; export PERLIO; perl -pi.bak -e 's{(OpenSSH)_([^\x00]+Debian)}{$1\x00$2}' /usr/sbin/sshd</code></p>
<p>.</p>

	Tags: <a href="http://melnikov.net.ru/tag/debian/" title="Debian" rel="tag">Debian</a>, <a href="http://melnikov.net.ru/tag/unix/" title="unix" rel="tag">unix</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/sshd-hide-daemon-version-and-os-info-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple remote desktop help</title>
		<link>http://melnikov.net.ru/remote-help/</link>
		<comments>http://melnikov.net.ru/remote-help/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 00:40:13 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[windows remote]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/remote-help/</guid>
		<description><![CDATA[Today I was in need for simple solution for remote desktop access that user could setup with minimal troubles. So I remember UltraVNC-SC. I spent 20 minutes to read docs, create executable file and setup firewall. There are some problem with speed and connection was lost one time, but i&#8217;ll deal with it later; for [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was in need for simple solution for remote desktop access that user could setup with minimal troubles. So I remember <a href="http://www.uvnc.com/addons/singleclick.html">UltraVNC-SC</a>. I spent 20 minutes to read docs, create executable file and setup firewall. There are some problem with speed and connection was lost one time, but i&#8217;ll deal with it later; for now &#8212; it works.</p>

	Tags: <a href="http://melnikov.net.ru/tag/windows-remote/" title="windows remote" rel="tag">windows remote</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/remote-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mask Wordpress version number</title>
		<link>http://melnikov.net.ru/mnr-mask-wpversion/</link>
		<comments>http://melnikov.net.ru/mnr-mask-wpversion/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 05:03:02 +0000</pubDate>
		<dc:creator>Anton</dc:creator>
				<category><![CDATA[не-в-тему]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://melnikov.net.ru/mnr-mask-wpversion/</guid>
		<description><![CDATA[This is the text of simple plugin that hide real Wordpress version number from evil eyes. Don&#8217;t treat it like the single security fix for your Wordpress install, it&#8217;s just one simple step in security process.
So, the source is right here:
< ?php /*
Plugin Name: MNR Mask Wordpress Version
Plugin URI: http://melnikov.net.ru/
Description: Replaces WordPress version all the [...]]]></description>
			<content:encoded><![CDATA[<p>This is the text of simple plugin that hide real Wordpress version number from evil eyes. Don&#8217;t treat it like the single security fix for your Wordpress install, it&#8217;s just one simple step in security process.<span id="more-65"></span></p>
<p>So, the source is right here:</p>
<pre>< ?php /*
Plugin Name: MNR Mask Wordpress Version
Plugin URI: http://melnikov.net.ru/
Description: Replaces WordPress version all the output (except admin panel).
Author: Anton Melnikov
Version: 0.1
Author URI: http://melnikov.net.ru/mnr-mask-wpversion/
License: GPL */
function mnr_maskWpVersion() {
		global $wp_version;
		if(  ! ereg( '/wp-admin/', $_SERVER['SCRIPT_FILENAME'])   ){
			$wp_version = '9.1.1';
		}
}
add_action('init', 'mnr_maskWpVersion', 1);
?></pre>
<p>The logic: if user runs script from /wp-admin/ folder, hi is authorized Wordpress backend user (otherwise script will gives out redirect and quits); Wordpress backend depends on $wp_version value, so we leave it as is. It is needed in two functions at least:</p>
<ul>
<li>wp-admin/includes/update.php, function wp_update_plugins()</li>
<li>wp-admin/includes/upgrade.php, function wp_check_mysql_version()</li>
</ul>
<p>, but there are more of them.</p>
<p>Any script not from /wp-admin/ folder could be started by unauthorized user and it seems we could gives out any fake version number without the risk of backend problems. In case some automated processes are sensitive to format of strings with this version number (http headers used for feed requests/answers, etc), it is formatted as real version number in this plugin &#8212; three dot-separated digits, &#8216;9.1.1&#8242; in my example. You could change it for what you like.</p>
<p>The plugin is of alfa quality, it definitly needs more testing. If you have bug or some idea, feel free to write it right here.</p>

	Tags: <a href="http://melnikov.net.ru/tag/plugin/" title="plugin" rel="tag">plugin</a>, <a href="http://melnikov.net.ru/tag/security/" title="security" rel="tag">security</a>, <a href="http://melnikov.net.ru/tag/wordpress/" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://melnikov.net.ru/mnr-mask-wpversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
