<?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>Vuko&#039;s Blog</title>
	<atom:link href="http://blog.vukomir.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vukomir.info</link>
	<description># echo &#34;Is your home directory $HOME?&#34;</description>
	<lastBuildDate>Tue, 15 Feb 2011 10:10:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>mizerie</title>
		<link>http://blog.vukomir.info/2011/02/15/mizerie/</link>
		<comments>http://blog.vukomir.info/2011/02/15/mizerie/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 10:03:33 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=371</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><br /><img src="http://i.ytimg.com/vi/ws6juIsSgbA/0.jpg" width="" height="" alt="media" /><br />
</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2011%2F02%2F15%2Fmizerie%2F&amp;title=mizerie" id="wpa2a_2"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2011/02/15/mizerie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hosts.allow hosts.deny</title>
		<link>http://blog.vukomir.info/2011/02/02/hosts-allow-hosts-deny/</link>
		<comments>http://blog.vukomir.info/2011/02/02/hosts-allow-hosts-deny/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 17:34:54 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=367</guid>
		<description><![CDATA[Hosts: /etc/hosts is used to resolve hostnames for machines behind the firewall, on the 192.168.1. LAN. If an entry is found in /etc/hosts, there is no need to go to the DNS to resolve either hostname or ip address. Here is an example # Do not remove the following line, or various programs # that [...]]]></description>
			<content:encoded><![CDATA[<p><span> <span style="font-size: xx-small;">Hosts:</span></p>
<p>/etc/hosts is used to resolve hostnames for machines behind the firewall, on the 192.168.1. LAN.  If an entry is found in /etc/hosts, there is no need to go to the DNS to resolve either hostname or ip address.  Here is an example</p>
<p></span></p>
<pre escaped="true"><span># Do not remove the following line, or various programs
# that require loopback on 127.0.0.1 or name resolved will fail.
127.0.0.1		localhost.localdomain localhost oururl oururl.net www.oururl.net
192.168.1.10		ourappserver
192.168.1.101		ibookg3
192.168.1.102		w95notebook
192.168.1.103		visiting machine</span></pre>
<p><span></p>
<p><span style="font-size: xx-small;">Hosts to allow &amp; those to deny:</span></p>
<p>Since about RedHat 7 xinted&#8217;s &#8216;TCP Wrappers&#8217; have been included in the OS, making it easier than ever to be selective about who gets to do what with the services your machine offers via the web.  I&#8217;ve been told that this software &amp; text-file-on-a-disk reading approach is not as efficient as a more hardware &amp; RAM approach used in hardware routers &amp; firewalls.  But I&#8217;ve also been told it can keep up with all that can be thrown at the server via a T1.</p>
<p>/etc/hosts.allow and hosts.deny work as a pair to control access to your server. If both files are empty there are no limits and anybody at any ip address can, for example, try guessing userids &amp; passwords all day long.   Hosts.allow is read first and if the packet just received matches one of its rules it is let to pass. If no &#8216;allow rule&#8217; is found the TCP Wrapper continues on to hosts.deny and looks there.  If the packet&#8217;s ip address, or other criterion, is found there the service is instantly denied.  Someone using putty to log into info465.net from  anywhere in 200. or another banned network will see their putty window blip out without have the opportunity to enter a password or userid.  Xinetd logs attempts, acceptances, and denials so this is easy to police.</p>
<p>Here are hosts.allow &amp; hosts.deny for info465.net.  It is an active mail server, hosts http &amp; https web pages, and needs to be relatively &#8216;open&#8217; for students using its ssh.  It must run telnet to provide connectivity for applications that run behind the firewall, but it restricts telnet access to the LAN 192.168.1. If I want to get to it from somewhere else via telnet for some reason I can uncomment the line in hosts.allow and edit it.</p>
<p>Hosts.allow:</p>
<p></span></p>
<pre escaped="true"><span># hosts.allow	This file describes the names of the hosts which are
#		allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
#in.telnetd:	192.168.1., 128.172.188.201, 64.83.20.139, 64.83.20.138, \
#               128.172.189.
in.telnetd:	192.168.1.
sshd:		70.16., 207.228.
ipop3d:		ALL
sendmail:	ALL

</span></pre>
<p><span>Hosts.deny:</p>
<p></span></p>
<pre escaped="true"><span>#
# hosts.deny	This file describes the names of the hosts which are
#		*not* allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!

in.telnetd: all

sshd: 61., 62., 64.179., 65., 67.18.,  69.198., 80.53., 81., 82., 83., 84., \
      128.171., 128.123., 128.146., 128.233., \
      130., 134., 137., 139., 140., 142., 143., 147., 148., 155., 168., 193., 195., 196., 199., \
      200., 201., 202., 203., 205., 206., 207., 209., 210., 211., 212., 213., 217., 218., 219., 220., 221., 222.
</span></pre>
<p><span></p>
<p>Here are hosts.allow &amp; hosts.deny for a more restrictive firewall/mailserver where nobody is expected to ssh in except its administrator, and that is only from a few places outside &amp; anywhere in the LAN.   The hosts.deny script says ALL: ALL, meaning that everybody not found in hosts.allow is denied services.</p>
<p>Hosts.allow:</p>
<p></span></p>
<pre escaped="true"><span># hosts.allow	

ipop3d: 192.168.1.
sendmail: ALL
sshd: 128.372.188.267, 67.679.1.379, 192.168.1.

</span></pre>
<p><span>Hosts.deny:</p>
<p></span></p>
<pre escaped="true"><span># hosts.deny	

ALL: ALL

</span></pre>
<p><span></p>
<p>Decide which way your server&#8217;s TCP needs to be wrappered, most likely to be restrictive&#8230; </span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2011%2F02%2F02%2Fhosts-allow-hosts-deny%2F&amp;title=hosts.allow%20hosts.deny" id="wpa2a_4"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2011/02/02/hosts-allow-hosts-deny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ClamAV + samba</title>
		<link>http://blog.vukomir.info/2011/01/19/clamav-samba/</link>
		<comments>http://blog.vukomir.info/2011/01/19/clamav-samba/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 22:18:34 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=353</guid>
		<description><![CDATA[This is a howto on getting samba + clamav  to work on a rpm system First thing first I need do install samba file server and clamav anti-virus, after configurating my samba share i have made 2 directory&#8217;s in /home virus logs the virus folder contains the infected files found during scanning and the logs [...]]]></description>
			<content:encoded><![CDATA[<p>This is a howto on getting samba + clamav  to work on a rpm system</p>
<p>First thing first I need do install samba file server and clamav anti-virus, after configurating my samba share i have made 2 directory&#8217;s in /home</p>
<ol>
<li>virus</li>
<li>logs</li>
</ol>
<p>the virus folder contains the infected files found during scanning and the logs folder contains the report of the scanning witch is send bu email to you.</p>
<p>and added a script in crontab in the root account.</p>
<pre class="brush: shell">

#!/bin/bash
TIME=$(date &#039;+%Y-%m-%d-%T&#039;)
/usr/bin/clamdscan --move /home/virus/quarantine -v /home/samba &amp;gt; /home/logs/samba/dailyscan.$TIME
virus=`cat /home/logs/samba/dailyscan.$TIME | grep &quot;Infected files&quot; | awk &#039;{print $3}&#039;`
virus=`cat /home/logs/samba/dailyscan.$TIME | grep &quot;Total errors:&quot; | awk &#039;{print $3}&#039;`
if [ &quot;$virus&quot; != &quot;0&quot; ]; then
mail -u root -s &quot;Virus on Samba File Server : Hostname `hostname`&quot; you@mail.com &amp;lt;/home/logs/samba/dailyscan.$TIME
else if [ &quot;$error&quot; != &quot;0&quot; ]; then
mail -u root -s &quot;Error on virus scan Interliner.eu: Hostname `hostname`&quot; you@mail.com &amp;lt;/home/logs/samba/dailyscan.$TIME
fi
fi
</pre>
<p>and set the script to run once a day, in my case in 11:00pm, because the businesses it is not in the hours <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . The reson is that i made it run once a day because it task&#8217;s 2 hours to finish the scanning, You can change this <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2011%2F01%2F19%2Fclamav-samba%2F&amp;title=ClamAV%20%2B%20samba" id="wpa2a_6"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2011/01/19/clamav-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Multiple Users on Multiple servers</title>
		<link>http://blog.vukomir.info/2011/01/17/creating-multiple-users-on-multiple-servers/</link>
		<comments>http://blog.vukomir.info/2011/01/17/creating-multiple-users-on-multiple-servers/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 18:37:42 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=347</guid>
		<description><![CDATA[Hey wassup, I was locking for a method to create multiple users on multiple Linux/Unix machines with different user id group id&#8230;.. so i brows the internet back and forth and didnt found nothing what i was locking for . So i give up browsing and started scripting, shell scripting exactly because every Linux/Unix system [...]]]></description>
			<content:encoded><![CDATA[<p>Hey wassup,</p>
<p>I was locking for a method to create multiple users on multiple Linux/Unix machines with different user id group id&#8230;.. so i brows the internet back and forth and didnt found nothing what i was locking for <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>So i give up browsing and started scripting, shell scripting exactly because every Linux/Unix system has a &#8220;fucking shell&#8221; <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  to be able to execute the script.</p>
<p>the zip contains 3 files.</p>
<ol>
<li>READ-ME ( it is not finished&#8230;. )</li>
<li>userlist.txt (the file contains the user data, like a /etc/password file <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
<li>and the script to execute useradd.sh</li>
</ol>
<p>I also forgot the server list file where you add all you servers <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I almost forgot about the most import en thing about the script, you need ssh keys on the root account <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://download.os-ux.com/useradd.tar">download</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2011%2F01%2F17%2Fcreating-multiple-users-on-multiple-servers%2F&amp;title=Creating%20Multiple%20Users%20on%20Multiple%20servers" id="wpa2a_8"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2011/01/17/creating-multiple-users-on-multiple-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wireless technology</title>
		<link>http://blog.vukomir.info/2011/01/17/wireless-technology/</link>
		<comments>http://blog.vukomir.info/2011/01/17/wireless-technology/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 18:05:17 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Diverse]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=334</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://blog.vukomir.info/wp-content/uploads/2011/01/image001.jpg"></a><a href="http://blog.vukomir.info/wp-content/uploads/2011/01/image001.jpg"><img class="aligncenter size-medium wp-image-336" title="image001" src="http://blog.vukomir.info/wp-content/uploads/2011/01/image001-300x138.jpg" alt="" width="500" height="238" /></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2011%2F01%2F17%2Fwireless-technology%2F&amp;title=wireless%20technology" id="wpa2a_10"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2011/01/17/wireless-technology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HPUX Hardware Components</title>
		<link>http://blog.vukomir.info/2010/06/03/hpux-hardware-components/</link>
		<comments>http://blog.vukomir.info/2010/06/03/hpux-hardware-components/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 12:29:30 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Hp-Ux]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=327</guid>
		<description><![CDATA[Every recent HP-UX system has several hardware components: One or more PA-RISC or Itanium single- or dual-core CPUs for processing data One or more Cell Boards or an MIO Controller hosting CPU and memory One or more System/Local Bus Adapters that provide connectivity to expansion buses One or more PC11/0 expansion buses with slots for [...]]]></description>
			<content:encoded><![CDATA[<p>Every recent HP-UX system has several hardware components:</p>
<ul>
<li>One or more PA-RISC or Itanium single- or dual-core <span style="text-decoration: underline;">CPUs </span>for processing data</li>
<li>One or more <span style="text-decoration: underline;">Cell Boards </span>or an <span style="text-decoration: underline;">MIO Controller </span>hosting CPU and memory</li>
<li>One or more <span style="text-decoration: underline;">System/Local Bus Adapters </span>that provide connectivity to expansion buses</li>
<li>One or more <span style="text-decoration: underline;">PC11/0 expansion buses </span>with slots for add-on Host Bus Adapters</li>
<li>One or more <span style="text-decoration: underline;">Host Bus Adapter </span>cards for connecting peripheral devices</li>
<li>One or more <span style="text-decoration: underline;">Core 110 cards </span>with built-in LAN, console, and boot disk connectivity</li>
</ul>
<p>A <span style="text-decoration: underline;">Management Processor card </span>to provide local and remote console access</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2010%2F06%2F03%2Fhpux-hardware-components%2F&amp;title=HPUX%20Hardware%20Components" id="wpa2a_12"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2010/06/03/hpux-hardware-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>coding day</title>
		<link>http://blog.vukomir.info/2010/02/23/coding-day/</link>
		<comments>http://blog.vukomir.info/2010/02/23/coding-day/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:03:57 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Diverse]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=322</guid>
		<description><![CDATA[source:geekandpoke.typepad.com]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a rel="lightbox[coding]" href="http://blog.vukomir.info/wp-content/uploads/2010/02/6a00d8341d3df553ef0120a8a8a8c0970b.jpg"><img class="size-medium wp-image-323 aligncenter" title="6a00d8341d3df553ef0120a8a8a8c0970b" src="http://blog.vukomir.info/wp-content/uploads/2010/02/6a00d8341d3df553ef0120a8a8a8c0970b-285x300.jpg" alt="" width="285" height="300" /></a></p>
<p style="text-align: left;">source:<a href="http://geekandpoke.typepad.com/geekandpoke/2010/02/canary-in-the-code-mine.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+GeekAndPoke+(Geek+And+Poke)">geekandpoke.typepad.com</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2010%2F02%2F23%2Fcoding-day%2F&amp;title=coding%20day" id="wpa2a_14"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2010/02/23/coding-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Primul Logan electric va fi lansat la Cernavoda</title>
		<link>http://blog.vukomir.info/2010/02/12/primul-logan-electric-va-fi-lansat-la-cernavoda/</link>
		<comments>http://blog.vukomir.info/2010/02/12/primul-logan-electric-va-fi-lansat-la-cernavoda/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 02:59:36 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Diverse]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=318</guid>
		<description><![CDATA[Primul autoturism electric produs in Romania va fi lansat saptamana viitoare de Dacia, chiar in incinta uzinei termo-nucleare de la Cernavoda. Producatorul de la Mioveni a ales acest inedit loc pentru lansarea noului Model Logan Electrolux din ratiuni extrem de pragmatice, mai precis consumul de 10.000 de Megawati/ora al noii masini. Construita prin eforturi intelectuale [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a rel="lightbox[Dacia]" href="http://blog.vukomir.info/wp-content/uploads/2010/02/Dacia-electrica.jpe"><img class="size-medium wp-image-319 aligncenter" title="Dacia electrica" src="http://blog.vukomir.info/wp-content/uploads/2010/02/Dacia-electrica-300x184.jpg" alt="" width="300" height="184" /></a></p>
<p style="text-align: justify;">Primul autoturism electric produs in Romania va fi lansat saptamana viitoare de Dacia, chiar in incinta uzinei termo-nucleare de la Cernavoda.</p>
<p style="text-align: justify;">Producatorul de la Mioveni a ales acest inedit loc pentru lansarea noului Model Logan Electrolux din ratiuni extrem de pragmatice, mai precis consumul de 10.000 de Megawati/ora al noii masini.</p>
<p style="text-align: justify;">Construita prin eforturi intelectuale exclusiv romanesti, noua masina electrica va costa aproximativ 10.000 de Euro, dar va avea o autonomie de doar 200 de metri, respectiv lungimea cablului electric prin care este alimentata.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2010%2F02%2F12%2Fprimul-logan-electric-va-fi-lansat-la-cernavoda%2F&amp;title=Primul%20Logan%20electric%20va%20fi%20lansat%20la%20Cernavoda" id="wpa2a_16"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2010/02/12/primul-logan-electric-va-fi-lansat-la-cernavoda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHC &#8211; A PHP to EXE compiler</title>
		<link>http://blog.vukomir.info/2010/01/27/phc-a-php-to-exe-compiler/</link>
		<comments>http://blog.vukomir.info/2010/01/27/phc-a-php-to-exe-compiler/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 23:37:45 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=301</guid>
		<description><![CDATA[Since PHP is so powerful, it is natural one would like to develope Windows applications with it. GUI extensions such as PHP-GTK and Winbinder allow users of the PHP command line interface to display GUI widgets in Windows, but the problems of distribution and code exposure still remain. The PHP command line interpreter must be [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Since PHP is so powerful, it is natural one would like to develope Windows applications with it.  GUI extensions such as <a href="http://gtk.php.net/">PHP-GTK</a> and <a href="http://winbinder.sourceforge.net/">Winbinder</a> allow users of the PHP command line interface to display GUI widgets in Windows, but the problems of distribution and code exposure still remain. The PHP command line interpreter must be included in any distribution, and the code is left as a text file.</p>
<p>There are a few open source PHP to EXE “compilers” out there, such as PriadoBlender and Embeder that utilize the PHP SAPI to include PHP code in executable files, but most still leave the PHP code plain or obfuscated in such a way that it is accessible to anyone who has a few minutes. PriadoBlender includes you code in an encrypted file, but it’s not much different than running the command line interpreter as the decryption code is exposed as plain text PHP inside the executable. I wanted to find something that would not allow recreation of the exact code. There are a few commercial applications out there that will do this, but they are ridiculously expensive, and inaccessible to the open source community.</p>
<p>In my search for a more elegant solution, I saw a few mentions of the <a href="http://pecl.php.net/package/bcompiler">bcompiler</a> extension for PHP that seemed to do everything I wanted; it would join the code and the EXE file, and the code would be converted into PHP byte code, making it much harder to view and reverse engineer. The need for the PHP runtime DLL was still present, but that seems to be true of every PHP compiler, and is akin to the runtime libraries needed for Visual Basic applications.</p>
<p>The only problem was, you needed MS Visual Studio to compile two essential files, and only one was easily accessible. There isn’t much information on bcompiler, but eventually I found <a href="https://www.entwickler.com/itr/online_artikel/psecom,id,426,nodeid,114.html">this article</a> that mentioned the only known existing copy of the file I was looking for could be found packaged with <a href="http://devel.akbkhome.com/gtkmdbdesigner_setup.exe">another program</a> by the author of bcompiler. Even when I did find the two essential files, I found they didn’t work with my PHP runtime, and had to use the one included in the above mentioned package.</p>
<p>Considering how useful bcompiler is, it’s a shame that it is so hard to obtain all of the components needed to produce usable EXEs. So now that I’ve collected all of the needed files, I’ve compiled the compiler script into a stand alone EXE. I present it as PHC, a PHP compiler. It is included in the PHC-SDK, which also includes the full source of PHC as well as a few simple examples to get you started, including two utilizing Winbinder to produce GUI widgets</p>
<p>Download the  <a href="http://www.swiftlytilting.com/downloads/phc-sdk.11.rar">PHC-SDK with PHC v0.11</a> (updated from 0.1 because it seemed many people were downloading 0.1 which doesnt work in WinXP)</p>
<p>[UPDATE: PHC has been obsoleted by <a href="http://www.swiftlytilting.com/category/phc-win/">phc-win</a>]</p>
</div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2010%2F01%2F27%2Fphc-a-php-to-exe-compiler%2F&amp;title=PHC%20%26%238211%3B%20A%20PHP%20to%20EXE%20compiler" id="wpa2a_18"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2010/01/27/phc-a-php-to-exe-compiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suicidal Snowman</title>
		<link>http://blog.vukomir.info/2009/11/20/suicidal-snowman/</link>
		<comments>http://blog.vukomir.info/2009/11/20/suicidal-snowman/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 02:00:57 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Diverse]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=277</guid>
		<description><![CDATA[Nothing says Happy Holidays like a snowman!]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a rel="lightbox[Snowman]" href="http://blog.vukomir.info/wp-content/uploads/2009/11/5701_2851_suicidal-snowman.jpg"><img class="size-medium wp-image-276 aligncenter" title="5701_2851_suicidal-snowman" src="http://blog.vukomir.info/wp-content/uploads/2009/11/5701_2851_suicidal-snowman-232x300.jpg" alt="5701_2851_suicidal-snowman" width="232" height="300" /></a></p>
<p style="text-align: center;">Nothing says Happy Holidays like a snowman!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2009%2F11%2F20%2Fsuicidal-snowman%2F&amp;title=Suicidal%20Snowman" id="wpa2a_20"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2009/11/20/suicidal-snowman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

