Minggu, 07 September 2008

RINDU

Kawan...janganlah katakan
Bahwa aku melarikan diri dari perjuangan
Sesungguhnya aku baru memulainya

Di kejauhan aku merasa tersiksa
Suka-duka yang aku lewati sendirian
Tak akan bisa tergantikan
Dan tak seindah selain bersama kalian

Aku rindu tuk menyelimuti para kader Kohati
Dikala malam saat mereka terlelap
Rindu kemarahan dan air mata para kader ikhwan
Karena aku selalu dituduh mencipta masalah.

Kepergianku untuk menjauh dari kalian
Bukan karena aku membawa masalah
Sungguh...apa yang ku lakukan demi kebahagiaan keluarga
Meskipun mempengaruhi sebuah eksistensi.

Kawan...
Ber-HMI harus ikhlas dan sabar
Dan dengan niatan tulus dan suci tanpa tendensi
Seandainya..kalian menghadapi suatu masalah
Anggaplah itu adalah bunga romantisme
Ritmes dari suatu perjuangan

Janganlah tak ada sapa
Janganlah tak ada senyum
Janganlah ada kata melarikan diri dari sekret
Dan...
Janganlah ada kata pengunduran diri
Meskipun telah terjadi konfrensi luar biasa.

Bagaimana kau akan tahu

Bagaimana kau akan tahu
Segala perasaan yang membebaniku
Sedang jarak memisahkan aku denganmu

Bagaimana kau akan tahu
Bahwa aku disini begitu mengingatmu
Sedang kita tak pernah berkata.

Bagaimana kau akan tahu
Hatiku tak mampu berpaling
Sedang dirimu selalu merasa ragu

Bagaimana....

Sabtu, 06 September 2008

tutorial mathlab

Present tutorial: This tutorial was prepared for our freshman engineering students using the student version of MATLAB, because symbolic computations are covered in almost no introductory textbook. We are pleased to make it available to the international community, and would appreciate suggestions for its improvement. MATLAB’s symbolic engine permits the user to do things easily that are difficult or impossible to do numerically.

The following topics are covered:

Differentiation
Indefinite integrals
Definite integrals
Conversion to numeric (“double”) variables for subsequent numeric calculations
Substitution
Plotting of equations and functions
Solution of equations: graphical approximations, single equations, multiple simultaneous equations, non-linear equations, equations with infinitely many solutions.
Limits
Taylor series
Variable precision arithmetic
Powerpoint lectures and homework assignments

First do the demos in MATLAB’s help. Click on Help, Demos tab at the top, Toolboxes, Symbolic Math.

In the following instructions, material in bold is to be entered in the MATLAB command line and executed. This can be done by cutting and pasting using Ctrl c to cut and Ctrl v to paste. (Use the small finger on the left hand to press Ctrl while pressing c or v with the index finger of the left hand at the same time. Ctrl x cuts the highlighted material.)

The first step is to tell MATLAB that the variables to be used are symbolic. This is most easily done using the syms command (see >> help syms). For example, in the following we will use x, y, a, b and c as symbolic quantities. So enter >> clear, syms x y a b c f g . In the Workspace window (or use >> whos) note that these variables are symbolic, rather than the usual double precision numeric variables. It’s a good idea to start with “clear” to make certain MATLAB doesn’t use previous values for variables.

Differentiation: The MATLAB symbolic toolbox is very useful for checking calculus problems. For the syntax for symbolic differentiation, see >> help sym/diff . For example, to find diff_f = where f = e-axx3bsin(cx) and a, b and c are unspecified constants, we do the following1:

>> clear, syms a b c x; f=exp(-a*x)*x^(3*b)*sin(c*x), diff_f = diff(f,x)

Notice that the result is quite complex. To ask MATLAB to try to simplify it, type:

>> diff_f_simp = simple(diff_f)

(see >> help sym/simple). MATLAB uses several algorithms for algebraic simplification, and chooses as a final answer the shortest of the results. If you prefer some other form listed, select the command producing it.
MATLAB can take higher order differentials. For example, to find diff2_f =we do
>> diff2_f=diff(f,x,2) using the already defined expression for f.

Indefinite integrals: For the syntax for symbolic integration, see >> help sym/int. Thus, for example, to find the indefinite integral int_g =, where g = e-axsin(cx), we do
>> clear, syms a c x; g=exp(-a*x)*sin(c*x), int_g = int(g,x)

Check this by taking >>diff_int = diff(int_g,x). This should give back g, but it doesn’t look the same because MATLAB doesn’t always give things in the simplest format. In this case, we again use the simple command >> diff_int_simp = simple(diff_int).

Note that MATLAB does not add the constant of integration (“C”) customarily shown for indefinite integrals -- this you must do by adding C after the int command.

Sometimes MATLAB is not able to integrate an expression symbolically. For example, try to find (where, as before, f = e-axx3bsin(cx) and a, b and c are unspecified constants).
>> clear, syms a b c x; f = exp(-a*x)*x^(3*b)*sin(c*x), int(f,x)

Notice that when MATLAB cannot find a solution, it gives a warning message and repeats the command. When this happens, you’re out of luck.
Definite integrals: For the definite integral, int_def_g =do
>> clear, syms a c x; g = exp(-a*x)*sin(c*x), int_def_g = int(g,x,-pi,pi)

When MATLAB is unable to find an analytical (symbolic) integral, such as with >>int(exp(sin(x)),x,0,1), a numerical solution can nevertheless be found using the “quad” command, e.g. >> quad('exp(sin)',0,1) . Generally speaking, it is best to follow the steps below:
1.Create the function to be integrated in the MATLAB editor and save it to your Current Directory, which must also be in the path (File / Set Path). For example, for our exp(sin(x)) function:
function out = func1(x)
out = exp(sin(x));
end
2.Use either one of the following formats: >> quad('func1',0,1) or >> quad(@func1,0,1)

Conversion to a double precision numeric variable: Often MATLAB's symbolic engine produces a symbolic answer, as in:

>> clear, syms x; h=exp(-x)*sin(x), int_def_h=int(h,x,-pi,pi)

where  is retained in symbolic form (pi). Irrational numbers may also result, e.g. 4/3 rather than 1.3333. For use in subsequent numerical calculations, you must convert symbolic results into numeric “double” variables by the “double” command:

>> int_def_h_doub=double(int_def_h)

Substitution: Sometimes it is desired to substitute one value or parameter for another in an expression. This can be done using the “subs” command (see >> help sym/subs). For example, imagine we want a=2 and c=4 in int_def_g. This is done by:
>> clear, syms a c x; g = exp(-a*x)*sin(c*x), int_def_g = int(g,x,-pi,pi)
>> int_sub=subs(int_def_g,{a,c},{2,4})

Do not try to assign the values to the variables before the integration or differentiation is performed. (Try it in the above example and see what happens.)

Graphing equations and functions: MATLAB’s symbolic engine has commands for plotting symbolic equations and functions, appropriately starting with “ez.” For two-dimensional graphs, see >> help ezplot. As an example here we use the equation for a circle of radius 2, x2+y2 = 4.

Step 1: Move everything to the left-hand side of the equation, i.e. x2 + y2 – 4 = 0
Step 2: Clear and define x and y as symbolic.
Step 3: Define a variable equal to the left-hand side of the equation, inside single
straight2 quotation marks.
Step 4: Use ezplot.

>> clear; syms x y; lhs = 'x^2+y^2 - 4'; ezplot(lhs,[-3,3,-2.5,2.5])

The [-3,3,-2,2] tells MATLAB that the x scale is to go from -3 to +3, and the y scale is to go from -2.5 to +2.5. Note that we have assigned x2 + y2 - 4 to the character variable “eq” (see the Workspace window or type >> whos).

You can edit the figure in the Figure window. First save it as “circle.fig” using File/Save As so you can retrieve it later from the Command window, without having to recreate it. Here are some things you can do in the Figure window:

Click on the arrow icon and then double-click on any portion of the figure you’d like to edit. In this way you can change the color and thickness of the curve, add points, change the axes, edit the title.
Edit / Copy Figure to place it on the Windows Clipboard. Then you can paste it into a Word document, for example.
While in the Figure window, press the Alt and Print Screen keys at the same time, to place the entire figure window on the clipboard. This can also be pasted into a Word document.

Experiment with other equations.

Three-dimensional plots can be created using the ezmesh and ezsurf commands. For these commands an explicit form must be used, i.e. z = f(x,y). It is the f(x,y) that is entered into the command. The code below illustrates some possibilities. The green lines with % are comments and are not executed by MATLAB.

% symplot3D.m
% Some 3d plots, where z = the expressions shown
% In the figure window, click on Tools, Rotate 3D.
% Then put cursor on figure, hold down left mouse,
% move cursor to rotate figure. Notice that this
% gives you a better feeling for its 3D shape.
% Have some fun and create your own shapes.
clear, clc
syms x y
ex1='sqrt(4-x^2-y^2)';
figure(1); ezsurf(ex1,[-2,2,-2,2]);
ex2='x^2-y^2';
figure(2); ezsurf(ex2);
ex3='x^2+2';
figure(3); ezmesh(ex3);
ex4='x + y';
figure(4); ezmesh(ex4);

Open the excellent MATLAB editor by >> edit, cut and paste the above code into your editor, save it on your Current Directory as symplot3D.m, make certain the Current Directory is in MATLAB’s path (File/Set Path), and then execute it in the Command window by >>symplot3D.
Select each figure in turn, and in the Figure window Tools / Rotate 3D. Put the cursor anywhere on the figure, hold down the left mouse button, and move the mouse to rotate the figure.

Solution of equations: The symbolic toolbox in MATLAB is capable of solving many types of equations, including non-linear ones and several simultaneous equations. See: >> help sym/solve. The steps in solving one or more equations using “solve” are:

Step 1: Define the variables in the equations as symbolic using the “syms” command.
Step 2: Define the equations (see the examples below).
Step 3: Solve the equations using the “solve” command.
Step 4: If there is more than one solution, decide which is physically reasonable and select it.
Step 5: Check the solution by substituting it back into the original equation(s).

We now look at some examples.

Example 1: Find the two solutions to the classic quadratic equation, ax2 + bx + c = 0.

>> clear, syms x y z a b c; eq = 'a*x^2+b*x+c = 0', [x]=solve(eq,x)

(Note that single quotation marks must be placed around an equation that is assigned to a variable, here “eq”.) As expected, we obtain two solutions. Suppose we want only the first. This is extracted by >> x1 = x(1) . This should be done manually or using a logical operator (“if” command), because MATLAB's symbolic engine doesn't always give multiple solutions in the same order. What is x(1) now could be x(2) in a subsequent trial.

Example 2: Find the solution to e2x=3y:

>> clear, syms x y; eq = 'exp(2*x) = 3*y', [x] = solve(eq,x)

(Is the log in this solution the natural log or the log base 10? See
http://people.clarkson.edu/~wilcox/ES100/formcomp.doc)

We use a similar procedure to solve simultaneous equations. First, let us look at a set of linear equations, and then non-linear equations.

Example 3: Find the solution to the following set of linear equations:

2x-3y+4z = 5
y+4z+x = 10
-2z+3x+4y = 0

>> clear, syms x y z;
>> eq1 = '2*x-3*y+4*z = 5'
>> eq2 = 'y+4*z+x = 10',
>> eq3 = '-2*z+3*x+4*y = 0'
>> [x,y,z] = solve(eq1,eq2,eq3,x,y,z)

Notice that we did not have to enter x, y and z in any particular order in defining the equation variables (unlike the numerical MATLAB method using matrices with \ or inv). However, the variables in the output are in alphabetical order, regardless of how they are written in the command. So take care to list the variables in the brackets in alphabetical order. (For example, if you use [z,x,y] rather than [x,y,z] in the above example the result produced for z is actually x, that for x is actually y, and that for y is actually z.) Again, the results may be symbolic and require conversion to numeric form for subsequent calculations:

>> x_d = double(x), y_d = double(y), z_d = double(z)

Example 4: We can also solve simultaneous non-linear equations, e.g. y=2ex and y=3-x2:

>> clear, syms x y; eq1='y=2*exp(x) ', eq2='y=3-x^2', [x,y]=solve(eq1,eq2,x,y)
Note that this gives only one solution; there are two as we see below. Again, to convert x and y from symbolic variables to numeric double variables, use the “double” command. (Use “whos” or look in the Workspace window to follow this transformation.)

We can obtain an approximate solution by plotting these two equations and looking at their intersections. As above, we first move everything to the left hand side of the equations.

>> clear, syms x y; eq1 = 'y - 2*exp(x)'; eq2 = 'y-3+x^2';
>> ezplot(eq1), hold on; ezplot(eq2); hold off

The "hold on" command tells MATLAB to write following plots on top of the first one, rather than replacing it. Approximate values of the solutions (intersections) can be obtained in the Figure window by clicking on Tools / Zoom In, clicking on a desired intersection to enlarge that area of the graph, clicking on Tools / Data Cursor, and then clicking on that intersection again to give the approximate values of x and y there. Compare these results with those found above using the solve command.

Example 5: There are equations with an infinite number of solutions, for example sin(x) = 1/2.
It is helpful to see some of these solutions by plotting y = sin(x)-1/2 and seeing approximately where it has values of zero:

>> clear, syms x; eq='y - sin(x) + 1/2'; ezplot(eq,[-6,6,-2,1])
>> hold on; eq0='0'; ezplot(eq0); hold off

The "hold on" command tells MATLAB to write following plots on top of the first one, rather than replacing it. Plotting 0 puts a horizontal line on the graph. Intersections of the sine wave with this line represent solutions of the first equation. Approximate values can be obtained in the Figure window by clicking on Tools / Zoom In, clicking on a desired intersection to enlarge that area of the graph, clicking on Tools / Data Cursor, and then clicking on that intersection again to give the approximate values of x and y there. Try this on the first two intersections to the right of the origin (x > 0). Write down your results to compare with those found below using solve commands.

The symbolic solve command finds only one of these solutions and then stops:

>> clear, syms x; eq = 'sin(x)-1/2=0'; [x] = solve(eq,x); x_doub=double(x)

But suppose we want the solution that lies between x = 2 and x = 3. There are two ways to do this, one using MATLAB's symbolic engine and the (easier) using its numeric engine. First we use the symbolic fsolve command (see >> mhelp fsolve), for which the syntax is

>> clear, x = maple('fsolve(sin(x)=1/2,x,2..3)')

While not immediately apparent, >> whos shows that the result is a 1x33 character array (made up of the ASCII decimal codes for each number and the period.) Try >> x_d = double(x). To convert to a number that can be used in subsequent calculations, we must use the “str2num” (convert string to number) command:

>> x_d = str2num(x)

(Unfortunately, there are many symbolic commands that are not included in the Student version of MATLAB. These can be recognized by the use of “mhelp” and “maple.” For these, you’ll have to use the full professional version of MATLAB that is installed on Clarkson’s computers.)

Now for an easier numerical method to solve the above problem. See >> help fzero. Here are the steps involved:

1.Convert the equation to a function consisting of everything moved to the left-hand side, e.g. func2(x) = sin(x)-1/2.
2.Create this function in the MATLAB editor, save to the Current Directory, and make certain the current directory is in the path (File / Set Path). For example:

function out = func2(x)
out = sin(x) - 1/2;
end

3.Plot this function over the range of interest to see where the solutions are, e.g.:

>> clear, x = - 4:0.01:4; plot(x,func2(x))

4.Use one of the following formats to find the solution:

>> fzero('func2',3) or >> fzero(@func2,3) or >> fzero('func2', [2,3])

MATLAB finds the value of x near 3 that gives func2 = 0. Notice (“whos” or Workspace) that the result is double, so no conversions are necessary for subsequent numeric calculations.

Limits: The symbolic toolbox also contains a command for finding limits of expressions, e.g.:




>> clear, syms x a; value = limit(sin(a*x)/x,x,0)

There are cases where the limit depends on the direction from which it is approached. Consider the plot of tan(x) versus x generated by:
>> ezplot('tan(x)')

Suppose we want the value of tan(x) at x = p/2. We could use MATLAB's numeric engine as follows:

>> tan(pi/2)

Does this give a correct result? Recall that tan(p/2) can be either + or -, depending whether we approach from the left or the right. The numeric solution is a very large number, which might by okay for some applications but not for others. We can use the symbolic engine to find the two correct solutions, as follows:

>> tanhalfpiright = limit(tan(x),x,pi/2,'right')
>> tanhalfpileft = limit(tan(x),x,pi/2,'left')

As an exercise, find . The result may surprise you!

Taylor series: Taylor series are polynomial approximations for functions that are valid near a particular point. Differentials of increasingly higher order are used to generate this polynomial (e.g., see your calculus test). The syntax is taylor(expression, order, variable, point)
Example: Expand ex about x = 3 to order 5:

>> clear, syms x; Tay_expx = taylor(exp(x),5,x,3)

This is exactly correct only at x = 3. Compare this approximation at x = 2 with the exact value:
>> approx=subs(Tay_expx,x,2), exact=exp(2), frac_err=abs(1-approx/exact)

The approximation improves as one adds more terms to the polynomial (order), or moves closer to the point about which the expansion was made. This can be illustrated by:

>> ezplot(Tay_expx), hold on, ezplot(exp(x)), hold off

Summations: MATLAB’s symbolic engine is also capable of doing symbolic summations, even those with infinitely many terms! The “symsum” command is used (see help symsum) Let us consider, where f(k) is a function of an integer k. The syntax to calculate this using
MATLAB is syms k, symsum(f,k,m,n). If a factorial (!) is desired, since ! is also a numeric command, we must tell MATLAB to use the symbolic form by including the term involving in the factorial, say (1+2*k)!, in sym, i.e. sym('(1+2*k)!'). Infinite sums are particularly interesting, e.g.: , the solution for which is found by:

>> clear, syms k x; symsum((-1)^k*x^(2*k+1)/sym('(2*k+1)!'),k,0,Inf)

As an exercise, find and. The results may surprise you!

Variable Precision Arithmetic (VPA): We can control the precision with which MATLAB performs calculations involving irrational numbers. We illustrate this using the golden ratio:



Read >> help vpa and >> help sym/vpa to learn about the two ways of setting the precision of calculating an irrational number. What is the current (default) number of digits?

>> clear, digits

This is the default accuracy of MATLAB's numeric engine. The VPA syntax for calculating R from S is: R = vpa(S) & R = vpa('S'), depending on whether you want the answer accurate to about 16 significant figures or to full precision in symbolic form. Find the difference between the results of calculating the golden ratio by these two methods.

>> phi1 = vpa((1+sqrt(5))/2), phi2 = vpa('(1+sqrt(5))/2'), difference = phi1 - phi2

Which is closer to the correct irrational value? When "difference" is evaluated, MATLAB takes phi2 and expresses it to the current number of digits. The number of digits to which the answer is rounded off can be controlled by the optional argument D, i.e. vpa(S,D) or vpa('S',D). Compare the following:

>> clear, phi1 = vpa((1+sqrt(5))/2, 4), phi2 = vpa('(1+sqrt(5))/2'), difference = phi1 - phi2

>> clear, phi1 = vpa((1+sqrt(5))/2), phi2 = vpa('(1+sqrt(5))/2',4), difference = phi1 - phi2

>> clear, phi1 = vpa((1+sqrt(5))/2,100), phi2 = vpa('(1+sqrt(5))/2',100), difference = phi1 - phi2

Thus, increasing D beyond 32 does not improve the precision using the numerical format, but does add more significant figures using the symbolic format (with the quotation marks). So if you want to know an irrational number to more significant figures, use symbolic methods.

Belajar Hacking

Yup ini hasil copy paste untuk tujuan pembelajaran dan pengetahuan aja, silahkan dinikmati ceritanya!

Dalam suatu kesempatan, saya pernah melihat seorang auditor keamanan jaringan melalukan penetration test (pen-test) terhadap suatu sistem IT. Karena penasaran saya melihat sedikit2 cara penetration test yang dilakukan. Waktu itu saya belum banyak tahu tools apa aja yang digunakan, yang saya tau dia menggunakan tcpdump untuk menganalisis paket apa aja yang lewat, trus untuk men-scan beberapa host menggunakan Nessus. Ada salah satu aplikasi yang digunakan berbasis web yang terdapat kumpulan beberapa exploit. Waktu itu saya belum tahu aplikasi apa itu, yang saya ingat aplikasi itu menggunakan alamat http://127.0.0.1:55555, nah berbekal port 55555 saya mencari di google, dan ternyata itu adalah Metasploit Framework!.

Peristiwa itu menginspirasikan saya untuk mengenang masa-masa lalu ketika masih seneng2nya ngoprek dan belum ‘tercemar’ oleh DotA. Akhirnya sekarang saya ingin belajar ngoprek lagi, tp lebih fokus ke exploitnya saja. Tulisannya ini akan saya buat menjadi tiga bagian. Bagian pertama mengenai bagaimana salah satu cara umum yang dilakukan untuk menge-hack suatu system. Disini saya lebih menitikberatkan untuk hacking OS Windows XP, karena OS ini paling banyak dipakai orang. Bagian kedua lebih banyak ke teori mengenai exploit. Tapi karena mungkin akan sangat sulit dipahami (saya sendiri msh blm bisa membuat exploit sendiri), saya hanya menuliskan hasil terjemahan yang membahas apa itu dan cara kerja exploit. Sedangkan bagian terakhir merupakan praktek bagaimana mengelakukan penetration test menggunakan metasploit di Windows XP.

Bagian 1

*ini merupakan artikel lama mengenai salah satu cara umum yang dilakukan untuk hacking. (artikel ini jg di mirror oleh Negative a.k.a Jim Geovedi di sini). Langkah dibawah ini merupakan cara ’standar’, hacking sebenarnya tidak harus selalu sesuai dengan ’standar’ ini.

Hacking buat pemula

- by aCh

Artikel ini ditujukan bagi pemula, dan disusun oleh pemula. Ditulis untuk pengetahuan semata. Untuk temen2 yg udah ahli, sok aja dilewat, tapi dibaca juga gpp….

Apa sebenarnya hacking itu? klo menurut pengertian gue, hacking adalah ngoprek. Yup, hacking adalah ngoprek, mempelajari sesuatu dengan keingintahuan (curiosity) yg tinggi, ngutak atik sesuatu, ‘ngudek-ngudek’ sampai ke ‘jeroannya’. Sesuatunya apa dong? ya terserah… bisa komputer, mobil, motor, mesin. Tapi masalahnya ada ngga ya hacker mobil, hacker motor, atau hacker pesawat terbang?? hehe… Walaupun saat ini hacking identik dengan ‘bobol-membobol’, tapi gue kurang setuju klo cuman bobol server orang doang!. Ada yang bilang ‘Hacking is Art’, trus dimana letak seninya dong? Mau tau pengertian hacking sebenarnya, coba baca artikel sebelumnya (How to Become A Hacker). Di situ dijelasin bahwa hacker berkaitan dengan kemahiran teknis serta kegemaran menyelesaikan masalah dan mengatasi keterbatasan. Contoh hacker pada saat ini yang sering-sering disebut adalah Linus Torvald (tau ngga? itu lho yang menciptakan Linux). Apa dia tukang bobol? belum tentu kan….

Pada artikel ini, gue pengen membagi pengalaman mengenai Hacking, walaupun sampai saat ini gue belum pernah nge-Hack ke server orang. Salah satu cara untuk mencoba simulasi Hack yaitu H3cky0uRs3lf! Buat komputer kita sebagai server (sekaligus belajar konfigurasi server) trus install program yg dibutuhkan. Misalnya klo mo Web Hacking, coba install Apache atau IIS. Atau kita sesuaikan dengan exploit yang udah kita dapet. Tapi lebih baik install Linux atau FreeBSD dulu di komputer pribadi, trus konfigurasi sebagai server, lalu simulasi Hack, setelah itu baru Hack Betulan… Apalagi klo di kost ada jaringan.

Pro dan Kontra Hacking

Pro

Kontra

Etika Hacking

Semua informasi adalah free

Jika semua informasi adalah free, maka tidak ada ladi privacy

Aspek Security

Intrusion adalah ilustrasi kelemahan sistem

Tidak perlu menjadi pencuri untuk menunjukkan pintu yang tidak terkunci

Idle Machines

Hacking hanya pada idle machines

idle machines milik siapa ?

science education

hanya membobol tapi tidak merusak

“hacker wannabe” berpotensi sangat besar untuk merusak

Okeh, sekarang waktunya melakukan aksi…

1. Fase Persiapan

~ Mengumpulkan informasi sebanyak-banyaknya

- Secara Aktif : - portscanning

- network mapping

- OS Detection

- application fingerprinting

Semua itu bisa dilakukan menggunakan toolz tambahan seperti nmap atau netcat

- Secara Pasif : - mailing-list (jasakom, newbie_hacker, hackelink, dsb)

- via internet registries (informasi domain, IP Addres)

- Website yang menjadi terget

2. Fase Eksekusi
~ Setelah mendapatkan informasi, biasanya akan didapatkan informasi mengenai OS yg digunakan, serta port yang terbuka dengan daemon yg sedang berjalan. Selanjutnya mencari informasi mengenai vulnerability holes (celah kelemahan suatu program) dan dimanfaatkan menggunakan exploit (packetstromsecurity.org, milw0rm, milis bugtraq, atau mencari lewat #IRC).
~ Mengekspolitasi Vulnerability Holes
- compile eksploit -> local host ->

$gcc -o exploit exploit.c

$./exploit

# hostname (# tanda mendapatkan akses root)

remote host -> $gcc -o exploit exploit.c

$./exploit -t www.target.com

# (klo beruntung mendapatkan akes root)

~ Brute Force

- Secara berulang melakukan percobaan otentifikasi.

- Menebak username dan password.

- Cracking password file

~ Social Engineering

- Memperdayai user untuk memeberi tahu Username dan password

- Intinya ngibulin user….

3. Fase Setelah Eksekusi

~ Menginstall backdoor, trojans, dan rootkit

~ Menghapus jejak dengan memodifikasi file log agar tidak dicurigai admin

~ Menyalin /etc/passwd atau /etc/shadow/passwd

Nah, intinya seh cara masuk ke server seseorang seperti fase diatas. Mencari informasi, temukan exploit, dan tinggalkan backdoor. Cuma masalahnya hacking bukanlah segampang cara-cara diatas. Itu hanyalah teori, banyak hal yang harus diperhatikan jika ingin mempraketekkan hacking ke server seseorang. Jangan sekali-kali mencoba2 hacking ke server orang tanpa memperhatikan anonimitas (apalagi klo connectnya lewat komputer pribadi tanpa menggunakan proxy). Ntar klo ketahuan bisa repot. Saran gue, cobalah pada mesin localhost dulu (komuter pribadi), klo terhubung ke LAN lebih bagus. Sediakan server yang khusus buat dioprek. Kalaupun pun ga terhubung ke jaringan, kita masih bisa menggunakan Virtual Machine menggunakan VMWare seperti yang nanti akan dibahas pada bagian 3!

Hack Windows XP (SP2) Passwords

Apakah anda pernah menggunakan komputer di Lab atau pinjam komputer teman atau bahkan menggunakan komputer di tempat umum? Nah, biasanya klo di Lab (berdasarkan pengalaman pribadi) komputer pasti di-password dan jika ingin masuk harus tanya dulu ke sang empunya. Nah, sekarang kita dapat melihat password dari komputer yang kita gunakan tanpa merestart komputer atau pun tanpa menginstall program apapun seperti Cain, L0pthCrack, dsb. Hanya dibutuhkan sedikit ‘kepercayaan’ untuk meminjam komputer (istilah kerennya social engineering) dan 2 buah program, yaitu pwdump6 dan john the ripper. Tapi klo kebetulan ada login umum dengan tipe administrator, itu namanya Hoki! ga perlu cape2 pinjam login teman lagi :-D.
Sebelumnya mungkin anda pernah mendapatkan tutorial mengenai cara menge-hack password user yang ada Windows XP atau NT menggunakan pwdump. Yup, mungkin tutorial ini akan mirip dengan bagaimana cara menge-hack Windows XP, terutama Windows XP SP2. Lalu apa bedanya dengan tutorial yang lain? Saat ini Windows XP SP2 (atau mungkin juga SP1, CMIIW), menggunakan Syskey untuk memproteksi agar HASH (tempat menyimpan password yang dienkripsi) tidak dapat dibaca dan didump menggunakan pwdump atau samdump. Untuk lebih jelasnya berikut penjelasan mengenai Syskey [1] :

Syskey is a Windows feature that adds an additional encryption layer to the password hashes stored in the SAM database. The main purpose of this feature is to deter ‘offline’ attack. In fact one of the most common ways to gather passwords is to copy the system SAM database and then use one of the many good password crackers to “recover” the passwords; of course physical access is almost always required. So with syskey the attacker needs to remove the additional encryption layer to get the password hashes.

Jika dulu mungkin di Windows NT atau XP (sebelum SP2), kita masih bisa menggunakan pwdump atau bahkan langsung dengan KaHT, maka untuk Windows XP SP2 cara tersebut tidak dapat digunakan lagi (mungkin lebih tepatnya, pwdump tersebut tidak dapat digunakan lagi). Nah disinilah letak perbedaan dengan tutorial sebelumnya. Jika sebelumnya kita menggunakan pwdump versi lama, maka sekarang digunakan pwdump6 yang dikembangkan oleh fizzgig and the foofus.net Team. Kalau baca README dari pwdump6 ini, maka pwdump6 adalah :

pwdump6 is a password hash dumper for Windows 2000 and later systems. It is capable of dumping LanMan and NTLM hashes as well as password hash histories. It is based on pwdump3e, and should be stable on XP SP2 and 2K3. If you have had LSASS crash on you using older tools, this should fix that.

A significantly modified version of pwdump3e, this program is able to extract NTLM and LanMan hashes from a Windows target, regardless of whether Syskey is turned on. It is also capable of displaying password histories if they are available. It outputs the data in L0phtcrack-compatible form, and can write to an output file

Oh iya, agar pwdumpd6 dapat dijalankan dan mendapatkan HASH file dibutuhkan account yang mempunyai akses setara dengan Administrator. Nah, oleh karena itu kita harus menjalankan sedikit social engineering. Bilang aja ketemen kita, klo mengakses workgroup, tapi ga bisa klo pake login biasa. Tapi tenang aja, biasanya secara default orang-orang kebanyakan mebuat user dengan tipe account Administrator. Atau gunakan berbagai macam cara, daya, upaya maupun rayuan agar kita bisa dapat login terlebih dulu.

Jika udah punya akses dengan login tipe adiministrator, cara selanjutnya adalah tinggal menjalankan pwdump6. Jika anda punya flashdisk, simpan dan bawa terus pwdump6 ini kemanapun ada pergi, siapa tahu berguna suatu saat.. :-D. Ok, langsung aja kita jalankan pwdump6 ini. Sebaiknya copy dulu pwdump6 ke Hardisk (jangan dijalankan dari flashdik). Sebelumnya downlod dulu pwdump6 ini dari sini atau download dari mirror situs saya disini.

1. Jalankan CMD (Run->cmd)

2. Jalankan pwdump6 seperti berikut (misalnya PwDump6 berada di folder D:\PwDump6)

D:\PwDump6>PwDump.exe -o pass.txt 127.0.0.1

pwdump6 Version 1.3.0 by fizzgig and the mighty group at foofus.net
Copyright 2006 foofus.net

This program is free software under the GNU
General Public License Version 2 (GNU GPL), you can redistribute it and/or
modify it under the terms of the GNU GPL, as published by the Free Software
Foundation. NO WARRANTY, EXPRESSED OR IMPLIED, IS GRANTED WITH THIS
PROGRAM. Please see the COPYING file included with this program
and the GNU GPL for further details.

Using pipe {C411BDE9-594E-47F4-99B5-E94ADF194A45}
Key length is 16
Completed.

3. Setelah itu akan didapatkan file pass.txt yang berisi daftar user dan password yang masih dienkripsi. Contohnya akan tampak seperti berikut :

ach:1003:2BFA42D08601B951ABD697149E2F5967:73098347042E9109FA584CE843018F4F:::
Administrator:500:934A4750EC9859B3EA397B0F6EC18E34:732BD09D6834DA4A5A30300A6A045BF8:::
coba:1004:FBE4F28EE205F0BA79999C25263AA9AA:A69C199A4DF77CD41FCA6EA916A93868:::
Guest:501:NO PASSWORD********************* :NO PASSWORD*********************:::
HelpAssistant:1000:B3D2AE56C93F27B43C4F8419B1A21E9B: DC3DBB258A10B0C7EA9D92133267B905:::
SUPPORT_388945a0:1002:NO PASSWORD*********************: DF1DB672DA1B5C045ECA2490CA753D3B:::

4. Yosh!! password sudah ditangan. Proses selanjutnya adalah menge-crack file pass.txt dengan bantuan John The Ripper. Sebaiknya simpan dulu file pass.txt ke USB atau upload ke tempat yang aman, karena proses cracking ini bisa dilakukan kapan saja dan dimana saja. Berdasarkan pengalaman, kalau passwordnya tidak terlalu sulit ditebak seperti “adminkeren”, “qwerty123″, biasanya dibutuhkan waktu yang tidak terlalu lama untuk mengecracknya lewat John The Ripper. Tapi kalau password menggunakan kombinasi yang aneh-aneh seperti “P4ssW0rD”, “S03S4h”, dsb, biasanya membutuhkan waktu lama, bisa ditinggal tidur atau maen aja dulu. Ok, sekarang gini nih cara ngecraknya.

Download John The Ripper untuk Windows disini. Untuk komputer yang menggunakan Prosesor AMD, sebaiknya menggunakan “john-mmx.exe”. Atau bagi yang menggunakan intel atau AMD, dapat menggunakan “John-386.exe”. Sebelumnya copy file pass.txt ke dalam folder tempat “John-mmx.exe” atau “John-386.exe” berada (John171w\john1701\run). Setelah itu tinggal jalankan perintah berikut dan tunggu dengan sabar :

D:\john171w\john1701\run>john-mmx.exe pass.txt
Loaded 8 password hashes with no different salts (NT LM DES [64/64 BS MMX])
REN123 (Administrator:2)
TEBAK (coba:2)
ADMINKE (Administrator:1)
MUDAHDI (coba:1)

Yosh!! sekarang passwordnya sudah terlihat secara kasat mata. Jadi password untuk user “Administrator” adalah “adminkeren123″, diperoleh dari menggabungkan Administrator:2 dan Administrator:2.

Administrator:1+Administrator:2 = adminkeren123

Sedangkan untuk user “coba” adalah “mudahditebak”!!

Mudah bukan? Intinya sih tinggal ambil HASH file (password yang dienkripsi) menggunakan pwdump6 lalu crack hasilnya dengan John The Ripper.

Nah, sekarang kalau kita mau pakai komputer teman di Lab, ga usah cari2 orangnnya lagi. Tinggal pake aja langsung user Admin lagi, tapi jangan sampai ketahuan ama dia….. Atau klo anda lupa password Administrator, tidak perlu mereboot komputer, lalu mereset password anda. Tinggal ikut langkah2 diatas aja!
Referensi :

[1]. http://studenti.unina.it/~ncuomo/syskey

Thanks to fizzgig for you great tools, pwdump6 (http://www.foofus.net/fizzgig/pwdump)! I’ve been looking for this tools for a log time ago! Thanks dude!! and Thanks to pen-test@securityfocus.com!

Update : Cara yang lebih mudah dapat ditemukan di Hack Windows XP Password dengan Ophcrack

Cara Menemukan Password Administrator Windows XP

Memang hidup dijaman sekarang yang sulit semakin sulit bila setiap keinginan kita untuk “berkembang” dikekang. Bagi karyawan perkantoran yang menggunakan komputer dengan OS Windows XP akan makin terkekang kebebasannya karena komputer hanya bisa digunakan hanya untuk kerja dan kerja.

Memang ini merupakan IT policy setiap kantor yang tidak memperbolehkan untuk menginstall bermacam2 program tapi hal inilah yang membuat para karyawan sulit untuk berkembang. Memang harus diakui ada sisi baik dan ada juga sisi buruk dari penerapan IT Policy.

Tapi kali ini kita sedikit mengabaikan sisi baik dari IT policy tersebut dan lebih mensupport para karyawan untuk bisa berkembang.Artikel ini sedikit memberi gambaran bahwa setiap ada kesulitan pasti ada jalan keluar.

Di dunia maya ini banyak sekali artikel yang membahas tentang cara membongkar password administrator Windows XP bahkan sudah banyak program yang dibuat untuk mereset ataupun mengganti password tersebut. Tentunya jika kita ingin bermain manis, kita tidak perlu melakukan cara-cara kasar tersebut karena resiko yang kita ambil akan lebih besar. Cara yang digunakan untuk menemukan password administartor sangat simple dan tidak perlu banyak pengetahuan yang dibutuhkan hanya tinggal mengikuti langkah dibawah ini :

Keperluan yang dibutuhkan untuk mengetahui password administrator antara lain 1 buah disket, akses internet dan email:

1. langkah pertama adalah mendownload file image.exe dari http://www.loginrecovery.com/referal.php?p=2
2. Buat bootable disk dengan menjalankan file tersebut
3. Matikan computer lalu boot dengan menggunakan disk tersebut. (disk tersebut akan menghasilkan satu buah file upload.txt)
4. Setelah itu masuk ke windows xp secara normal (sebelumnya keluarkan disket) lalu buka http://www.loginrecovery.com/instructions.php
5. Masukkan disket lalu pilih upload.txt, masukkan alamat email dan access code lalu klik submit.
6. Kita akan mendapatkan konfirmasi lewat email untuk mengetahui password kita telah selesai. Sebenarnya website ini sangat cepat sekali untuk menemukan password tetapi karena kita menggunakannya secara gratisan maka harus menunggu 48 jam (2 hari) untuk bisa melihat password administrator, kecuali kalau mau bayar, dimenit itu juga password bisa ketahuan.
7. Bila telah 48 jam (lama bener yah ..) buka http://www.loginrecovery.com/results.php , masukkan alamat email saat kita mengupload, klik view lalu masukkan access code and .. password administrator ditemukan

Memang segala sesuatu tidak ada yang sempurna tetapis situs ini mengklaim keberhasilan menemukan password diatas 98.5% hebat bukan …
Selamat mencoba dan ingat segala sesuatu yang kita perbuat, akibatnya kita sendiri yang mananggungnya jadi waspadalah…..

Jumat, 05 September 2008

TUTORIAL MERAKIT PC DAN PENGENALAN KOMPUTER

ini adalah artikel berformat PDF yang berisi:
1. Pengenalan teknology komputer dengan pendekatan hardware dan system secara detil.
2. Tuntunan merakit komputer secara praktis.
3. Troubleshooting, menjelaskan cara mendeteksi kesalahan saat merakit dan pemecahannya.

Silahkan lihat di sini