<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3432244292187585618</id><updated>2024-10-25T10:27:03.426+07:00</updated><category term="business"/><category term="centos"/><category term="erp"/><category term="linux"/><category term="mount"/><category term="redhat"/><category term="tips"/><title type='text'>Root Hunter Team</title><subtitle type='html'>All things about ERP, OpenSource, and Technology</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-5259795151595719188</id><published>2012-05-01T12:14:00.003+07:00</published><updated>2012-05-01T12:14:47.329+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="business"/><category scheme="http://www.blogger.com/atom/ns#" term="erp"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><title type='text'>[TIPS] Making searching easier on OpenERP</title><content type='html'>&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
OpenERP is increasingly becoming a serious contender in the ERP market, as its features and usability improve. This tip explains how its flexible views provide ways to save time retrieving the data you want. You can search for the exact data you are interested in by just filling out the necessary search filters, but if there is a search which you perform on a regular basis, you have the option of saving filters to make life easier.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
This feature was added in the&amp;nbsp;&lt;a href=&quot;http://www.credativ.co.uk/services/support/projects/erp/openerp/&quot; style=&quot;color: #830000; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;OpenERP&lt;/a&gt;&amp;nbsp;webclient from version 6.0.0 and is available for all users. Simply go to any tree view and you will notice to the bottom right of the search filters, there is a drop down selection box ‘– Filters –’… this is where the magic happens.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcmvVMyyJxOQLsQFkbvqx5bAFHrxbHllgjtBfBMiFYjdHl64ps5HcITaAW_56DP5GHNhRQ0LlNB9iqbHGMyQ_w614Cl_fSxdaF2j2FpvYD3McxpmOYGdjgnbw5pEQqP_XKwHeuUoB9dsI/s1600/filters_open_scaled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcmvVMyyJxOQLsQFkbvqx5bAFHrxbHllgjtBfBMiFYjdHl64ps5HcITaAW_56DP5GHNhRQ0LlNB9iqbHGMyQ_w614Cl_fSxdaF2j2FpvYD3McxpmOYGdjgnbw5pEQqP_XKwHeuUoB9dsI/s320/filters_open_scaled.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;To get started creating your own saved filter, enter the search as normal and after pressing the ‘Search’ button, simply select ‘Save filter’ from the drop down box, give it a name and press ‘Save’.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4ncwXf5Gw_UlSIQjkgm70WK4yU8pxjhXgndtEGj1uRfcshFN4lkwXjqzfm4h-clg6T9KLksrGSsM0dW-uAmhEypUmm_W0fO3qfrDxeVo-LojULebE5DogBgECFmlbPA5EAxOuIMO9BiU/s1600/filter_save_scaled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4ncwXf5Gw_UlSIQjkgm70WK4yU8pxjhXgndtEGj1uRfcshFN4lkwXjqzfm4h-clg6T9KLksrGSsM0dW-uAmhEypUmm_W0fO3qfrDxeVo-LojULebE5DogBgECFmlbPA5EAxOuIMO9BiU/s320/filter_save_scaled.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
If you already have a filter defined for the view you are currently in, select your filter from the options available and it will be immediately applied on top of your current search results, replacing the currently selected filter if one is already selected.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
For the power users there are ways to customize your filters to exactly how you want them. You can select ‘Manage Filters’ from those available, or under Administration -&amp;gt; Customization -&amp;gt; Low Level Objects -&amp;gt; Actions -&amp;gt; Filters, you will see a list of all filters for all views and you will even be able to fine tune the search domain that the filter uses.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
At the time of writing there are a few pit falls to watch out for. When it comes to editing your filters it may just be easier to create a new one from scratch. The reason for this is that when you use a filter as well as other search parameters, when it comes to saving the filter it will save the two search conditions to the same filter, rather than exchanging the existing search condition. You may end up with much fewer results than you would expect, and might not even get any at all! Also, the hint text for the filter suggests that if a filter is not assigned to a user (by making it ‘False’), it will be viewable by all users; currently this is not the case does not currently work but should be resolved in the next release.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
All tips in this blog can be found in the&amp;nbsp;&lt;a href=&quot;http://blog.credativ.com/en/tip/&quot; style=&quot;color: #830000; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;Tip Category&lt;/a&gt;. Should you need further&amp;nbsp;&lt;a href=&quot;http://www.credativ.co.uk/services/support/&quot; style=&quot;color: #830000; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;Support for Linux&lt;/a&gt;, you’ve come to the right place at credativ.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
source :http://adf.ly/4i5yQ&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class=&quot;fullpost&quot;&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/5259795151595719188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2012/05/tips-making-searching-easier-on-openerp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/5259795151595719188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/5259795151595719188'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2012/05/tips-making-searching-easier-on-openerp.html' title='[TIPS] Making searching easier on OpenERP'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcmvVMyyJxOQLsQFkbvqx5bAFHrxbHllgjtBfBMiFYjdHl64ps5HcITaAW_56DP5GHNhRQ0LlNB9iqbHGMyQ_w614Cl_fSxdaF2j2FpvYD3McxpmOYGdjgnbw5pEQqP_XKwHeuUoB9dsI/s72-c/filters_open_scaled.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-3803349967773099556</id><published>2012-04-30T23:24:00.001+07:00</published><updated>2012-04-30T23:25:04.178+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="redhat"/><title type='text'>How to mount ntfs/fat32 external USB drive to CentOS/Fedora/RHEL</title><content type='html'>First you need ntfs mount. For that you need to install two packages.&lt;br /&gt;
This gets your ntfs-3g&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
wget http://marush.com/wp-content/uploads/2009/03/ntfs-3g-200921-el5i686.rpm&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
Then run to install ntfs-3g&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
rpm -ihv &amp;nbsp;ntfs-3g-200921-el5i686.rpm&lt;/blockquote&gt;
&lt;/div&gt;
Second get this fuse (I do not know why. Without fuse you can not mount ntfs-3g. Please go through fuse sourceforge document.)&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
wget http://pkgs.fedoraproject.org/repo/pkgs/fuse/fuse-2.6.0.tar.gz/fa6c7b07a0be3a3e30d6cf3a6bad5817/fuse-2.6.0.tar.gz&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Then execute the following&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
tar xvfz fuse-2.6.0.tar.gz&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
It creates a directory “fuse-2.6.0″&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cd fuse-2.6.0&lt;/blockquote&gt;
Execute&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
make install&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
Then try&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
fdisk -l&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
You get&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Disk /dev/sda: 80.0 GB, 80026361856 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 9729 cylinders&lt;br /&gt;
Units = cylinders of 16065 * 512 = 8225280 bytesDevice Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;br /&gt;
/dev/sda1 &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp; &amp;nbsp;104391 &amp;nbsp; 83 &amp;nbsp;Linux&lt;br /&gt;
/dev/sda2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9729 &amp;nbsp; &amp;nbsp;78043770 &amp;nbsp; 8e &amp;nbsp;Linux LVM&lt;br /&gt;
Disk /dev/sdb: 500.1 GB, 500107862016 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 60801 cylinders&lt;br /&gt;
Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;br /&gt;
/dev/sdb1 &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 60801 &amp;nbsp; 488384001 &amp;nbsp; &amp;nbsp;7 &amp;nbsp;HPFS/NTFS&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Mount with following command.&lt;br /&gt;
&lt;strong&gt;Here you go!&lt;/strong&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mkdir /500gbmount /dev/sdb1 /500gb -t ntfs-3g -r -o umask=0222&lt;/blockquote&gt;
Check your drive now&lt;/div&gt;
&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
ls -ltr /500gb&lt;/blockquote&gt;
&lt;div&gt;
if read only just run this command&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;mount -o remount rw /mount/point&lt;/code&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;strong&gt;&lt;span style=&quot;color: red;&quot;&gt;Automatically mount using fstab:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
There’s a file called &lt;strong&gt;/etc/fstab&lt;/strong&gt; in your Linux system. Learn what its contents mean and how it’s used in conjunction with the mount command. When you learn to understand the fstab file, you’ll be able to edit its contents yourself, too.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
/dev/sdb1 /usb1 ext2 defaults 1 2&lt;br /&gt;
/dev/sdb2 /usb2 ext3 defaults 1 2&lt;/blockquote&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;fullpost&quot;&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/3803349967773099556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2012/04/how-to-mount-ntfsfat32-external-usb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3803349967773099556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3803349967773099556'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2012/04/how-to-mount-ntfsfat32-external-usb.html' title='How to mount ntfs/fat32 external USB drive to CentOS/Fedora/RHEL'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-1919891158235233487</id><published>2012-04-04T15:08:00.001+07:00</published><updated>2012-04-04T15:08:23.022+07:00</updated><title type='text'>New module to choose the fiscal position from the country</title><content type='html'>&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
In standard OpenERP, you can choose a fiscal position for every partner, and your choice will be used when you select a Partner in an Invoice or Sale Order. In many situations it’s convenient to set a default position for all partners belonging to a specific country.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;he module we developed is called account_fiscal_position_country, and can be found on apps.openerp.com.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;Configuration&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Go to Sales &amp;gt; Configuration &amp;gt; Address Book &amp;gt; Localisation &amp;gt; Countries.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Choose a country, and enter the default Fiscal Position for that country.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Usage&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Done that, when you create a Sale or Purchase Invoice and select a Partner, the Fiscal Position you defined for the country of the Partner will be selected. Note that the standard OpenERP behaviour is still defined: if you set a specific Fiscal Position for that Partner, that one (and not the one from the Country) will be used.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Sale Orders&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
To get the same functionality in Sale Orders, install the module account_fiscal_position_country_sale as well. The modules are kept separate to minimize dependencies.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Of course, feedback is welcome! You can use the bug tracker in launchpad for that:&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
source:http://adf.ly/4i5KS&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;fullpost&quot;&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/1919891158235233487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2012/04/new-module-to-choose-fiscal-position.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/1919891158235233487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/1919891158235233487'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2012/04/new-module-to-choose-fiscal-position.html' title='New module to choose the fiscal position from the country'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-2185171554263190243</id><published>2012-04-04T15:01:00.001+07:00</published><updated>2012-04-04T15:01:20.416+07:00</updated><title type='text'>Installasi postgresql 9.0 ubuntu</title><content type='html'>&lt;span style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;hello …. im here to shared again about installation postgresql&amp;nbsp;&lt;/span&gt;&lt;img alt=&quot;:D&quot; class=&quot;wp-smiley&quot; src=&quot;http://openerp.co.id/blog/wp-includes/images/smilies/icon_biggrin.gif&quot; style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; height: auto; line-height: 19px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 600px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&amp;nbsp;this is new version stable&amp;nbsp;&lt;/span&gt;&lt;img alt=&quot;:D&quot; class=&quot;wp-smiley&quot; src=&quot;http://openerp.co.id/blog/wp-includes/images/smilies/icon_biggrin.gif&quot; style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; height: auto; line-height: 19px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 600px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;This is a very quick and painless process. If you have not done so already, make your life easier by installing python-software-properties:&lt;/span&gt;&lt;span class=&quot;fullpost&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.postgresql.org/layout/images/hdr_left.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.postgresql.org/layout/images/hdr_left.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
$&lt;strong&gt;sudo apt-get purge postgresql*&lt;/strong&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;$&lt;strong&gt;sudo apt-get update&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
next :&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;$&lt;strong&gt;sudo apt-get install python-software-properties&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Next up is adding the backports repo and updating apt:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
$&lt;strong&gt;sudo add-apt-repository ppa:pitti/postgresql &amp;amp;&amp;amp; sudo apt-get update&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
UPDATE: In the comments, Jason Froebe points out that if you already have an earlier version of PostgreSQL installed, you can just upgrade it:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
$ &lt;strong&gt;sudo apt-get upgrade&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Finally install postgresql-9.0:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
$ &lt;strong&gt;sudo apt-get install postgresql-9.0 libpq-dev&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
The libpq-dev package is for compiling wrappers/clients against libpq.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
There you’re done!&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
NOTE:&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;Default config directory is: /etc/postgresql/9.0/main&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;Default data directory is: /var/lib/postgresql/9.0/main&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Cheers&amp;nbsp;&lt;img alt=&quot;:D&quot; class=&quot;wp-smiley&quot; src=&quot;http://openerp.co.id/blog/wp-includes/images/smilies/icon_biggrin.gif&quot; style=&quot;border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; height: auto; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 600px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Source : http://adf.ly/4i7Tt&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/2185171554263190243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2012/04/installasi-postgresql-90-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2185171554263190243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2185171554263190243'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2012/04/installasi-postgresql-90-ubuntu.html' title='Installasi postgresql 9.0 ubuntu'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-7047536262456378354</id><published>2010-03-24T22:56:00.001+07:00</published><updated>2010-03-24T23:22:48.018+07:00</updated><title type='text'>computer security (learn first)</title><content type='html'>This article is about computer security hackers. For other types of computer hackers, see Hacker (computing). For other uses, see Hacker.&lt;br /&gt;In common usage, a hacker is a person who breaks into computers, usually by gaining access to administrative controls.[1] The subculture that has evolved around hackers is often referred to as the computer underground. Proponents claim to be motivated by artistic and political ends, and are often unconcerned about the use of illegal means to achieve them.[2]&lt;br /&gt;Other uses of the word hacker exist that are not related to computer security (computer programmer and home computer hobbyists), but these are rarely used by the mainstream media. Some would argue that the people that are now considered hackers are not hackers, as before the media described the person who breaks into computers as a hacker there was a hacker community. This community was a community of people who had a large interest in computer programming, often sharing, without restrictions, the source code for the software they wrote. These people now refer to the cyber-criminal hackers as &quot;crackers&quot;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/7047536262456378354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/computer-security-learn-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/7047536262456378354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/7047536262456378354'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/computer-security-learn-first.html' title='computer security (learn first)'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-6439675303717000150</id><published>2010-03-24T22:56:00.000+07:00</published><updated>2010-03-24T23:22:30.286+07:00</updated><title type='text'>computer security</title><content type='html'>This article is about computer security hackers. For other types of computer hackers, see Hacker (computing). For other uses, see Hacker.&lt;br /&gt;In common usage, a hacker is a person who breaks into computers, usually by gaining access to administrative controls.[1] The subculture that has evolved around hackers is often referred to as the computer underground. Proponents claim to be motivated by artistic and political ends, and are often unconcerned about the use of illegal means to achieve them.[2]&lt;br /&gt;Other uses of the word hacker exist that are not related to computer security (computer programmer and home computer hobbyists), but these are rarely used by the mainstream media. Some would argue that the people that are now considered hackers are not hackers, as before the media described the person who breaks into computers as a hacker there was a hacker community. This community was a community of people who had a large interest in computer programming, often sharing, without restrictions, the source code for the software they wrote. These people now refer to the cyber-criminal hackers as &quot;crackers&quot;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/6439675303717000150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/computer-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/6439675303717000150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/6439675303717000150'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/computer-security.html' title='computer security'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-7090156821734157747</id><published>2010-03-24T21:48:00.000+07:00</published><updated>2010-03-24T22:55:14.053+07:00</updated><title type='text'>Top 13 Security/Hacking Tools &amp; Utilities</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;1. Nmap&lt;/span&gt;&lt;br /&gt;I think everyone has heard of this one, recently evolved into the 4.x series.&lt;br /&gt;&lt;br /&gt;Nmap (“Network Mapper”) is a free open source utility for network exploration or security auditing. It was designed to rapidly scan large networks, although it works fine against single hosts. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. Nmap runs on most types of computers and both console and graphical versions are available. Nmap is free and open source.&lt;br /&gt;&lt;br /&gt;Can be used by beginners (-sT) or by pros alike (–packet_trace). A very versatile tool, once you fully understand the results.&lt;br /&gt;&lt;a href=&quot;http://www.insecure.org/nmap/download.html&quot;&gt;Get Nmap Here&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;2. Nessus Remote Security Scanner&lt;/span&gt;&lt;br /&gt;Recently went closed source, but is still essentially free. Works with a client-server framework.&lt;br /&gt;&lt;br /&gt;Nessus is the world’s most popular vulnerability scanner used in over 75,000 organizations world-wide. Many of the world’s largest organizations are realizing significant cost savings by using Nessus to audit business-critical enterprise devices and applications.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.nessus.org/download/&quot;&gt;Get Nessus here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;3. John the Ripper&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.darknet.org.uk/2006/03/jtr-password-cracking-john-the-ripper-17-released-finally/&quot;&gt;Get New Realese JTR&lt;/a&gt;&lt;br /&gt;John the Ripper is a fast password cracker, currently available for many flavors of Unix (11 are officially supported, not counting different architectures), DOS, Win32, BeOS, and OpenVMS. Its primary purpose is to detect weak Unix passwords. Besides several crypt(3) password hash types most commonly found on various Unix flavors, supported out of the box are Kerberos AFS and Windows NT/2000/XP/2003 LM hashes, plus several more with contributed patches.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;4. Nikto&lt;/span&gt;&lt;br /&gt;Nikto is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 3200 potentially dangerous files/CGIs, versions on over 625 servers, and version specific problems on over 230 servers. Scan items and plugins are frequently updated and can be automatically updated (if desired).&lt;br /&gt;&lt;br /&gt;Nikto is a good CGI scanner, there are some other tools that go well with Nikto (focus on http fingerprinting or Google hacking/info gathering etc, another article for just those).&lt;br /&gt;&lt;a href=&quot;http://www.cirt.net/code/nikto.shtml&quot;&gt;Get Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;5. SuperScan&lt;/span&gt;&lt;br /&gt;Powerful TCP port scanner, pinger, resolver. SuperScan 4 is an update of the highly popular Windows port scanning tool, SuperScan.&lt;br /&gt;&lt;br /&gt;If you need an alternative for nmap on Windows with a decent interface, I suggest you check this out, it’s pretty nice&lt;br /&gt;&lt;a href=&quot;http://www.foundstone.com/index.htm?subnav=resources/navigation.htm&amp;subcontent=/resources/proddesc/superscan4.htm&quot;&gt;Get superscan Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;6. p0f&lt;/span&gt;&lt;br /&gt;P0f v2 is a versatile passive OS fingerprinting tool. P0f can identify the operating system on:&lt;br /&gt;&lt;br /&gt;– machines that connect to your box (SYN mode),&lt;br /&gt;– machines you connect to (SYN+ACK mode),&lt;br /&gt;– machine you cannot connect to (RST+ mode),&lt;br /&gt;– machines whose communications you can observe.&lt;br /&gt;&lt;br /&gt;Basically it can fingerprint anything, just by listening, it doesn’t make ANY active connections to the target machine.&lt;br /&gt;&lt;a href=&quot;http://lcamtuf.coredump.cx/p0f/p0f.shtml&quot;&gt;Get p0f here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;7. Wireshark (Formely Ethereal)&lt;/span&gt;&lt;br /&gt;Wireshark is a GTK+-based network protocol analyzer, or sniffer, that lets you capture and interactively browse the contents of network frames. The goal of the project is to create a commercial-quality analyzer for Unix and to give Wireshark features that are missing from closed-source sniffers.&lt;br /&gt;&lt;br /&gt;Works great on both Linux and Windows (with a GUI), easy to use and can reconstruct TCP/IP Streams! Will do a tutorial on Wireshark later.&lt;br /&gt;&lt;a href=&quot;http://www.wireshark.org/&quot;&gt;Get Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;8. Yersinia&lt;/span&gt;&lt;br /&gt;Yersinia is a network tool designed to take advantage of some weakeness in different Layer 2 protocols. It pretends to be a solid framework for analyzing and testing the deployed networks and systems. Currently, the following network protocols are implemented: Spanning Tree Protocol (STP), Cisco Discovery Protocol (CDP), Dynamic Trunking Protocol (DTP), Dynamic Host Configuration Protocol (DHCP), Hot Standby Router Protocol (HSRP), IEEE 802.1q, Inter-Switch Link Protocol (ISL), VLAN Trunking Protocol (VTP).&lt;br /&gt;&lt;br /&gt;The best Layer 2 kit there is.&lt;br /&gt;&lt;a href=&quot;http://yersinia.sourceforge.net/&quot;&gt;Get Yersinia here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;9. Eraser&lt;/span&gt;&lt;br /&gt;Eraser is an advanced security tool (for Windows), which allows you to completely remove sensitive data from your hard drive by overwriting it several times with carefully selected patterns. Works with Windows 95, 98, ME, NT, 2000, XP and DOS. Eraser is Free software and its source code is released under GNU General Public License.&lt;br /&gt;&lt;br /&gt;An excellent tool for keeping your data really safe, if you’ve deleted it..make sure it’s really gone, you don’t want it hanging around to bite you in the ass.&lt;br /&gt;&lt;a href=&quot;http://www.heidi.ie/eraser/download.php&quot;&gt;get here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;10. LCP&lt;/span&gt;&lt;br /&gt;Main purpose of LCP program is user account passwords auditing and recovery in Windows NT/2000/XP/2003. Accounts information import, Passwords recovery, Brute force session distribution, Hashes computing.&lt;br /&gt;&lt;br /&gt;A good free alternative to L0phtcrack.&lt;br /&gt;&lt;br /&gt;LCP was briefly mentioned in our well read &lt;a href=&quot;http://www.darknet.org.uk/2006/02/password-cracking-with-rainbowcrack-and-rainbow-tables/&quot;&gt;Rainbow Tables and RainbowCrack&lt;/a&gt; article.&lt;br /&gt;&lt;a href=&quot;http://www.lcpsoft.com/english/download.htm&quot;&gt;Get here LCP&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;11. Kismet&lt;/span&gt;&lt;br /&gt;Kismet is an 802.11 layer2 wireless network detector, sniffer, and intrusion detection system. Kismet will work with any wireless card which supports raw monitoring (rfmon) mode, and can sniff 802.11b, 802.11a, and 802.11g traffic.&lt;br /&gt;&lt;br /&gt;A good wireless tool as long as your card supports rfmon (look for an orinocco gold).&lt;br /&gt;&lt;a href=&quot;http://www.kismetwireless.net/download.shtml&quot;&gt;Get kismet here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;12. NetStumbler&lt;/span&gt;&lt;br /&gt;Yes a decent wireless tool for Windows! Sadly not as powerful as it’s Linux counterparts, but it’s easy to use and has a nice interface, good for the basics of war-driving.&lt;br /&gt;&lt;br /&gt;NetStumbler is a tool for Windows that allows you to detect Wireless Local Area Networks (WLANs) using 802.11b, 802.11a and 802.11g. It has many uses:&lt;br /&gt;&lt;br /&gt;Verify that your network is set up the way you intended.&lt;br /&gt;Find locations with poor coverage in your WLAN.&lt;br /&gt;Detect other networks that may be causing interference on your network.&lt;br /&gt;Detect unauthorized “rogue” access points in your workplace.&lt;br /&gt;Help aim directional antennas for long-haul WLAN links.&lt;br /&gt;Use it recreationally for WarDriving&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.stumbler.net/&quot;&gt;Get here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;13. hping&lt;/span&gt;&lt;br /&gt;To finish off, something a little more advanced if you want to test your TCP/IP packet monkey skills.&lt;br /&gt;&lt;br /&gt;hping is a command-line oriented TCP/IP packet assembler/analyzer. The interface is inspired to the ping unix command, but hping isn’t only able to send ICMP echo requests. It supports TCP, UDP, ICMP and RAW-IP protocols, has a traceroute mode, the ability to send files between a covered channel, and many other features.&lt;br /&gt;&lt;a href=&quot;http://www.hping.org/&quot;&gt;hping&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/7090156821734157747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/top-13-securityhacking-tools-utilities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/7090156821734157747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/7090156821734157747'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/top-13-securityhacking-tools-utilities.html' title='Top 13 Security/Hacking Tools &amp; Utilities'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-2350049660606710630</id><published>2010-03-24T21:35:00.000+07:00</published><updated>2010-03-24T21:48:46.914+07:00</updated><title type='text'>Scanner with  Nikto2</title><content type='html'>Download: Version 2.1.1 &lt;a href=&quot;http://cirt.net/nikto/nikto-current.tar.gz&quot;&gt;.gz&lt;/a&gt; or &lt;a href=&quot;http://cirt.net/nikto/nikto-2.1.1.tar.bz2&quot;&gt;.bz2&lt;/a&gt;&lt;br /&gt;Thanks to Edgeos &amp; CIRT.net for sponsoring Nikto!&lt;br /&gt;Deploy your branded security services quickly and easily, including a full web-based portal for your customers, unlimited external and internal vulnerability assessments, automated professional reporting, and centralized management. The Edgeos platform is your company&#39;s security services, for your customers, and completely private labeled for your business!&lt;br /&gt;Edgeos - Target Your Customers&#39; Security&lt;br /&gt;Nikto is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 6100 potentially dangerous files/CGIs, checks for outdated versions of over 950 servers, and version specific problems on over 260 servers. It also checks for server configuration items such as the presence of multiple index files, HTTP server options, and will attempt to identify installed web servers and software. Scan items and plugins are frequently updated and can be automatically updated.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;Nikto is not designed as an overly stealthy tool. It will test a web server in the quickest time possible, and is fairly obvious in log files. However, there is support for LibWhisker&#39;s anti-IDS methods in case you want to give it a try (or test your IDS system).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Not every check is a security problem, though most are. There are some items that are &quot;info only&quot; type checks that look for things that may not have a security flaw, but the webmaster or security engineer may not know are present on the server. These items are usually marked appropriately in the information printed. There are also some checks for unknown items which have been seen scanned for in log files.&lt;br /&gt;Here are some of the major features of Nikto. See the documentation for a full list of features and how to use them.&lt;br /&gt;SSL Support (Unix with OpenSSL or maybe Windows with ActiveState&#39;s&lt;br /&gt;Perl/NetSSL)&lt;br /&gt;Full HTTP proxy support&lt;br /&gt;Checks for outdated server components&lt;br /&gt;Save reports in plain text, XML, HTML or CSV&lt;br /&gt;Template engine to easily customize reports&lt;br /&gt;Scan multiple ports on a server, or multiple servers via input file (including nmap output)&lt;br /&gt;LibWhisker&#39;s IDS evasion techniques&lt;br /&gt;Easily updates via command line&lt;br /&gt;Identifies installed software via headers, favicons and files&lt;br /&gt;Host authentication with Basic and NTLM&lt;br /&gt;Subdomain guessing&lt;br /&gt;Apache and cgiwrap username enumeration&lt;br /&gt;Mutation techniques to &quot;fish&quot; for content on web servers&lt;br /&gt;Scan tuning to include or exclude entire classes of vulnerability&lt;br /&gt;checks&lt;br /&gt;Guess credentials for authorization realms (including many default id/pw combos)&lt;br /&gt;Authorization guessing handles any directory, not just the root&lt;br /&gt;directory&lt;br /&gt;Enhanced false positive reduction via multiple methods: headers,&lt;br /&gt;page content, and content hashing&lt;br /&gt;A &quot;single&quot; scan mode that allows you to craft an HTTP request by&lt;br /&gt;hand&lt;br /&gt;Reports &quot;unusual&quot; headers seen&lt;br /&gt;Thorough documentation&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/2350049660606710630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/scanner-with-nikto2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2350049660606710630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2350049660606710630'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/scanner-with-nikto2.html' title='Scanner with  Nikto2'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-3019263189218686220</id><published>2010-03-24T20:39:00.000+07:00</published><updated>2010-03-24T21:12:45.334+07:00</updated><title type='text'>Exploit (computer security)</title><content type='html'>An exploit (from the same word in the French language, meaning &quot;achievement&quot;, or &quot;accomplishment&quot;) is a piece of software, a chunk of data, or sequence of commands that take advantage of a bug, glitch or vulnerability in order to cause unintended or unanticipated behavior to occur on computer software, hardware, or something electronic (usually computerised). This frequently includes such things as gaining control of a computer system or allowing privilege escalation or a denial of service attack.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Classification&lt;/span&gt;&lt;br /&gt;There are several methods of classifying exploits. The most common is by how the exploit contacts the vulnerable software. A &#39;remote exploit&#39; works over a network and exploits the security vulnerability without any prior access to the vulnerable system. A &#39;local exploit&#39; requires prior access to the vulnerable system and usually increases the privileges of the person running the exploit past those granted by the system administrator. Exploits against client applications also exist, usually consisting of modified servers that send an exploit if accessed with client application. Exploits against client applications may also require some interaction with the user and thus may be used in combination with social engineering method. This is the hacker way of getting into computers and stealing data.&lt;br /&gt;Another classification is by the action against vulnerable system: unauthorized data access, arbitrary code execution, denial of service.&lt;br /&gt;Many exploits are designed to provide superuser-level access to a computer system. However, it is also possible to use several exploits, first to gain low-level access, then to escalate privileges repeatedly until one reaches root.&lt;br /&gt;Normally a single exploit can only take advantage of a specific software vulnerability. Often, when an exploit is published, the vulnerability is fixed through a patch and the exploit becomes obsolete for newer versions of the software. This is the reason why some blackhat hackers do not publish their exploits but keep them private to themselves or other crackers. Such exploits are referred to as &#39;zero day exploits&#39; and to obtain access to such exploits is the primary desire of unskilled attackers, often nicknamed script kiddies&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Types&lt;/span&gt;&lt;br /&gt;Exploits are commonly categorized and named by these criteria:&lt;br /&gt;The type of vulnerability they exploit (See the article on vulnerabilities for a list)&lt;br /&gt;Whether they need to be run on the same machine as the program that has the vulnerability (local) or can be run on one machine to attack a program running on another machine (remote).&lt;br /&gt;The result of running the exploit (EoP, DoS, Spoofing, etc...)&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/3019263189218686220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/exploit-computer-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3019263189218686220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3019263189218686220'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/exploit-computer-security.html' title='Exploit (computer security)'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-2247753597030047044</id><published>2010-03-24T20:35:00.000+07:00</published><updated>2010-03-24T20:37:53.540+07:00</updated><title type='text'>Penetration test</title><content type='html'>A penetration test is a method of evaluating the security of a computer system or network by simulating an attack from a malicious source, known as a Black Hat Hacker, or Cracker. The process involves an active analysis of the system for any potential vulnerabilities that may result from poor or improper system configuration, known and/or unknown hardware or software flaws, or operational weaknesses in process or technical countermeasures. This analysis is carried out from the position of a potential attacker, and can involve active exploitation of security vulnerabilities. Any security issues that are found will be presented to the system owner together with an assessment of their impact and often with a proposal for mitigation or a technical solution. The intent of a penetration test is to determine feasibility of an attack and the amount of business impact of a successful exploit, if discovered. It is a component of a full security audit.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Black box vs. White box&lt;/span&gt;&lt;br /&gt;Penetration tests can be conducted in several ways. The most common difference is the amount of knowledge of the implementation details of the system being tested that are available to the testers. Black box testing assumes no prior knowledge of the infrastructure to be tested. The testers must first determine the location and extent of the systems before commencing their analysis. At the other end of the spectrum, white box testing provides the testers with complete knowledge of the infrastructure to be tested, often including network diagrams, source code, and IP addressing information. There are also several variations in between, often known as grey box tests. Penetration tests may also be described as &quot;full disclosure&quot;, &quot;partial disclosure&quot; or &quot;blind&quot; tests based on the amount of information provided to the testing party.&lt;br /&gt;The relative merits of these approaches are debated. Black box testing simulates an attack from someone who is unfamiliar with the system. White box testing simulates what might happen during an &quot;inside job&quot; or after a &quot;leak&quot; of sensitive information, where the attacker has access to source code, network layouts, and possibly even some passwords.&lt;br /&gt;The services offered by penetration testing firms span a similar range, from a simple scan of an organization&#39;s IP address space for open ports and identification banners to a full audit of source code for an application.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Methodologies&lt;/span&gt;&lt;br /&gt;The Open Source Security Testing Methodology Manual is a peer-reviewed methodology for performing security tests and metrics. The OSSTMM test cases are divided into five channels which collectively test: information and data controls, personnel security awareness levels, fraud and social engineering control levels, computer and telecommunications networks, wireless devices, mobile devices, physical security access controls, security processes, and physical locations such as buildings, perimeters, and military bases.&lt;br /&gt;The OSSTMM focuses on the technical details of exactly which items need to be tested, what to do before, during, and after a security test, and how to measure the results. OSSTMM is also known for its Rules of Engagement which define for both the tester and the client how the test needs to properly run starting from denying false advertising from testers to how the client can expect to receive the report. New tests for international best practices, laws, regulations, and ethical concerns are regularly added and updated.&lt;br /&gt;The National Institute of Standards and Technology (NIST) discusses penetration testing in SP800-115[1][2]. NIST&#39;s methodology is less comprehensive than the OSSTMM; however, it is more likely to be accepted by regulatory agencies. For this reason NIST refers to the OSSTMM.&lt;br /&gt;The Information Systems Security Assessment Framework (ISSAF) is a peer reviewed structured framework from the Open Information Systems Security Group that categorizes information system security assessment into various domains and details specific evaluation or testing criteria for each of these domains. It aims to provide field inputs on security assessment that reflect real life scenarios. The ISSAF should primarily be used to fulfill an organization&#39;s security assessment requirements and may additionally be used as a reference for meeting other information security needs. It includes the crucial facet of security processes and, their assessment and hardening to get a complete picture of the vulnerabilities that might exist. The ISSAF however is still in its infancy.&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/2247753597030047044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/penetration-test.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2247753597030047044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2247753597030047044'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/penetration-test.html' title='Penetration test'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-7393028560311293226</id><published>2010-03-23T10:01:00.000+07:00</published><updated>2010-03-23T10:03:47.743+07:00</updated><title type='text'>Linux 2.6.30 exploit posted</title><content type='html'>Title says it all, exploit is at:&lt;br /&gt;http://grsecurity.net/~spender/cheddar_bay.tgz&lt;br /&gt;&lt;br /&gt;Everything is described and explained in the exploit.c file.&lt;br /&gt;I exploit a bug that by looking at the source is unexploitable;&lt;br /&gt;I defeat the null ptr dereference protection in the kernel on &lt;br /&gt;both systems with SELinux and those without.&lt;br /&gt;I proceed to disable SELinux/AppArmor/LSM/auditing&lt;br /&gt;&lt;br /&gt;Exploit works on both 32bit and 64bit kernels.&lt;br /&gt;&lt;br /&gt;Links to videos of the exploit in action are present in the exploit &lt;br /&gt;code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/7393028560311293226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/linux-2630-exploit-posted.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/7393028560311293226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/7393028560311293226'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/linux-2630-exploit-posted.html' title='Linux 2.6.30 exploit posted'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-2783326975379893304</id><published>2010-03-23T09:30:00.000+07:00</published><updated>2010-03-23T09:53:36.581+07:00</updated><title type='text'>How To Reset Linux Root Forgotten Passwords Get Retrieve Root Password</title><content type='html'>he other day, i inherited a server which was admin by another company. Now i am expected to login into the linux server and make some changes and update some stuff, but the problem is that the previous admin person did not give me the root password for the server. So today, i found a way on how to retrieve the root password from a linus server.&lt;br /&gt;&lt;br /&gt;DISCLAIMER: By you continuing to read this how to guide, you are in agreement that you have permission to access your linux server. Use this information at your own risk, I take no liability for any contents of this post. this information should only be used to recover passwords from machines you have legal access to. If you use this informationt obreak or hack into someone else&#39;s systems, then I am not responsible for it. Also, you are advised to make any backups of your system before continuiing.&lt;br /&gt;&lt;br /&gt;please note that you cannot perform this remotely, you must be physically at the machine.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;1. the first step is to reboot server.&lt;br /&gt;&lt;br /&gt;2. Since the server i inherit has GRUB, wait until the grub splash screen comes on and hit the letter &#39;e&#39; on your keyboard. this will stop grub.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try  {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://www.wallpaperama.com/forums/post-images/grub-login-screen-asdfa45421.jpg&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 479px; height: 320px;&quot; src=&quot;http://www.wallpaperama.com/forums/post-images/grub-login-screen-asdfa45421.jpg&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. hit &#39;e&#39; again and this will take you to another screen&lt;br /&gt;&lt;br /&gt;4. you should see one of the choices has &quot;kernel&quot; select the one with &quot;kernel&lt;br /&gt;&lt;br /&gt;5. hit &#39;e&#39; on your keyboard&lt;br /&gt;&lt;br /&gt;6. type &#39; single&#39; (make sure to include a space before &quot;single&quot;) and hit enter. then enter &#39;b&#39; to boot.&lt;br /&gt;&lt;br /&gt;7. your system should boot up in single mode as root&lt;br /&gt;&lt;br /&gt;8. now that you are logged in single mode you can chage the root password by sending this command: &lt;br /&gt;&lt;blockquote&gt;passwd&lt;/blockquote&gt;&lt;br /&gt;9. after you have changed the root password, reboot server and you should be able to login with the new password.&lt;br /&gt;&lt;br /&gt;DONE&lt;br /&gt;&lt;br /&gt;LILO ----------------------------&lt;br /&gt;&lt;br /&gt;1. If you have LILO, its different, fist reboot server and when you see the LILO: prompt type &quot;linux single&quot; and hit enter. this will log you in as root in single user mode.&lt;br /&gt;&lt;br /&gt;2. Once booting is complete, you can change your password with this command:&lt;br /&gt;     Code:&lt;br /&gt;&lt;blockquote&gt;passwd&lt;/blockquote&gt;&lt;br /&gt;and reboot server.&lt;br /&gt;&lt;br /&gt;DONE &lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/2783326975379893304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/how-to-reset-linux-root-forgotten.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2783326975379893304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/2783326975379893304'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/how-to-reset-linux-root-forgotten.html' title='How To Reset Linux Root Forgotten Passwords Get Retrieve Root Password'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-6991303161769610031</id><published>2010-03-23T09:05:00.000+07:00</published><updated>2010-03-23T09:30:31.479+07:00</updated><title type='text'>Cracking WPA/WPA2 on Linux</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://webs.hogent.be/quintends/images/iwconfig.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 657px; height: 435px;&quot; src=&quot;http://webs.hogent.be/quintends/images/iwconfig.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;this article and all of my others can also be found at http://www.secusoft.be&lt;br /&gt;I recently noticed a strange thing on this forum, everyone likes WEP-cracking tutorials a lot,&lt;br /&gt;but it seems like a lot of people have questions about WPA/WPA2 cracking too. After these findings,&lt;br /&gt;I noticed that there weren&#39;t any tutorials yet on HF.net, or I didn&#39;t check very well, that would be&lt;br /&gt;option two :D.&lt;br /&gt;&lt;br /&gt;Knowledge&lt;br /&gt;&lt;br /&gt;If you look at the attacks closely, you&#39;d think WPA was very easy to crack. Well, some people say it is,&lt;br /&gt;some don&#39;t agree. The fact is, that if the password is in some sort of dictionary, the password can be cracked.&lt;br /&gt;Just for the record: when it comes to cracking WPA(2), they are cracked the same way ;-).&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;you&#39;ll need a 4-way handshake from a client connecting to an AP.&lt;br /&gt;The 4way handshake holds an encrypted algorithm which can be cracked by dictionary attack.&lt;br /&gt;you&#39;ll need a huge list and some luck that the password is in the list,&lt;br /&gt;or you can make a personal list created with a password tool of your choice (like john),&lt;br /&gt;which will not be discussed in this tutorial ;-).For this tutorial, of course I&#39;ll be using the Aircrack-ng suite.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;!Optional: &quot;lazyness&quot;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;sudo su&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;you might need root access to run these applications. For example, if you are using Ubuntu and you&lt;br /&gt;don&#39;t want to type &quot;sudo&quot; in front of every line, you could use this optional command.&lt;br /&gt;&lt;br /&gt;Knowing what interface to use&lt;br /&gt;&lt;br /&gt;first of all, you&#39;ll have to know what the name of your wireless interface is, thats why you type:&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;iwconfig&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In my case, the interface was wlan0, as you can see that&#39;s the only one that can connect to anything..&lt;br /&gt;&lt;br /&gt;Identifying your victim&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;airmon-ng start INTERFACE&lt;br /&gt;&lt;br /&gt;you&#39;d get a small message saying:&lt;br /&gt;(monitor mode enabled on SPOOFEDINTERFACE ) //In my case, interface was &quot;mon0&quot;..&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;airodump-ng SPOOFEDINTERFACE&lt;br /&gt;&lt;br /&gt;The next step would be choosing your victim. Obviously we would be looking for someone with wpa encryption now.&lt;br /&gt;since you want to crack someone with wpa.&lt;br /&gt;write down his BSSID and his CHANNEL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;rebooting the network card to fit in the right Channel&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;airmon-ng stop SPOOFEDINTERFACE&lt;br /&gt;Code:&lt;br /&gt;airmon-ng start INTERFACE CHANNEL&lt;br /&gt;&lt;br /&gt;Start the dumping of the file&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;airodump-ng -c CHANNEL --bssid BSSID -w psk SPOOFEDINTERFACE&lt;br /&gt;&lt;br /&gt;This will start airodump-ng on your specific channel (-c). It will search handshakes&lt;br /&gt;of the specifief bssid and will write this all to a capture file named psk (-w).&lt;br /&gt;&lt;br /&gt;Notice! You might ask yourself, but how do I know when I captured a handshake?&lt;br /&gt;-&gt; Well, aircrack thought of that, if you managed to capture a handshake, a message appears in the upper&lt;br /&gt;right corner.&lt;br /&gt;&lt;br /&gt;[Image: handshake.jpg]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;!Optional, but very helpful when speeding up the process&lt;br /&gt;&lt;br /&gt;So you need to capture a handshake, but the people who are connected of course won&#39;t be giving out the&lt;br /&gt;handshake, since this event only takes place during authentication. If we could just boot them for a small second&lt;br /&gt;off their network, so they could reconnect, that would be perfect!&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;aireplay-ng -0 10 -a BSSID -c CLIENTBSSID SPOOFEDINTERFACE&lt;br /&gt;&lt;br /&gt;This would do 10 &quot;deauthentication&quot; attacks (-0) with the AP being BSSID and client being booted CLIENTBSSID.&lt;br /&gt;&lt;br /&gt;You can check if a client is connected by looking at your Airodump-ng screen again. If you see on the bottom of that&lt;br /&gt;screen that someone is connected to the ESSID of your victim, simply use the STATION BSSID as CLIENTBSSID in this example.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;aircrack-ng -w /pentest/wordlist.lst -b BSSID psk*.cap&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This would crack the actual capture file that was being created by airodump-ng.&lt;br /&gt;notice! You can only try to crack when a handshake actually took place.&lt;br /&gt;&lt;br /&gt;Don&#39;t forget, -w needs the path to your wordlist, so remember where you saved it!&lt;br /&gt;&lt;br /&gt;[Image: aircrack-ng.jpg]&lt;br /&gt;-&gt; Aircrack-ng while attempting to crack a password&lt;br /&gt;&lt;br /&gt;!Optional: &quot;security&quot;&lt;br /&gt;&lt;br /&gt;As a scriptkiddy, you might want to remain a bit anonymous, so here&#39;s how you would change your mac..&lt;br /&gt;Try to implement it yourself ;-)&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;sudo ifconfig SPOOFEDINTERFACE down &amp;&amp; sudo macchanger -r INTERFACE &amp;&amp; sudo macchanger -r SPOOFEDINTERFACE &amp;&amp; ifconfig SPOOFEDINTERFACE up&lt;br /&gt;&lt;br /&gt;Wordlists&lt;br /&gt;&lt;br /&gt;If you ever needed some good wordlists, I suggest checking here first:&lt;br /&gt;&lt;br /&gt;wordlists&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bye&lt;br /&gt;&lt;br /&gt;thx for your time guys ;-)&lt;br /&gt;&lt;br /&gt;this tutorial was also hosted here&lt;br /&gt;[Image: logo%20header.png]&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/6991303161769610031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/cracking-wpawpa2-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/6991303161769610031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/6991303161769610031'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/cracking-wpawpa2-on-linux.html' title='Cracking WPA/WPA2 on Linux'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-3209946102674989881</id><published>2010-03-20T22:24:00.000+07:00</published><updated>2010-03-20T22:50:03.136+07:00</updated><title type='text'>Shell script</title><content type='html'>A shell script is a script written for the shell, or command line interpreter, of an operating system. It is often considered a simple domain-specific programming language. Typical operations performed by shell scripts include file manipulation, program execution, and printing text.&lt;br /&gt;&lt;br /&gt;Many shell script interpreters double as command line interface, such as the various Unix shells, Windows PowerShell or the MS-DOS COMMAND.COM. Others, such as AppleScript or the graphical Windows Script Host (WScript.exe), add scripting capability to computing environments without requiring a command line interface. Other examples of programming languages primarily intended for shell scripting include DCL and JCL.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;Shortcuts&lt;br /&gt;&lt;br /&gt;In their most basic form, a shell script can provide a convenient variation of a system command where special environment settings, command options, or postprocessing is applied automatically, but in a way that allows the new script to still act as a fully normal Unix command.&lt;br /&gt;&lt;br /&gt;One example would be to create a version of ls, the command to list files, giving it a shorter command name of l, which would be normal saved in a user&#39;s bin directory as /home/username/bin/l, and a default set of command options pre-supplied.&lt;br /&gt;&lt;blockquote&gt;#!/bin/sh&lt;br /&gt;LC_COLLATE=C ls -FCas &quot;$@&quot;&lt;/blockquote&gt;&lt;br /&gt;Here, The first line indicates what interpreter should be used to execute the rest of the script, and the second line makes a listing with options for file format indicators, columns, all files (none omitted), and a size in blocks. The LC_COLLATE=C set the default collation order to not fold upper and lower case together, and the &quot;$@&quot;  causes any parameters given to l to be passed through as parameters to ls, so that all of the normal options and other syntax known to ls can still be used.&lt;br /&gt;&lt;br /&gt;The user would then be able to simply use l for the most commonly used short listing.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Batch jobs&lt;/span&gt;&lt;br /&gt;Shell scripts allow several commands that would be entered manually at a command line interface to be executed automatically, and without having to wait for a user to trigger each stage of the sequence. For example, in a directory with three C source code files, rather than manually running the four commands required to build the final program from them, one could instead create a C shell script, here named build and kept in the directory with them, which would compile them automatically:&lt;br /&gt;&lt;blockquote&gt;#!/bin/csh&lt;br /&gt;echo compiling...&lt;br /&gt;cc -c foo.c&lt;br /&gt;cc -c bar.c&lt;br /&gt;cc -c qux.c&lt;br /&gt;cc -o myprog foo.o bar.o qux.o &lt;br /&gt;echo done.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;The script would allow a user to save the file being edited, pause the editor, and then just run ./build to create the updated program, test it, and then return to the editor. Since the 1980s or so, however, scripts of this type have been replaced with utilities like make which are specialized for building programs.&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/3209946102674989881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/shell-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3209946102674989881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3209946102674989881'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/shell-script.html' title='Shell script'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-4426482837053213395</id><published>2010-03-20T22:21:00.000+07:00</published><updated>2010-03-20T22:24:04.255+07:00</updated><title type='text'>Wildcards</title><content type='html'>Consider the problem of writing a routine that prints out all the elements in a collection.&lt;br /&gt;Here’s how you might write it in an older version of the language:&lt;br /&gt;&lt;blockquote&gt;void printCollection(Collection c) {&lt;br /&gt;Iterator i = c.iterator();&lt;br /&gt;for (k = 0; k &lt; c.size(); k++) {&lt;br /&gt;System.out.println(i.next());&lt;br /&gt;}}&lt;/blockquote&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;And here is a naive attempt at writing it using generics (and the new for loop syntax):&lt;br /&gt;&lt;blockquote&gt;void printCollection(Collection&lt; Object &gt; c) {&lt;br /&gt;for (Object e : c) {&lt;br /&gt;System.out.println(e);&lt;br /&gt;}}&lt;/blockquote&gt;&lt;br /&gt;The problem is that this new version is much less useful than the old one. Whereas&lt;br /&gt;the old code could be called with any kind of collection as a parameter, the new code&lt;br /&gt;only takes Collection&lt; Object &gt;, which, as we’ve just demonstrated, is not a supertype&lt;br /&gt;of all kinds of collections!&lt;br /&gt;So what is the supertype of all kinds of collections? It’s written Collection&lt;?&gt;&lt;br /&gt;(pronounced “collection of unknown”) , that is, a collection whose element type matches&lt;br /&gt;anything. It’s called a wildcard type for obvious reasons. We can write:&lt;br /&gt;void printCollection(Collection&lt;?&gt; c) {&lt;br /&gt;for (Object e : c) {&lt;br /&gt;System.out.println(e);&lt;br /&gt;}}&lt;br /&gt;and now, we can call it with any type of collection. Notice that inside printCollection(),&lt;br /&gt;we can still read elements from c and give them type Object. This is always&lt;br /&gt;safe, since whatever the actual type of the collection, it does contain objects. It isn’t&lt;br /&gt;safe to add arbitrary objects to it however:&lt;br /&gt;Collection&lt;?&gt; c = new ArrayList&lt;String&gt;();&lt;br /&gt;c.add(new Object()); // compile time error&lt;br /&gt;Since we don’t know what the element type of c stands for, we cannot add objects&lt;br /&gt;to it. The add() method takes arguments of type E, the element type of the collection.&lt;br /&gt;When the actual type parameter is ?, it stands for some unknown type. Any parameter&lt;br /&gt;we pass to add would have to be a subtype of this unknown type. Since we don’t know&lt;br /&gt;what type that is, we cannot pass anything in. The sole exception is null, which is a&lt;br /&gt;member of every type.&lt;br /&gt;On the other hand, given a List&lt;?&gt;, we can call get() and make use of the result.&lt;br /&gt;The result type is an unknown type, but we always know that it is an object. It is&lt;br /&gt;therefore safe to assign the result of get() to a variable of type Object or pass it as a&lt;br /&gt;parameter where the type Object is expected.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/4426482837053213395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/wildcards.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/4426482837053213395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/4426482837053213395'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/wildcards.html' title='Wildcards'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-5227228278501852073</id><published>2010-03-20T22:17:00.000+07:00</published><updated>2010-03-20T22:21:52.724+07:00</updated><title type='text'>Generics and Subtyping</title><content type='html'>Let’s test our understanding of generics. Is the following code snippet legal?&lt;br /&gt;&lt;blockquote&gt;List&lt;String&gt; ls = new ArrayList&lt;String&gt;(); //1&lt;br /&gt;List&lt; Object &gt; lo = ls; //2&lt;/blockquote&gt;&lt;br /&gt;Line 1 is certainly legal. The trickier part of the question is line 2. This boils down&lt;br /&gt;to the question: is a List of String a List of Object. Most people’s instinct is to answer:&lt;br /&gt;“sure!”.&lt;br /&gt;Well, take a look at the next few lines:&lt;br /&gt;&lt;blockquote&gt;lo.add(new Object()); // 3&lt;br /&gt;String s = ls.get(0); // 4: attempts to assign an Object to a String!&lt;/blockquote&gt;&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;Here we’ve aliased ls and lo. Accessing ls, a list of String, through the alias lo, we&lt;br /&gt;can insert arbitrary objects into it. As a result ls does not hold just Strings anymore,&lt;br /&gt;and when we try and get something out of it, we get a rude surprise.&lt;br /&gt;The Java compiler will prevent this from happening of course. Line 2 will cause a&lt;br /&gt;compile time error.&lt;br /&gt;In general, if Foo is a subtype (subclass or subinterface) of Bar, and G is some&lt;br /&gt;generic type declaration, it is not the case that G&lt;Foo&gt; is a subtype of G&lt;Bar&gt;.&lt;br /&gt;This is probably the hardest thing you need to learn about generics, because it goes&lt;br /&gt;against our deeply held intuitions.&lt;br /&gt;The problem with that intuition is that it assumes that collections don’t change.&lt;br /&gt;Our instinct takes these things to be immutable.&lt;br /&gt;For example, if the department of motor vehicles supplies a list of drivers to the census&lt;br /&gt;bureau, this seems reasonable. We think that a List&lt;Driver&gt; is a List&lt;Person&gt;,&lt;br /&gt;assuming that Driver is a subtype of Person. In fact, what is being passed is a copy&lt;br /&gt;of the registry of drivers. Otherwise, the census bureau could add new people who are&lt;br /&gt;not drivers into the list, corrupting the DMV’s records.&lt;br /&gt;In order to cope with this sort of situation, it’s useful to consider more flexible&lt;br /&gt;generic types. The rules we’ve seen so far are quite restrictive.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/5227228278501852073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/generics-and-subtyping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/5227228278501852073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/5227228278501852073'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/generics-and-subtyping.html' title='Generics and Subtyping'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-8436445904937793564</id><published>2010-03-20T22:14:00.000+07:00</published><updated>2010-03-20T22:17:08.128+07:00</updated><title type='text'>Defining Simple Generics</title><content type='html'>Here is a small excerpt from the definitions of the interfaces List and Iterator in package&lt;br /&gt;java.util:&lt;br /&gt;public interface List&lt;E&gt; {&lt;br /&gt;void add(E x);&lt;br /&gt;Iterator&lt;E&gt; iterator();&lt;br /&gt;}&lt;br /&gt;public interface Iterator&lt;E&gt; {&lt;br /&gt;E next();&lt;br /&gt;boolean hasNext();&lt;br /&gt;}&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;This should all be familiar, except for the stuff in angle brackets. Those are the&lt;br /&gt;declarations of the formal type parameters of the interfaces List and Iterator.&lt;br /&gt;Type parameters can be used throughout the generic declaration, pretty much where&lt;br /&gt;you would use ordinary types (though there are some important restrictions; see section&lt;br /&gt;7).&lt;br /&gt;In the introduction, we saw invocations of the generic type declaration List, such&lt;br /&gt;as List&lt;Integer&gt;. In the invocation (usually called a parameterized type), all occurrences&lt;br /&gt;of the formal type parameter (E in this case) are replaced by the actual type&lt;br /&gt;argument (in this case, Integer).&lt;br /&gt;You might imagine that List&lt;Integer&gt; stands for a version of List where E has&lt;br /&gt;been uniformly replaced by Integer:&lt;br /&gt;public interface IntegerList {&lt;br /&gt;void add(Integer x)&lt;br /&gt;Iterator&lt;Integer&gt; iterator();&lt;br /&gt;}&lt;br /&gt;This intuition can be helpful, but it’s also misleading.&lt;br /&gt;It is helpful, because the parameterized type List&lt;Integer&gt; does indeed have&lt;br /&gt;methods that look just like this expansion.&lt;br /&gt;It is misleading, because the declaration of a generic is never actually expanded in&lt;br /&gt;this way. There aren’t multiple copies of the code: not in source, not in binary, not on&lt;br /&gt;disk and not in memory. If you are a C++ programmer, you’ll understand that this is&lt;br /&gt;very different than a C++ template.&lt;br /&gt;A generic type declaration is compiled once and for all, and turned into a single&lt;br /&gt;class file, just like an ordinary class or interface declaration.&lt;br /&gt;Type parameters are analogous to the ordinary parameters used in methods or constructors.&lt;br /&gt;Much like a method has formal value parameters that describe the kinds of&lt;br /&gt;values it operates on, a generic declaration has formal type parameters. When a method&lt;br /&gt;is invoked, actual arguments are substituted for the formal parameters, and the method&lt;br /&gt;body is evaluated. When a generic declaration is invoked, the actual type arguments&lt;br /&gt;are substituted for the formal type parameters.&lt;br /&gt;A note on naming conventions. We recommend that you use pithy (single character&lt;br /&gt;if possible) yet evocative names for formal type parameters. It’s best to avoid lower&lt;br /&gt;case characters in those names, making it easy to distinguish formal type parameters&lt;br /&gt;from ordinary classes and interfaces. Many container types use E, for element, as in&lt;br /&gt;the examples above. We’ll see some additional conventions in later examples.&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/8436445904937793564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/defining-simple-generics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/8436445904937793564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/8436445904937793564'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/defining-simple-generics.html' title='Defining Simple Generics'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-1611613088707288591</id><published>2010-03-20T22:13:00.000+07:00</published><updated>2012-04-30T22:47:04.863+07:00</updated><title type='text'>Security</title><content type='html'>just see the link artikel this.. (:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://armypratama.blogspot.com/2010/03/top-13-securityhacking-tools-utilities.html&quot;&gt;Top 13 Security/Hacking Tools &amp;amp; Utilities&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/1611613088707288591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/hacking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/1611613088707288591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/1611613088707288591'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/hacking.html' title='Security'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-3086146412127558418</id><published>2010-03-20T22:11:00.000+07:00</published><updated>2010-03-20T22:26:44.857+07:00</updated><title type='text'>Programming All language</title><content type='html'>This is a List language Program..&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://armypratama.blogspot.com/2010/03/programing-java.html&quot;&gt;Java Programming&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://armypratama.blogspot.com/2010/03/defining-simple-generics.html&quot;&gt;Defining Simple Generics&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://armypratama.blogspot.com/2010/03/generics-and-subtyping.html&quot;&gt;Generics and Subtyping&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://armypratama.blogspot.com/2010/03/wildcards.html&quot;&gt;Wildcards&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/3086146412127558418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/programming-all-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3086146412127558418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/3086146412127558418'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/programming-all-language.html' title='Programming All language'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-8245037349403532554</id><published>2010-03-20T22:09:00.000+07:00</published><updated>2010-03-20T22:10:45.592+07:00</updated><title type='text'>Programing Java</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;Introduction&lt;/span&gt;&lt;br /&gt;JDK 1.5 introduces several extensions to the Java programming language. One of these&lt;br /&gt;is the introduction of generics.&lt;br /&gt;This tutorial is aimed at introducing you to generics. You may be familiar with&lt;br /&gt;similar constructs from other languages, most notably C++ templates. If so, you’ll soon&lt;br /&gt;see that there are both similarities and important differences. If you are not familiar&lt;br /&gt;with look-a-alike constructs from elsewhere, all the better; you can start afresh, without&lt;br /&gt;unlearning any misconceptions.&lt;br /&gt;Generics allow you to abstract over types. The most common examples are container&lt;br /&gt;types, such as those in the Collection hierarchy.&lt;br /&gt;Here is a typical usage of that sort:&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;Generics allow you to abstract over types. The most common examples are container&lt;br /&gt;types, such as those in the Collection hierarchy.&lt;br /&gt;Here is a typical usage of that sort:&lt;br /&gt;List myIntList = new LinkedList(); // 1&lt;br /&gt;myIntList.add(new Integer(0)); // 2&lt;br /&gt;Integer x = (Integer) myIntList.iterator().next(); // 3&lt;br /&gt;The cast on line 3 is slightly annoying. Typically, the programmer knows what&lt;br /&gt;kind of data has been placed into a particular list. However, the cast is essential. The&lt;br /&gt;compiler can only guarantee that an Object will be returned by the iterator. To ensure&lt;br /&gt;the assignment to a variable of type Integer is type safe, the cast is required.&lt;br /&gt;Of course, the cast not only introduces clutter. It also introduces the possibility of&lt;br /&gt;a run time error, since the programmer might be mistaken.&lt;br /&gt;What if programmers could actually express their intent, and mark a list as being&lt;br /&gt;restricted to contain a particular data type? This is the core idea behind generics. Here&lt;br /&gt;is a version of the program fragment given above using generics:&lt;br /&gt;List&lt;Integer&gt; myIntList = new LinkedList&lt;Integer&gt;(); // 1’&lt;br /&gt;myIntList.add(new Integer(0)); //2’&lt;br /&gt;Integer x = myIntList.iterator().next(); // 3’&lt;br /&gt;Notice the type declaration for the variable myIntList. It specifies that this is not&lt;br /&gt;just an arbitrary List, but a List of Integer, written List&lt;Integer&gt;. We say that List is&lt;br /&gt;a generic interface that takes a type parameter - in this case, Integer. We also specify&lt;br /&gt;a type parameter when creating the list object.&lt;br /&gt;The other thing to pay attention to is that the cast is gone on line 3’.&lt;br /&gt;Now, you might think that all we’ve accomplished is to move the clutter around.&lt;br /&gt;Instead of a cast to Integer on line 3, we have Integer as a type parameter on line 1’.&lt;br /&gt;However, there is a very big difference here. The compiler can now check the type&lt;br /&gt;correctness of the program at compile-time. When we say that myIntList is declared&lt;br /&gt;with type List&lt;Integer&gt;, this tells us something about the variable myIntList, which&lt;br /&gt;holds true wherever and whenever it is used, and the compiler will guarantee it. In&lt;br /&gt;contrast, the cast tells us something the programmer thinks is true at a single point in&lt;br /&gt;the code.&lt;br /&gt;The net effect, especially in large programs, is improved readability and robustness.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/8245037349403532554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/programing-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/8245037349403532554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/8245037349403532554'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/programing-java.html' title='Programing Java'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-6024681259660026189</id><published>2010-03-20T21:33:00.000+07:00</published><updated>2010-03-20T21:37:07.432+07:00</updated><title type='text'>Security Sources Linux</title><content type='html'>There are a LOT of good sites out there for Unix security in general and Linux security&lt;br /&gt;specifically. It’s very important to subscribe to one (or more) of the security mailing&lt;br /&gt;lists and keep current on security fixes. Most of these lists are very low volume, and&lt;br /&gt;very informative.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;LinuxSecurity.com References&lt;/span&gt;&lt;br /&gt;The LinuxSecurity.com web site has numerous Linux and open source security references&lt;br /&gt;written by the LinuxSecurity staff and people collectively around the world.&lt;br /&gt;• Linux Advisory Watch95 -- A comprehensive newsletter that outlines the security&lt;br /&gt;vulnerabilities that have been announced throughout the week. It includes pointers&lt;br /&gt;to updated packages and descriptions of each vulnerability.&lt;br /&gt;• Linux Security Week96 -- The purpose of this document is to provide our readers&lt;br /&gt;with a quick summary of each week’s most relevant Linux security headlines.&lt;br /&gt;• Linux Security Discussion List97 -- This mailing list is for general security-related&lt;br /&gt;questions and comments.&lt;br /&gt;• Linux Security Newsletters98 -- Subscription information for all newsletters.&lt;br /&gt;• comp.os.linux.security FAQ99 -- Frequently Asked Questions with answers for the&lt;br /&gt;comp.os.linux.security newsgroup.&lt;br /&gt;• Linux Security Documentation100 -- A great starting point for information pertaining&lt;br /&gt;to Linux and Open Source security.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;FTP Sites&lt;/span&gt;&lt;br /&gt;CERT is the Computer Emergency Response Team. They often send out alerts of current&lt;br /&gt;attacks and fixes. See ftp://ftp.cert.org for more information.&lt;br /&gt;ZEDZ (formerly Replay) (http://www.zedz.net) has archives of many security programs.&lt;br /&gt;Since they are outside the US, they don’t need to obey US crypto restrictions.&lt;br /&gt;Matt Blaze is the author of CFS and a great security advocate. Matt’s archive is available&lt;br /&gt;at ftp://ftp.research.att.com/pub/mab&lt;br /&gt;tue.nl is a great security FTP site in the Netherlands. ftp.win.tue.nl104&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Web Sites&lt;/span&gt;&lt;br /&gt;• The Hacker FAQ is a FAQ about hackers: The Hacker FAQ105&lt;br /&gt;• The COAST archive has a large number of Unix security programs and information:&lt;br /&gt;COAST106&lt;br /&gt;• SuSe Security Page: http://www.suse.de/security/&lt;br /&gt;• Rootshell.com is a great site for seeing what exploits are currently being used by&lt;br /&gt;crackers: http://www.rootshell.com/&lt;br /&gt;• BUGTRAQ puts out advisories on security issues: BUGTRAQ archives109&lt;br /&gt;• CERT, the Computer Emergency Response Team, puts out advisories on common&lt;br /&gt;attacks on Unix platforms: CERT home110&lt;br /&gt;• Dan Farmer is the author of SATAN and many other security tools. His home&lt;br /&gt;site has some interesting security survey information, as well as security tools:&lt;br /&gt;http://www.trouble.org&lt;br /&gt;• The Linux security WWW is a good site for Linux security information: Linux Security&lt;br /&gt;WWW112&lt;br /&gt;• Infilsec has a vulnerability engine that can tell you what vulnerabilities affect a&lt;br /&gt;specific platform: http://www.infilsec.com/vulnerabilities/&lt;br /&gt;• CIAC sends out periodic security bulletins on common exploits:&lt;br /&gt;http://ciac.llnl.gov/cgi-bin/index/bulletins&lt;br /&gt;• A good starting point for Linux Pluggable Authentication modules can be found&lt;br /&gt;at http://www.kernel.org/pub/linux/libs/pam/.&lt;br /&gt;• The Debian project has a web page for their security fixes and information. It is at&lt;br /&gt;http://www.debian.com/security/.&lt;br /&gt;• WWW Security FAQ, written by Lincoln Stein, is a great web security reference.&lt;br /&gt;Find it at http://www.w3.org/Security/Faq/www-security-faq.html&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Mailing Lists&lt;/span&gt;&lt;br /&gt;Bugtraq: To subscribe to bugtraq, send mail to listserv@netspace.org containing the&lt;br /&gt;message body subscribe bugtraq. (see links above for archives).&lt;br /&gt;CIAC: Send e-mail to majordomo@tholia.llnl.gov. In the BODY (not subject) of the&lt;br /&gt;message put (either or both): subscribe ciac-bulletin&lt;br /&gt;Red Hat has a number of mailing lists, the most important of which is the redhatannounce&lt;br /&gt;list. You can read about security (and other) fixes as soon as they come out.&lt;br /&gt;Send email to redhat-announce-list-request@redhat.com with the Subject Subscribe&lt;br /&gt;See https://listman.redhat.com/mailman/listinfo/ for more info and archives.&lt;br /&gt;The Debian project has a security mailing list that covers their security fixes. See&lt;br /&gt;http://www.debian.com/security/ for more information.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Books - Printed Reading Material&lt;/span&gt;&lt;br /&gt;There are a number of good security books out there. This section lists a few of them.&lt;br /&gt;In addition to the security specific books, security is covered in a number of other&lt;br /&gt;books on system administration.&lt;br /&gt;• Building Internet Firewalls By D. Brent Chapman &amp; Elizabeth D. Zwicky, 1st Edition&lt;br /&gt;September 1995, ISBN: 1-56592-124-0&lt;br /&gt;• Practical UNIX &amp; Internet Security, 2nd Edition By Simson Garfinkel &amp; Gene Spafford,&lt;br /&gt;2nd Edition April 1996, ISBN: 1-56592-148-8&lt;br /&gt;• Computer Security Basics By Deborah Russell &amp; G.T. Gangemi, Sr., 1st Edition July&lt;br /&gt;1991, ISBN: 0-937175-71-4&lt;br /&gt;• Linux Network Administrator’s Guide By Olaf Kirch, 1st Edition January 1995,&lt;br /&gt;ISBN: 1-56592-087-2&lt;br /&gt;• PGP: Pretty Good Privacy By Simson Garfinkel, 1st Edition December 1994, ISBN:&lt;br /&gt;1-56592-098-8&lt;br /&gt;• Computer Crime A Crimefighter’s Handbook By David Icove, Karl Seger &amp;&lt;br /&gt;William VonStorch (Consulting Editor Eugene H. Spafford), 1st Edition August&lt;br /&gt;1995, ISBN: 1-56592-086-4&lt;br /&gt;• Linux Security By John S. Flowers, New Riders; ISBN: 0735700354, March 1999&lt;br /&gt;• Maximum Linux Security : A Hacker’s Guide to Protecting Your Linux Server and&lt;br /&gt;Network, Anonymous, Paperback - 829 pages, Sams; ISBN: 0672313413, July 1999&lt;br /&gt;• Intrusion Detection By Terry Escamilla, Paperback - 416 pages (September 1998),&lt;br /&gt;John Wiley and Sons; ISBN: 0471290009&lt;br /&gt;• Fighting Computer Crime, Donn Parker, Paperback - 526 pages (September 1998),&lt;br /&gt;John Wiley and Sons; ISBN: 0471163783&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Glossary&lt;/span&gt;&lt;br /&gt;Included below are several of the most frequently used terms in computer security.&lt;br /&gt;A comprehensive dictionary of computer security terms is available in the LinuxSecurity.&lt;br /&gt;com Dictionary120&lt;br /&gt;• authentication: The process of knowing that the data received is the same as the data&lt;br /&gt;that was sent, and that the claimed sender is in fact the actual sender.&lt;br /&gt;• bastion Host: A computer system that must be highly secured because it is vulnerable&lt;br /&gt;to attack, usually because it is exposed to the Internet and is a main point of&lt;br /&gt;contact for users of internal networks. It gets its name from the highly fortified&lt;br /&gt;projects on the outer walls of medieval castles. Bastions overlook critical areas of&lt;br /&gt;defense, usually having strong walls, room for extra troops, and the occasional&lt;br /&gt;useful tub of boiling hot oil for discouraging attackers.&lt;br /&gt;• buffer overflow: Common coding style is to never allocate large enough buffers, and&lt;br /&gt;to not check for overflows. When such buffers overflow, the executing program&lt;br /&gt;(daemon or set-uid program) can be tricked in doing some other things. Generally&lt;br /&gt;this works by overwriting a function’s return address on the stack to point to&lt;br /&gt;another location.&lt;br /&gt;• denial of service: An attack that consumes the resources on your computer for things&lt;br /&gt;it was not intended to be doing, thus preventing normal use of your network resources&lt;br /&gt;for legitimate purposes.&lt;br /&gt;• dual-homed Host: A general-purpose computer system that has at least two network&lt;br /&gt;interfaces.&lt;br /&gt;• firewall: A component or set of components that restricts access between a protected&lt;br /&gt;network and the Internet, or between other sets of networks.&lt;br /&gt;• host: A computer system attached to a network&lt;br /&gt;• IP spoofing: IP Spoofing is a complex technical attack that is made up of several&lt;br /&gt;components. It is a security exploit that works by tricking computers in a trust&lt;br /&gt;relationship into thinking that you are someone that you really aren’t. There is an&lt;br /&gt;extensive paper written by daemon9, route, and infinity in the Volume Seven, Issue&lt;br /&gt;Forty-Eight issue of Phrack Magazine.&lt;br /&gt;• non-repudiation: The property of a receiver being able to prove that the sender of&lt;br /&gt;some data did in fact send the data even though the sender might later deny ever&lt;br /&gt;having sent it.&lt;br /&gt;• packet: The fundamental unit of communication on the Internet.&lt;br /&gt;• packet filtering: The action a device takes to selectively control the flow of data to&lt;br /&gt;and from a network. Packet filters allow or block packets, usually while routing&lt;br /&gt;them from one network to another (most often from the Internet to an internal network,&lt;br /&gt;and vice-versa). To accomplish packet filtering, you set up rules that specify&lt;br /&gt;what types of packets (those to or from a particular IP address or port) are to be&lt;br /&gt;allowed and what types are to be blocked.&lt;br /&gt;• perimeter network: A network added between a protected network and an external&lt;br /&gt;network, in order to provide an additional layer of security. A perimeter network&lt;br /&gt;is sometimes called a DMZ.&lt;br /&gt;• proxy server:Aprogram that deals with external servers on behalf of internal clients.&lt;br /&gt;Proxy clients talk to proxy servers, which relay approved client requests to real&lt;br /&gt;servers, and relay answers back to clients.&lt;br /&gt;• superuser: An informal name for root.&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/6024681259660026189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/security-sources-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/6024681259660026189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/6024681259660026189'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/security-sources-linux.html' title='Security Sources Linux'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-4563443222823197198</id><published>2010-03-20T21:30:00.000+07:00</published><updated>2010-03-20T21:31:28.463+07:00</updated><title type='text'>IP Chains&amp;Netfilter - Linux Kernel 2.2.x Firewalling</title><content type='html'>Linux IP Firewalling Chains is an update to the 2.0 Linux firewalling code for the 2.2&lt;br /&gt;kernel. It has many more features than previous implementations, including:&lt;br /&gt;• More flexible packet manipulations&lt;br /&gt;• More complex accounting&lt;br /&gt;• Simple policy changes possible atomically&lt;br /&gt;• Fragments can be explicitly blocked, denied, etc.&lt;br /&gt;• Logs suspicious packets.&lt;br /&gt;• Can handle protocols other than ICMP/TCP/UDP.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;If you are currently using ipfwadm on your 2.0 kernel, there are scripts available to&lt;br /&gt;convert the ipfwadm command format to the format ipchains uses.&lt;br /&gt;Be sure to read the IP Chains HOWTO for further information. It is available at&lt;br /&gt;http://www.adelaide.net.au/~rustcorp/ipfwchains/ipfwchains.html&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Netfilter - Linux Kernel 2.4.x Firewalling&lt;/span&gt;&lt;br /&gt;In yet another set of advancements to the kernel IP packet filtering code, netfilter&lt;br /&gt;allows users to set up, maintain, and inspect the packet filtering rules in the new 2.4&lt;br /&gt;kernel.&lt;br /&gt;The netfilter subsystem is a complete rewrite of previous packet filtering implementations&lt;br /&gt;including ipchains and ipfwadm. Netfilter provides a large number of improvements,&lt;br /&gt;and it has now become an even more mature and robust solution for&lt;br /&gt;protecting corporate networks.&lt;br /&gt;iptables&lt;br /&gt;is the command-line interface used to manipulate the firewall tables within the kernel.&lt;br /&gt;Netfilter provides a raw framework for manipulating packets as they traverse&lt;br /&gt;through various parts of the kernel. Part of this framework includes support for&lt;br /&gt;masquerading, standard packet filtering, and now more complete network address&lt;br /&gt;translation. It even includes improved support for load balancing requests for a&lt;br /&gt;particular service among a group of servers behind the firewall.&lt;br /&gt;The stateful inspection features are especially powerful. Stateful inspection provides&lt;br /&gt;the ability to track and control the flow of communication passing through the filter.&lt;br /&gt;The ability to keep track of state and context information about a session makes rules&lt;br /&gt;simpler and tries to interpret higher-level protocols.&lt;br /&gt;Additionally, small modules can be developed to perform additional specific functions,&lt;br /&gt;such as passing packets to programs in userspace for processing then reinjecting&lt;br /&gt;back into the normal packet flow. The ability to develop these programs in&lt;br /&gt;userspace reduces the level of complexity that was previously associated with having&lt;br /&gt;to make changes directly at the kernel level.&lt;br /&gt;Other IP Tables references include:&lt;br /&gt;• Oskar Andreasson IP Tables Tutorial80 -- Oskar Andreasson speaks with LinuxSecurity.&lt;br /&gt;com about his comprehensive IP Tables tutorial and how this document can be&lt;br /&gt;used to build a robust firewall for your organization.&lt;br /&gt;• Hal Burgiss Introduces Linux Security Quick-Start Guides81 -- Hal Burgiss has written&lt;br /&gt;two authoritative guides on securing Linux, including managing firewalling.&lt;br /&gt;• Netfilter Homepage82 -- The netfilter/iptables homepage.&lt;br /&gt;• Linux Kernel 2.4 Firewalling Matures: netfilter83 -- This LinuxSecurity.com article describes&lt;br /&gt;the basics of packet filtering, how to get started using iptables, and a list of&lt;br /&gt;the new features available in the latest generation of firewalling for Linux.&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/4563443222823197198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/ip-chains-linux-kernel-22x-firewalling.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/4563443222823197198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/4563443222823197198'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/ip-chains-linux-kernel-22x-firewalling.html' title='IP Chains&amp;Netfilter - Linux Kernel 2.2.x Firewalling'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-9015619890558838002</id><published>2010-03-20T21:28:00.002+07:00</published><updated>2010-03-20T21:29:46.805+07:00</updated><title type='text'>Firewalls Linux</title><content type='html'>Firewalls are ameans of controlling what information is allowed into and out of your&lt;br /&gt;local network. Typically the firewall host is connected to the Internet and your local&lt;br /&gt;LAN, and the only access from your LAN to the Internet is through the firewall. This&lt;br /&gt;way the firewall can control what passes back and forth from the Internet and your&lt;br /&gt;LAN.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;There are a number of types of firewalls and methods of setting them up. Linux machines&lt;br /&gt;make pretty good firewalls. Firewall code can be built right into 2.0 and higher&lt;br /&gt;kernels. The user-space tools ipfwadm for 2.0 kernels and ipchains for 2.2 kernels,&lt;br /&gt;allows you to change, on the fly, the types of network traffic you allow. You can also&lt;br /&gt;log particular types of network traffic.&lt;br /&gt;Firewalls are a very useful and important technique in securing your network.&lt;br /&gt;However, never think that because you have a firewall, you don’t need to&lt;br /&gt;secure the machines behind it. This is a fatal mistake. Check out the very good&lt;br /&gt;Firewall-HOWTO at your latest metalab archive for more information on firewalls&lt;br /&gt;and Linux. http://metalab.unc.edu/mdw/HOWTO/Firewall-HOWTO.html&lt;br /&gt;More information can also be found in the IP-Masquerade mini-howto:&lt;br /&gt;http://metalab.unc.edu/mdw/HOWTO/mini/IP-Masquerade.html&lt;br /&gt;More information on ipfwadm (the tool that lets you change settings on your firewall,&lt;br /&gt;can be found at it’s home page: http://www.xos.nl/linux/ipfwadm/&lt;br /&gt;If you have no experience with firewalls, and plan to set up one for more than just a&lt;br /&gt;simple security policy, the Firewalls book by O’Reilly and Associates or other online&lt;br /&gt;firewall document is mandatory reading. Check out http://www.ora.com for more&lt;br /&gt;information. The National Institute of Standards and Technology have put together&lt;br /&gt;an excellent document on firewalls. Although dated 1995, it is still quite good. You&lt;br /&gt;can find it at http://csrc.nist.gov/nistpubs/800-10/main.html. Also of interest:&lt;br /&gt;• The Freefire Project -- a list of freely-available firewall tools, available at&lt;br /&gt;http://sites.inka.de/sites/lina/freefire-l/index_en.html&lt;br /&gt;• SunWorld Firewall Design -- written by the authors of the O’Reilly book, this&lt;br /&gt;provides a rough introduction to the different firewall types. It’s available at&lt;br /&gt;http://www.sunworld.com/swol-01-1996/swol-01-firewall.html&lt;br /&gt;• Mason - the automated firewall builder for Linux. This is a firewall script that&lt;br /&gt;learns as you do the things you need to do on your network! More info at:&lt;br /&gt;http://www.pobox.com/~wstearns/mason/&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/9015619890558838002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/firewalls-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/9015619890558838002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/9015619890558838002'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/firewalls-linux.html' title='Firewalls Linux'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-639513314280428143</id><published>2010-03-20T21:28:00.001+07:00</published><updated>2010-03-20T21:28:47.396+07:00</updated><title type='text'>NIS (Network Information Service) (formerly YP).</title><content type='html'>Network Information service (formerly YP) is a means of distributing information&lt;br /&gt;to a group of machines. The NIS master holds the information tables and converts&lt;br /&gt;them into NIS map files. These maps are then served over the network, allowing NIS&lt;br /&gt;client machines to get login, password, home directory and shell information (all&lt;br /&gt;the information in a standard /etc/passwd file). This allows users to change their&lt;br /&gt;password once and have it take effect on all the machines in the NIS domain.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;NIS is not at all secure. It was never meant to be. It was meant to be handy and useful.&lt;br /&gt;Anyone that can guess the name of your NIS domain (anywhere on the net) can get&lt;br /&gt;a copy of your passwd file, and use &quot;crack&quot; and &quot;John the Ripper&quot; against your users’&lt;br /&gt;passwords. Also, it is possible to spoof NIS and do all sorts of nasty tricks. If you&lt;br /&gt;must use NIS, make sure you are aware of the dangers.&lt;br /&gt;There is a much more secure replacement for NIS, called&lt;br /&gt;NIS+. Check out the NIS HOWTO for more information:&lt;br /&gt;http://metalab.unc.edu/mdw/HOWTO/NIS-HOWTO.html&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/639513314280428143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/nis-network-information-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/639513314280428143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/639513314280428143'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/nis-network-information-service.html' title='NIS (Network Information Service) (formerly YP).'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3432244292187585618.post-1028252280998880666</id><published>2010-03-20T21:27:00.000+07:00</published><updated>2010-03-20T21:28:03.860+07:00</updated><title type='text'>NFS (Network File System) Security.</title><content type='html'>NFS is a very widely-used file sharing protocol. It allows servers running nfsd and&lt;br /&gt;mountd to &quot;export&quot; entire file systems to other machines using NFS filesystem support&lt;br /&gt;built in to their kernels (or some other client support if they are not Linux machines).&lt;br /&gt;mountd keeps track of mounted file systems in /etc/mtab, and can display them with&lt;br /&gt;showmount.&lt;br /&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;Many sites use NFS to serve home directories to users, so that no matter what machine&lt;br /&gt;in the cluster they login to, they will have all their home files.&lt;br /&gt;There is some small amount of security allowed in exporting file systems. You can&lt;br /&gt;make your nfsd map the remote root user (uid=0) to the nobody user, denying them&lt;br /&gt;total access to the files exported. However, since individual users have access to their&lt;br /&gt;own (or at least the same uid) files, the remote root user can login or su to their account&lt;br /&gt;and have total access to their files. This is only a small hindrance to an attacker&lt;br /&gt;that has access to mount your remote file systems.&lt;br /&gt;If you must use NFS, make sure you export to only those machines that you really&lt;br /&gt;need to. Never export your entire root directory; export only directories you need to&lt;br /&gt;export.&lt;br /&gt;See the NFS HOWTO for more information on NFS, available at&lt;br /&gt;http://metalab.unc.edu/mdw/HOWTO/NFS-HOWTO.html&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://armypratama.blogspot.com/feeds/1028252280998880666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://armypratama.blogspot.com/2010/03/nfs-network-file-system-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/1028252280998880666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3432244292187585618/posts/default/1028252280998880666'/><link rel='alternate' type='text/html' href='http://armypratama.blogspot.com/2010/03/nfs-network-file-system-security.html' title='NFS (Network File System) Security.'/><author><name>Army</name><uri>http://www.blogger.com/profile/09798137519809746468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_N2gP0X42HX0/S6TrG_5381I/AAAAAAAAABo/uz-vQPOHALg/S220/Army+%23%23.jpg'/></author><thr:total>0</thr:total></entry></feed>