Showing posts with label Backtrack. Show all posts
Showing posts with label Backtrack. Show all posts

Thursday 15 November 2012

MSF not updating : Working Copy '.' Locked. Suggestion for SVN

Welcome Friends, I Am Posting A New Tutorial by Shubham Mittal(@k@ upgoingstaar) and his Blog(Must read) 
http://3ncrypt0r.blogspot.in/
So Get Ready To Be A G33k With Him. Enjoy Tutorial...


 Most of the time when we come across some new exploits in the market and expect them in our msf instance, your framework stucks at some point while updating and you have a reason for your dissappointment. You try with some Googling but it doesnt help you as most of the prople instead of answering, are fighting, arguing and posting lame things on those forums.

To solve this for newbies, I am therefore writing this article, hwoever if you enjoy digging the things on your own (which is the best practice to make you strong conceptually, learnt this one of highly experienced senior), this is not for you.

There can be lot of reasons for not being able to update msf. One of them i included in my last post, 

http://3ncrypt0r.blogspot.in/2012/08/msfupdate-not-working-solution.html

The other one i am including today.

generally when we do update we have to sit long back to back as the update stucks, it comes back with error which seems something like this when you run msfupdate.

svn : Working copy '.' locked
svn : run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

IMAGES ARE SMALL IN VIEW; CLICK THEM FOR LARGER VIEW.






Reason: SVN not being able to handle the situation. 

What is SVN? 

SVN is a program which keeps track of all the different versions of our source files. You can give a read to it on this Wiki page.


Solution: 

It tries to resolve the issue on its own and suggest you to run "cleanup" at the directory which is getting locked. If it works, Congratulations". In most of the cases it will not work and you will see something like this:



In my case i was getting the error at "/lib/gemcache/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support" directory. 


I guessed it was getting locked at some file within the directory but as the files don't appear in the folder when it is bieng synchronized with git, so you can't delete that particular file. Better remove the directory itself. So i deleted my that particular directory:




I was a bit unlucky that day so it didnt solved the situation. But as we must leave the things unsolved go through the error and and try to figure it out. Again it was locked at some other directory : 




So without any laziness, delete it too.




As a precaution to avoid further error messages (I HATE ERRORS, seriously), so run this:




Most probably you have figured it out, so try msfupdate now.



And perhaps this will give you a smile.




Suggestions and queries are always welcomed.

KEEP EXPLOITING.

Wednesday 14 November 2012

Download Youtube Videos in 3 seconds with Amazing Youtube Downloader

Hi Friends,
So This Tutorial is Very Small.
Last Night I was Searcing a youtube Video and when i Found that video. 
Then Accidently in place of  www.youtube.com/blahblah there is 2 ss  Extra added and pressed enter.
Then the result was so shocking.
now see what really happened at that moment.

Origional youtube video Url

The Accidently modified youtube video Url


I Found A Download Info For My Youtube Video Then i Selected one of the Downloading options and boom downloading started in one go...
Now Download Any Of Your Youtube, Metacafe Video in 2 SS :D and without any Downloader.

Use VLC Media Player As Video Converter


Using VLC Media player as a Converter :

1) Launch the VLC Media player.

2) Click on Media and select Convert/Save (Ctrl+R)option.

3) Now you can select your desired file by using Add button on the new popup Window.

4) After selecting the file, click on Convert/Save button.

5) From the new window that just appeared, select the destination File and Profile (The format to which you want to convert).

6) Finally, click on the Start button to begin the process. The selected file will be converted to your desired file format shortly.

Vlc Media Player Converter

Installing VirtualBox on Backtrack 5 R1,R2 or R3


If you have backtrack installed on HDD or dualboot you can install virtualbox into Backtrack.. The commands are listed below:
Follow My Steps:
Step 1.
Open Your Terminal
and type the exact commands (text in red) 

root@bt # prepare-kernel-sources

root@bt # cd /usr/src/linux

root@bt # cp -rf include/generated/* include/linux/

Step 2.
Open Up A New Terminal
After this is done, edit /etc/apt/sources.list as shown below and download virtualbox

root@bt # echo deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free >> /etc/apt/sources.list

root@bt # wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

root@bt # apt-get update

root@bt # apt-cache search virtualbox

root@bt # apt-get install virtualbox-4.0


Open Your Virtual Box By Navigating 
Applications > System Tools > Oracle VM VirtualBox

How to install LINUX/UNIX/BACKTRACK *.tar.gz tarball files-QUICK TUTORIAL FOR BEGINNERS


Welcome Readers,
I SEE THE MOST OF PEOPLE DON'T NOW HOW EXTRACT AND INSTALL TAR.GZ,TAR.BZ2,TBZ2,TGZ SO HERE IS QUICK TUTORIAL FOR YOU:
How to install Linux / UNIX *.tar.gz tarball files
How do I install tar.gz files under Linux?

A. tar.gz also known as tarball, an archive format for electronic data and software. Most Linux tarball contains a source code for software. If you are new to Linux I recommend using apt-get, rpm and yum command to install all binary packages.

Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2. Most open source software use tarballs to distribute programs/source codes.
 1: Uncompress tarball

To uncompress them, execute the following command(s) depending on the extension:
root@bt:  tar -zxvf file.tar.gz
root@bt:  tar- zxf file.tgz
root@bt:  tar -jxf file.tar.bz2
 root@bt: tar -jxf file.tbz2

Now change directory
root@bt: ls
root@bt: cd path-to-software/

2: Build and install software

Generally you need to type 3 commands as follows for building and compiling software:
root@bt:# ./configure
root@bt:# make
root@bt:# make install

Where,

    ./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package
    make will compile all the source files into executable binaries.
    Finally, make install will install the binaries and any supporting files into the appropriate locations.

3: Read INSTALL / README file

Each tarball comes with installation and build instructions. Open INSTALL or README file for more information:
You can use kate or gedit txt editor for open readme and install file
gedit txt editor is come with Backtrack
kate you can install with this command:
root@bt:~# apt-get install kate



How To Fix Black screen after startx In Backtrack 5


insert the DVD-live or your bootable backtrack media(live)

in the grub press TAB to edit boot

you well see somthing like this file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz

add xforcevesa noapic noapci nosplash irqpoll -- 

after initrd.gz

So All Done And Wait For My Next Tutorial...


ok i well explain it for you ..

bt5 is beseid on ubuntu 10.4 am i correct ?

ok..

ubuntu 10 had a problem in old intel and nevedia cards..

so..

when you install xorg-server >>this is before installing gnome or kde ..
you need to install vesa-driver pakage ,,so if you had a problem with the vesa driver (or it dosent work)

you well need to edit the boot or kernel parameters to solove the problem ..

so you need to add the parameter XFORCEVESA this well force vesa-driver to work

ok>>

the parameter NOPIC well STOP APIC service coz maybe its the problem

APIC service is for i/o your monetor ,keyboard, etc..

so on and so fort ..

i hope i cleared it out ..

Ask Me If You Have Doubts...

How To Change Mac Address oF your Machine in Backtrack Or Linux Distros

Hi To All The Mindbenders Readers, Once Again i'm Back With My New Tutorial on Changing Your Machine's  MAC Address.
In My Last Post I Explained The Importance Of Ip Address And Changing Your Machine Ip Address.
So If You Want to Learn What Ip And Mac address is then You Don't Have To Read Bulky books...
I am Not Explaining ip Addressing or Mac Here in the Post...
But can Give You A Small Idea About What Really Is it...

We Can Compare Our Ip Address to our Mobile No, As ip Address Can be Changed or can remain Static So As Our Mobile No. Are. One Can Change No. At any Time or can Apply(buy) For Forever.

And The Second Comparison is of Mac Address And IMEI no.
For Me Both(Mac Address And IMEI) Are Given By their manufacturers.
And Can Be Used To Trace Back The Device...

i Think its Enough For Brushing Up Your Knowledge. :D

Coming To the Point 
follow my Steps:

Step 1.
 Open Up Your Terminal...
and Use The Commands(text in red)

root@bt:~# ifconfig -a


You will now see a list of network interfaces, chipset details and their mac addresses. Pick the ID which corresponds to your network card you want to spoof the MAC address on. In this example I will be use “eth1″
First we need to bring our interface down. To do this we type the following command into the shell or terminal(text in red):


root@bt:~# ifconfig eth1 down

To change your MAC address type the following command(text in red) into the shell window swapping out 11:22:33:44:55:66 for the MAC address you want to use:

root@bt:~# macchanger –mac 11:22:33:44:55:66

Now we need to bring our interface(eth1) back up. To do this we type the following command(text in red) into the shell:

root@bt:~# ifconfig eth1 up

To verify our newly assigned MAC address we can query the interface again using Following Command (text in red):

root@bt:~# ifconfig -a

And Check For Your eth1 Mac Address...
Start Your Penetration Testing Or Whatever You Want Without A Hidden Eye On You...

How To Change IP Address Of your Machine Without Any Software In Backtrack 5 Or Any Linux Distros

Like All Computer G33ks We Love Our Terminal And command Our Terminal To fulfill our Goal...
So Today's Goal is To Change Our Ip.
Because We Know That Internet protocol address can help the security professionals our server admins to identify us that who we are and where we are.
The Most Common Site Which is designed to track our activities is none other than google god... or you can say that Google Maharaj.

Steps To Follow For Changing IP Address Of Your Machine.

Step 1.
We Want to See Our Origional ip Address on the network in this step.
Open Your Terminal and type the command in red text.


root@bt:~# ifconfig

now you can see your ip adress and interface(wlan or eth1 etc.)




Step 2.
Then Let's Start Changing Our ip Address, but before that we have to identify our interface (eth0,eth1,wlan0,mon0) mine is eth1
 So Assume that Your Interface is eth1 you can replace it with your own... Don't copy Paste Learn The Process...
remember to change the interface with your own interface, but the method is same as below...

ifconfig your interface new ip adress

To Change Ip Type Following command in Terminal only type text in red.

root@bt:~# ifconfig eth1 192.168.202.124

Step 3.
Now Check The IP Address of your machine by ifconfig(text in red)

root@bt:~# ifconfig







Record Your Own Desktop in Backtrack 5 using RecordMyDesktop Directly From Your Terminal


Very Quick And Sharp Tutorial To Show you The Power Of Terminal...

Open terminal and type (text in red):
root@bt:~# recordmydesktop --follow-mouse --no-sound --output=/root/themindbenders.ogv


When You Want To Finish Your Video Simply Press These Two Keys 
Hold Ctrl and then Press C (ctrl+c) Key and wait for encoding Process...

And At The End Navigate To Your Root or home folder to collect Your Captured Video...

As Some Of You Have Some Lack of confidence then don worry friends Ask me like a N00b...

How To Fix Audio control issue on BackTrack 5 using pulseaudio



The Audio fix for backtrack 5 is pretty simple.
1. Navigate to System > Preferences > Startup Applications on the main menu.
2. Click on Add.
3. Give a name Themindbenders.
4. For Command, type /usr/bin/pulseaudio
5. Click on Add, and then on Close.
6. Logout to close the X session, and restart it by typing startx
7. After login again go to System > preferences > sound
8. unmute sound

Now Enjoy Music With Mindbenders...
If you Have Any Query,Doubts & Blah Blah Then Comment Below To Get What You Really Want...

Fixing WICD Network Manager Error Message in Backtrack 5


WICD Network Manager first time in backtrack 5 R1 or R2

 Set up your networking is using the WICD Network Manager, you can find it in the menu:

Menu > Internet > Wicd Network Manager

NOTE: Notice that when starting WICD you will get an error:

Could not connect to wcid s D-Bus interface.Check the wcid log for error messages.


In order to get rid of this error you have to reboot Backtrack, than BEFORE starting WICD open up a terminal and type in the following:

root@bt:~# dpkg-reconfigure wicd
root@bt:~# update-rc.d wicd defaults

Now after a reboot the error should not occur anymore.

Hope You Liked The Way Of Fixing Wicd Error In A Cheap Way...

Installing Loic To Perform Denial of service attack in backtrack 5


Low Orbit Ion Cannon (LOIC) is an open source network stress testing and denial-of-service attack application, written in C#. LOIC was initially developed by Praetox Technologies, but was later released into the public domain, and now is hosted on several open source platforms. It's named after a fictitious weapon from the Command & Conquer series of video games.


write in terminal commands are written in red text:

root@bt:~# aptitude install git-core monodevelop
root@bt:~# mkdir ~loic
root@bt:~# cd ~loic
root@bt:~/~loic#  wget https://raw.github.com/nicolargo/loicinstaller/master/loic.sh
root@bt:~/~loic# chmod a+x loic.sh
root@bt:~/~loic# ./loic.sh install
root@bt:~/~loic# ./loic.sh update
root@bt:~/~loic# ./loic.sh run


If not work ./loic.sh run,use LOIC.exe run (it is installed in /root/~loic/LOIC/bin/Debug/ )
LOIC.exe run (open with mono-right click and choose mono)
create luncher for loic(right click on desktop and use create luncher)
in type must be application
command is:
/root/~loic/LOIC/bin/Debug/LOIC.exe run
or this command
/root/~loic/loic.sh run
add picture
add to panel or desktop

Uninstall Backtrack 5,R1 OR R2 Dual Boot Win 7 (windows 7 ultimate but works on other windows 7)



Uninstall Backtrack 5 Dual Boot Win 7(windows 7 ultimate but works on other windows 7)  for beginners:


1. Remove old backtrack installation
2. Reinstall backtrack with new disk space allocation
to remove backtrack installation, which is dual booted with windows 7, i have to make sure my windows 7 can still work well. after googling, i got the message to do fixmbr to recover windows 7 boot manager. so here are the steps.

A. Fixing windows 7 boot manager
1. prepare your win7 installation disk (dvd/usb), plug it in.
2. start your computer, set the boot priority from bios setting (first boot usb, or cd/dvd room)
3. when windows 7 installation comes up, choose repair
4. choose repair this computer with recovery tool, click next
5. choose command prompt
6. enter this command:
BootRec.exe  /fixmbr
7. reboot your computer

B. Remove backtrack
1. now your computer should start the win 7 automatically
2. go to control panel > System and Security > Administrative Tools > Computer Management > choose Disk Management (under storage properties)
3. u will see clearly your computer partitions, delete your backtrack partition by right click > delete Volume
4. after it is deleted you will have new disk space and u can expand your other windows partition.

How expand your partition drive: C or D
1. go to control panel > System and Security > Administrative Tools > Computer Management > choose Disk Management (under storage properties)
2.You will se free space-now right click and delete partition –now this partition will be unllocated
3.Right click on partition wich you will be expand and click on the extended volume-next-next and finish(you can type how much mb use for expand your partition)


Matrix letters in terminal Using Cmatrix For Linux or Backtrack 5

Looking For Some funny Moments For Your Terminal Try My New Discovered App For Your Linux or Backtrack Distros.

Steps To Follow
Step 1.
Installing Cmatrix From Your Terminal.
Type The Command (Text in red)

root@bt:~# apt-get install cmatrix

Step 2.

Using Cmatrix in terminal, only type command in red text

root@bt:~# cmatrix



How to Install Google Chrome on Backtrack 5

This is a quick tutorial to install Google Chrome on Backtrack. A lot of people are trying to learn security these days and backtrack being one of the most used distros they download it and find themselve stuck in a dillema to use it. Here are the steps you need to follow in order to install Chrome Browser on your Backtrack 5. And Chrome is my Favorite browser. so let's start.
Open the Konsole/Terminal (or whatever funky name you call it with)
Execute the following command(text in red) to download the program 
------------------------------------------------------------------------------------------------------------

root@bt:~# apt-get install chromium-browser
------------------------------------------------------------------------------------------------------------

We need to make a few changes in the system to make it work. So switch to Chrome’s directory with following command(text in red)
------------------------------------------------------------------------------------------------------------
root@bt:~# cd /usr/lib/chromium-browser

------------------------------------------------------------------------------------------------------------

This is the step you need to follow in order to be able to run Chrome as root user:
Open Hex editor with the command(text in red)

------------------------------------------------------------------------------------------------------------
root@bt:/usr/lib/chromium-browser# hexedit chromium-browser
------------------------------------------------------------------------------------------------------------
Switch to code written in right hand side by pressing "tab" key
- Now search for geteuid with the command (ctrl+s then type geteuid)
- Replace it with getppid 

And finally save the changes by pressing "ctrl+x" key 
then it will ask for yes or no 
press "y" key to save

Now you are able to run Google Chrome on your Backtrack 5 along with root privileges.



root@bt:~# chromium-browser